Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/view/accessibility/
DAccessibilityCache.java72 private int mAccessibilityFocusedWindow = AccessibilityWindowInfo.UNDEFINED_WINDOW_ID;
78 private final SparseArray<SparseArray<AccessibilityWindowInfo>> mWindowCacheByDisplay =
84 private final SparseArray<AccessibilityWindowInfo> mTempWindowArray =
98 SparseArray<List<AccessibilityWindowInfo>> windowsOnAllDisplays) { in setWindowsOnAllDisplays()
110 final List<AccessibilityWindowInfo> windowsOfDisplay = in setWindowsOnAllDisplays()
132 public void addWindow(AccessibilityWindowInfo window) { in addWindow()
142 private void addWindowByDisplayLocked(int displayId, AccessibilityWindowInfo window) { in addWindowByDisplayLocked()
143 SparseArray<AccessibilityWindowInfo> windows = mWindowCacheByDisplay.get(displayId); in addWindowByDisplayLocked()
149 windows.put(windowId, new AccessibilityWindowInfo(window)); in addWindowByDisplayLocked()
181 mAccessibilityFocusedWindow = AccessibilityWindowInfo.UNDEFINED_WINDOW_ID; in onAccessibilityEvent()
[all …]
DAccessibilityWindowInfo.java45 public final class AccessibilityWindowInfo implements Parcelable { class
105 private static final SynchronizedPool<AccessibilityWindowInfo> sPool =
106 new SynchronizedPool<AccessibilityWindowInfo>(MAX_POOL_SIZE);
127 public AccessibilityWindowInfo() { in AccessibilityWindowInfo() method in AccessibilityWindowInfo
136 public AccessibilityWindowInfo(@NonNull AccessibilityWindowInfo info) { in AccessibilityWindowInfo() method in AccessibilityWindowInfo
270 public AccessibilityWindowInfo getParent() { in getParent()
430 public AccessibilityWindowInfo getChild(int index) { in getChild()
486 public static AccessibilityWindowInfo obtain() { in obtain()
487 AccessibilityWindowInfo info = sPool.acquire(); in obtain()
489 info = new AccessibilityWindowInfo(); in obtain()
[all …]
DAccessibilityWindowInfo.aidl19 parcelable AccessibilityWindowInfo;
20 parcelable AccessibilityWindowInfo.WindowListSparseArray;
DAccessibilityInteractionClient.java224 AccessibilityWindowInfo.ACTIVE_WINDOW_ID, AccessibilityNodeInfo.ROOT_NODE_ID, in getRootInActiveWindow()
237 public AccessibilityWindowInfo getWindow(int connectionId, int accessibilityWindowId) { in getWindow()
251 public AccessibilityWindowInfo getWindow(int connectionId, int accessibilityWindowId, in getWindow()
256 AccessibilityWindowInfo window; in getWindow()
298 public List<AccessibilityWindowInfo> getWindows(int connectionId) { in getWindows()
299 final SparseArray<List<AccessibilityWindowInfo>> windows = in getWindows()
314 public SparseArray<List<AccessibilityWindowInfo>> getWindowsOnAllDisplays(int connectionId) { in getWindowsOnAllDisplays()
318 SparseArray<List<AccessibilityWindowInfo>> windows = in getWindowsOnAllDisplays()
348 final SparseArray<List<AccessibilityWindowInfo>> emptyWindows = new SparseArray<>(); in getWindowsOnAllDisplays()
DAccessibilityRecord.java106 int mSourceWindowId = AccessibilityWindowInfo.UNDEFINED_WINDOW_ID;
162 mSourceWindowId = AccessibilityWindowInfo.UNDEFINED_WINDOW_ID; in setSource()
194 || (mSourceWindowId == AccessibilityWindowInfo.UNDEFINED_WINDOW_ID) in getSource()
916 mSourceWindowId = AccessibilityWindowInfo.UNDEFINED_WINDOW_ID; in clear()
DAccessibilityManager.java1062 return AccessibilityWindowInfo.UNDEFINED_WINDOW_ID; in getAccessibilityWindowId()
1069 return AccessibilityWindowInfo.UNDEFINED_WINDOW_ID; in getAccessibilityWindowId()
1075 return AccessibilityWindowInfo.UNDEFINED_WINDOW_ID; in getAccessibilityWindowId()
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityCacheTest.java120 AccessibilityWindowInfo windowInfo = null, copyOfInfo = null, windowFromCache = null; in addThenGetWindow_returnsEquivalentButNotSameWindow()
122 windowInfo = AccessibilityWindowInfo.obtain(); in addThenGetWindow_returnsEquivalentButNotSameWindow()
127 copyOfInfo = AccessibilityWindowInfo.obtain(windowInfo); in addThenGetWindow_returnsEquivalentButNotSameWindow()
162 AccessibilityWindowInfo windowInfo1 = null; in setWindowsThenGetWindows_returnsInDecreasingLayerOrder()
163 AccessibilityWindowInfo windowInfo2 = null; in setWindowsThenGetWindows_returnsInDecreasingLayerOrder()
164 AccessibilityWindowInfo window1Out = null; in setWindowsThenGetWindows_returnsInDecreasingLayerOrder()
165 AccessibilityWindowInfo window2Out = null; in setWindowsThenGetWindows_returnsInDecreasingLayerOrder()
166 List<AccessibilityWindowInfo> windowsOut = null; in setWindowsThenGetWindows_returnsInDecreasingLayerOrder()
170 List<AccessibilityWindowInfo> windowsIn = Arrays.asList(windowInfo1, windowInfo2); in setWindowsThenGetWindows_returnsInDecreasingLayerOrder()
187 for (AccessibilityWindowInfo windowInfo : windowsOut) { in setWindowsThenGetWindows_returnsInDecreasingLayerOrder()
[all …]
DAccessibilityServiceConnectionImpl.java74 public AccessibilityWindowInfo getWindow(int windowId) { in getWindow()
78 public AccessibilityWindowInfo.WindowListSparseArray getWindows() { in getWindows()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityWindowManager.java43 import android.view.accessibility.AccessibilityWindowInfo;
86 private int mActiveWindowId = AccessibilityWindowInfo.UNDEFINED_WINDOW_ID;
89 private int mTopFocusedWindowId = AccessibilityWindowInfo.UNDEFINED_WINDOW_ID;
90 private int mAccessibilityFocusedWindowId = AccessibilityWindowInfo.UNDEFINED_WINDOW_ID;
126 private final SparseArray<AccessibilityWindowInfo> mA11yWindowInfoById =
130 private List<AccessibilityWindowInfo> mWindows;
191 List<AccessibilityWindowInfo> getWindowListLocked() { in getWindowListLocked()
202 AccessibilityWindowInfo findA11yWindowInfoByIdLocked(int windowId) { in findA11yWindowInfoByIdLocked()
223 AccessibilityWindowInfo getPictureInPictureWindowLocked() { in getPictureInPictureWindowLocked()
227 final AccessibilityWindowInfo window = mWindows.get(i); in getPictureInPictureWindowLocked()
[all …]
DAbstractAccessibilityServiceConnection.java73 import android.view.accessibility.AccessibilityWindowInfo;
391 public AccessibilityWindowInfo.WindowListSparseArray getWindows() { in getWindows()
404 final AccessibilityWindowInfo.WindowListSparseArray allWindows = in getWindows()
405 new AccessibilityWindowInfo.WindowListSparseArray(); in getWindows()
413 final List<AccessibilityWindowInfo> windowList = getWindowsByDisplayLocked( in getWindows()
425 public AccessibilityWindowInfo getWindow(int windowId) { in getWindow()
428 if (windowId != AccessibilityWindowInfo.UNDEFINED_WINDOW_ID) { in getWindow()
445 AccessibilityWindowInfo window = in getWindow()
448 AccessibilityWindowInfo windowClone = AccessibilityWindowInfo.obtain(window); in getWindow()
1247 if ((event.getWindowId() != AccessibilityWindowInfo.UNDEFINED_WINDOW_ID) in wantsEventLocked()
[all …]
DAccessibilityManagerService.java101 import android.view.accessibility.AccessibilityWindowInfo;
646 AccessibilityWindowInfo.PICTURE_IN_PICTURE_ACTION_REPLACER_WINDOW_ID) { in sendAccessibilityEvent()
648 AccessibilityWindowInfo pip = mA11yWindowManager.getPictureInPictureWindowLocked(); in sendAccessibilityEvent()
692 && windowId != AccessibilityWindowInfo.UNDEFINED_WINDOW_ID) { in sendAccessibilityEvent()
3051 if (focusedWindowId == AccessibilityWindowInfo.UNDEFINED_WINDOW_ID) { in getAccessibilityFocusNotLocked()
/frameworks/base/core/tests/coretests/src/android/view/
DAccessibilityInteractionControllerTest.java34 import android.view.accessibility.AccessibilityWindowInfo;
148 final AccessibilityWindowInfo window = findWindowByTitle(activityTitle); in launchActivity()
208 private AccessibilityWindowInfo findWindowByTitle(CharSequence title) { in findWindowByTitle()
209 final List<AccessibilityWindowInfo> windows = sUiAutomation.getWindows(); in findWindowByTitle()
210 AccessibilityWindowInfo returnValue = null; in findWindowByTitle()
212 final AccessibilityWindowInfo window = windows.get(i); in findWindowByTitle()
/frameworks/base/core/java/android/accessibilityservice/
DIAccessibilityServiceConnection.aidl30 import android.view.accessibility.AccessibilityWindowInfo;
65 AccessibilityWindowInfo getWindow(int windowId); in getWindow()
67 AccessibilityWindowInfo.WindowListSparseArray getWindows(); in getWindows()
DIAccessibilityServiceClient.aidl22 import android.view.accessibility.AccessibilityWindowInfo;
DAccessibilityService.java57 import android.view.accessibility.AccessibilityWindowInfo;
854 public List<AccessibilityWindowInfo> getWindows() { in getWindows()
882 public final SparseArray<List<AccessibilityWindowInfo>> getWindowsOnAllDisplays() { in getWindowsOnAllDisplays()
1936 AccessibilityWindowInfo.ANY_WINDOW_ID, AccessibilityNodeInfo.ROOT_NODE_ID, focus); in findFocus()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityWindowManagerTest.java52 import android.view.accessibility.AccessibilityWindowInfo;
91 private static final int INVALID_ID = AccessibilityWindowInfo.UNDEFINED_WINDOW_ID;
190 AccessibilityWindowInfo.UNDEFINED_WINDOW_ID); in stopTrackingWindows_shouldClearWindows()
206 AccessibilityWindowInfo.UNDEFINED_WINDOW_ID); in stopTrackingWindows_onNonTopFocusedDisplay_shouldNotResetTopFocusWindow()
288 List<AccessibilityWindowInfo> a11yWindows = in onWindowsChanged_shouldReportCorrectLayer()
291 final AccessibilityWindowInfo a11yWindow = a11yWindows.get(i); in onWindowsChanged_shouldReportCorrectLayer()
301 List<AccessibilityWindowInfo> a11yWindows = in onWindowsChanged_shouldReportCorrectOrder()
304 final AccessibilityWindowInfo a11yWindow = a11yWindows.get(i); in onWindowsChanged_shouldReportCorrectOrder()
339 final AccessibilityWindowInfo oldWindow = in onWindowsChangedNoForceSend_windowChanged_shouldUpdateWindows()
344 windowInfo.type = AccessibilityWindowInfo.TYPE_APPLICATION; in onWindowsChangedNoForceSend_windowChanged_shouldUpdateWindows()
[all …]
DAbstractAccessibilityServiceConnectionTest.java88 import android.view.accessibility.AccessibilityWindowInfo;
146 private final List<AccessibilityWindowInfo> mA11yWindowInfos = new ArrayList<>();
147 private final List<AccessibilityWindowInfo> mA11yWindowInfosOnSecondDisplay = new ArrayList<>();
296 final AccessibilityWindowInfo.WindowListSparseArray allWindows = in getWindows()
755 private AccessibilityWindowInfo addA11yWindowInfo(List<AccessibilityWindowInfo> infos, in addA11yWindowInfo()
757 final AccessibilityWindowInfo info = AccessibilityWindowInfo.obtain(); in addA11yWindowInfo()
806 AccessibilityWindowInfo.PICTURE_IN_PICTURE_ACTION_REPLACER_WINDOW_ID); in verifyReplaceActions()
DActionReplacingCallbackTest.java24 import android.view.accessibility.AccessibilityWindowInfo;
281 AccessibilityWindowInfo.PICTURE_IN_PICTURE_ACTION_REPLACER_WINDOW_ID); in getReplacerNodes()
289 AccessibilityWindowInfo.PICTURE_IN_PICTURE_ACTION_REPLACER_WINDOW_ID); in getReplacerNodes()
DAccessibilitySecurityPolicyTest.java52 import android.view.accessibility.AccessibilityWindowInfo;
189 .thenReturn(AccessibilityWindowInfo.obtain()); in canDispatchAccessibilityEvent_otherEvents_windowIdExist_returnTrue()
353 .thenReturn(AccessibilityWindowInfo.obtain()); in canGetAccessibilityNodeInfo_hasCapAndWindowExist_returnTrue()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DAccessibilityNodeInfoDumper.java29 import android.view.accessibility.AccessibilityWindowInfo;
115 public static void dumpWindowsToFile(SparseArray<List<AccessibilityWindowInfo>> allWindows, in dumpWindowsToFile()
134 final List<AccessibilityWindowInfo> windows = allWindows.valueAt(d); in dumpWindowsToFile()
159 private static void dumpWindowRec(AccessibilityWindowInfo winfo, XmlSerializer serializer, in dumpWindowRec()
174 serializer.attribute("", "type", AccessibilityWindowInfo.typeToString(winfo.getType())); in dumpWindowRec()
177 AccessibilityWindowInfo child = winfo.getChild(i); in dumpWindowRec()
/frameworks/base/core/java/android/app/
DUiAutomation.java55 import android.view.accessibility.AccessibilityWindowInfo;
482 AccessibilityWindowInfo.ANY_WINDOW_ID, AccessibilityNodeInfo.ROOT_NODE_ID, focus); in findFocus()
554 public List<AccessibilityWindowInfo> getWindows() { in getWindows()
583 public SparseArray<List<AccessibilityWindowInfo>> getWindowsOnAllDisplays() { in getWindowsOnAllDisplays()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipAccessibilityInteractionConnection.java26 import android.view.accessibility.AccessibilityWindowInfo;
247 AccessibilityWindowInfo.PICTURE_IN_PICTURE_ACTION_REPLACER_WINDOW_ID); in obtainRootAccessibilityNodeInfo()
DPipTouchHandler.java50 import android.view.accessibility.AccessibilityWindowInfo;
762 AccessibilityWindowInfo.PICTURE_IN_PICTURE_ACTION_REPLACER_WINDOW_ID); in sendAccessibilityHoverEvent()
/frameworks/base/core/java/android/text/style/
DAccessibilityClickableSpan.java21 import static android.view.accessibility.AccessibilityWindowInfo.UNDEFINED_WINDOW_ID;
/frameworks/base/core/java/android/view/autofill/
DAutofillManager.java68 import android.view.accessibility.AccessibilityWindowInfo;
2825 private int mFocusedWindowId = AccessibilityWindowInfo.UNDEFINED_WINDOW_ID;
2910 if (mFocusedWindowId != AccessibilityWindowInfo.UNDEFINED_WINDOW_ID in onAccessibilityEvent()
2913 mFocusedWindowId = AccessibilityWindowInfo.UNDEFINED_WINDOW_ID; in onAccessibilityEvent()

12