Home | History | Annotate | Download | only in gesture_detection

Lines Matching refs:event_time

63   static MockMotionEvent ObtainMotionEvent(base::TimeTicks event_time,
67 return MockMotionEvent(action, event_time, x, y);
70 static MockMotionEvent ObtainMotionEvent(base::TimeTicks event_time,
76 return MockMotionEvent(action, event_time, x0, y0, x1, y1);
79 static MockMotionEvent ObtainMotionEvent(base::TimeTicks event_time,
87 return MockMotionEvent(action, event_time, x0, y0, x1, y1, x2, y2);
91 base::TimeTicks event_time,
97 action, event_time, positions[0].x(), positions[0].y());
100 event_time,
107 event_time,
120 static MockMotionEvent ObtainMotionEvent(base::TimeTicks event_time,
122 return ObtainMotionEvent(event_time, action, kFakeCoordX, kFakeCoordY);
273 base::TimeTicks event_time = base::TimeTicks::Now();
280 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
287 event = ObtainMotionEvent(event_time + kOneSecond,
311 EXPECT_EQ(event_time + kOneSecond, GetReceivedGesture(1).time)
315 event_time + kOneSecond, end_action_type, scroll_to_x, scroll_to_y);
360 base::TimeTicks event_time = base::TimeTicks::Now();
375 ObtainMotionEvent(event_time,
385 ObtainMotionEvent(event_time + kDeltaTimeForFlingSequences,
392 event = ObtainMotionEvent(event_time + 2 * kDeltaTimeForFlingSequences,
397 event = ObtainMotionEvent(event_time + 2 * kDeltaTimeForFlingSequences,
417 base::TimeTicks event_time = base::TimeTicks::Now();
424 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
438 event = ObtainMotionEvent(event_time + kOneMicrosecond,
460 base::TimeTicks event_time = base::TimeTicks::Now();
467 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
479 event = ObtainMotionEvent(event_time + kOneMicrosecond,
501 base::TimeTicks event_time = TimeTicks::Now();
507 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
517 event = ObtainMotionEvent(event_time + delta_time,
525 event = ObtainMotionEvent(event_time + delta_time * 2,
564 base::TimeTicks event_time = base::TimeTicks::Now();
569 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
574 event = ObtainMotionEvent(event_time + delta_time,
596 event = ObtainMotionEvent(event_time + delta_time * 2,
608 EXPECT_EQ(event_time + delta_time * 2, GetMostRecentGestureEvent().time)
613 const base::TimeTicks event_time = TimeTicks::Now();
616 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
630 event = ObtainMotionEvent(event_time + kOneMicrosecond * 2,
636 base::TimeTicks event_time = base::TimeTicks::Now();
639 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
645 event = ObtainMotionEvent(event_time + kOneMicrosecond,
652 event = ObtainMotionEvent(event_time + kOneSecond,
662 base::TimeTicks event_time = base::TimeTicks::Now();
665 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
671 event = ObtainMotionEvent(event_time + kOneMicrosecond,
679 event_time += GetValidDoubleTapDelay();
680 event = ObtainMotionEvent(event_time,
690 event = ObtainMotionEvent(event_time + kOneMicrosecond,
698 event = ObtainMotionEvent(event_time + kOneMicrosecond * 2,
783 const base::TimeTicks event_time = TimeTicks::Now();
786 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
791 event = ObtainMotionEvent(event_time + kOneMicrosecond,
797 event = ObtainMotionEvent(event_time + kOneMicrosecond * 2,
808 EXPECT_EQ(event_time + kOneMicrosecond * 2, gesture.time);
826 const base::TimeTicks event_time = TimeTicks::Now();
829 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
833 event = ObtainMotionEvent(event_time,
838 event = ObtainMotionEvent(event_time,
845 event = ObtainMotionEvent(event_time + kOneMicrosecond * i,
854 EXPECT_EQ(event_time + kOneMicrosecond * i, gesture.time);
878 const base::TimeTicks event_time = TimeTicks::Now();
881 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
886 event = ObtainMotionEvent(event_time + kOneMicrosecond,
893 event = ObtainMotionEvent(event_time + kOneMicrosecond * 2,
907 base::TimeTicks event_time = base::TimeTicks::Now();
910 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
912 event = ObtainMotionEvent(event_time + kOneMicrosecond,
917 event = ObtainMotionEvent(event_time + kOneMicrosecond * 2,
934 base::TimeTicks event_time = base::TimeTicks::Now();
937 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
949 event = ObtainMotionEvent(event_time + kOneSecond, MotionEvent::ACTION_UP);
958 base::TimeTicks event_time = base::TimeTicks::Now();
961 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
970 event = ObtainMotionEvent(event_time + long_press_timeout,
980 event = ObtainMotionEvent(event_time + long_press_timeout,
987 base::TimeTicks event_time = base::TimeTicks::Now();
991 event_time, MotionEvent::ACTION_DOWN, kFakeCoordX, kFakeCoordY);
994 event = ObtainMotionEvent(event_time + kOneMicrosecond,
1002 event_time += GetValidDoubleTapDelay();
1003 event = ObtainMotionEvent(event_time,
1017 event = ObtainMotionEvent(event_time + long_press_timeout,
1029 event = ObtainMotionEvent(event_time + long_press_timeout + kOneMicrosecond,
1047 base::TimeTicks event_time = base::TimeTicks::Now();
1050 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
1053 event = ObtainMotionEvent(event_time + kOneMicrosecond * 2,
1073 base::TimeTicks event_time = base::TimeTicks::Now();
1076 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
1079 event = ObtainMotionEvent(event_time + kOneMicrosecond * 2,
1086 event = ObtainMotionEvent(event_time + kOneMicrosecond * 2,
1093 event = ObtainMotionEvent(event_time + kOneMicrosecond * 2,
1100 event = ObtainMotionEvent(event_time + kOneMicrosecond * 2,
1108 ObtainMotionEvent(event_time + kOneMicrosecond * 2,
1117 base::TimeTicks event_time = base::TimeTicks::Now();
1120 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
1126 event = ObtainMotionEvent(event_time + kOneMicrosecond,
1136 event_time += (GetDoubleTapMinTime() / 2);
1137 event = ObtainMotionEvent(event_time,
1145 event = ObtainMotionEvent(event_time + kOneMicrosecond,
1157 base::TimeTicks event_time = base::TimeTicks::Now();
1159 event_time, MotionEvent::ACTION_DOWN, kFakeCoordX, kFakeCoordY);
1163 event = ObtainMotionEvent(event_time + kOneMicrosecond,
1170 event_time += GetValidDoubleTapDelay();
1171 event = ObtainMotionEvent(event_time,
1178 event = ObtainMotionEvent(event_time + kOneMicrosecond,
1188 event_time = base::TimeTicks::Now();
1190 event_time, MotionEvent::ACTION_DOWN, kFakeCoordX, kFakeCoordY);
1194 event = ObtainMotionEvent(event_time + kOneMicrosecond,
1207 event_time += GetValidDoubleTapDelay();
1208 event = ObtainMotionEvent(event_time,
1215 event = ObtainMotionEvent(event_time + kOneMicrosecond,
1222 event_time += GetValidDoubleTapDelay();
1223 event = ObtainMotionEvent(event_time,
1230 event = ObtainMotionEvent(event_time + kOneMicrosecond,
1241 base::TimeTicks event_time = base::TimeTicks::Now();
1243 event_time, MotionEvent::ACTION_DOWN, kFakeCoordX, kFakeCoordY);
1248 event = ObtainMotionEvent(event_time + kOneMicrosecond,
1463 base::TimeTicks event_time = base::TimeTicks::Now();
1477 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
1493 event = ObtainMotionEvent(event_time,
1510 event = ObtainMotionEvent(event_time,
1545 event = ObtainMotionEvent(event_time,
1569 event = ObtainMotionEvent(event_time,
1589 event = ObtainMotionEvent(event_time, MotionEvent::ACTION_UP);
1603 base::TimeTicks event_time = base::TimeTicks::Now();
1610 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
1615 event = ObtainMotionEvent(event_time + kOneSecond,
1621 event = ObtainMotionEvent(event_time + kOneSecond * 2,
1629 event = ObtainMotionEvent(event_time + kOneSecond * 3,
1635 event = ObtainMotionEvent(event_time + kOneSecond * 4,
1641 event = ObtainMotionEvent(event_time + kOneSecond * 4,
1649 event = ObtainMotionEvent(event_time + kOneSecond * 4,
1789 base::TimeTicks event_time = base::TimeTicks::Now();
1792 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
1804 event = ObtainMotionEvent(event_time + long_press_timeout,
1813 base::TimeTicks event_time = base::TimeTicks::Now();
1820 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
1831 event = ObtainMotionEvent(event_time + kOneMicrosecond,
1835 event = ObtainMotionEvent(event_time + kOneMicrosecond * 2,
1839 event = ObtainMotionEvent(event_time + kOneMicrosecond * 3,
1909 base::TimeTicks event_time = base::TimeTicks::Now();
1915 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN, 1, 1);
1933 event_time, MotionEvent::ACTION_POINTER_DOWN, 1, 1, 2, 2);
1945 event_time, MotionEvent::ACTION_POINTER_DOWN, 1, 1, 2, 2, 3, 3);
1957 event_time, MotionEvent::ACTION_POINTER_UP, 1, 1, 2, 2, 3, 3);
1969 event_time, MotionEvent::ACTION_POINTER_DOWN, 2, 2, 3, 3, 4, 4);
1981 event_time, MotionEvent::ACTION_POINTER_UP, 2, 2, 3, 3, 4, 4);
1993 ObtainMotionEvent(event_time, MotionEvent::ACTION_POINTER_UP, 3, 3, 4, 4);
2005 event = ObtainMotionEvent(event_time, MotionEvent::ACTION_UP, 4, 4);
2021 base::TimeTicks event_time = base::TimeTicks::Now();
2025 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN, 1, 1);
2040 event_time, MotionEvent::ACTION_POINTER_DOWN, 1, 1, 2, 2);
2049 event_time, MotionEvent::ACTION_POINTER_DOWN, 1, 1, 2, 2, 3, 3);
2058 event_time, MotionEvent::ACTION_CANCEL, 1, 1, 2, 2, 3, 3);
2067 event_time, MotionEvent::ACTION_CANCEL, 1, 1, 3, 3);
2076 event_time, MotionEvent::ACTION_CANCEL, 3, 3);
2091 base::TimeTicks event_time = base::TimeTicks::Now();
2094 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN, 0, 0);
2097 event = ObtainMotionEvent(event_time,
2102 event = ObtainMotionEvent(event_time,
2111 ObtainMotionEvent(event_time,
2119 event = ObtainMotionEvent(event_time,
2142 base::TimeTicks event_time = base::TimeTicks::Now();
2145 event_time, MotionEvent::ACTION_DOWN, kFakeCoordX, kFakeCoordY);
2148 event = ObtainMotionEvent(event_time,
2156 event = ObtainMotionEvent(event_time,
2164 event = ObtainMotionEvent(event_time,
2182 base::TimeTicks event_time = base::TimeTicks::Now();
2185 event_time, MotionEvent::ACTION_DOWN, kFakeCoordX, kFakeCoordY);
2188 event = ObtainMotionEvent(event_time,
2193 event = ObtainMotionEvent(event_time,
2201 event = ObtainMotionEvent(event_time + kOneSecond + kOneMicrosecond,
2217 base::TimeTicks event_time = base::TimeTicks::Now();
2220 event_time, MotionEvent::ACTION_DOWN, kFakeCoordX, kFakeCoordY);
2223 event = ObtainMotionEvent(event_time,
2231 event = ObtainMotionEvent(event_time,
2248 base::TimeTicks event_time = base::TimeTicks::Now();
2261 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
2267 event = ObtainMotionEvent(event_time,
2281 event = ObtainMotionEvent(event_time,
2296 event = ObtainMotionEvent(event_time,
2311 event = ObtainMotionEvent(event_time,
2330 base::TimeTicks event_time = base::TimeTicks::Now();
2332 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
2342 ObtainMotionEvent(event_time + kOneMicrosecond, MotionEvent::ACTION_UP);
2356 base::TimeTicks event_time = base::TimeTicks::Now();
2358 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
2368 ObtainMotionEvent(event_time + kOneMicrosecond, MotionEvent::ACTION_UP);
2378 base::TimeTicks event_time = base::TimeTicks::Now();
2380 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN, 10, 20);
2387 event_time, MotionEvent::ACTION_POINTER_DOWN, 10, 20, 110, 120);
2392 event_time, MotionEvent::ACTION_MOVE, 10, 20, 110, 150);
2409 base::TimeTicks event_time = base::TimeTicks::Now();
2411 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
2423 ObtainMotionEvent(event_time + kOneMicrosecond, MotionEvent::ACTION_UP);
2433 event = ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN);
2446 ObtainMotionEvent(event_time + kOneMicrosecond, MotionEvent::ACTION_UP);
2461 base::TimeTicks event_time = base::TimeTicks::Now();
2468 ObtainMotionEvent(event_time, MotionEvent::ACTION_DOWN, 10, 10);
2478 event_time + kOneMicrosecond, MotionEvent::ACTION_MOVE, 11, 9);
2482 event_time + kOneMicrosecond, MotionEvent::ACTION_MOVE, 8, 11);
2491 ObtainMotionEvent(event_time + kOneMicrosecond, MotionEvent::ACTION_UP);