/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityEventTest.java | 44 import android.view.accessibility.AccessibilityEvent; 132 public List<AccessibilityEvent> mReceivedEvents = new ArrayList<AccessibilityEvent>(); 139 public boolean requestSendAccessibilityEvent(View child, AccessibilityEvent event) { in requestSendAccessibilityEvent() 140 mReceivedEvents.add(AccessibilityEvent.obtain(event)); in requestSendAccessibilityEvent() 196 public boolean accept(AccessibilityEvent event) { in accept() 197 if (event.getEventType() == AccessibilityEvent.TYPE_VIEW_SCROLLED) { in accept() 230 AccessibilityEvent event = scrollEventFilter.getLastEvent(); in testScrollEventsClearedOnDetach() 247 AccessibilityEvent event = scrollEventFilter.getLastEvent(); in testScrollEventsCaptureTotalDelta() 272 AccessibilityEvent event = scrollEventFilter.getLastEvent(); in testScrollEventsClearDeltaAfterSending() 279 final AccessibilityEvent awaitedEvent = sUiAutomation.executeAndWaitForEvent( in testEventViewTargetedByScroll() [all …]
|
D | AccessibilityDelegateTest.java | 30 import android.view.accessibility.AccessibilityEvent; 85 final AccessibilityEvent event = AccessibilityEvent.obtain(); in testViewDelegatesToAccessibilityDelegate() 87 mParentView.sendAccessibilityEvent(AccessibilityEvent.TYPE_ANNOUNCEMENT); in testViewDelegatesToAccessibilityDelegate() 89 mParentView, AccessibilityEvent.TYPE_ANNOUNCEMENT); in testViewDelegatesToAccessibilityDelegate()
|
D | AccessibilityEventAndCacheTest.java | 20 import static android.view.accessibility.AccessibilityEvent.CONTENT_CHANGE_TYPE_TEXT; 21 import static android.view.accessibility.AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED; 35 import android.view.accessibility.AccessibilityEvent;
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | AccessibilityEventFilterUtils.java | 24 import android.view.accessibility.AccessibilityEvent; 47 AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED)).and( in filterWindowContentChangedWithChangeTypes() 52 return (both(new AccessibilityEventTypeMatcher(AccessibilityEvent.TYPE_WINDOWS_CHANGED)) in filterWindowsChangedWithChangeTypes() 58 TypeSafeMatcher<AccessibilityEvent> matchResourceName = new PropertyMatcher<>( in filterForEventTypeWithResource() 66 TypeSafeMatcher<AccessibilityEvent> matchAction = in filterForEventTypeWithAction() 81 return allOf(new AccessibilityEventTypeMatcher(AccessibilityEvent.TYPE_WINDOWS_CHANGED), in filterWindowsChangeTypesAndWindowTitle() 88 return allOf(new AccessibilityEventTypeMatcher(AccessibilityEvent.TYPE_WINDOWS_CHANGED), in filterWindowsChangTypesAndWindowId() 105 public boolean accept(AccessibilityEvent event) { in filterWaitForAll() 117 public static TypeSafeMatcher<AccessibilityEvent> matcherForDisplayId(int displayId) { in matcherForDisplayId() 118 final TypeSafeMatcher<AccessibilityEvent> matchAction = in matcherForDisplayId() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextTraversalTest.java | 36 import android.view.accessibility.AccessibilityEvent; 129 AccessibilityEvent firstExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 138 public boolean accept(AccessibilityEvent event) { in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 141 AccessibilityEvent.TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 159 AccessibilityEvent secondExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 168 public boolean accept(AccessibilityEvent event) { in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 171 AccessibilityEvent.TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 189 AccessibilityEvent thirdExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 198 public boolean accept(AccessibilityEvent event) { in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 201 AccessibilityEvent.TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() [all …]
|
D | TouchExplorationStubAccessibilityService.java | 16 import static android.view.accessibility.AccessibilityEvent.TYPE_GESTURE_DETECTION_END; 17 import static android.view.accessibility.AccessibilityEvent.TYPE_GESTURE_DETECTION_START; 18 import static android.view.accessibility.AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED; 20 import android.view.accessibility.AccessibilityEvent; 32 public void onAccessibilityEvent(AccessibilityEvent event) { in onAccessibilityEvent()
|
D | GestureDetectionStubAccessibilityService.java | 23 import android.view.accessibility.AccessibilityEvent; 105 public void onAccessibilityEvent(AccessibilityEvent event) { in onAccessibilityEvent() 108 case AccessibilityEvent.TYPE_TOUCH_INTERACTION_END: in onAccessibilityEvent() 112 case AccessibilityEvent.TYPE_TOUCH_INTERACTION_START: in onAccessibilityEvent() 113 case AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START: in onAccessibilityEvent() 114 case AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END: in onAccessibilityEvent() 173 expected.add(AccessibilityEvent.eventTypeToString(event)); in assertPropagated() 176 received.add(AccessibilityEvent.eventTypeToString(getEvent(i))); in assertPropagated()
|
D | AccessibilityDragAndDropTest.java | 34 import android.view.accessibility.AccessibilityEvent; 61 AccessibilityEvent.CONTENT_CHANGE_TYPE_DRAG_STARTED); 102 AccessibilityEvent startEvent = performActionAndWaitForEvent(mSourceView, in testStartDrag_eventSentAndActionsUpdated() 119 AccessibilityEvent cancelEvent = performActionAndWaitForEvent(mSourceView, in testCancelDrag_eventSentAndActionsUpdated() 122 AccessibilityEvent.CONTENT_CHANGE_TYPE_DRAG_CANCELLED)); in testCancelDrag_eventSentAndActionsUpdated() 141 AccessibilityEvent dropEvent = performActionAndWaitForEvent(target, in testDrop_eventSentAndActionsUpdated() 144 AccessibilityEvent.CONTENT_CHANGE_TYPE_DRAG_DROPPED)); in testDrop_eventSentAndActionsUpdated() 160 private AccessibilityEvent performActionAndWaitForEvent(View view, in performActionAndWaitForEvent() 163 AccessibilityEvent awaitedEvent = in performActionAndWaitForEvent()
|
D | AccessibilityGestureDetectorTest.java | 53 import android.view.accessibility.AccessibilityEvent; 465 AccessibilityEvent.TYPE_TOUCH_INTERACTION_START, in verifyGestureTouchEventOnDisplay() 466 AccessibilityEvent.TYPE_TOUCH_INTERACTION_END); in verifyGestureTouchEventOnDisplay() 469 AccessibilityEvent.TYPE_TOUCH_INTERACTION_START, in verifyGestureTouchEventOnDisplay() 470 AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START, in verifyGestureTouchEventOnDisplay() 471 AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END, in verifyGestureTouchEventOnDisplay() 472 AccessibilityEvent.TYPE_TOUCH_INTERACTION_END); in verifyGestureTouchEventOnDisplay() 475 AccessibilityEvent.TYPE_TOUCH_INTERACTION_START, in verifyGestureTouchEventOnDisplay() 476 AccessibilityEvent.TYPE_TOUCH_INTERACTION_END); in verifyGestureTouchEventOnDisplay() 479 AccessibilityEvent.TYPE_TOUCH_INTERACTION_START, in verifyGestureTouchEventOnDisplay() [all …]
|
D | AccessibilityEndToEndTest.java | 40 import static android.view.accessibility.AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED; 41 import static android.view.accessibility.AccessibilityEvent.TYPE_VIEW_CLICKED; 117 import android.view.accessibility.AccessibilityEvent; 237 final AccessibilityEvent expected = AccessibilityEvent.obtain(); in testTypeViewSelectedAccessibilityEvent() 238 expected.setEventType(AccessibilityEvent.TYPE_VIEW_SELECTED); in testTypeViewSelectedAccessibilityEvent() 252 AccessibilityEvent awaitedEvent = in testTypeViewSelectedAccessibilityEvent() 268 public boolean accept(AccessibilityEvent event) { in testTypeViewSelectedAccessibilityEvent() 282 final AccessibilityEvent expected = AccessibilityEvent.obtain(); in testTypeViewClickedAccessibilityEvent() 283 expected.setEventType(AccessibilityEvent.TYPE_VIEW_CLICKED); in testTypeViewClickedAccessibilityEvent() 292 AccessibilityEvent awaitedEvent = in testTypeViewClickedAccessibilityEvent() [all …]
|
D | StubEventCapturingAccessibilityService.java | 23 import android.view.accessibility.AccessibilityEvent; 41 public void onAccessibilityEvent(@NonNull AccessibilityEvent event) { in onAccessibilityEvent()
|
D | AccessibilityPaneTest.java | 23 import static android.view.accessibility.AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_APPEARED; 24 import static android.view.accessibility.AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_DISAPPEARED; 25 import static android.view.accessibility.AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_TITLE; 26 import static android.view.accessibility.AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED;
|
D | AccessibilityViewTreeReportingTest.java | 35 import android.view.accessibility.AccessibilityEvent; 308 AccessibilityEvent awaitedEvent = 313 == AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED; 315 & AccessibilityEvent.CONTENT_CHANGE_TYPE_SUBTREE); 349 AccessibilityEvent awaitedEvent = 356 == AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED; 358 == AccessibilityEvent.CONTENT_CHANGE_TYPE_SUBTREE;
|
D | AccessibilityDisplayProxyTest.java | 48 import static android.view.accessibility.AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED; 49 import static android.view.accessibility.AccessibilityEvent.TYPE_VIEW_CLICKED; 50 import static android.view.accessibility.AccessibilityEvent.TYPE_VIEW_FOCUSED; 51 import static android.view.accessibility.AccessibilityEvent.TYPE_WINDOWS_CHANGED; 52 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_ACCESSIBILITY_FOCUSED; 53 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_ACTIVE; 54 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_ADDED; 55 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_FOCUSED; 123 import android.view.accessibility.AccessibilityEvent; 335 proxyInfo.eventTypes = AccessibilityEvent.TYPES_ALL_MASK; in setUp() [all …]
|
D | AccessibilityWindowReportingTest.java | 32 import static android.view.accessibility.AccessibilityEvent.TYPE_WINDOWS_CHANGED; 33 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_ACCESSIBILITY_FOCUSED; 34 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_ACTIVE; 35 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_ADDED; 36 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_BOUNDS; 37 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_CHILDREN; 38 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_FOCUSED; 39 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_TITLE;
|
/cts/tests/accessibilityservice/test-apps/MultipleServicesApp/src/foo/bar/multipleservices/ |
D | StubService2.java | 20 import android.view.accessibility.AccessibilityEvent; 25 public void onAccessibilityEvent(AccessibilityEvent event) {} in onAccessibilityEvent()
|
D | StubService1.java | 20 import android.view.accessibility.AccessibilityEvent; 25 public void onAccessibilityEvent(AccessibilityEvent event) {} in onAccessibilityEvent()
|
/cts/tests/accessibilityservice/test-apps/UpdateServiceApp/src/foo/bar/updateservices/ |
D | StubService.java | 20 import android.view.accessibility.AccessibilityEvent; 26 public void onAccessibilityEvent(AccessibilityEvent event) {} in onAccessibilityEvent()
|
/cts/tests/tests/appenumeration/app/target/src/android/appenumeration/testapp/ |
D | StubAccessibilityService.java | 20 import android.view.accessibility.AccessibilityEvent; 28 public void onAccessibilityEvent(AccessibilityEvent event) { in onAccessibilityEvent()
|
/cts/tests/accessibilityservice/test-apps/LargeServiceVolumeApp/src/foo/bar/multipleservices/ |
D | JunkService.java | 20 import android.view.accessibility.AccessibilityEvent; 28 public void onAccessibilityEvent(AccessibilityEvent event) {} in onAccessibilityEvent()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/ |
D | AbstractGridActivityTestCase.java | 23 import android.view.accessibility.AccessibilityEvent; 63 final AccessibilityEvent event;
|
D | AbstractLoginActivityTestCase.java | 27 import android.view.accessibility.AccessibilityEvent; 76 final AccessibilityEvent event;
|
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/ |
D | UiAutomationTestA11yService.java | 21 import android.view.accessibility.AccessibilityEvent; 53 public void onAccessibilityEvent(AccessibilityEvent accessibilityEvent) { in onAccessibilityEvent()
|
/cts/tests/app/shared/src/android/app/stubs/shared/ |
D | AppAccessibilityService.java | 27 import android.view.accessibility.AccessibilityEvent; 63 public void onAccessibilityEvent(AccessibilityEvent event) {} in onAccessibilityEvent()
|
/cts/tests/tests/toastlegacy/src/android/widget/toast/cts/legacy/ |
D | ToastTest.java | 22 import android.view.accessibility.AccessibilityEvent; 162 (event) -> event.getEventType() == AccessibilityEvent.TYPE_WINDOWS_CHANGED in finishActivity()
|