Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8095935

[Monocle] FuzzyTapTest sometimes fails

    Details

      Description

      Sometimes FuzzyTapTest fails because TouchLookahead is too aggressive in merging touch events.
      In a sequence of touch states in which each state has the same touch point characteristics except for coordinates, we are only sending the last state. This is incorrect in the case that the previous state before the sequence was different from the current sequence.

      For example we are merging the following sequence

      TouchState[1, Point[id=0,x=100,y=100]]
      TouchState[1, Point[id=0,x=200,y=200]]
      TouchState[1, Point[id=0,x=300,y=300]]
      TouchState[1, Point[id=0,x=500,y=400]]
      TouchState[1, Point[id=0,x=500,y=500]]

      into:

      TouchState[1, Point[id=0,x=500,y=500]]

      This is not always correct. We need to consider the previous state. If the previous state was different, for example

      TouchState[0]

      then the result of the above sequence should be:

      TouchState[1, Point[id=0,x=100,y=100]]
      TouchState[1, Point[id=0,x=500,y=500]]

        Attachments

          Activity

            People

            • Assignee:
              dblaukop Daniel Blaukopf (Inactive)
              Reporter:
              dblaukop Daniel Blaukopf (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: