Lines Matching defs:windowId

637             final int windowId = sNextWindowId++;
643 windowId, connection, UserHandle.USER_ALL);
645 mGlobalInteractionConnections.put(windowId, wrapper);
646 mGlobalWindowTokens.put(windowId, windowToken.asBinder());
649 + " with windowId: " + windowId + " and token: " + windowToken.asBinder());
653 windowId, connection, resolvedUserId);
656 userState.mInteractionConnections.put(windowId, wrapper);
657 userState.mWindowTokens.put(windowId, windowToken.asBinder());
660 + " with windowId: " + windowId + " and userId:" + mCurrentUserId
664 return windowId;
682 + " with windowId: " + removedWindowId + " and token: " + window.asBinder());
695 + " with windowId: " + removedWindowIdForUser + " and userId:"
710 final int windowId = windowTokens.keyAt(i);
712 AccessibilityConnectionWrapper wrapper = interactionConnections.get(windowId);
714 interactionConnections.remove(windowId);
715 return windowId;
840 public IBinder getWindowToken(int windowId, int userId) {
853 if (mSecurityPolicy.findA11yWindowInfoById(windowId) == null) {
856 IBinder token = mGlobalWindowTokens.get(windowId);
860 return getCurrentUserStateLocked().mWindowTokens.get(windowId);
984 boolean getWindowBounds(int windowId, Rect outBounds) {
987 token = mGlobalWindowTokens.get(windowId);
989 token = getCurrentUserStateLocked().mWindowTokens.get(windowId);
1216 * @param windowId The id of the window to which the connection is targeted.
1220 private void removeAccessibilityInteractionConnectionLocked(int windowId, int userId) {
1222 mGlobalWindowTokens.remove(windowId);
1223 mGlobalInteractionConnections.remove(windowId);
1226 userState.mWindowTokens.remove(windowId);
1227 userState.mInteractionConnections.remove(windowId);
1230 Slog.i(LOG_TAG, "Removing interaction connection to windowId: " + windowId);
2196 private MagnificationSpec getCompatibleMagnificationSpecLocked(int windowId) {
2197 IBinder windowToken = mGlobalWindowTokens.get(windowId);
2199 windowToken = getCurrentUserStateLocked().mWindowTokens.get(windowId);
2362 public AccessibilityConnectionWrapper(int windowId,
2364 mWindowId = windowId;
2458 final int windowId = msg.arg1;
2459 getInteractionBridge().clearAccessibilityFocusNotLocked(windowId);
3022 public AccessibilityWindowInfo getWindow(int windowId) {
3033 AccessibilityWindowInfo window = mSecurityPolicy.findA11yWindowInfoById(windowId);
4075 private IAccessibilityInteractionConnection getConnectionLocked(int windowId) {
4077 Slog.i(LOG_TAG, "Trying to get interaction connection to windowId: " + windowId);
4079 AccessibilityConnectionWrapper wrapper = mGlobalInteractionConnections.get(windowId);
4081 wrapper = getCurrentUserStateLocked().mInteractionConnections.get(windowId);
4087 Slog.e(LOG_TAG, "No interaction connection to window: " + windowId);
4099 private int resolveAccessibilityWindowIdForFindFocusLocked(int windowId, int focusType) {
4100 if (windowId == AccessibilityWindowInfo.ACTIVE_WINDOW_ID) {
4103 if (windowId == AccessibilityWindowInfo.ANY_WINDOW_ID) {
4110 return windowId;
4252 final int windowId = findWindowIdLocked(window.token);
4253 if (windowId < 0) {
4259 reportedWindow.setId(windowId);
4365 public void clearAccessibilityFocusNotLocked(int windowId) {
4366 AccessibilityNodeInfo focus = getAccessibilityFocusNotLocked(windowId);
4438 private AccessibilityNodeInfo getAccessibilityFocusNotLocked(int windowId) {
4440 windowId, AccessibilityNodeInfo.ROOT_NODE_ID,
4554 final int windowId = window.getId();
4556 mFocusedWindowId = windowId;
4558 mActiveWindowId = windowId;
4560 } else if (windowId == mActiveWindowId) {
4565 mA11yWindowInfoById.put(windowId, window);
4566 mWindowInfoById.put(windowId, WindowInfo.obtain(windowInfo));
4591 public boolean computePartialInteractiveRegionForWindowLocked(int windowId,
4608 if (currentWindow.getId() == windowId) {
4634 public void updateActiveAndAccessibilityFocusedWindowLocked(int windowId, long nodeId,
4655 if (windowId == mFocusedWindowId) {
4656 mActiveWindowId = windowId;
4666 if (mTouchInteractionInProgress && mActiveWindowId != windowId) {
4667 setActiveWindowLocked(windowId);
4674 if (mAccessibilityFocusedWindowId != windowId) {
4677 mSecurityPolicy.setAccessibilityFocusedWindowLocked(windowId);
4691 && (mAccessibilityFocusedWindowId == windowId)
4741 private void setActiveWindowLocked(int windowId) {
4742 if (mActiveWindowId != windowId) {
4743 mActiveWindowId = windowId;
4748 window.setActive(window.getId() == windowId);
4755 private void setAccessibilityFocusedWindowLocked(int windowId) {
4756 if (mAccessibilityFocusedWindowId != windowId) {
4757 mAccessibilityFocusedWindowId = windowId;
4762 window.setAccessibilityFocused(window.getId() == windowId);
4786 public boolean canGetAccessibilityNodeInfoLocked(Service service, int windowId) {
4787 return canRetrieveWindowContentLocked(service) && isRetrievalAllowingWindow(windowId);
4872 private boolean isRetrievalAllowingWindow(int windowId) {
4877 if (windowId == mActiveWindowId) {
4880 return findA11yWindowInfoById(windowId) != null;
4883 private AccessibilityWindowInfo findA11yWindowInfoById(int windowId) {
4884 return mA11yWindowInfoById.get(windowId);
4887 private WindowInfo findWindowInfoById(int windowId) {
4888 return mWindowInfoById.get(windowId);