Lines Matching defs:windowId
486 final int windowId = sNextWindowId++;
492 windowId, connection, UserHandle.USER_ALL);
494 mGlobalInteractionConnections.put(windowId, wrapper);
495 mGlobalWindowTokens.put(windowId, windowToken.asBinder());
498 + " with windowId: " + windowId);
502 windowId, connection, resolvedUserId);
505 userState.mInteractionConnections.put(windowId, wrapper);
506 userState.mWindowTokens.put(windowId, windowToken.asBinder());
509 + " with windowId: " + windowId + " and userId:" + mCurrentUserId);
513 Slog.i(LOG_TAG, "Adding interaction connection to windowId: " + windowId);
515 return windowId;
529 + " with windowId: " + removedWindowId);
542 + " with windowId: " + removedWindowIdForUser + " and userId:"
557 final int windowId = windowTokens.keyAt(i);
559 AccessibilityConnectionWrapper wrapper = interactionConnections.get(windowId);
561 interactionConnections.remove(windowId);
562 return windowId;
742 final int windowId = mSecurityPolicy.mActiveWindowId;
743 token = mGlobalWindowTokens.get(windowId);
745 token = getCurrentUserStateLocked().mWindowTokens.get(windowId);
891 * @param windowId The id of the window to which the connection is targeted.
895 private void removeAccessibilityInteractionConnectionLocked(int windowId, int userId) {
897 mGlobalWindowTokens.remove(windowId);
898 mGlobalInteractionConnections.remove(windowId);
901 userState.mWindowTokens.remove(windowId);
902 userState.mInteractionConnections.remove(windowId);
905 Slog.i(LOG_TAG, "Removing interaction connection to windowId: " + windowId);
1537 public AccessibilityConnectionWrapper(int windowId,
1539 mWindowId = windowId;
1609 final int windowId = msg.arg1;
1611 mSecurityPolicy.updateActiveWindow(windowId, eventType);
2469 private IAccessibilityInteractionConnection getConnectionLocked(int windowId) {
2471 Slog.i(LOG_TAG, "Trying to get interaction connection to windowId: " + windowId);
2473 AccessibilityConnectionWrapper wrapper = mGlobalInteractionConnections.get(windowId);
2475 wrapper = getCurrentUserStateLocked().mInteractionConnections.get(windowId);
2481 Slog.e(LOG_TAG, "No interaction connection to window: " + windowId);
2493 private MagnificationSpec getCompatibleMagnificationSpec(int windowId) {
2495 IBinder windowToken = mGlobalWindowTokens.get(windowId);
2497 windowToken = getCurrentUserStateLocked().mWindowTokens.get(windowId);
2758 public void updateActiveWindow(int windowId, int eventType) {
2766 if (getFocusedWindowId() == windowId) {
2767 mActiveWindowId = windowId;
2774 mActiveWindowId = windowId;
2801 public boolean canGetAccessibilityNodeInfoLocked(Service service, int windowId) {
2802 return canRetrieveWindowContent(service) && isRetrievalAllowingWindow(windowId);
2805 public boolean canPerformActionLocked(Service service, int windowId, int action,
2808 && isRetrievalAllowingWindow(windowId)
2859 private boolean isRetrievalAllowingWindow(int windowId) {
2860 return (mActiveWindowId == windowId);
2890 int windowId = getFocusedWindowIdLocked(token, mGlobalWindowTokens);
2891 if (windowId < 0) {
2892 windowId = getFocusedWindowIdLocked(token,
2895 return windowId;