Home
last modified time | relevance | path

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

12345678

/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityEventTest.java56 AccessibilityEvent event = AccessibilityEvent.obtain(); in testImportantForAccessibiity_getSetWorkAcrossParceling()
67 AccessibilityEvent event = AccessibilityEvent.obtain(); in testSouceNodeId_getSetWorkAcrossParceling()
75 AccessibilityEvent event = AccessibilityEvent.obtain(); in testSourceDisplayId_getSetWorkAcrossParceling()
82 final int windowChanges = AccessibilityEvent.WINDOWS_CHANGE_TITLE in testWindowChanges_getSetWorkAcrossParceling()
83 | AccessibilityEvent.WINDOWS_CHANGE_ACTIVE in testWindowChanges_getSetWorkAcrossParceling()
84 | AccessibilityEvent.WINDOWS_CHANGE_FOCUSED; in testWindowChanges_getSetWorkAcrossParceling()
85 AccessibilityEvent event = AccessibilityEvent.obtain(); in testWindowChanges_getSetWorkAcrossParceling()
99 AccessibilityEvent.class, A11Y_EVENT_NON_STATIC_FIELD_COUNT); in dontForgetToUpdateA11yEventCtsParcelingTestWhenYouAddNewFields()
102 private AccessibilityEvent copyEventViaParcel(AccessibilityEvent event) { in copyEventViaParcel()
106 return AccessibilityEvent.CREATOR.createFromParcel(parcel); in copyEventViaParcel()
DAccessibilityCacheTest.java100 AccessibilityEvent event = AccessibilityEvent.obtain(); in testEmptyCache_a11yEventsHaveNoEffect()
102 AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED, in testEmptyCache_a11yEventsHaveNoEffect()
103 AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED, in testEmptyCache_a11yEventsHaveNoEffect()
104 AccessibilityEvent.TYPE_VIEW_FOCUSED, in testEmptyCache_a11yEventsHaveNoEffect()
105 AccessibilityEvent.TYPE_VIEW_SELECTED, in testEmptyCache_a11yEventsHaveNoEffect()
106 AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED, in testEmptyCache_a11yEventsHaveNoEffect()
107 AccessibilityEvent.TYPE_VIEW_CLICKED, in testEmptyCache_a11yEventsHaveNoEffect()
108 AccessibilityEvent.TYPE_VIEW_TEXT_SELECTION_CHANGED, in testEmptyCache_a11yEventsHaveNoEffect()
109 AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED, in testEmptyCache_a11yEventsHaveNoEffect()
110 AccessibilityEvent.TYPE_VIEW_SCROLLED, in testEmptyCache_a11yEventsHaveNoEffect()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilitySecurityPolicy.java46 import android.view.accessibility.AccessibilityEvent;
68 private static final int KEEP_SOURCE_EVENT_TYPES = AccessibilityEvent.TYPE_VIEW_CLICKED
69 | AccessibilityEvent.TYPE_VIEW_FOCUSED
70 | AccessibilityEvent.TYPE_VIEW_HOVER_ENTER
71 | AccessibilityEvent.TYPE_VIEW_HOVER_EXIT
72 | AccessibilityEvent.TYPE_VIEW_LONG_CLICKED
73 | AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED
74 | AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED
75 | AccessibilityEvent.TYPE_WINDOWS_CHANGED
76 | AccessibilityEvent.TYPE_VIEW_SELECTED
[all …]
/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()
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/
DAccessibilitySecurityPolicyTest.java58 import android.view.accessibility.AccessibilityEvent;
91 AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED,
92 AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED,
93 AccessibilityEvent.TYPE_ANNOUNCEMENT,
94 AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START,
95 AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END,
96 AccessibilityEvent.TYPE_GESTURE_DETECTION_START,
97 AccessibilityEvent.TYPE_GESTURE_DETECTION_END,
98 AccessibilityEvent.TYPE_TOUCH_INTERACTION_START,
99 AccessibilityEvent.TYPE_TOUCH_INTERACTION_END,
[all …]
DAccessibilityWindowManagerTest.java58 import android.view.accessibility.AccessibilityEvent;
586 AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED, in updateActiveAndA11yFocusedWindow_windowStateChangedEvent_noTracking_shouldUpdate()
605 AccessibilityEvent.TYPE_VIEW_HOVER_ENTER, in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow()
608 final ArgumentCaptor<AccessibilityEvent> captor = in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow()
609 ArgumentCaptor.forClass(AccessibilityEvent.class); in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow()
615 a11yWindowChanges(AccessibilityEvent.WINDOWS_CHANGE_ACTIVE))); in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow()
619 a11yWindowChanges(AccessibilityEvent.WINDOWS_CHANGE_ACTIVE))); in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow()
634 AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED, in updateActiveAndA11yFocusedWindow_a11yFocusEvent_shouldUpdateA11yFocus()
638 final ArgumentCaptor<AccessibilityEvent> captor = in updateActiveAndA11yFocusedWindow_a11yFocusEvent_shouldUpdateA11yFocus()
639 ArgumentCaptor.forClass(AccessibilityEvent.class); in updateActiveAndA11yFocusedWindow_a11yFocusEvent_shouldUpdateA11yFocus()
[all …]
DAccessibilityWindowManagerWithAccessibilityWindowTest.java64 import android.view.accessibility.AccessibilityEvent;
747 AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED, in updateActiveAndA11yFocusedWindow_windowStateChangedEvent_noTracking_shouldUpdate()
766 AccessibilityEvent.TYPE_VIEW_HOVER_ENTER, in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow()
769 final ArgumentCaptor<AccessibilityEvent> captor = in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow()
770 ArgumentCaptor.forClass(AccessibilityEvent.class); in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow()
776 a11yWindowChanges(AccessibilityEvent.WINDOWS_CHANGE_ACTIVE))); in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow()
780 a11yWindowChanges(AccessibilityEvent.WINDOWS_CHANGE_ACTIVE))); in updateActiveAndA11yFocusedWindow_hoverEvent_touchInteract_shouldSetActiveWindow()
795 AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED, in updateActiveAndA11yFocusedWindow_a11yFocusEvent_shouldUpdateA11yFocus()
799 final ArgumentCaptor<AccessibilityEvent> captor = in updateActiveAndA11yFocusedWindow_a11yFocusEvent_shouldUpdateA11yFocus()
800 ArgumentCaptor.forClass(AccessibilityEvent.class); in updateActiveAndA11yFocusedWindow_a11yFocusEvent_shouldUpdateA11yFocus()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityEvent.java431 public final class AccessibilityEvent extends AccessibilityRecord implements Parcelable { class
1032 public AccessibilityEvent() { in AccessibilityEvent() method in AccessibilityEvent
1042 public AccessibilityEvent(int eventType) { in AccessibilityEvent() method in AccessibilityEvent
1053 public AccessibilityEvent(@NonNull AccessibilityEvent event) { in AccessibilityEvent() method in AccessibilityEvent
1062 void init(AccessibilityEvent event) { in init()
1176 return BitUtils.flagsToString(types, AccessibilityEvent::singleContentChangeTypeToString); in contentChangeTypesToString()
1273 types, AccessibilityEvent::singleSpeechStateChangeTypeToString); in speechStateChangeTypesToString()
1337 return BitUtils.flagsToString(types, AccessibilityEvent::singleWindowChangeTypeToString); in windowChangeTypesToString()
1492 public static AccessibilityEvent obtainWindowsChangedEvent( in obtainWindowsChangedEvent()
1494 final AccessibilityEvent event = new AccessibilityEvent(TYPE_WINDOWS_CHANGED); in obtainWindowsChangedEvent()
[all …]
DAccessibilityCache.java59 AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED
60 | AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED
61 | AccessibilityEvent.TYPE_VIEW_FOCUSED
62 | AccessibilityEvent.TYPE_VIEW_SELECTED
63 | AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED
64 | AccessibilityEvent.TYPE_VIEW_CLICKED
65 | AccessibilityEvent.TYPE_VIEW_TEXT_SELECTION_CHANGED
66 | AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED
67 | AccessibilityEvent.TYPE_VIEW_SCROLLED
68 | AccessibilityEvent.TYPE_WINDOWS_CHANGED
[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/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/services/accessibility/java/com/android/server/accessibility/gestures/
DTouchState.java27 import android.view.accessibility.AccessibilityEvent;
186 public void onReceivedAccessibilityEvent(AccessibilityEvent event) { in onReceivedAccessibilityEvent()
190 case AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED: in onReceivedAccessibilityEvent()
191 case AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED: in onReceivedAccessibilityEvent()
198 case AccessibilityEvent.TYPE_VIEW_HOVER_ENTER: in onReceivedAccessibilityEvent()
199 case AccessibilityEvent.TYPE_VIEW_HOVER_EXIT: in onReceivedAccessibilityEvent()
202 case AccessibilityEvent.TYPE_TOUCH_INTERACTION_END: in onReceivedAccessibilityEvent()
217 case AccessibilityEvent.TYPE_TOUCH_INTERACTION_START: in onInjectedAccessibilityEvent()
220 case AccessibilityEvent.TYPE_TOUCH_INTERACTION_END: in onInjectedAccessibilityEvent()
224 case AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START: in onInjectedAccessibilityEvent()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedAccessibilityUtil.java20 import android.view.accessibility.AccessibilityEvent;
76 final AccessibilityEvent event = AccessibilityEvent.obtain(); in announcementForScreenReader()
78 event.setEventType(AccessibilityEvent.TYPE_ANNOUNCEMENT); in announcementForScreenReader()
/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/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/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/shared/keyguard/src/com/android/keyguard/
DBasePasswordTextView.java24 import android.view.accessibility.AccessibilityEvent;
177 AccessibilityEvent event = in sendAccessibilityEventTypeViewTextChanged()
178 AccessibilityEvent.obtain(AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED); in sendAccessibilityEventTypeViewTextChanged()
220 public void onInitializeAccessibilityEvent(AccessibilityEvent event) { in onInitializeAccessibilityEvent()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DAlertActivity.java25 import android.view.accessibility.AccessibilityEvent;
64 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { in dispatchPopulateAccessibilityEvent()
69 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/services/core/java/com/android/server/policy/
DSideFpsToast.java27 import android.view.accessibility.AccessibilityEvent;
81 @NonNull AccessibilityEvent event) { in addAccessibilityDelegate()
83 == AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED in addAccessibilityDelegate()
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/
DUtils.kt42 import android.view.accessibility.AccessibilityEvent
72 val event = AccessibilityEvent.obtain() in notifyAccessibilityContentChanged()
73 event.eventType = AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED in notifyAccessibilityContentChanged()
74 event.contentChangeTypes = AccessibilityEvent.CONTENT_CHANGE_TYPE_SUBTREE in notifyAccessibilityContentChanged()
79 AccessibilityEvent.CONTENT_CHANGE_TYPE_SUBTREE in notifyAccessibilityContentChanged()
/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()
DChooserRecyclerViewAccessibilityDelegate.java23 import android.view.accessibility.AccessibilityEvent;
40 @NonNull AccessibilityEvent event) { in onRequestSendAccessibilityEvent()
42 if (result && event.getEventType() == AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED) { in onRequestSendAccessibilityEvent()
/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/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()

12345678