Home
last modified time | relevance | path

Searched refs:windowId (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityWindowManager.java158 public void setAccessibilityWindowAttributes(int displayId, int windowId, int userId, in setAccessibilityWindowAttributes() argument
164 if (getWindowTokenForUserAndWindowIdLocked(resolvedUserId, windowId) == null) { in setAccessibilityWindowAttributes()
167 mWindowAttributes.put(windowId, attributes); in setAccessibilityWindowAttributes()
168 shouldComputeWindows = findWindowInfoByIdLocked(windowId) != null; in setAccessibilityWindowAttributes()
291 AccessibilityWindowInfo findA11yWindowInfoByIdLocked(int windowId) { in findA11yWindowInfoByIdLocked() argument
292 return mA11yWindowInfoById.get(windowId); in findA11yWindowInfoByIdLocked()
302 WindowInfo findWindowInfoByIdLocked(int windowId) { in findWindowInfoByIdLocked() argument
303 return mWindowInfoById.get(windowId); in findWindowInfoByIdLocked()
331 boolean setActiveWindowLocked(int windowId) { in setActiveWindowLocked() argument
337 if (window.getId() == windowId) { in setActiveWindowLocked()
[all …]
DAccessibilitySecurityPolicy.java318 @NonNull AbstractAccessibilityServiceConnection service, int windowId) { in canGetAccessibilityNodeInfoLocked() argument
320 && isRetrievalAllowingWindowLocked(userId, windowId); in canGetAccessibilityNodeInfoLocked()
531 private boolean isRetrievalAllowingWindowLocked(int userId, int windowId) { in isRetrievalAllowingWindowLocked() argument
537 if (!isShellAllowedToRetrieveWindowLocked(userId, windowId)) { in isRetrievalAllowingWindowLocked()
541 if (mAccessibilityWindowManager.resolveParentWindowIdLocked(windowId) in isRetrievalAllowingWindowLocked()
545 return mAccessibilityWindowManager.findA11yWindowInfoByIdLocked(windowId) != null; in isRetrievalAllowingWindowLocked()
548 private boolean isShellAllowedToRetrieveWindowLocked(int userId, int windowId) { in isShellAllowedToRetrieveWindowLocked() argument
552 .getWindowTokenForUserAndWindowIdLocked(userId, windowId); in isShellAllowedToRetrieveWindowLocked()
/frameworks/libs/systemui/motiontoollib/src/com/android/app/motiontool/
DMotionToolManager.kt64 fun hasWindow(windowId: WindowIdentifier): Boolean { in hasWindow()
65 val rootView = getRootView(windowId.rootWindow) in hasWindow()
71 fun beginTrace(windowId: String): Int { in beginTrace()
74 val rootView = getRootView(windowId) ?: throw WindowNotFoundException(windowId) in beginTrace()
75 val autoCloseable = viewCapture.startCapture(rootView, windowId) in beginTrace()
76 traces[traceId] = TraceMetadata(windowId, 0, autoCloseable::close) in beginTrace()
121 getRootView(traceMetadata.windowId) in getDataFromViewCapture()
122 ?: throw WindowNotFoundException(traceMetadata.windowId) in getDataFromViewCapture()
136 private fun getRootView(windowId: String): View? { in getRootView()
137 return windowManagerGlobal.getRootView(windowId) in getRootView()
[all …]
DDdmHandleMotionTool.kt146 setError(createWindowNotFoundResponse(e.windowId)) in MotionToolsResponse()
156 private fun createWindowNotFoundResponse(windowId: String) = in createWindowNotFoundResponse()
159 this.message = "No window found with windowId $windowId" in createWindowNotFoundResponse()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityCache.java196 final int windowId = window.getId(); in addWindowByDisplayLocked() local
197 windows.put(windowId, new AccessibilityWindowInfo(window)); in addWindowByDisplayLocked()
261 final int windowId = event.getWindowId(); in onAccessibilityEvent() local
265 clearSubTreeLocked(windowId, sourceId); in onAccessibilityEvent()
267 nodeToRefresh = removeCachedNodeLocked(windowId, sourceId); in onAccessibilityEvent()
305 private AccessibilityNodeInfo removeCachedNodeLocked(int windowId, long sourceId) { in removeCachedNodeLocked() argument
309 LongSparseArray<AccessibilityNodeInfo> nodes = mNodeCache.get(windowId); in removeCachedNodeLocked()
330 public AccessibilityNodeInfo getNode(int windowId, long accessibilityNodeId) { in getNode() argument
338 LongSparseArray<AccessibilityNodeInfo> nodes = mNodeCache.get(windowId); in getNode()
360 int windowId = info.getWindowId(); in isNodeInCache() local
[all …]
DIAccessibilityManager.aidl85 IBinder getWindowToken(int windowId, int userId); in getWindowToken() argument
145 …oneway void setAccessibilityWindowAttributes(int displayId, int windowId, int userId, in Accessibi… in setAccessibilityWindowAttributes() argument
182 WindowTransformationSpec getWindowTransformationSpec(int windowId); in getWindowTransformationSpec() argument
DAccessibilityInteractionClient.java569 int windowId = -1; in findAccessibilityNodeInfoByAccessibilityId() local
573 windowId = connection.getWindowIdForLeashToken(leashToken); in findAccessibilityNodeInfoByAccessibilityId()
582 if (windowId == -1) { in findAccessibilityNodeInfoByAccessibilityId()
585 return findAccessibilityNodeInfoByAccessibilityId(connectionId, windowId, in findAccessibilityNodeInfoByAccessibilityId()
1571 private void updateScrollingWindow(int windowId, long uptimeMillis) { in updateScrollingWindow() argument
1573 sScrollingWindows.put(windowId, uptimeMillis); in updateScrollingWindow()
1582 private void deleteScrollingWindow(int windowId) { in deleteScrollingWindow() argument
1584 sScrollingWindows.delete(windowId); in deleteScrollingWindow()
1594 private boolean isWindowScrolling(int windowId) { in isWindowScrolling() argument
1596 final long latestScrollingTime = sScrollingWindows.get(windowId); in isWindowScrolling()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityWindowManagerWithAccessibilityWindowTest.java21 …erver.accessibility.AccessibilityWindowManagerWithAccessibilityWindowTest.WindowIdMatcher.windowId;
359 final int windowId = mA11yWindowManager.findWindowIdLocked( in onWindowsChanged_shouldNotReportNonTouchableWindow() local
366 assertThat(a11yWindows, not(hasItem(windowId(windowId)))); in onWindowsChanged_shouldNotReportNonTouchableWindow()
374 final int windowId = mA11yWindowManager.findWindowIdLocked( in onWindowsChanged_shouldReportFocusedNonTouchableWindow() local
381 assertThat(a11yWindows, hasItem(windowId(windowId))); in onWindowsChanged_shouldReportFocusedNonTouchableWindow()
433 assertThat(a11yWindows.get(0), windowId(frontWindowId)); in onWindowsChanged_shouldReportFocusedWindowEvenIfOccluded()
434 assertThat(a11yWindows.get(1), windowId(focusedWindowId)); in onWindowsChanged_shouldReportFocusedWindowEvenIfOccluded()
465 assertThat(a11yWindows, not(hasItem(windowId(embeddedWindowId)))); in onWindowsChanged_embeddedWindows_shouldOnlyReportHost()
466 assertThat(a11yWindows.get(0), windowId(hostWindowId)); in onWindowsChanged_embeddedWindows_shouldOnlyReportHost()
489 assertThat(a11yWindows, hasItem(windowId(frontWindowId))); in onWindowsChanged_shouldNotReportfullyOccludedWindow()
[all …]
DAccessibilityWindowManagerTest.java399 final int windowId = mA11yWindowTokens.keyAt(i); in removeAccessibilityInteractionConnection_byWindowToken_shouldRemoved() local
401 assertNotNull(mA11yWindowManager.getConnectionLocked(USER_SYSTEM_ID, windowId)); in removeAccessibilityInteractionConnection_byWindowToken_shouldRemoved()
404 assertNull(mA11yWindowManager.getConnectionLocked(USER_SYSTEM_ID, windowId)); in removeAccessibilityInteractionConnection_byWindowToken_shouldRemoved()
411 final int windowId = mA11yWindowTokens.keyAt(i); in remoteAccessibilityConnection_binderDied_shouldRemoveConnection() local
413 mA11yWindowManager.getConnectionLocked(USER_SYSTEM_ID, windowId); in remoteAccessibilityConnection_binderDied_shouldRemoveConnection()
417 assertNull(mA11yWindowManager.getConnectionLocked(USER_SYSTEM_ID, windowId)); in remoteAccessibilityConnection_binderDied_shouldRemoveConnection()
426 final int windowId = windows.get(i).getId(); in getWindowTokenForUserAndWindowId_shouldNotNull() local
429 USER_SYSTEM_ID, windowId)); in getWindowTokenForUserAndWindowId_shouldNotNull()
438 final int windowId = windows.get(i).getId(); in findWindowId() local
440 USER_SYSTEM_ID, windowId); in findWindowId()
[all …]
/frameworks/native/services/inputflinger/tests/
DFakeInputTracingBackend.cpp66 void VerifyingTrace::expectKeyDispatchTraced(const KeyEvent& event, int32_t windowId) { in expectKeyDispatchTraced() argument
68 mExpectedEvents.emplace_back(event, windowId); in expectKeyDispatchTraced()
71 void VerifyingTrace::expectMotionDispatchTraced(const MotionEvent& event, int32_t windowId) { in expectMotionDispatchTraced() argument
73 mExpectedEvents.emplace_back(event, windowId); in expectMotionDispatchTraced()
83 for (const auto& [expectedEvent, windowId] : mExpectedEvents) { in verifyExpectedEventsTraced()
85 REQUIRES(mLock) { result = verifyEventTraced(event, windowId); }, in verifyExpectedEventsTraced()
122 return args.windowId == expectedWindowId && in verifyEventTraced()
DFakeInputTracingBackend.h42 void expectKeyDispatchTraced(const KeyEvent& event, int32_t windowId);
45 void expectMotionDispatchTraced(const MotionEvent& event, int32_t windowId);
71 base::Result<void> verifyEventTraced(const Event&, int32_t windowId) const REQUIRES(mLock);
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityInteractionClientTest.java67 final int windowId = 0x1234; in findA11yNodeInfoByA11yId_whenBypassingCache_doesntTouchCache() local
70 nodeFromConnection.setSourceNodeId(accessibilityNodeId, windowId); in findA11yNodeInfoByA11yId_whenBypassingCache_doesntTouchCache()
74 MOCK_CONNECTION_ID, windowId, accessibilityNodeId, true, 0, null); in findA11yNodeInfoByA11yId_whenBypassingCache_doesntTouchCache()
DAccessibilityCacheTest.java930 int windowId) { in assertFocus() argument
932 focusType, nodeId, windowId); in assertFocus()
1056 private AccessibilityWindowInfo obtainAccessibilityWindowInfo(int windowId, int layer) { in obtainAccessibilityWindowInfo() argument
1058 windowInfo.setId(windowId); in obtainAccessibilityWindowInfo()
1063 private void putWindowWithWindowIdAndDisplayIdInCache(int windowId, int displayId, int layer) { in putWindowWithWindowIdAndDisplayIdInCache() argument
1064 AccessibilityWindowInfo windowInfo = obtainAccessibilityWindowInfo(windowId, layer); in putWindowWithWindowIdAndDisplayIdInCache()
1070 private AccessibilityNodeInfo getNodeWithA11yAndWindowId(int a11yId, int windowId) { in getNodeWithA11yAndWindowId() argument
1072 AccessibilityNodeInfo.obtain(getMockViewWithA11yAndWindowIds(a11yId, windowId)); in getNodeWithA11yAndWindowId()
1077 private View getMockViewWithA11yAndWindowIds(int a11yId, int windowId) { in getMockViewWithA11yAndWindowIds() argument
1080 when(mockView.getAccessibilityWindowId()).thenReturn(windowId); in getMockViewWithA11yAndWindowIds()
/frameworks/libs/systemui/motiontoollib/tests/com/android/app/motiontool/
DDdmHandleMotionToolTest.kt164 private fun performBeginTraceRequest(windowId: String): MotionToolsResponse { in <lambda>()
168 .setRootWindow(windowId))) in <lambda>()
173 private fun performHandshakeRequest(windowId: String): MotionToolsResponse { in <lambda>()
177 .setRootWindow(windowId)) in <lambda>()
/frameworks/base/core/java/android/transition/
DTransition.java1684 WindowId windowId = sceneRoot.getWindowId(); in pause() local
1687 if (info.view != null && windowId != null && windowId.equals(info.windowId)) { in pause()
1717 WindowId windowId = sceneRoot.getWindowId(); in resume() local
1720 if (info.view != null && windowId != null && windowId.equals(info.windowId)) { in resume()
1750 WindowId windowId = sceneRoot.getWindowId(); in playTransition() local
1755 if (oldInfo != null && oldInfo.view != null && oldInfo.windowId == windowId) { in playTransition()
1961 WindowId windowId = sceneRoot.getWindowId(); in forceToEnd() local
1967 if (info.view != null && windowId != null && windowId.equals(info.windowId)) { in forceToEnd()
2368 WindowId windowId; field in Transition.AnimationInfo
2372 WindowId windowId, TransitionValues values) { in AnimationInfo() argument
[all …]
/frameworks/base/core/java/android/app/
DIUiAutomationConnection.aidl50 boolean clearWindowContentFrameStats(int windowId); in clearWindowContentFrameStats() argument
51 WindowContentFrameStats getWindowContentFrameStats(int windowId); in getWindowContentFrameStats() argument
/frameworks/hardware/interfaces/cameraservice/device/aidl/aidl_api/android.frameworks.cameraservice.device/current/android/frameworks/cameraservice/device/
DStreamAndWindowId.aidl38 int windowId;
/frameworks/hardware/interfaces/cameraservice/device/aidl/aidl_api/android.frameworks.cameraservice.device/2/android/frameworks/cameraservice/device/
DStreamAndWindowId.aidl38 int windowId;
/frameworks/hardware/interfaces/cameraservice/device/aidl/android/frameworks/cameraservice/device/
DStreamAndWindowId.aidl34 int windowId;
/frameworks/hardware/interfaces/cameraservice/device/aidl/aidl_api/android.frameworks.cameraservice.device/1/android/frameworks/cameraservice/device/
DStreamAndWindowId.aidl38 int windowId;
/frameworks/native/services/inputflinger/dispatcher/trace/
DInputTracer.cpp214 const int32_t windowId = dispatchEntry.windowId.value_or(0); in traceEventDispatch() local
215 const int32_t vsyncId = dispatchEntry.windowId.has_value() ? dispatchEntry.vsyncId : 0; in traceEventDispatch()
223 windowId, in traceEventDispatch()
/frameworks/base/media/java/android/media/
DCea708CaptionRenderer.java381 int windowId = mCommand - Const.CODE_C1_CW0; in parseC1() local
382 emitCaptionEvent(new CaptionEvent(CAPTION_EMIT_TYPE_COMMAND_CWX, windowId)); in parseC1()
384 Log.d(TAG, String.format("CaptionCommand CWX windowId: %d", windowId)); in parseC1()
586 int windowId = mCommand - Const.CODE_C1_DF0; in parseC1() local
601 new CaptionWindow(windowId, visible, rowLock, columnLock, priority, in parseC1()
611 windowId, priority, columnLock, rowLock, visible, anchorVertical, in parseC1()
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()
[all …]
/frameworks/layoutlib/bridge/src/android/view/accessibility/
DAccessibilityManager_Delegate.java32 AccessibilityManager thisManager, int windowId) { in getWindowTransformationSpec() argument
/frameworks/base/services/core/java/com/android/server/wm/
DPerfettoTransitionTracer.java224 final int windowId = System.identityHashCode(target.mContainer); in addTransitionTargetsToProto() local
230 os.write(ShellTransition.Target.WINDOW_ID, windowId); in addTransitionTargetsToProto()
/frameworks/native/services/inputflinger/dispatcher/
DEntry.cpp294 std::optional<int32_t> windowId) in DispatchEntry() argument
305 windowId(windowId) { in DispatchEntry()

123