/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityEventTest.java | 24 import android.view.accessibility.AccessibilityEvent; 42 AccessibilityEvent sentEvent = AccessibilityEvent.obtain(); in testMarshaling() 49 AccessibilityEvent receivedEvent = AccessibilityEvent.CREATOR.createFromParcel(parcel); in testMarshaling() 62 AccessibilityEvent firstEvent = AccessibilityEvent.obtain(); in testReuse() 64 AccessibilityEvent secondEvent = AccessibilityEvent.obtain(); in testReuse() 74 AccessibilityEvent populatedEvent = AccessibilityEvent.obtain(); in testRecycle() 79 AccessibilityEvent recycledEvent = AccessibilityEvent.obtain(); in testRecycle() 90 assertEquals("TYPE_NOTIFICATION_STATE_CHANGED", AccessibilityEvent.eventTypeToString( in testEventTypeToString() 91 AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED)); in testEventTypeToString() 92 assertEquals("TYPE_TOUCH_EXPLORATION_GESTURE_END", AccessibilityEvent.eventTypeToString( in testEventTypeToString() [all …]
|
D | AccessibilityDelegateTest.java | 29 import android.view.accessibility.AccessibilityEvent; 75 final AccessibilityEvent event = AccessibilityEvent.obtain(); in testViewDelegatesToAccessibilityDelegate() 77 mParentView.sendAccessibilityEvent(AccessibilityEvent.TYPE_ANNOUNCEMENT); in testViewDelegatesToAccessibilityDelegate() 79 mParentView, AccessibilityEvent.TYPE_ANNOUNCEMENT); in testViewDelegatesToAccessibilityDelegate()
|
D | AccessibilityServiceInfoTest.java | 24 import android.view.accessibility.AccessibilityEvent; 63 assertSame(AccessibilityEvent.TYPES_ALL_MASK, speakingService.eventTypes); in testAccessibilityServiceInfoForEnabledService()
|
D | AccessibilityNodeInfoTest.java | 30 import android.view.accessibility.AccessibilityEvent; 71 AccessibilityEvent firstInfo = AccessibilityEvent.obtain(); in testReuse() 73 AccessibilityEvent secondInfo = AccessibilityEvent.obtain(); in testReuse()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | AccessibilityEventFilterUtils.java | 22 import android.view.accessibility.AccessibilityEvent; 42 return (both(new AccessibilityEventTypeMatcher(AccessibilityEvent.TYPE_WINDOWS_CHANGED)) in filterWindowsChangedWithChangeTypes() 48 TypeSafeMatcher<AccessibilityEvent> matchResourceName = new PropertyMatcher<>( in filterForEventTypeWithResource() 57 return allOf(new AccessibilityEventTypeMatcher(AccessibilityEvent.TYPE_WINDOWS_CHANGED), in filterWindowsChangeTypesAndWindowTitle() 62 public static class AccessibilityEventTypeMatcher extends TypeSafeMatcher<AccessibilityEvent> { 71 protected boolean matchesSafely(AccessibilityEvent event) { in matchesSafely() 81 public static class WindowChangesMatcher extends TypeSafeMatcher<AccessibilityEvent> { 90 protected boolean matchesSafely(AccessibilityEvent event) { in matchesSafely() 100 public static class ContentChangesMatcher extends TypeSafeMatcher<AccessibilityEvent> { 109 protected boolean matchesSafely(AccessibilityEvent event) { in matchesSafely() [all …]
|
D | ActivityLaunchUtils.java | 39 import android.view.accessibility.AccessibilityEvent; 74 final AccessibilityEvent awaitedEvent = uiAutomation.executeAndWaitForEvent( in launchActivityAndWaitForItToBeOnscreen()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextTraversalTest.java | 36 import android.view.accessibility.AccessibilityEvent; 116 AccessibilityEvent firstExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 125 public boolean accept(AccessibilityEvent event) { in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 128 AccessibilityEvent.TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 146 AccessibilityEvent secondExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 155 public boolean accept(AccessibilityEvent event) { in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 158 AccessibilityEvent.TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 176 AccessibilityEvent thirdExpected = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 185 public boolean accept(AccessibilityEvent event) { in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 188 AccessibilityEvent.TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() [all …]
|
D | AccessibilityEndToEndTest.java | 85 import android.view.accessibility.AccessibilityEvent; 160 final AccessibilityEvent expected = AccessibilityEvent.obtain(); in testTypeViewSelectedAccessibilityEvent() 161 expected.setEventType(AccessibilityEvent.TYPE_VIEW_SELECTED); in testTypeViewSelectedAccessibilityEvent() 174 AccessibilityEvent awaitedEvent = in testTypeViewSelectedAccessibilityEvent() 190 public boolean accept(AccessibilityEvent event) { in testTypeViewSelectedAccessibilityEvent() 203 final AccessibilityEvent expected = AccessibilityEvent.obtain(); in testTypeViewClickedAccessibilityEvent() 204 expected.setEventType(AccessibilityEvent.TYPE_VIEW_CLICKED); in testTypeViewClickedAccessibilityEvent() 212 AccessibilityEvent awaitedEvent = in testTypeViewClickedAccessibilityEvent() 228 public boolean accept(AccessibilityEvent event) { in testTypeViewClickedAccessibilityEvent() 241 final AccessibilityEvent expected = AccessibilityEvent.obtain(); in testTypeViewLongClickedAccessibilityEvent() [all …]
|
D | GestureDetectionStubAccessibilityService.java | 20 import android.view.accessibility.AccessibilityEvent; 80 public void onAccessibilityEvent(AccessibilityEvent event) { in onAccessibilityEvent() 83 case AccessibilityEvent.TYPE_TOUCH_INTERACTION_END: in onAccessibilityEvent() 87 case AccessibilityEvent.TYPE_TOUCH_INTERACTION_START: in onAccessibilityEvent() 88 case AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START: in onAccessibilityEvent() 89 case AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END: in onAccessibilityEvent()
|
D | AccessibilityGestureDetectorTest.java | 40 import android.view.accessibility.AccessibilityEvent; 200 AccessibilityEvent.TYPE_TOUCH_INTERACTION_START, in testVerifyGestureTouchEvent() 201 AccessibilityEvent.TYPE_TOUCH_INTERACTION_END); in testVerifyGestureTouchEvent() 204 AccessibilityEvent.TYPE_TOUCH_INTERACTION_START, in testVerifyGestureTouchEvent() 205 AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START, in testVerifyGestureTouchEvent() 206 AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END, in testVerifyGestureTouchEvent() 207 AccessibilityEvent.TYPE_TOUCH_INTERACTION_END); in testVerifyGestureTouchEvent() 210 AccessibilityEvent.TYPE_TOUCH_INTERACTION_START, in testVerifyGestureTouchEvent() 211 AccessibilityEvent.TYPE_TOUCH_INTERACTION_END); in testVerifyGestureTouchEvent() 214 AccessibilityEvent.TYPE_TOUCH_INTERACTION_START, in testVerifyGestureTouchEvent() [all …]
|
D | AccessibilityWindowReportingTest.java | 26 import static android.view.accessibility.AccessibilityEvent.TYPE_WINDOWS_CHANGED; 27 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_ACCESSIBILITY_FOCUSED; 28 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_ACTIVE; 29 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_ADDED; 30 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_BOUNDS; 31 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_CHILDREN; 32 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_FOCUSED; 33 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_REMOVED; 34 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_TITLE;
|
D | AccessibilityFocusAndInputFocusSyncTest.java | 37 import android.view.accessibility.AccessibilityEvent; 111 event.getEventType() == AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED, in testFindAccessibilityFocus() 147 event.getEventType() == AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED, in testActionAccessibilityFocus() 170 event.getEventType() == AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED, in testActionClearAccessibilityFocus() 182 == AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED, in testActionClearAccessibilityFocus() 207 event.getEventType() == AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED, in testOnlyOneNodeHasAccessibilityFocus() 222 event.getEventType() == AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED, in testOnlyOneNodeHasAccessibilityFocus()
|
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 | AccessibilityWindowQueryTest.java | 25 import static android.view.accessibility.AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED; 26 import static android.view.accessibility.AccessibilityEvent.TYPE_VIEW_CLICKED; 27 import static android.view.accessibility.AccessibilityEvent.TYPE_VIEW_FOCUSED; 28 import static android.view.accessibility.AccessibilityEvent.TYPE_VIEW_LONG_CLICKED; 29 import static android.view.accessibility.AccessibilityEvent.TYPE_WINDOWS_CHANGED; 30 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_ACCESSIBILITY_FOCUSED; 31 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_ADDED; 67 import android.view.accessibility.AccessibilityEvent; 141 (event.getEventType() == AccessibilityEvent.TYPE_WINDOWS_CHANGED) 145 (event.getEventType() == AccessibilityEvent.TYPE_WINDOWS_CHANGED) [all …]
|
D | AccessibilityServiceInfoTest.java | 24 import android.view.accessibility.AccessibilityEvent; 122 sentInfo.eventTypes = AccessibilityEvent.TYPE_VIEW_CLICKED; in fullyPopulateSentAccessibilityServiceInfo()
|
D | AccessibilityViewTreeReportingTest.java | 38 import android.view.accessibility.AccessibilityEvent; 294 AccessibilityEvent awaitedEvent = 299 == AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED; 301 & AccessibilityEvent.CONTENT_CHANGE_TYPE_SUBTREE);
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | AbstractGridActivityTestCase.java | 19 import android.view.accessibility.AccessibilityEvent; 59 final AccessibilityEvent event;
|
D | AbstractLoginActivityTestCase.java | 20 import android.view.accessibility.AccessibilityEvent; 54 final AccessibilityEvent event;
|
D | VirtualContainerView.java | 44 import android.view.accessibility.AccessibilityEvent; 290 sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CLICKED, LOGIN_BUTTON_VIRTUAL_ID); in clickLogin() 405 final AccessibilityEvent event = AccessibilityEvent.obtain(); in sendAccessibilityEvent() 442 sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED, text.id); in changeFocus() 492 sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED, text.id); in setText()
|
D | UiBot.java | 54 import android.view.accessibility.AccessibilityEvent; 897 public AccessibilityEvent waitForWindowChange(Runnable runnable, long timeoutMillis) 899 return mAutoman.executeAndWaitForEvent(runnable, (AccessibilityEvent event) -> { 901 case AccessibilityEvent.TYPE_WINDOWS_CHANGED: 902 case AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED: 909 public AccessibilityEvent waitForWindowChange(Runnable runnable) throws TimeoutException {
|
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/ |
D | UiAutomationTestA11yService.java | 21 import android.view.accessibility.AccessibilityEvent; 49 public void onAccessibilityEvent(AccessibilityEvent accessibilityEvent) { in onAccessibilityEvent()
|
/cts/tests/tests/toastlegacy/src/android/widget/toast/cts/legacy/ |
D | ToastTest.java | 20 import android.view.accessibility.AccessibilityEvent; 151 (event) -> event.getEventType() == AccessibilityEvent.TYPE_WINDOWS_CHANGED in finishActivity()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/ |
D | BasePermissionsTest.java | 46 import android.view.accessibility.AccessibilityEvent; 488 }, (AccessibilityEvent event) -> event.getEventType() in startActivity() 489 == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED in startActivity() 581 (AccessibilityEvent event) -> event.getEventType() in scroll() 582 == AccessibilityEvent.TYPE_VIEW_SCROLLED in scroll() 583 || event.getEventType() == AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED, in scroll() 592 (AccessibilityEvent event) -> event.getEventType() in click() 593 == AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED in click() 594 || event.getEventType() == AccessibilityEvent.TYPE_WINDOWS_CHANGED, in click()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | AccessibilityEndToEndActivity.java | 25 import android.view.accessibility.AccessibilityEvent; 127 public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event) { in onInitializeAccessibilityEvent()
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | InstrumentedAccessibilityService.java | 34 import android.view.accessibility.AccessibilityEvent; 93 public void onAccessibilityEvent(AccessibilityEvent event) { in onAccessibilityEvent()
|