/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AccessibilityWindowManager.java | 690 if (windowId < 0) { in populateReportedWindowLocked() 839 mWindowId = windowId; in RemoteAccessibilityConnection() 988 final int windowId; in addAccessibilityInteractionConnection() local 1050 return windowId; in addAccessibilityInteractionConnection() 1135 return windowId; in removeAccessibilityInteractionConnectionInternalLocked() 1178 if (!isTrackingWindowsLocked() && windowId >= 0 && mActiveWindowId == windowId) { in onAccessibilityInteractionConnectionRemovedLocked() 1189 unregisterIdLocked(windowId); in onAccessibilityInteractionConnectionRemovedLocked() 1272 return windowId; in resolveParentWindowIdLocked() 1488 windowId = resolveParentWindowIdLocked(windowId); in findA11yWindowInfoByIdLocked() 1504 windowId = resolveParentWindowIdLocked(windowId); in findWindowInfoByIdLocked() [all …]
|
H A D | AccessibilitySecurityPolicy.java | 286 @NonNull AbstractAccessibilityServiceConnection service, int windowId) { in canGetAccessibilityNodeInfoLocked() argument 288 && isRetrievalAllowingWindowLocked(userId, windowId); in canGetAccessibilityNodeInfoLocked() 456 private boolean isRetrievalAllowingWindowLocked(int userId, int windowId) { in isRetrievalAllowingWindowLocked() argument 462 if (!isShellAllowedToRetrieveWindowLocked(userId, windowId)) { in isRetrievalAllowingWindowLocked() 466 if (mAccessibilityWindowManager.resolveParentWindowIdLocked(windowId) in isRetrievalAllowingWindowLocked() 470 return mAccessibilityWindowManager.findA11yWindowInfoByIdLocked(windowId) != null; in isRetrievalAllowingWindowLocked() 473 private boolean isShellAllowedToRetrieveWindowLocked(int userId, int windowId) { in isShellAllowedToRetrieveWindowLocked() argument 477 .getWindowTokenForUserAndWindowIdLocked(userId, windowId); in isShellAllowedToRetrieveWindowLocked()
|
H A D | AbstractAccessibilityServiceConnection.java | 209 @Nullable MagnificationSpec getCompatibleMagnificationSpecLocked(int windowId); in getCompatibleMagnificationSpecLocked() argument 463 public AccessibilityWindowInfo getWindow(int windowId) { in getWindow() argument 465 logTraceSvcConn("getWindow", "windowId=" + windowId); in getWindow() 469 if (windowId != AccessibilityWindowInfo.UNDEFINED_WINDOW_ID) { in getWindow() 471 mSystemSupport.getCurrentUserIdLocked(), windowId); in getWindow() 487 mA11yWindowManager.findA11yWindowInfoByIdLocked(windowId); in getWindow() 1679 private int resolveAccessibilityWindowIdForFindFocusLocked(int windowId, int focusType) { in resolveAccessibilityWindowIdForFindFocusLocked() argument 1680 if (windowId == AccessibilityWindowInfo.ACTIVE_WINDOW_ID) { in resolveAccessibilityWindowIdForFindFocusLocked() 1683 if (windowId == AccessibilityWindowInfo.ANY_WINDOW_ID) { in resolveAccessibilityWindowIdForFindFocusLocked() 1686 return windowId; in resolveAccessibilityWindowIdForFindFocusLocked()
|
/aosp12/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityCache.java | 148 final int windowId = window.getId(); in addWindowByDisplayLocked() local 354 public AccessibilityWindowInfo getWindow(int windowId) { in getWindow() argument 384 final int windowId = info.getWindowId(); in add() local 388 mNodeCache.put(windowId, nodes); in add() 411 clearNodesForWindowLocked(windowId); in add() 435 mAccessibilityFocusedWindow = windowId; in add() 457 final int windowId = mNodeCache.keyAt(i); in clear() local 458 clearNodesForWindowLocked(windowId); in clear() 491 private void clearNodesForWindowLocked(int windowId) { in clearNodesForWindowLocked() argument 499 mNodeCache.remove(windowId); in clearNodesForWindowLocked() [all …]
|
H A D | AccessibilityInteractionClient.java | 450 int windowId = -1; in findAccessibilityNodeInfoByAccessibilityId() local 454 windowId = connection.getWindowIdForLeashToken(leashToken); in findAccessibilityNodeInfoByAccessibilityId() 463 if (windowId == -1) { in findAccessibilityNodeInfoByAccessibilityId() 466 return findAccessibilityNodeInfoByAccessibilityId(connectionId, windowId, in findAccessibilityNodeInfoByAccessibilityId() 1254 private void updateScrollingWindow(int windowId, long uptimeMillis) { in updateScrollingWindow() argument 1256 sScrollingWindows.put(windowId, uptimeMillis); in updateScrollingWindow() 1265 private void deleteScrollingWindow(int windowId) { in deleteScrollingWindow() argument 1267 sScrollingWindows.delete(windowId); in deleteScrollingWindow() 1277 private boolean isWindowScrolling(int windowId) { in isWindowScrolling() argument 1279 final long latestScrollingTime = sScrollingWindows.get(windowId); in isWindowScrolling() [all …]
|
H A D | IAccessibilityManager.aidl | 70 IBinder getWindowToken(int windowId, int userId); in getWindowToken() argument
|
H A D | AccessibilityRecord.java | 211 public void setWindowId(int windowId) { in setWindowId() argument 212 mSourceWindowId = windowId; in setWindowId()
|
/aosp12/packages/apps/Car/RotaryController/src/com/android/car/rotary/ |
H A D | WindowCache.java | 55 void saveFocusedNode(int windowId, @NonNull AccessibilityNodeInfo focusedNode) { in saveFocusedNode() argument 56 if (mFocusedNodes.containsKey(windowId)) { in saveFocusedNode() 58 AccessibilityNodeInfo oldNode = mFocusedNodes.remove(windowId); in saveFocusedNode() 61 mFocusedNodes.put(windowId, copyNode(focusedNode)); in saveFocusedNode() 68 void saveWindowType(int windowId, int windowType) { in saveWindowType() argument 69 Integer id = windowId; in saveWindowType() 76 mWindowTypes.put(windowId, windowType); in saveWindowType() 82 void remove(int windowId) { in remove() argument 83 Integer id = windowId; in remove() 95 Integer getWindowType(int windowId) { in getWindowType() argument [all …]
|
H A D | Utils.java | 341 int windowId) { in findWindowWithId() argument 343 if (window.getId() == windowId) { in findWindowWithId()
|
H A D | RotaryService.java | 1300 int windowId = event.getWindowId(); in handleWindowRemovedEvent() local 1302 Integer type = mWindowCache.getWindowType(windowId); in handleWindowRemovedEvent() 1304 mWindowCache.remove(windowId); in handleWindowRemovedEvent() 1316 L.w("No window type found in cache for window ID: " + windowId); in handleWindowRemovedEvent() 1326 if (mFocusedNode == null || mFocusedNode.getWindowId() != windowId) { in handleWindowRemovedEvent() 1344 int windowId = event.getWindowId(); in handleWindowAddedEvent() local 1346 AccessibilityWindowInfo window = Utils.findWindowWithId(windows, windowId); in handleWindowAddedEvent() 1353 mWindowCache.saveWindowType(windowId, window.getType()); in handleWindowAddedEvent() 1362 if (mFocusedNode != null && mFocusedNode.getWindowId() == windowId) { in handleWindowAddedEvent()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | AccessibilityWindowManagerTest.java | 414 USER_SYSTEM_ID, windowId); in findWindowId() 426 assertEquals(windowId, mA11yWindowManager.resolveParentWindowIdLocked(windowId)); in resolveParentWindowId_windowIsNotEmbedded_shouldReturnGivenId() 431 final int windowId = -1; in resolveParentWindowId_windowIsNotRegistered_shouldReturnGivenId() local 432 assertEquals(windowId, mA11yWindowManager.resolveParentWindowIdLocked(windowId)); in resolveParentWindowId_windowIsNotRegistered_shouldReturnGivenId() 754 assertTrue(windowId >= 0); in addAccessibilityInteractionConnection_profileUser_findInParentUser() 771 int windowId = -1; in setAccessibilityWindowIdToSurfaceMetadata() local 779 token.asBinder(), windowId); in setAccessibilityWindowIdToSurfaceMetadata() local 824 assertEquals(windowId, INVALID_ID); in getWindowIdLocked_windowIsNotRegistered_shouldReturnInvalidWindowId() 946 return windowId; in addAccessibilityInteractionConnection() 1014 WindowIdMatcher(int windowId) { in WindowIdMatcher() argument [all …]
|
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/ |
H A D | CaptionTrackRenderer.java | 194 private void setCurrentWindowLayout(int windowId) { in setCurrentWindowLayout() argument 195 if (windowId < 0 || windowId >= mCaptionWindowLayouts.length) { in setCurrentWindowLayout() 198 CaptionWindowLayout windowLayout = mCaptionWindowLayouts[windowId]; in setCurrentWindowLayout() 203 Log.d(TAG, "setCurrentWindowLayout to " + windowId); in setCurrentWindowLayout() 301 int windowId = window.id; in defineWindow() local 302 if (windowId < 0 || windowId >= mCaptionWindowLayouts.length) { in defineWindow() 305 CaptionWindowLayout windowLayout = mCaptionWindowLayouts[windowId]; in defineWindow() 310 mCurrentWindowLayout = mCaptionWindowLayouts[windowId] = windowLayout; in defineWindow()
|
/aosp12/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/vehiclectrl/ |
H A D | VehicleCtrlFragment.java | 131 private void moveWindow(int windowId, int speed) { in moveWindow() argument 132 Log.i(TAG, "Moving window " + windowId + " with speed " + speed); in moveWindow() 133 mPropMgr.setIntProperty(VehiclePropertyIds.WINDOW_MOVE, windowId, speed); in moveWindow() 136 private void updateWindowPos(int windowId, int pos) { in updateWindowPos() argument 137 TextView view = mWindowPosWidgets.get(windowId); in updateWindowPos()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
H A D | AccessibilityInteractionClientTest.java | 61 final int windowId = 0x1234; in findA11yNodeInfoByA11yId_whenBypassingCache_doesntTouchCache() local 64 nodeFromConnection.setSourceNodeId(accessibilityNodeId, windowId); in findA11yNodeInfoByA11yId_whenBypassingCache_doesntTouchCache() 68 MOCK_CONNECTION_ID, windowId, accessibilityNodeId, true, 0, null); in findA11yNodeInfoByA11yId_whenBypassingCache_doesntTouchCache()
|
H A D | AccessibilityCacheTest.java | 789 private AccessibilityWindowInfo obtainAccessibilityWindowInfo(int windowId, int layer) { in obtainAccessibilityWindowInfo() argument 791 windowInfo.setId(windowId); in obtainAccessibilityWindowInfo() 796 private void putWindowWithWindowIdAndDisplayIdInCache(int windowId, int displayId, int layer) { in putWindowWithWindowIdAndDisplayIdInCache() argument 797 AccessibilityWindowInfo windowInfo = obtainAccessibilityWindowInfo(windowId, layer); in putWindowWithWindowIdAndDisplayIdInCache() 803 private AccessibilityNodeInfo getNodeWithA11yAndWindowId(int a11yId, int windowId) { in getNodeWithA11yAndWindowId() argument 805 AccessibilityNodeInfo.obtain(getMockViewWithA11yAndWindowIds(a11yId, windowId)); in getNodeWithA11yAndWindowId() 810 private View getMockViewWithA11yAndWindowIds(int a11yId, int windowId) { in getMockViewWithA11yAndWindowIds() argument 813 when(mockView.getAccessibilityWindowId()).thenReturn(windowId); in getMockViewWithA11yAndWindowIds()
|
H A D | AccessibilityServiceConnectionImpl.java | 74 public AccessibilityWindowInfo getWindow(int windowId) { in getWindow() argument
|
/aosp12/frameworks/base/core/java/android/transition/ |
H A D | Transition.java | 1680 WindowId windowId = sceneRoot.getWindowId(); in pause() local 1683 if (info.view != null && windowId != null && windowId.equals(info.windowId)) { in pause() 1713 WindowId windowId = sceneRoot.getWindowId(); in resume() local 1716 if (info.view != null && windowId != null && windowId.equals(info.windowId)) { in resume() 1746 WindowId windowId = sceneRoot.getWindowId(); in playTransition() local 1751 if (oldInfo != null && oldInfo.view != null && oldInfo.windowId == windowId) { in playTransition() 1957 WindowId windowId = sceneRoot.getWindowId(); in forceToEnd() local 1963 if (info.view != null && windowId != null && windowId.equals(info.windowId)) { in forceToEnd() 2364 WindowId windowId; field in Transition.AnimationInfo 2368 WindowId windowId, TransitionValues values) { in AnimationInfo() argument [all …]
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | IUiAutomationConnection.aidl | 47 boolean clearWindowContentFrameStats(int windowId); in clearWindowContentFrameStats() argument 48 WindowContentFrameStats getWindowContentFrameStats(int windowId); in getWindowContentFrameStats() argument
|
H A D | UiAutomation.java | 1106 public boolean clearWindowContentFrameStats(int windowId) { in clearWindowContentFrameStats() argument 1112 Log.i(LOG_TAG, "Clearing content frame stats for window: " + windowId); in clearWindowContentFrameStats() 1115 return mUiAutomationConnection.clearWindowContentFrameStats(windowId); in clearWindowContentFrameStats() 1153 public WindowContentFrameStats getWindowContentFrameStats(int windowId) { in getWindowContentFrameStats() argument 1159 Log.i(LOG_TAG, "Getting content frame stats for window: " + windowId); in getWindowContentFrameStats() 1162 return mUiAutomationConnection.getWindowContentFrameStats(windowId); in getWindowContentFrameStats()
|
H A D | UiAutomationConnection.java | 237 public boolean clearWindowContentFrameStats(int windowId) throws RemoteException { in clearWindowContentFrameStats() argument 246 IBinder token = mAccessibilityManager.getWindowToken(windowId, callingUserId); in clearWindowContentFrameStats() 257 public WindowContentFrameStats getWindowContentFrameStats(int windowId) throws RemoteException { in getWindowContentFrameStats() argument 266 IBinder token = mAccessibilityManager.getWindowToken(windowId, callingUserId); in getWindowContentFrameStats()
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | Cea708CaptionRenderer.java | 381 int windowId = mCommand - Const.CODE_C1_CW0; in parseC1() local 384 Log.d(TAG, String.format("CaptionCommand CWX windowId: %d", windowId)); in parseC1() 586 int windowId = mCommand - Const.CODE_C1_DF0; in parseC1() local 1477 private void setCurrentWindowLayout(int windowId) { in setCurrentWindowLayout() argument 1478 if (windowId < 0 || windowId >= mCaptionWindowLayouts.length) { in setCurrentWindowLayout() 1481 CCWindowLayout windowLayout = mCaptionWindowLayouts[windowId]; in setCurrentWindowLayout() 1486 Log.d(TAG, "setCurrentWindowLayout to " + windowId); in setCurrentWindowLayout() 1581 int windowId = window.id; in defineWindow() local 1582 if (windowId < 0 || windowId >= mCaptionWindowLayouts.length) { in defineWindow() 1585 CCWindowLayout windowLayout = mCaptionWindowLayouts[windowId]; in defineWindow() [all …]
|
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/data/ |
H A D | Cea708Parser.java | 491 int windowId = mCommand - Cea708Data.CODE_C1_CW0; in parseC1() local 492 emitCaptionEvent(new CaptionEvent(CAPTION_EMIT_TYPE_COMMAND_CWX, windowId)); in parseC1() 494 Log.d(TAG, String.format("CaptionCommand CWX windowId: %d", windowId)); in parseC1() 758 int windowId = mCommand - Cea708Data.CODE_C1_DF0; in parseC1() local 776 windowId, in parseC1() 798 windowId, in parseC1()
|
/aosp12/frameworks/base/core/java/android/view/autofill/ |
H A D | AutofillManager.java | 3044 final int windowId = event.getWindowId(); in onAccessibilityEvent() local 3046 if (notifyViewEntered(windowId, nodeId, mFocusedBounds)) { in onAccessibilityEvent() 3047 mFocusedWindowId = windowId; in onAccessibilityEvent() 3089 final View view = findViewByAccessibilityId(windowId, nodeId); in notifyViewEntered() 3110 private void notifyViewExited(int windowId, long nodeId) { in notifyViewExited() argument 3115 final View view = findViewByAccessibilityId(windowId, nodeId); in notifyViewExited() 3122 private void notifyValueChanged(int windowId, long nodeId) { in notifyValueChanged() argument 3127 final View view = findViewByAccessibilityId(windowId, nodeId); in notifyValueChanged() 3139 private void notifyViewClicked(int windowId, long nodeId) { in notifyViewClicked() argument 3144 final View view = findViewByAccessibilityId(windowId, nodeId); in notifyViewClicked() [all …]
|
/aosp12/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/ |
H A D | NodeBuilder.java | 215 NodeBuilder setWindowId(int windowId) { in setWindowId() argument 216 mWindowId = windowId; in setWindowId()
|
/aosp12/frameworks/base/core/java/android/accessibilityservice/ |
H A D | IAccessibilityServiceConnection.aidl | 65 AccessibilityWindowInfo getWindow(int windowId); in getWindow() argument
|