Home
last modified time | relevance | path

Searched refs:SemanticsAction (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/flutter/flutter/packages/flutter/test/widgets/
Dgesture_detector_semantics_test.dart32 actions: <SemanticsAction>[SemanticsAction.scrollUp, SemanticsAction.scrollDown]),
36 … tester.binding.pipelineOwner.semanticsOwner.performAction(detectorId, SemanticsAction.scrollLeft);
37 …tester.binding.pipelineOwner.semanticsOwner.performAction(detectorId, SemanticsAction.scrollRight);
39 tester.binding.pipelineOwner.semanticsOwner.performAction(detectorId, SemanticsAction.scrollUp);
41 … tester.binding.pipelineOwner.semanticsOwner.performAction(detectorId, SemanticsAction.scrollDown);
66 actions: <SemanticsAction>[SemanticsAction.scrollLeft, SemanticsAction.scrollRight]),
70 tester.binding.pipelineOwner.semanticsOwner.performAction(detectorId, SemanticsAction.scrollUp);
71 … tester.binding.pipelineOwner.semanticsOwner.performAction(detectorId, SemanticsAction.scrollDown);
73 … tester.binding.pipelineOwner.semanticsOwner.performAction(detectorId, SemanticsAction.scrollLeft);
75 …tester.binding.pipelineOwner.semanticsOwner.performAction(detectorId, SemanticsAction.scrollRight);
[all …]
Dscrollable_semantics_test.dart35 expect(semantics,includesNodeWith(actions: <SemanticsAction>[SemanticsAction.scrollUp]));
38 …expect(semantics, includesNodeWith(actions: <SemanticsAction>[SemanticsAction.scrollUp, SemanticsA…
41 expect(semantics, includesNodeWith(actions: <SemanticsAction>[SemanticsAction.scrollUp]));
44 expect(semantics, includesNodeWith(actions: <SemanticsAction>[SemanticsAction.scrollDown]));
47 …expect(semantics, includesNodeWith(actions: <SemanticsAction>[SemanticsAction.scrollUp, SemanticsA…
81 …tester.binding.pipelineOwner.semanticsOwner.performAction(firstContainerId, SemanticsAction.showOn…
143 …tester.binding.pipelineOwner.semanticsOwner.performAction(firstContainerId, SemanticsAction.showOn…
211 tester.binding.pipelineOwner.semanticsOwner.performAction(id0, SemanticsAction.showOnScreen);
234 actions: <SemanticsAction>[
235 SemanticsAction.scrollUp,
[all …]
Deditable_text_test.dart1217 actions: <SemanticsAction>[
1218 SemanticsAction.moveCursorBackwardByCharacter,
1219 SemanticsAction.moveCursorBackwardByWord,
1220 SemanticsAction.setSelection,
1234 actions: <SemanticsAction>[
1235 SemanticsAction.moveCursorBackwardByCharacter,
1236 SemanticsAction.moveCursorForwardByCharacter,
1237 SemanticsAction.moveCursorBackwardByWord,
1238 SemanticsAction.moveCursorForwardByWord,
1239 SemanticsAction.setSelection,
[all …]
Dsemantics_test.dart393 final List<SemanticsAction> performedActions = <SemanticsAction>[];
398 onDismiss: () => performedActions.add(SemanticsAction.dismiss),
399 onTap: () => performedActions.add(SemanticsAction.tap),
400 onLongPress: () => performedActions.add(SemanticsAction.longPress),
401 onScrollLeft: () => performedActions.add(SemanticsAction.scrollLeft),
402 onScrollRight: () => performedActions.add(SemanticsAction.scrollRight),
403 onScrollUp: () => performedActions.add(SemanticsAction.scrollUp),
404 onScrollDown: () => performedActions.add(SemanticsAction.scrollDown),
405 onIncrease: () => performedActions.add(SemanticsAction.increase),
406 onDecrease: () => performedActions.add(SemanticsAction.decrease),
[all …]
Dcustom_painter_test.dart322 final List<SemanticsAction> performedActions = <SemanticsAction>[];
330 onDismiss: () => performedActions.add(SemanticsAction.dismiss),
331 onTap: () => performedActions.add(SemanticsAction.tap),
332 onLongPress: () => performedActions.add(SemanticsAction.longPress),
333 onScrollLeft: () => performedActions.add(SemanticsAction.scrollLeft),
334 onScrollRight: () => performedActions.add(SemanticsAction.scrollRight),
335 onScrollUp: () => performedActions.add(SemanticsAction.scrollUp),
336 onScrollDown: () => performedActions.add(SemanticsAction.scrollDown),
337 onIncrease: () => performedActions.add(SemanticsAction.increase),
338 onDecrease: () => performedActions.add(SemanticsAction.decrease),
[all …]
Dsliver_semantics_test.dart85 actions: <SemanticsAction>[SemanticsAction.scrollUp],
167 actions: <SemanticsAction>[
168 SemanticsAction.scrollUp,
169 SemanticsAction.scrollDown,
232 actions: <SemanticsAction>[
233 SemanticsAction.scrollUp,
234 SemanticsAction.scrollDown,
340 actions: <SemanticsAction>[
341 SemanticsAction.scrollUp,
342 SemanticsAction.scrollDown,
[all …]
Dsemantics_11_test.dart35 actions: SemanticsAction.tap.index,
39 actions: SemanticsAction.tap.index,
43 actions: SemanticsAction.tap.index,
75 actions: SemanticsAction.tap.index,
79 actions: SemanticsAction.tap.index,
83 actions: SemanticsAction.tap.index,
Dscrollable_semantics_traversal_order_test.dart71 actions: <SemanticsAction>[
72 SemanticsAction.scrollUp,
73 SemanticsAction.scrollDown,
243 actions: <SemanticsAction>[
244 SemanticsAction.scrollUp,
245 SemanticsAction.scrollDown,
372 actions: <SemanticsAction>[
373 SemanticsAction.scrollUp,
374 SemanticsAction.scrollDown,
509 actions: <SemanticsAction>[
[all …]
Dtext_test.dart171 actions: <SemanticsAction>[SemanticsAction.tap],
210 actions: <SemanticsAction>[
211 SemanticsAction.tap,
255 actions: <SemanticsAction>[SemanticsAction.tap]
293 actions: <SemanticsAction>[
294 SemanticsAction.tap,
344 actions: <SemanticsAction>[
345 SemanticsAction.tap,
357 actions: <SemanticsAction>[
358 SemanticsAction.longPress,
[all …]
Dselectable_text_test.dart1781 actions: <SemanticsAction>[
1782 SemanticsAction.tap,
1783 SemanticsAction.longPress,
1807 actions: <SemanticsAction>[
1808 SemanticsAction.tap,
1809 SemanticsAction.longPress,
1810 SemanticsAction.moveCursorBackwardByCharacter,
1811 SemanticsAction.moveCursorBackwardByWord,
1812 SemanticsAction.setSelection,
1834 actions: <SemanticsAction>[
[all …]
Dsemantics_tester.dart13 export 'dart:ui' show SemanticsFlag, SemanticsAction;
57 assert(actions is int || actions is List<SemanticsAction>),
85 assert(actions is int || actions is List<SemanticsAction>),
126 assert(actions is int || actions is List<SemanticsAction>),
150 /// The [SemanticsAction]s set on this node.
153 /// actions as a bit field, or as a `List<SemanticsAction>`.
155 /// Using `List<SemanticsAction>` is recommended due to better readability.
167 /// What [value] will become after [SemanticsAction.increase] has been
171 /// What [value] will become after [SemanticsAction.decrease] has been
279 : actions.fold<int>(0, (int bitmask, SemanticsAction action) => bitmask | action.index);
[all …]
/third_party/flutter/flutter/packages/flutter/test/material/
Ddate_picker_test.dart435 actions: <SemanticsAction>[SemanticsAction.tap],
441 actions: <SemanticsAction>[SemanticsAction.tap],
449 … actions: <SemanticsAction>[SemanticsAction.scrollLeft, SemanticsAction.scrollRight],
473 actions: <SemanticsAction>[SemanticsAction.tap],
478 actions: <SemanticsAction>[SemanticsAction.tap],
483 actions: <SemanticsAction>[SemanticsAction.tap],
488 actions: <SemanticsAction>[SemanticsAction.tap],
493 actions: <SemanticsAction>[SemanticsAction.tap],
498 actions: <SemanticsAction>[SemanticsAction.tap],
503 actions: <SemanticsAction>[SemanticsAction.tap],
[all …]
Dtime_picker_test.dart333 … expect(semantics, includesNodeWith(label: 'AM', actions: <SemanticsAction>[SemanticsAction.tap]));
334 … expect(semantics, includesNodeWith(label: 'PM', actions: <SemanticsAction>[SemanticsAction.tap]));
437 …Future<void> actAndExpect({ String initialValue, SemanticsAction action, String finalValue }) asyn…
454 action: SemanticsAction.increase,
459 action: SemanticsAction.increase,
469 action: SemanticsAction.decrease,
478 action: SemanticsAction.increase,
483 action: SemanticsAction.increase,
488 action: SemanticsAction.decrease,
493 action: SemanticsAction.decrease,
[all …]
Dradio_test.dart135 actions: <SemanticsAction>[
136 SemanticsAction.tap,
161 actions: <SemanticsAction>[
162 SemanticsAction.tap,
243 expect(object.debugSemantics.getSemanticsData().hasAction(SemanticsAction.tap), true);
Dcheckbox_test.dart206 actions: <SemanticsAction>[SemanticsAction.tap],
226 actions: <SemanticsAction>[SemanticsAction.tap],
245 actions: <SemanticsAction>[SemanticsAction.tap],
285 expect(object.debugSemantics.getSemanticsData().hasAction(SemanticsAction.tap), true);
Ddrawer_test.dart79 actions: <SemanticsAction>[SemanticsAction.tap],
104 actions: <SemanticsAction>[SemanticsAction.tap],
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/ui/
Dsemantics.dart9 class SemanticsAction {
10 const SemanticsAction._(this.index);
41 static const SemanticsAction tap = SemanticsAction._(_kTapIndex);
45 static const SemanticsAction longPress = SemanticsAction._(_kLongPressIndex);
52 static const SemanticsAction scrollLeft =
53 SemanticsAction._(_kScrollLeftIndex);
60 static const SemanticsAction scrollRight =
61 SemanticsAction._(_kScrollRightIndex);
68 static const SemanticsAction scrollUp = SemanticsAction._(_kScrollUpIndex);
75 static const SemanticsAction scrollDown =
[all …]
/third_party/flutter/engine/flutter/lib/ui/
Dsemantics.dart13 class SemanticsAction {
14 const SemanticsAction._(this.index);
45 static const SemanticsAction tap = SemanticsAction._(_kTapIndex);
49 static const SemanticsAction longPress = SemanticsAction._(_kLongPressIndex);
56 static const SemanticsAction scrollLeft = SemanticsAction._(_kScrollLeftIndex);
63 static const SemanticsAction scrollRight = SemanticsAction._(_kScrollRightIndex);
70 static const SemanticsAction scrollUp = SemanticsAction._(_kScrollUpIndex);
77 static const SemanticsAction scrollDown = SemanticsAction._(_kScrollDownIndex);
82 static const SemanticsAction increase = SemanticsAction._(_kIncreaseIndex);
87 static const SemanticsAction decrease = SemanticsAction._(_kDecreaseIndex);
[all …]
/third_party/flutter/flutter/examples/catalog/test/
Dcustom_semantics_test.dart36 semanticsOwner.performAction(semantics.id, SemanticsAction.increase);
49 semanticsOwner.performAction(semantics.id, SemanticsAction.increase);
61 semanticsOwner.performAction(semantics.id, SemanticsAction.decrease);
74 semanticsOwner.performAction(semantics.id, SemanticsAction.decrease);
76 semanticsOwner.performAction(semantics.id, SemanticsAction.decrease);
78 semanticsOwner.performAction(semantics.id, SemanticsAction.decrease);
107 actions |= SemanticsAction.increase.index;
109 actions |= SemanticsAction.decrease.index;
/third_party/flutter/engine/flutter/lib/ui/semantics/
Dsemantics_node.h21 enum class SemanticsAction : int32_t { enum
46 static_cast<int32_t>(SemanticsAction::kScrollLeft) |
47 static_cast<int32_t>(SemanticsAction::kScrollRight) |
48 static_cast<int32_t>(SemanticsAction::kScrollUp) |
49 static_cast<int32_t>(SemanticsAction::kScrollDown);
87 bool HasAction(SemanticsAction action) const;
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dsemantics_debugger.dart99 _performAction(_lastPointerDownLocation, SemanticsAction.tap);
107 _performAction(_lastPointerDownLocation, SemanticsAction.longPress);
120 _performAction(_lastPointerDownLocation, SemanticsAction.decrease);
121 _performAction(_lastPointerDownLocation, SemanticsAction.scrollLeft);
123 _performAction(_lastPointerDownLocation, SemanticsAction.increase);
124 _performAction(_lastPointerDownLocation, SemanticsAction.scrollRight);
128 _performAction(_lastPointerDownLocation, SemanticsAction.scrollUp);
130 _performAction(_lastPointerDownLocation, SemanticsAction.scrollDown);
137 void _performAction(Offset position, SemanticsAction action) {
246 if (data.hasAction(SemanticsAction.tap)) {
[all …]
/third_party/flutter/engine/flutter/shell/platform/darwin/ios/framework/Source/
Daccessibility_bridge.mm21 flutter::SemanticsAction GetSemanticsActionForScrollDirection(
24 // moves in and SemanticsAction uses the direction the finger moves in. Both move in opposite
30 return flutter::SemanticsAction::kScrollLeft;
34 return flutter::SemanticsAction::kScrollRight;
36 return flutter::SemanticsAction::kScrollDown;
38 return flutter::SemanticsAction::kScrollUp;
41 return flutter::SemanticsAction::kScrollUp;
200 if (![self node].HasAction(flutter::SemanticsAction::kCustomAction))
209 [self bridge] -> DispatchSemanticsAction([self uid], flutter::SemanticsAction::kCustomAction,
305 if (![self node].HasAction(flutter::SemanticsAction::kTap))
[all …]
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/semantics/
Dscrollable.dart13 /// positive direction we send a [ui.SemanticsAction.scrollUp]. Otherwise, we
14 /// send [ui.SemanticsAction.scrollDown]. The actual scrolling is then handled
33 /// This gesture is converted to [ui.SemanticsAction.scrollUp] or
34 /// [ui.SemanticsAction.scrollDown], depending on the direction.
56 semanticsId, ui.SemanticsAction.scrollUp, null);
60 semanticsId, ui.SemanticsAction.scrollLeft, null);
65 semanticsId, ui.SemanticsAction.scrollDown, null);
69 semanticsId, ui.SemanticsAction.scrollRight, null);
Dtappable.dart12 /// click as [ui.SemanticsAction.tap].
33 if (semanticsObject.hasAction(ui.SemanticsAction.tap) &&
42 semanticsObject.id, ui.SemanticsAction.tap, null);
/third_party/flutter/flutter/packages/flutter/lib/src/semantics/
Dsemantics.dart8 import 'dart:ui' show Offset, Rect, SemanticsAction, SemanticsFlag,
19 export 'dart:ui' show SemanticsAction;
29 /// Signature for [SemanticsAction]s that move the cursor.
35 /// Signature for the [SemanticsAction.setSelection] handlers to change the
123 final SemanticsAction action;
220 /// A bit field of [SemanticsAction]s that apply to this node.
234 /// [SemanticsAction.increase] action.
240 /// [SemanticsAction.decrease] action.
354 bool hasAction(SemanticsAction action) => (actions & action.index) != 0;
367 for (SemanticsAction action in SemanticsAction.values.values) {
[all …]

1234