Home
last modified time | relevance | path

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

123456

/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityCacheTest.java92 AccessibilityEvent event = AccessibilityEvent.obtain(); in testEmptyCache_a11yEventsHaveNoEffect()
94 AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED, in testEmptyCache_a11yEventsHaveNoEffect()
95 AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED, in testEmptyCache_a11yEventsHaveNoEffect()
96 AccessibilityEvent.TYPE_VIEW_FOCUSED, in testEmptyCache_a11yEventsHaveNoEffect()
97 AccessibilityEvent.TYPE_VIEW_SELECTED, in testEmptyCache_a11yEventsHaveNoEffect()
98 AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED, in testEmptyCache_a11yEventsHaveNoEffect()
99 AccessibilityEvent.TYPE_VIEW_CLICKED, in testEmptyCache_a11yEventsHaveNoEffect()
100 AccessibilityEvent.TYPE_VIEW_TEXT_SELECTION_CHANGED, in testEmptyCache_a11yEventsHaveNoEffect()
101 AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED, in testEmptyCache_a11yEventsHaveNoEffect()
102 AccessibilityEvent.TYPE_VIEW_SCROLLED, in testEmptyCache_a11yEventsHaveNoEffect()
[all …]
DAccessibilityEventTest.java55 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()
DRecycleAccessibilityEventTest.java43 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()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityCache.java50 AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED
51 | AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED
52 | AccessibilityEvent.TYPE_VIEW_FOCUSED
53 | AccessibilityEvent.TYPE_VIEW_SELECTED
54 | AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED
55 | AccessibilityEvent.TYPE_VIEW_CLICKED
56 | AccessibilityEvent.TYPE_VIEW_TEXT_SELECTION_CHANGED
57 | AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED
58 | AccessibilityEvent.TYPE_VIEW_SCROLLED
59 | AccessibilityEvent.TYPE_WINDOWS_CHANGED
[all …]
DAccessibilityEvent.java392 public final class AccessibilityEvent extends AccessibilityRecord implements Parcelable { class
757 private static final SynchronizedPool<AccessibilityEvent> sPool =
786 private AccessibilityEvent() { in AccessibilityEvent() method in AccessibilityEvent
794 void init(AccessibilityEvent event) { in init()
894 return BitUtils.flagsToString(types, AccessibilityEvent::singleContentChangeTypeToString); in contentChangeTypesToString()
942 return BitUtils.flagsToString(types, AccessibilityEvent::singleWindowChangeTypeToString); in windowChangeTypesToString()
1080 public static AccessibilityEvent obtainWindowsChangedEvent( in obtainWindowsChangedEvent()
1082 final AccessibilityEvent event = AccessibilityEvent.obtain(TYPE_WINDOWS_CHANGED); in obtainWindowsChangedEvent()
1096 public static AccessibilityEvent obtain(int eventType) { in obtain()
1097 AccessibilityEvent event = AccessibilityEvent.obtain(); in obtain()
[all …]
DAccessibilityWindowInfo.java27 import android.view.accessibility.AccessibilityEvent.WindowsChangeTypes;
752 changes |= AccessibilityEvent.WINDOWS_CHANGE_TITLE; in differenceFrom()
756 changes |= AccessibilityEvent.WINDOWS_CHANGE_BOUNDS; in differenceFrom()
759 changes |= AccessibilityEvent.WINDOWS_CHANGE_LAYER; in differenceFrom()
763 changes |= AccessibilityEvent.WINDOWS_CHANGE_ACTIVE; in differenceFrom()
767 changes |= AccessibilityEvent.WINDOWS_CHANGE_FOCUSED; in differenceFrom()
771 changes |= AccessibilityEvent.WINDOWS_CHANGE_ACCESSIBILITY_FOCUSED; in differenceFrom()
775 changes |= AccessibilityEvent.WINDOWS_CHANGE_PIP; in differenceFrom()
778 changes |= AccessibilityEvent.WINDOWS_CHANGE_PARENT; in differenceFrom()
781 changes |= AccessibilityEvent.WINDOWS_CHANGE_CHILDREN; in differenceFrom()
/frameworks/base/core/java/com/android/internal/widget/
DExploreByTouchHelper.java26 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()
241 final AccessibilityEvent event = createEvent(virtualViewId, in invalidateVirtualView()
242 AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); in invalidateVirtualView()
277 sendEventForVirtualView(virtualViewId, AccessibilityEvent.TYPE_VIEW_HOVER_ENTER); in updateHoveredVirtualView()
278 sendEventForVirtualView(previousVirtualViewId, AccessibilityEvent.TYPE_VIEW_HOVER_EXIT); in updateHoveredVirtualView()
291 private AccessibilityEvent createEvent(int virtualViewId, int eventType) { in createEvent()
307 private AccessibilityEvent createEventForHost(int eventType) { in createEventForHost()
[all …]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java33 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/
DAELogger.java20 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/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityManagerTest.java33 import android.view.accessibility.AccessibilityEvent;
81 AccessibilityEvent.TYPES_ALL_MASK); in createManager()
138 AccessibilityEvent sentEvent = AccessibilityEvent.obtain( in testSendAccessibilityEvent_AccessibilityEnabled()
139 AccessibilityEvent.TYPE_ANNOUNCEMENT); in testSendAccessibilityEvent_AccessibilityEnabled()
144 assertSame("The event should be recycled.", sentEvent, AccessibilityEvent.obtain()); in testSendAccessibilityEvent_AccessibilityEnabled()
149 AccessibilityEvent sentEvent = AccessibilityEvent.obtain(); in testSendAccessibilityEvent_AccessibilityDisabled()
/frameworks/layoutlib/bridge/src/android/view/accessibility/
DAccessibilityManager.java28 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/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelperTest.java36 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/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardClockAccessibilityDelegateTest.java24 import android.view.accessibility.AccessibilityEvent;
58 AccessibilityEvent ev = AccessibilityEvent.obtain(); in onInitializeAccessibilityEvent_producesNonEmptyAsciiContentDesc()
67 AccessibilityEvent ev = AccessibilityEvent.obtain(); in onPopulateAccessibilityEvent_producesNonEmptyAsciiText()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DUtil.java8 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/services/accessibility/java/com/android/server/accessibility/
DTouchExplorer.java28 import android.view.accessibility.AccessibilityEvent;
198 AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END, in TouchExplorer()
201 AccessibilityEvent.TYPE_TOUCH_INTERACTION_END, in TouchExplorer()
320 public void onAccessibilityEvent(AccessibilityEvent event) { in onAccessibilityEvent()
326 && eventType == AccessibilityEvent.TYPE_VIEW_HOVER_EXIT) { in onAccessibilityEvent()
328 sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END); in onAccessibilityEvent()
334 && eventType == AccessibilityEvent.TYPE_VIEW_HOVER_EXIT) { in onAccessibilityEvent()
336 sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_INTERACTION_END); in onAccessibilityEvent()
342 case AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED: in onAccessibilityEvent()
343 case AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED: { in onAccessibilityEvent()
[all …]
DAccessibilityManagerService.java26 import static android.view.accessibility.AccessibilityEvent.WINDOWS_CHANGE_ACCESSIBILITY_FOCUSED;
99 import android.view.accessibility.AccessibilityEvent;
570 public void sendAccessibilityEvent(AccessibilityEvent event, int userId) { in sendAccessibilityEvent()
606 this, AccessibilityEvent.obtain(event))); in sendAccessibilityEvent()
615 if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED in sendAccessibilityEvent()
632 private void sendAccessibilityEventToInputFilter(AccessibilityEvent event) { in sendAccessibilityEventToInputFilter()
1138 AccessibilityEvent event = AccessibilityEvent.obtain( in announceNewUserIfNeeded()
1139 AccessibilityEvent.TYPE_ANNOUNCEMENT); in announceNewUserIfNeeded()
1447 private void notifyAccessibilityServicesDelayedLocked(AccessibilityEvent event, in notifyAccessibilityServicesDelayedLocked()
2471 private void sendAccessibilityEventLocked(AccessibilityEvent event, int userId) { in sendAccessibilityEventLocked()
[all …]
DEventStreamTransformation.java21 import android.view.accessibility.AccessibilityEvent;
93 default void onAccessibilityEvent(AccessibilityEvent event) { in onAccessibilityEvent()
/frameworks/base/core/java/android/app/
DUiAutomation.java50 import android.view.accessibility.AccessibilityEvent;
127 private final ArrayList<AccessibilityEvent> mEventQueue = new ArrayList<AccessibilityEvent>();
170 public void onAccessibilityEvent(AccessibilityEvent event); in onAccessibilityEvent()
185 public boolean accept(AccessibilityEvent event); in accept()
678 public AccessibilityEvent executeAndWaitForEvent(Runnable command, in executeAndWaitForEvent()
697 List<AccessibilityEvent> receivedEvents = new ArrayList<>(); in executeAndWaitForEvent()
704 List<AccessibilityEvent> localEvents = new ArrayList<>(); in executeAndWaitForEvent()
711 AccessibilityEvent event = localEvents.remove(0); in executeAndWaitForEvent()
1241 public void onAccessibilityEvent(AccessibilityEvent event) { in IAccessibilityServiceClientImpl()
1246 mEventQueue.add(AccessibilityEvent.obtain(event)); in IAccessibilityServiceClientImpl()
[all …]
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java35 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/
DAlertActivity.java26 import android.view.accessibility.AccessibilityEvent;
76 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { in dispatchPopulateAccessibilityEvent()
81 AccessibilityEvent event) { in dispatchPopulateAccessibilityEvent()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillCompatAccessibilityService.java20 import android.view.accessibility.AccessibilityEvent;
27 public void onAccessibilityEvent(AccessibilityEvent event) { in onAccessibilityEvent()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardClockAccessibilityDelegate.java22 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()
/frameworks/base/core/java/com/android/internal/globalactions/
DActionsDialog.java23 import android.view.accessibility.AccessibilityEvent;
66 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { in dispatchPopulateAccessibilityEvent()
67 if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED) { in dispatchPopulateAccessibilityEvent()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPreviewPageFrame.java21 import android.view.accessibility.AccessibilityEvent;
41 public void onInitializeAccessibilityEvent(AccessibilityEvent event) { in onInitializeAccessibilityEvent()
/frameworks/base/core/java/android/accessibilityservice/
DIAccessibilityServiceClient.aidl21 import android.view.accessibility.AccessibilityEvent;
34 void onAccessibilityEvent(in AccessibilityEvent event, in boolean serviceWantsEvent); in onAccessibilityEvent()

123456