Home
last modified time | relevance | path

Searched refs:gesture (Results 1 – 25 of 198) sorted by relevance

12345678

/third_party/libinput/src/
Devdev-mt-touchpad-gestures.c111 if (tp->gesture.started) in tp_gesture_start()
114 switch (tp->gesture.state) { in tp_gesture_start()
127 tp->gesture.finger_count, in tp_gesture_start()
133 tp->gesture.finger_count, in tp_gesture_start()
138 tp->gesture.started = true; in tp_gesture_start()
203 delta = device_delta(touch->point, touch->gesture.initial); in tp_gesture_get_direction()
217 struct tp_touch *first = tp->gesture.touches[0], in tp_gesture_get_pinch_info()
218 *second = tp->gesture.touches[1]; in tp_gesture_get_pinch_info()
233 struct tp_touch *first = tp->gesture.touches[0], in tp_gesture_set_scroll_buildup()
234 *second = tp->gesture.touches[1]; in tp_gesture_set_scroll_buildup()
[all …]
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dtext_selection_test.dart140 final TestGesture gesture = await tester.startGesture(const Offset(200, 200));
152 await gesture.up();
163 final TestGesture gesture = await tester.startGesture(const Offset(200, 200));
164 addTearDown(gesture.removePointer);
166 await gesture.moveBy(const Offset(100, 100));
174 await gesture.up();
185 final TestGesture gesture = await tester.startGesture(const Offset(200, 200));
186 addTearDown(gesture.removePointer);
188 await gesture.moveBy(const Offset(100, 100));
202 final TestGesture gesture = await tester.createGesture();
[all …]
Dmouse_region_test.dart102 final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
103 addTearDown(gesture.removePointer);
104 await gesture.moveTo(const Offset(400.0, 300.0));
127 final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
128 addTearDown(gesture.removePointer);
129 await gesture.moveTo(const Offset(400.0, 300.0));
133 await gesture.moveTo(const Offset(1.0, 1.0));
156 final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
157 addTearDown(gesture.removePointer);
158 await gesture.moveTo(const Offset(400.0, 300.0));
[all …]
Dscrollable_test.dart79 final TestGesture gesture = await tester.startGesture(tester.getCenter(find.byType(Viewport)));
82 await gesture.up();
134 final TestGesture gesture = await tester.startGesture(tester.getCenter(find.byType(Viewport)));
136 await gesture.up();
143 final TestGesture gesture = await tester.startGesture(tester.getCenter(find.byType(Viewport)));
144 await gesture.moveBy(const Offset(0.0, -0.5));
146 await gesture.moveBy(const Offset(0.0, -0.5), timeStamp: const Duration(milliseconds: 10));
148 await gesture.moveBy(const Offset(0.0, -0.5), timeStamp: const Duration(milliseconds: 20));
154 final TestGesture gesture = await tester.startGesture(tester.getCenter(find.byType(Viewport)));
155 await gesture.moveBy(const Offset(0.0, -0.5));
[all …]
Dgesture_detector_test.dart39 final TestGesture gesture = await tester.startGesture(firstLocation, pointer: 7);
46 await gesture.moveTo(secondLocation);
52 await gesture.up();
72 onHorizontalDragUpdate: (DragUpdateDetails details) { fail('gesture should not match'); },
73 onHorizontalDragEnd: (DragEndDetails details) { fail('gesture should not match'); },
80 TestGesture gesture = await tester.startGesture(downLocation, pointer: 7);
81 await gesture.moveTo(upLocation);
82 await gesture.up();
84 gesture = await tester.startGesture(downLocation, pointer: 7);
85 await gesture.moveTo(upLocation);
[all …]
Dlistener_deprecated_test.dart106 final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
107 addTearDown(gesture.removePointer);
108 await gesture.moveTo(const Offset(400.0, 300.0));
131 final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
132 addTearDown(gesture.removePointer);
133 await gesture.moveTo(const Offset(400.0, 300.0));
137 await gesture.moveTo(const Offset(1.0, 1.0));
160 final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
161 addTearDown(gesture.removePointer);
162 await gesture.moveTo(const Offset(400.0, 300.0));
[all …]
Dplatform_view_test.dart266 final TestGesture gesture = await tester.startGesture(const Offset(50.0, 50.0));
267 await gesture.up();
439 final TestGesture gesture = await tester.startGesture(const Offset(50.0, 50.0));
440 await gesture.up();
541 testWidgets('Android view can lose gesture arenas', (WidgetTester tester) async {
565 final TestGesture gesture = await tester.startGesture(const Offset(50.0, 50.0));
566 await gesture.moveBy(const Offset(0.0, 100.0));
567 await gesture.up();
576 testWidgets('Android view gesture recognizers', (WidgetTester tester) async {
608 final TestGesture gesture = await tester.startGesture(const Offset(50.0, 50.0));
[all …]
Ddraggable_test.dart46 final TestGesture gesture = await tester.startGesture(firstLocation, pointer: 7);
56 await gesture.moveTo(secondLocation);
65 await gesture.up();
109 final TestGesture gesture = await tester.startGesture(firstLocation, pointer: 7);
116 await gesture.moveTo(secondLocation);
123 await gesture.moveTo(thirdLocation);
129 await gesture.moveTo(secondLocation);
135 await gesture.up();
200 TestGesture gesture = await tester.startGesture(firstLocation, pointer: 7);
204 await gesture.moveTo(secondLocation);
[all …]
Dpage_transitions_test.dart132 testWidgets('Check back gesture disables Heroes', (WidgetTester tester) async {
184 // Drag from left edge to invoke the gesture.
185 final TestGesture gesture = await tester.startGesture(const Offset(5.0, 100.0));
186 await gesture.moveBy(const Offset(50.0, 0.0));
204 testWidgets('Check back gesture doesn\'t start during transitions', (WidgetTester tester) async {
226 // Drag from left edge to invoke the gesture. (near bottom so we grab
228 TestGesture gesture = await tester.startGesture(const Offset(5.0, 550.0));
229 await gesture.moveBy(const Offset(500.0, 0.0));
230 await gesture.up();
235 // back gesture, since we were mid transition.
[all …]
Dscroll_notification_test.dart25 final TestGesture gesture = await tester.startGesture(const Offset(100.0, 100.0));
33 await gesture.moveBy(const Offset(-10.0, -10.0));
42 await gesture.up();
85 final TestGesture gesture = await tester.startGesture(const Offset(100.0, 100.0));
87 await gesture.moveBy(const Offset(-10.0, -40.0));
89 await gesture.up();
137 final TestGesture gesture = await tester.startGesture(const Offset(100.0, 100.0));
139 await gesture.moveBy(const Offset(-10.0, -40.0));
141 await gesture.up();
/third_party/flutter/flutter/packages/flutter/test/gestures/
Dtransformed_double_tap.dart36 TestGesture gesture = await tester.startGesture(center);
37 await gesture.up();
39 gesture = await tester.startGesture(center + const Offset(kDoubleTapSlop - 1, 0));
40 await gesture.up();
46 gesture = await tester.startGesture(center);
47 await gesture.up();
49 gesture = await tester.startGesture(center + const Offset(kDoubleTapSlop + 1, 0));
50 await gesture.up();
80 TestGesture gesture = await tester.startGesture(center);
81 await gesture.up();
[all …]
Dtransformed_tap_test.dart88 TestGesture gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer)));
89 await gesture.moveBy(const Offset(0, kTouchSlop - 1));
90 await gesture.up();
105 gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer)));
106 await gesture.moveBy(const Offset(0, kTouchSlop + 1));
107 await gesture.up();
151 TestGesture gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer)));
152 await gesture.moveBy(const Offset(0, kTouchSlop - 1));
153 await gesture.up();
168 gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer)));
[all …]
Dtransformed_long_press_test.dart96 TestGesture gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer)));
97 await gesture.moveBy(const Offset(0, 10.0));
99 await gesture.up();
115 gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer)));
117 await gesture.moveBy(const Offset(0, 100));
118 await gesture.up();
171 TestGesture gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer)));
172 await gesture.moveBy(const Offset(0, 10.0));
174 await gesture.up();
190 gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer)));
[all …]
Dtransformed_monodrag_test.dart98 // Competing gesture detector.
144 … final TestGesture gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer)));
145 await gesture.moveBy(const Offset(kTouchSlop + 1, 30));
146 await gesture.moveBy(const Offset(100, 10));
147 await gesture.up();
196 // Competing gesture detector.
242 … final TestGesture gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer)));
243 await gesture.moveBy(const Offset(kTouchSlop + 1, 30));
244 await gesture.moveBy(const Offset(100, 10));
245 await gesture.up();
[all …]
/third_party/flutter/skia/third_party/externals/sdl/docs/
DREADME-gesture.md3 SDL provides an implementation of the $1 gesture recognition system. This allows for recording, sav…
5 …path of the gesture), but the number of fingers must be constant (a finger cannot go down in the m…
7 …ed on a hash function. This is guaranteed to remain constant for a given gesture. There is a (smal…
17 * event.dgesture.touchId - the Id of the touch used to record the gesture.
18 * event.dgesture.gestureId - the unique id of the recorded gesture.
23 As long as there is a dollar gesture assigned to a touch, every finger-up event will also cause an …
25 * event.dgesture.touchId - the Id of the touch which performed the gesture.
26 * event.dgesture.gestureId - the unique id of the closest gesture to the performed stroke.
27 …nt.dgesture.error - the difference between the gesture template and the actual performed gest…
30 …hold and check to be sure that the error of a gesture is not abnormally high (an indicator that no…
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/gestures/
Dconstants.dart8 /// The time that must elapse before a tap gesture sends onTapDown, if there's
9 /// any doubt that the gesture is a tap.
12 /// Maximum length of time between a tap down and a tap up for the gesture to be
14 // TODO(ianh): Remove this, or implement a hover-tap gesture recognizer which
24 /// The time before a long press gesture attempts to win.
28 /// tap in a double-tap gesture.
34 /// tap in a double-tap gesture.
37 /// The maximum distance that the first touch in a double-tap gesture can travel
38 /// before deciding that it is not part of a double-tap gesture.
44 /// the second touch of a double-tap gesture.
[all …]
Drecognizer.dart46 /// The base class that all gesture recognizers inherit from.
49 /// gesture recognizers but don't care about the specific details of
56 /// debug issues with gesture recognizers.
58 /// Initializes the gesture recognizer.
73 /// this gesture recognizer was created, to aid in debugging.
84 /// Registers a new pointer that might be relevant to this gesture
87 /// The owner of this gesture recognizer calls addPointer() with the
89 /// this gesture.
94 /// the global gesture arena manager (see [GestureArenaManager]) to track
108 /// Registers a new pointer that's been checked to be allowed by this gesture
[all …]
Dteam.dart87 /// recognize a sequence of pointer events as a gesture. With a
92 /// When gesture recognizers are in a team together without a captain, then once
93 /// there are no other competing gestures in the arena, the first gesture to
97 /// When gesture recognizers are in a team with a captain, then once one of the
104 /// slop region of the tap gesture before triggering. Since they compete as a
117 /// gesture recognizer that never explicitly claims the gesture).
120 /// gesture is forwarded to the Android view.
122 /// To assign a gesture recognizer to a team, set
130 /// the captain accepts the gesture.
131 /// If null, the member that claims a victory accepts the gesture.
[all …]
/third_party/libinput/doc/user/
Dgestures.rst14 Lifetime of a gesture
17 A gesture starts when the finger position and/or finger motion is
18 unambiguous as to what gesture to trigger and continues until the first
19 finger belonging to this gesture is lifted.
21 A single gesture cannot change the finger count. For example, if a user
22 puts down a fourth finger during a three-finger swipe gesture, libinput will
23 end the three-finger gesture and, if applicable, start a four-finger swipe
24 gesture. A caller may however decide that those gestures are semantically
25 identical and continue the two gestures as one single gesture.
64 in the gesture and thus allows swipe gestures in any direction, including
[all …]
/third_party/flutter/flutter/packages/flutter/test/material/
Dflat_button_test.dart63 final TestGesture gesture = await tester.createGesture(
66 await gesture.addPointer();
67 addTearDown(gesture.removePointer);
68 await gesture.moveTo(center);
73 await gesture.down(center);
128 final TestGesture gesture = await tester.createGesture(
131 await gesture.addPointer();
132 addTearDown(gesture.removePointer);
133 await gesture.moveTo(center);
138 await gesture.down(center);
[all …]
Draised_button_test.dart63 final TestGesture gesture = await tester.createGesture(
66 await gesture.addPointer();
67 addTearDown(gesture.removePointer);
68 await gesture.moveTo(center);
73 await gesture.down(center);
132 final TestGesture gesture = await tester.createGesture(
135 await gesture.addPointer();
136 addTearDown(gesture.removePointer);
137 await gesture.moveTo(center);
142 await gesture.down(center);
[all …]
Doutline_button_test.dart66 final TestGesture gesture = await tester.createGesture(
69 await gesture.addPointer();
70 addTearDown(gesture.removePointer);
71 await gesture.moveTo(center);
76 await gesture.down(center);
131 final TestGesture gesture = await tester.createGesture(
134 await gesture.addPointer();
135 addTearDown(gesture.removePointer);
136 await gesture.moveTo(center);
141 await gesture.down(center);
[all …]
/third_party/flutter/flutter/packages/flutter/test/cupertino/
Dscrollbar_paint_test.dart35 …final TestGesture gesture = await tester.startGesture(tester.getCenter(find.byType(SingleChildScro…
36 await gesture.moveBy(_kGestureOffset);
38 await gesture.moveBy(Offset.zero.translate(-_kGestureOffset.dx, -_kGestureOffset.dy));
78 final TestGesture gesture = await tester.startGesture(tester.getCenter(find.byType(ListView)));
79 await gesture.moveBy(_kGestureOffset);
81 await gesture.moveBy(Offset(-_kGestureOffset.dx, -_kGestureOffset.dy));
123 final TestGesture gesture = await tester.startGesture(tester.getCenter(find.byType(ListView)));
124 await gesture.moveBy(_kGestureOffset);
126 await gesture.moveBy(Offset(-_kGestureOffset.dx, -_kGestureOffset.dy));
Dpage_test.dart238 TestGesture gesture = await tester.startGesture(const Offset(200.0, 200.0));
239 await gesture.moveBy(const Offset(300.0, 0.0));
247 gesture = await tester.startGesture(const Offset(795.0, 200.0));
248 await gesture.moveBy(const Offset(-300.0, 0.0));
256 gesture = await tester.startGesture(const Offset(795.0, 200.0));
257 await gesture.moveBy(const Offset(300.0, 0.0));
265 gesture = await tester.startGesture(const Offset(5.0, 200.0));
266 await gesture.moveBy(const Offset(300.0, 0.0));
308 final TestGesture gesture = await tester.startGesture(const Offset(35.0, 200.0));
309 await gesture.moveBy(const Offset(300.0, 0.0));
[all …]
/third_party/flutter/engine/flutter/testing/dart/
Dwindow_hooks_integration_test.dart87 oldSystemGestureInsets.top, // system gesture inset top
88 oldSystemGestureInsets.right, // system gesture inset right
89 oldSystemGestureInsets.bottom, // system gesture inset bottom
90 oldSystemGestureInsets.left, // system gesture inset left
137 0.0, // system gesture inset top
138 0.0, // system gesture inset right
139 0.0, // system gesture inset bottom
140 0.0, // system gesture inset left
361 0.0, // system gesture inset top
362 0.0, // system gesture inset right
[all …]

12345678