Home
last modified time | relevance | path

Searched refs:AccessibilityEvent (Results 1 – 25 of 33) sorted by relevance

12

/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityEventTest.java24 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 …]
DAccessibilityDelegateTest.java29 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()
DAccessibilityServiceInfoTest.java24 import android.view.accessibility.AccessibilityEvent;
63 assertSame(AccessibilityEvent.TYPES_ALL_MASK, speakingService.eventTypes); in testAccessibilityServiceInfoForEnabledService()
DAccessibilityNodeInfoTest.java30 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/
DAccessibilityEventFilterUtils.java22 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 …]
DActivityLaunchUtils.java39 import android.view.accessibility.AccessibilityEvent;
74 final AccessibilityEvent awaitedEvent = uiAutomation.executeAndWaitForEvent( in launchActivityAndWaitForItToBeOnscreen()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTextTraversalTest.java36 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 …]
DAccessibilityEndToEndTest.java85 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 …]
DGestureDetectionStubAccessibilityService.java20 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()
DAccessibilityGestureDetectorTest.java40 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 …]
DAccessibilityWindowReportingTest.java26 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;
DAccessibilityFocusAndInputFocusSyncTest.java37 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()
DAccessibilityPaneTest.java23 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;
DAccessibilityWindowQueryTest.java25 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 …]
DAccessibilityServiceInfoTest.java24 import android.view.accessibility.AccessibilityEvent;
122 sentInfo.eventTypes = AccessibilityEvent.TYPE_VIEW_CLICKED; in fullyPopulateSentAccessibilityServiceInfo()
DAccessibilityViewTreeReportingTest.java38 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/
DAbstractGridActivityTestCase.java19 import android.view.accessibility.AccessibilityEvent;
59 final AccessibilityEvent event;
DAbstractLoginActivityTestCase.java20 import android.view.accessibility.AccessibilityEvent;
54 final AccessibilityEvent event;
DVirtualContainerView.java44 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()
DUiBot.java54 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/
DUiAutomationTestA11yService.java21 import android.view.accessibility.AccessibilityEvent;
49 public void onAccessibilityEvent(AccessibilityEvent accessibilityEvent) { in onAccessibilityEvent()
/cts/tests/tests/toastlegacy/src/android/widget/toast/cts/legacy/
DToastTest.java20 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/
DBasePermissionsTest.java46 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/
DAccessibilityEndToEndActivity.java25 import android.view.accessibility.AccessibilityEvent;
127 public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event) { in onInitializeAccessibilityEvent()
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DInstrumentedAccessibilityService.java34 import android.view.accessibility.AccessibilityEvent;
93 public void onAccessibilityEvent(AccessibilityEvent event) { in onAccessibilityEvent()

12