/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | AccessibilityEventTest.java | 55 AccessibilityEvent event = AccessibilityEvent.obtain(); in testImportantForAccessibiity_getSetWorkAcrossParceling() 66 AccessibilityEvent event = AccessibilityEvent.obtain(); in testSouceNodeId_getSetWorkAcrossParceling() 73 final int windowChanges = AccessibilityEvent.WINDOWS_CHANGE_TITLE in testWindowChanges_getSetWorkAcrossParceling() 74 | AccessibilityEvent.WINDOWS_CHANGE_ACTIVE in testWindowChanges_getSetWorkAcrossParceling() 75 | AccessibilityEvent.WINDOWS_CHANGE_FOCUSED; in testWindowChanges_getSetWorkAcrossParceling() 76 AccessibilityEvent event = AccessibilityEvent.obtain(); in testWindowChanges_getSetWorkAcrossParceling() 90 AccessibilityEvent.class, A11Y_EVENT_NON_STATIC_FIELD_COUNT); in dontForgetToUpdateA11yEventCtsParcelingTestWhenYouAddNewFields() 93 private AccessibilityEvent copyEventViaParcel(AccessibilityEvent event) { in copyEventViaParcel() 97 return AccessibilityEvent.CREATOR.createFromParcel(parcel); in copyEventViaParcel()
|
D | AccessibilityCacheTest.java | 99 AccessibilityEvent event = AccessibilityEvent.obtain(); in testEmptyCache_a11yEventsHaveNoEffect() 101 AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED, in testEmptyCache_a11yEventsHaveNoEffect() 102 AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED, in testEmptyCache_a11yEventsHaveNoEffect() 103 AccessibilityEvent.TYPE_VIEW_FOCUSED, in testEmptyCache_a11yEventsHaveNoEffect() 104 AccessibilityEvent.TYPE_VIEW_SELECTED, in testEmptyCache_a11yEventsHaveNoEffect() 105 AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED, in testEmptyCache_a11yEventsHaveNoEffect() 106 AccessibilityEvent.TYPE_VIEW_CLICKED, in testEmptyCache_a11yEventsHaveNoEffect() 107 AccessibilityEvent.TYPE_VIEW_TEXT_SELECTION_CHANGED, in testEmptyCache_a11yEventsHaveNoEffect() 108 AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED, in testEmptyCache_a11yEventsHaveNoEffect() 109 AccessibilityEvent.TYPE_VIEW_SCROLLED, in testEmptyCache_a11yEventsHaveNoEffect() [all …]
|
D | RecycleAccessibilityEventTest.java | 43 AccessibilityEvent first = in testAccessibilityEventViewTextChangedType() 44 AccessibilityEvent.obtain(AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED); in testAccessibilityEventViewTextChangedType() 69 assertEquals(AccessibilityEvent.INVALID_POSITION, first.getCurrentItemIndex()); in testAccessibilityEventViewTextChangedType() 77 AccessibilityEvent second = AccessibilityEvent.obtain(); in testAccessibilityEventViewTextChangedType()
|
D | AccessibilityManagerTest.java | 93 AccessibilityEvent.TYPES_ALL_MASK); in createManager() 173 AccessibilityEvent sentEvent = AccessibilityEvent.obtain( in testSendAccessibilityEvent_AccessibilityEnabled() 174 AccessibilityEvent.TYPE_ANNOUNCEMENT); in testSendAccessibilityEvent_AccessibilityEnabled() 179 assertSame("The event should be recycled.", sentEvent, AccessibilityEvent.obtain()); in testSendAccessibilityEvent_AccessibilityEnabled() 184 AccessibilityEvent sentEvent = AccessibilityEvent.obtain(); in testSendAccessibilityEvent_AccessibilityDisabled()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilitySecurityPolicy.java | 38 import android.view.accessibility.AccessibilityEvent; 61 private static final int KEEP_SOURCE_EVENT_TYPES = AccessibilityEvent.TYPE_VIEW_CLICKED 62 | AccessibilityEvent.TYPE_VIEW_FOCUSED 63 | AccessibilityEvent.TYPE_VIEW_HOVER_ENTER 64 | AccessibilityEvent.TYPE_VIEW_HOVER_EXIT 65 | AccessibilityEvent.TYPE_VIEW_LONG_CLICKED 66 | AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED 67 | AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED 68 | AccessibilityEvent.TYPE_WINDOWS_CHANGED 69 | AccessibilityEvent.TYPE_VIEW_SELECTED [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ExploreByTouchHelper.java | 26 import android.view.accessibility.AccessibilityEvent; 188 final AccessibilityEvent event = createEvent(virtualViewId, eventType); in sendEventForVirtualView() 200 invalidateVirtualView(HOST_ID, AccessibilityEvent.CONTENT_CHANGE_TYPE_SUBTREE); in invalidateRoot() 216 AccessibilityEvent.CONTENT_CHANGE_TYPE_UNDEFINED); in invalidateVirtualView() 242 final AccessibilityEvent event = createEvent(virtualViewId, in invalidateVirtualView() 243 AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); in invalidateVirtualView() 278 sendEventForVirtualView(virtualViewId, AccessibilityEvent.TYPE_VIEW_HOVER_ENTER); in updateHoveredVirtualView() 279 sendEventForVirtualView(previousVirtualViewId, AccessibilityEvent.TYPE_VIEW_HOVER_EXIT); in updateHoveredVirtualView() 292 private AccessibilityEvent createEvent(int virtualViewId, int eventType) { in createEvent() 308 private AccessibilityEvent createEventForHost(int eventType) { in createEventForHost() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilitySecurityPolicyTest.java | 51 import android.view.accessibility.AccessibilityEvent; 83 AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED, 84 AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED, 85 AccessibilityEvent.TYPE_ANNOUNCEMENT, 86 AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START, 87 AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END, 88 AccessibilityEvent.TYPE_GESTURE_DETECTION_START, 89 AccessibilityEvent.TYPE_GESTURE_DETECTION_END, 90 AccessibilityEvent.TYPE_TOUCH_INTERACTION_START, 91 AccessibilityEvent.TYPE_TOUCH_INTERACTION_END, [all …]
|
D | AccessibilityWindowManagerTest.java | 50 import android.view.accessibility.AccessibilityEvent; 553 AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED, in updateActiveAndA11yFocusedWindow_windowStateChangedEvent_noTracking_shouldUpdate() 572 AccessibilityEvent.TYPE_VIEW_HOVER_ENTER, in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow() 575 final ArgumentCaptor<AccessibilityEvent> captor = in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow() 576 ArgumentCaptor.forClass(AccessibilityEvent.class); in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow() 581 a11yWindowChanges(AccessibilityEvent.WINDOWS_CHANGE_ACTIVE))); in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow() 584 a11yWindowChanges(AccessibilityEvent.WINDOWS_CHANGE_ACTIVE))); in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow() 599 AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED, in updateActiveAndA11yFocusedWindow_a11yFocusEvent_shouldUpdateA11yFocus() 603 final ArgumentCaptor<AccessibilityEvent> captor = in updateActiveAndA11yFocusedWindow_a11yFocusEvent_shouldUpdateA11yFocus() 604 ArgumentCaptor.forClass(AccessibilityEvent.class); in updateActiveAndA11yFocusedWindow_a11yFocusEvent_shouldUpdateA11yFocus() [all …]
|
/frameworks/base/core/java/android/view/accessibility/ |
D | AccessibilityEvent.java | 394 public final class AccessibilityEvent extends AccessibilityRecord implements Parcelable { class 774 private static final SynchronizedPool<AccessibilityEvent> sPool = 803 public AccessibilityEvent() { in AccessibilityEvent() method in AccessibilityEvent 813 public AccessibilityEvent(int eventType) { in AccessibilityEvent() method in AccessibilityEvent 824 public AccessibilityEvent(@NonNull AccessibilityEvent event) { in AccessibilityEvent() method in AccessibilityEvent 833 void init(AccessibilityEvent event) { in init() 943 return BitUtils.flagsToString(types, AccessibilityEvent::singleContentChangeTypeToString); in contentChangeTypesToString() 993 return BitUtils.flagsToString(types, AccessibilityEvent::singleWindowChangeTypeToString); in windowChangeTypesToString() 1131 public static AccessibilityEvent obtainWindowsChangedEvent( in obtainWindowsChangedEvent() 1133 final AccessibilityEvent event = AccessibilityEvent.obtain(TYPE_WINDOWS_CHANGED); in obtainWindowsChangedEvent() [all …]
|
D | AccessibilityCache.java | 53 AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED 54 | AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED 55 | AccessibilityEvent.TYPE_VIEW_FOCUSED 56 | AccessibilityEvent.TYPE_VIEW_SELECTED 57 | AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED 58 | AccessibilityEvent.TYPE_VIEW_CLICKED 59 | AccessibilityEvent.TYPE_VIEW_TEXT_SELECTION_CHANGED 60 | AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED 61 | AccessibilityEvent.TYPE_VIEW_SCROLLED 62 | AccessibilityEvent.TYPE_WINDOWS_CHANGED [all …]
|
D | AccessibilityWindowInfo.java | 31 import android.view.accessibility.AccessibilityEvent.WindowsChangeTypes; 800 changes |= AccessibilityEvent.WINDOWS_CHANGE_TITLE; in differenceFrom() 803 changes |= AccessibilityEvent.WINDOWS_CHANGE_BOUNDS; in differenceFrom() 806 changes |= AccessibilityEvent.WINDOWS_CHANGE_LAYER; in differenceFrom() 810 changes |= AccessibilityEvent.WINDOWS_CHANGE_ACTIVE; in differenceFrom() 814 changes |= AccessibilityEvent.WINDOWS_CHANGE_FOCUSED; in differenceFrom() 818 changes |= AccessibilityEvent.WINDOWS_CHANGE_ACCESSIBILITY_FOCUSED; in differenceFrom() 822 changes |= AccessibilityEvent.WINDOWS_CHANGE_PIP; in differenceFrom() 825 changes |= AccessibilityEvent.WINDOWS_CHANGE_PARENT; in differenceFrom() 828 changes |= AccessibilityEvent.WINDOWS_CHANGE_CHILDREN; in differenceFrom()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 33 import android.view.accessibility.AccessibilityEvent; 78 public boolean accept(AccessibilityEvent t) { in accept() 96 List<AccessibilityEvent> mEventsList; 98 EventCollectingPredicate(int mask, List<AccessibilityEvent> events) { in EventCollectingPredicate() 104 public boolean accept(AccessibilityEvent t) { in accept() 109 mEventsList.add(AccessibilityEvent.obtain(t)); in accept() 127 public boolean accept(AccessibilityEvent t) { in accept() 155 private AccessibilityEvent runAndWaitForEvents(Runnable command, in runAndWaitForEvents() 239 AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED | in clickAndSync() 240 AccessibilityEvent.TYPE_VIEW_SELECTED), timeout) != null; in clickAndSync() [all …]
|
/frameworks/base/tests/AccessibilityEventsLogger/src/com/android/tests/accessibilityeventlogger/ |
D | AELogger.java | 20 import android.view.accessibility.AccessibilityEvent; 29 AccessibilityEvent.TYPE_VIEW_CLICKED | AccessibilityEvent.TYPE_VIEW_LONG_CLICKED; 44 public void onAccessibilityEvent(AccessibilityEvent event) { in onAccessibilityEvent() 49 final String eventType = AccessibilityEvent.eventTypeToString(event.getEventType()); in onAccessibilityEvent()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | TouchState.java | 26 import android.view.accessibility.AccessibilityEvent; 168 public void onReceivedAccessibilityEvent(AccessibilityEvent event) { in onReceivedAccessibilityEvent() 172 case AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED: in onReceivedAccessibilityEvent() 173 case AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED: in onReceivedAccessibilityEvent() 180 case AccessibilityEvent.TYPE_VIEW_HOVER_ENTER: in onReceivedAccessibilityEvent() 181 case AccessibilityEvent.TYPE_VIEW_HOVER_EXIT: in onReceivedAccessibilityEvent() 195 case AccessibilityEvent.TYPE_TOUCH_INTERACTION_START: in onInjectedAccessibilityEvent() 198 case AccessibilityEvent.TYPE_TOUCH_INTERACTION_END: in onInjectedAccessibilityEvent() 201 case AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START: in onInjectedAccessibilityEvent() 204 case AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END: in onInjectedAccessibilityEvent() [all …]
|
D | TouchExplorer.java | 31 import android.view.accessibility.AccessibilityEvent; 159 AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END, in TouchExplorer() 162 AccessibilityEvent.TYPE_TOUCH_INTERACTION_END, in TouchExplorer() 272 public void onAccessibilityEvent(AccessibilityEvent event) { in onAccessibilityEvent() 275 if (eventType == AccessibilityEvent.TYPE_VIEW_HOVER_EXIT) { in onAccessibilityEvent() 299 AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END); in sendsPendingA11yEventsIfNeed() 306 mDispatcher.sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_INTERACTION_END); in sendsPendingA11yEventsIfNeed() 330 mDispatcher.sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_INTERACTION_END); in onDoubleTap() 353 mDispatcher.sendAccessibilityEvent(AccessibilityEvent.TYPE_GESTURE_DETECTION_START); in onGestureStarted() 442 mDispatcher.sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_INTERACTION_START); in handleActionDown() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | Utils.java | 20 import static android.view.accessibility.AccessibilityEvent.CONTENT_CHANGE_TYPE_SUBTREE; 30 import android.view.accessibility.AccessibilityEvent; 63 AccessibilityEvent event = AccessibilityEvent.obtain(); in notifyAccessibilityContentChanged() 64 event.setEventType(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); in notifyAccessibilityContentChanged()
|
/frameworks/layoutlib/bridge/src/android/view/accessibility/ |
D | AccessibilityManager.java | 28 import android.view.accessibility.AccessibilityEvent.EventType; 117 @Nullable AccessibilityEvent onAccessibilityEvent(@NonNull AccessibilityEvent event, in onAccessibilityEvent() 214 public void sendAccessibilityEvent(AccessibilityEvent event) { in sendAccessibilityEvent() 225 public boolean isObservedEventType(@AccessibilityEvent.EventType int type) { in isObservedEventType()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | Util.java | 8 import android.view.accessibility.AccessibilityEvent; 47 final int eventType = AccessibilityEvent.TYPE_VIEW_FOCUSED; in announceForAccessibility() 51 final AccessibilityEvent event = AccessibilityEvent.obtain(eventType); in announceForAccessibility()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardClockAccessibilityDelegateTest.java | 24 import android.view.accessibility.AccessibilityEvent; 58 AccessibilityEvent ev = AccessibilityEvent.obtain(); in onInitializeAccessibilityEvent_producesNonEmptyAsciiContentDesc() 67 AccessibilityEvent ev = AccessibilityEvent.obtain(); in onPopulateAccessibilityEvent_producesNonEmptyAsciiText()
|
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelperTest.java | 36 import android.view.accessibility.AccessibilityEvent; 89 AccessibilityEvent event = AccessibilityEvent.obtain(); in testOnPopulateEventForVirtualView() 102 AccessibilityEvent event = AccessibilityEvent.obtain(); in testOnPopulateEventForVirtualViewHost() 262 AccessibilityEvent accessibilityEvent = in testMethodDelegation() 263 AccessibilityEvent.obtain(AccessibilityEvent.TYPE_VIEW_CLICKED); in testMethodDelegation() 265 helper.sendAccessibilityEvent(mTextView, AccessibilityEvent.TYPE_VIEW_CLICKED); in testMethodDelegation() 267 .sendAccessibilityEvent(same(mTextView), eq(AccessibilityEvent.TYPE_VIEW_CLICKED)); in testMethodDelegation() 344 public void onPopulateEventForVirtualView(int virtualViewId, AccessibilityEvent event) { in onPopulateEventForVirtualView()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | AutofillCompatAccessibilityService.java | 20 import android.view.accessibility.AccessibilityEvent; 27 public void onAccessibilityEvent(AccessibilityEvent event) { in onAccessibilityEvent()
|
/frameworks/base/core/java/android/app/ |
D | UiAutomation.java | 52 import android.view.accessibility.AccessibilityEvent; 129 private final ArrayList<AccessibilityEvent> mEventQueue = new ArrayList<AccessibilityEvent>(); 172 public void onAccessibilityEvent(AccessibilityEvent event); in onAccessibilityEvent() 187 public boolean accept(AccessibilityEvent event); in accept() 709 public AccessibilityEvent executeAndWaitForEvent(Runnable command, in executeAndWaitForEvent() 728 List<AccessibilityEvent> receivedEvents = new ArrayList<>(); in executeAndWaitForEvent() 735 List<AccessibilityEvent> localEvents = new ArrayList<>(); in executeAndWaitForEvent() 742 AccessibilityEvent event = localEvents.remove(0); in executeAndWaitForEvent() 1290 public void onAccessibilityEvent(AccessibilityEvent event) { in IAccessibilityServiceClientImpl() 1295 mEventQueue.add(AccessibilityEvent.obtain(event)); in IAccessibilityServiceClientImpl() [all …]
|
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelper.java | 35 import android.view.accessibility.AccessibilityEvent; 94 public void sendAccessibilityEventUnchecked(View host, AccessibilityEvent event) { in sendAccessibilityEventUnchecked() 99 public boolean dispatchPopulateAccessibilityEvent(View host, AccessibilityEvent event) { in dispatchPopulateAccessibilityEvent() 104 public void onPopulateAccessibilityEvent(View host, AccessibilityEvent event) { in onPopulateAccessibilityEvent() 109 public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event) { in onInitializeAccessibilityEvent() 120 ViewGroup host, View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() 185 protected void onPopulateEventForVirtualView(int virtualViewId, AccessibilityEvent event) { in onPopulateEventForVirtualView()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AlertActivity.java | 26 import android.view.accessibility.AccessibilityEvent; 76 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { in dispatchPopulateAccessibilityEvent() 81 AccessibilityEvent event) { in dispatchPopulateAccessibilityEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardClockAccessibilityDelegate.java | 22 import android.view.accessibility.AccessibilityEvent; 39 public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event) { in onInitializeAccessibilityEvent() 51 public void onPopulateAccessibilityEvent(View host, AccessibilityEvent event) { in onPopulateAccessibilityEvent()
|