/frameworks/base/core/tests/coretests/src/android/view/ |
D | WindowInfoTest.java | 121 private void initTestWindowInfo(WindowInfo windowInfo) { in initTestWindowInfo() argument 122 windowInfo.type = 1; in initTestWindowInfo() 123 windowInfo.displayId = 2; in initTestWindowInfo() 124 windowInfo.layer = 3; in initTestWindowInfo() 125 windowInfo.accessibilityIdOfAnchor = 4L; in initTestWindowInfo() 126 windowInfo.title = "title"; in initTestWindowInfo() 127 windowInfo.token = mock(IBinder.class); in initTestWindowInfo() 128 windowInfo.childTokens = new ArrayList<>(); in initTestWindowInfo() 129 windowInfo.childTokens.add(mock(IBinder.class)); in initTestWindowInfo() 130 windowInfo.parentToken = mock(IBinder.class); in initTestWindowInfo() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ShellRoot.java | 123 WindowInfo windowInfo = WindowInfo.obtain(); in getWindowInfo() local 124 windowInfo.displayId = mToken.getDisplayArea().getDisplayContent().mDisplayId; in getWindowInfo() 125 windowInfo.type = mToken.windowType; in getWindowInfo() 126 windowInfo.layer = mToken.getWindowLayerFromType(); in getWindowInfo() 127 windowInfo.token = mAccessibilityWindow.asBinder(); in getWindowInfo() 128 windowInfo.title = "Splitscreen Divider"; in getWindowInfo() 129 windowInfo.focused = false; in getWindowInfo() 130 windowInfo.inPictureInPicture = false; in getWindowInfo() 131 windowInfo.hasFlagWatchOutsideTouch = false; in getWindowInfo() 134 windowInfo.regionInScreen.set(regionRect); in getWindowInfo() [all …]
|
D | WindowState.java | 4492 WindowInfo windowInfo = WindowInfo.obtain(); in getWindowInfo() local 4493 windowInfo.displayId = getDisplayId(); in getWindowInfo() 4494 windowInfo.type = mAttrs.type; in getWindowInfo() 4495 windowInfo.layer = mLayer; in getWindowInfo() 4496 windowInfo.token = mClient.asBinder(); in getWindowInfo() 4498 windowInfo.activityToken = mActivityRecord.appToken.asBinder(); in getWindowInfo() 4500 windowInfo.title = mAttrs.accessibilityTitle; in getWindowInfo() 4508 windowInfo.type == WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY; in getWindowInfo() 4509 if (TextUtils.isEmpty(windowInfo.title) && (isPanelWindow || isAccessibilityOverlay)) { in getWindowInfo() 4511 windowInfo.title = TextUtils.isEmpty(title) ? null : title; in getWindowInfo() [all …]
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanSurface.cpp | 128 WindowInfo windowInfo; in Create() local 130 extraBuffers, &windowInfo)) { in Create() 135 if (!UpdateWindow(window, windowInfo)) { in Create() 139 return new VulkanSurface(window, windowInfo, grContext); in Create() 263 bool VulkanSurface::UpdateWindow(ANativeWindow* window, const WindowInfo& windowInfo) { in UpdateWindow() argument 266 int err = native_window_set_buffers_format(window, windowInfo.pixelFormat); in UpdateWindow() 269 windowInfo.pixelFormat, strerror(-err), err); in UpdateWindow() 273 err = native_window_set_buffers_data_space(window, windowInfo.dataspace); in UpdateWindow() 277 windowInfo.dataspace, strerror(-err), err); in UpdateWindow() 287 err = native_window_set_buffers_transform(window, InvertTransform(windowInfo.transform)); in UpdateWindow() [all …]
|
D | VulkanSurface.h | 106 VulkanSurface(ANativeWindow* window, const WindowInfo& windowInfo, GrContext* grContext); 111 static bool UpdateWindow(ANativeWindow* window, const WindowInfo& windowInfo);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityWindowManagerTest.java | 292 final WindowInfo windowInfo = mWindowInfos.get(Display.DEFAULT_DISPLAY).get(i); in onWindowsChanged_shouldReportCorrectLayer() local 293 assertThat(mWindowInfos.get(Display.DEFAULT_DISPLAY).size() - windowInfo.layer - 1, in onWindowsChanged_shouldReportCorrectLayer() 307 final WindowInfo windowInfo = mWindowInfos.get(Display.DEFAULT_DISPLAY).get(i); in onWindowsChanged_shouldReportCorrectOrder() local 308 assertThat(windowToken, is(windowInfo.token)); in onWindowsChanged_shouldReportCorrectOrder() 314 final WindowInfo windowInfo = mWindowInfos.get(Display.DEFAULT_DISPLAY).get(0); in onWindowsChangedAndForceSend_shouldUpdateWindows() local 317 windowInfo.layer += 1; in onWindowsChangedAndForceSend_shouldUpdateWindows() 326 final WindowInfo windowInfo = mWindowInfos.get(Display.DEFAULT_DISPLAY).get(0); in onWindowsChangedNoForceSend_layerChanged_shouldNotUpdateWindows() local 329 windowInfo.layer += 1; in onWindowsChangedNoForceSend_layerChanged_shouldNotUpdateWindows() 343 final WindowInfo windowInfo = WindowInfo.obtain(); in onWindowsChangedNoForceSend_windowChanged_shouldUpdateWindows() local 344 windowInfo.type = AccessibilityWindowInfo.TYPE_APPLICATION; in onWindowsChangedNoForceSend_windowChanged_shouldUpdateWindows() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | AccessibilityCacheTest.java | 120 AccessibilityWindowInfo windowInfo = null, copyOfInfo = null, windowFromCache = null; in addThenGetWindow_returnsEquivalentButNotSameWindow() local 122 windowInfo = AccessibilityWindowInfo.obtain(); in addThenGetWindow_returnsEquivalentButNotSameWindow() 123 windowInfo.setId(WINDOW_ID_1); in addThenGetWindow_returnsEquivalentButNotSameWindow() 124 windowInfo.setDisplayId(Display.DEFAULT_DISPLAY); in addThenGetWindow_returnsEquivalentButNotSameWindow() 125 mAccessibilityCache.addWindow(windowInfo); in addThenGetWindow_returnsEquivalentButNotSameWindow() 127 copyOfInfo = AccessibilityWindowInfo.obtain(windowInfo); in addThenGetWindow_returnsEquivalentButNotSameWindow() 128 windowInfo.setId(WINDOW_ID_2); // Simulate recycling and reusing the original info. in addThenGetWindow_returnsEquivalentButNotSameWindow() 133 windowInfo.recycle(); in addThenGetWindow_returnsEquivalentButNotSameWindow() 187 for (AccessibilityWindowInfo windowInfo : windowsOut) { in setWindowsThenGetWindows_returnsInDecreasingLayerOrder() 188 windowInfo.recycle(); in setWindowsThenGetWindows_returnsInDecreasingLayerOrder() [all …]
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | InputDispatcher.cpp | 813 const InputWindowInfo* windowInfo = windowHandle->getInfo(); in findTouchedWindowAtLocked() local 814 if (windowInfo->displayId == displayId) { in findTouchedWindowAtLocked() 815 int32_t flags = windowInfo->layoutParamsFlags; in findTouchedWindowAtLocked() 817 if (windowInfo->visible) { in findTouchedWindowAtLocked() 822 if (isTouchModal || windowInfo->touchableRegionContainsPoint(x, y)) { in findTouchedWindowAtLocked() 823 int32_t portalToDisplayId = windowInfo->portalToDisplayId; in findTouchedWindowAtLocked() 856 const InputWindowInfo* windowInfo = portalWindow->getInfo(); in findTouchedGestureMonitorsLocked() local 857 monitors = getValueByKey(mGestureMonitorsByDisplay, windowInfo->portalToDisplayId); in findTouchedGestureMonitorsLocked() 858 addGestureMonitors(monitors, touchedMonitors, -windowInfo->frameLeft, in findTouchedGestureMonitorsLocked() 859 -windowInfo->frameTop); in findTouchedGestureMonitorsLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | MultiClientInputMethodManagerService.java | 1356 for (WindowInfo windowInfo : clientInfo.mWindowMap.values()) { in reportImeWindowTarget() 1357 if (windowInfo.mWindowHandle == targetWindowHandle) { in reportImeWindowTarget() 1358 final IBinder targetWindowToken = windowInfo.mWindowToken; in reportImeWindowTarget() 1638 WindowInfo windowInfo = null; in startInputOrWindowGainedFocus() local 1640 windowInfo = clientInfo.mWindowMap.get(windowToken); in startInputOrWindowGainedFocus() 1641 if (windowInfo == null) { in startInputOrWindowGainedFocus() 1642 windowInfo = new WindowInfo(windowToken, WindowHandleSource.getNext()); in startInputOrWindowGainedFocus() 1643 clientInfo.mWindowMap.put(windowToken, windowInfo); in startInputOrWindowGainedFocus() 1658 final int windowHandle = windowInfo != null in startInputOrWindowGainedFocus() 1659 ? windowInfo.mWindowHandle in startInputOrWindowGainedFocus() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityWindowManager.java | 549 final WindowInfo windowInfo = windows.get(i); in updateWindowsLocked() local 552 window = populateReportedWindowLocked(userId, windowInfo); in updateWindowsLocked() 572 if (!mHasWatchOutsideTouchWindow && windowInfo.hasFlagWatchOutsideTouch) { in updateWindowsLocked() 577 mWindowInfoById.put(windowId, WindowInfo.obtain(windowInfo)); in updateWindowsLocked() 1473 AccessibilityWindowInfo windowInfo = null; in getPictureInPictureWindowLocked() local 1478 if ((windowInfo = observer.getPictureInPictureWindowLocked()) != null) { in getPictureInPictureWindowLocked() 1483 return windowInfo; in getPictureInPictureWindowLocked()
|
D | AbstractAccessibilityServiceConnection.java | 1544 final WindowInfo windowInfo = in performAccessibilityActionInternal() local 1546 if (windowInfo != null) activityToken = windowInfo.activityToken; in performAccessibilityActionInternal() 1603 final AccessibilityWindowInfo windowInfo = in replaceCallbackIfNeeded() local 1605 if ((windowInfo == null) || !windowInfo.isInPictureInPictureMode() in replaceCallbackIfNeeded()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputDispatcher_test.cpp | 2162 static PointF getPointInWindow(const InputWindowInfo* windowInfo, const PointF& point) { in getPointInWindow() argument 2163 float x = windowInfo->windowXScale * (point.x - windowInfo->frameLeft); in getPointInWindow() 2164 float y = windowInfo->windowYScale * (point.y - windowInfo->frameTop); in getPointInWindow()
|