Home
last modified time | relevance | path

Searched refs:win (Results 1 – 25 of 60) sorted by relevance

123

/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DSeamlessRotator.java74 public void unrotate(Transaction transaction, WindowContainer win) { in unrotate() argument
75 applyTransform(transaction, win.getSurfaceControl()); in unrotate()
77 final float[] winSurfacePos = {win.mLastSurfacePosition.x, win.mLastSurfacePosition.y}; in unrotate()
79 transaction.setPosition(win.getSurfaceControl(), winSurfacePos[0], winSurfacePos[1]); in unrotate()
81 transaction.setFixedTransformHint(win.mSurfaceControl, mFixedTransformHint); in unrotate()
107 void finish(Transaction t, WindowContainer win) { in finish() argument
108 if (win.mSurfaceControl == null || !win.mSurfaceControl.isValid()) { in finish()
112 setIdentityMatrix(t, win.mSurfaceControl); in finish()
113 t.setPosition(win.mSurfaceControl, win.mLastSurfacePosition.x, win.mLastSurfacePosition.y); in finish()
115 t.unsetFixedTransformHint(win.mSurfaceControl); in finish()
H A DDisplayPolicy.java1375 win.setFrames(sTmpClientFrames, win.mRequestedWidth, win.mRequestedHeight);
1431 && win.mActivityRecord != null && isOverlappingWithNavBar(win)) {
1480 if (!mDreamingLockscreen || (win.isVisible() && win.hasDrawn())) {
2152 if (win != null && win.isActivityTypeDream()) {
2280 : win;
2449 if (win == null) {
2452 return intersectsAnyInsets(win.getFrame(), win.getInsetsState(), type);
2502 if (win == null) {
2509 if (win == null) {
2604 if (win.mPolicy.getWindowLayerLw(win) > win.mPolicy.getWindowLayerFromTypeLw(
[all …]
H A DTaskPositioningController.java110 WindowState win = null; in startMovingTask() local
113 win = mService.windowForClientLocked(null, window, false); in startMovingTask()
130 mService.mAtmService.setFocusedTask(win.getTask().mTaskId); in startMovingTask()
171 + "win=" + win + ", resize=" + resize + ", preserveOrientation=" in startPositioningLocked()
174 if (win == null || win.mActivityRecord == null) { in startPositioningLocked()
175 Slog.w(TAG_WM, "startPositioningLocked: Bad window " + win); in startPositioningLocked()
178 if (win.mInputChannel == null) { in startPositioningLocked()
184 final DisplayContent displayContent = win.getDisplayContent(); in startPositioningLocked()
186 Slog.w(TAG_WM, "startPositioningLocked: Invalid display content " + win); in startPositioningLocked()
192 return mTaskPositioner.register(displayContent, win).thenApply(unused -> { in startPositioningLocked()
[all …]
H A DWindowManagerService.java1630 displayPolicy.adjustWindowParamsLw(win, win.mAttrs); in addWindow()
1732 win.mToken.addWindow(win); in addWindow()
1734 displayPolicy.setDropInputModePolicy(win, win.mAttrs); in addWindow()
2265 win, win.mWinAnimator.getShown()); in relayoutWindow()
2297 win.setWindowScale(win.mRequestedWidth, win.mRequestedHeight); in relayoutWindow()
2569 if (win.isVisible() && win.isDisplayed() && win.mDisplayContent.okToAnimate()) { in tryStartExitingAnimation()
2664 win, (win != null ? win.mWinAnimator.drawStateToString() : "null")); in finishDrawingWindow()
6036 return win; in windowForClientLocked()
6070 win, win.mRemoved, win.isVisible(), win.mHasSurface, in checkDrawnWindowsLocked()
6072 if (win.mRemoved || !win.mHasSurface || !win.isVisibleByPolicy()) { in checkDrawnWindowsLocked()
[all …]
H A DLetterbox.java225 void attachInput(WindowState win) { in attachInput() argument
227 mFullWindowSurface.attachInput(win); in attachInput()
230 surface.attachInput(win); in attachInput()
302 InputInterceptor(String namePrefix, WindowState win) { in InputInterceptor() argument
303 mWmService = win.mWmService; in InputInterceptor()
304 … final String name = namePrefix + (win.mActivityRecord != null ? win.mActivityRecord : win); in InputInterceptor()
311 win.getDisplayId()); in InputInterceptor()
378 void attachInput(WindowState win) { in attachInput() argument
382 mInputInterceptor = new InputInterceptor("Letterbox_" + mType + "_", win); in attachInput()
H A DInsetsSourceProvider.java214 WindowState win = mWindowContainer.asWindowState(); in updateSourceFrame() local
216 if (win == null) { in updateSourceFrame()
269 if (win.mGivenVisibleInsets.left != 0 || win.mGivenVisibleInsets.top != 0 in updateSourceFrame()
270 || win.mGivenVisibleInsets.right != 0 in updateSourceFrame()
271 || win.mGivenVisibleInsets.bottom != 0) { in updateSourceFrame()
273 mTmpRect.inset(win.mGivenVisibleInsets); in updateSourceFrame()
300 final WindowState win = mWindowContainer.asWindowState(); in getInsetsHint() local
301 if (win != null && win.mGivenInsetsPending) { in getInsetsHint()
379 final WindowState win = mWindowContainer.asWindowState(); in getWindowFrameSurfacePosition() local
380 if (win != null && mControl != null) { in getWindowFrameSurfacePosition()
[all …]
H A DInsetsPolicy.java518 private static boolean canBeTopFullscreenOpaqueWindow(@Nullable WindowState win) { in canBeTopFullscreenOpaqueWindow() argument
521 final boolean nonAttachedAppWindow = win != null in canBeTopFullscreenOpaqueWindow()
522 && win.mAttrs.type >= WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW in canBeTopFullscreenOpaqueWindow()
524 return nonAttachedAppWindow && win.mAttrs.isFullscreen() && !win.isFullyTransparent() in canBeTopFullscreenOpaqueWindow()
525 && !win.inMultiWindowMode(); in canBeTopFullscreenOpaqueWindow()
586 : forceShowingNavigationBars(win) in updateSystemBars()
593 mForcedShowingTypes | (remoteInsetsControllerControlsSystemBars(win) in updateSystemBars()
597 updateBarControlTarget(win); in updateSystemBars()
600 private boolean forceShowingNavigationBars(WindowState win) { in forceShowingNavigationBars() argument
605 return mPolicy.isForceShowNavigationBarEnabled() && win != null in forceShowingNavigationBars()
[all …]
H A DWindowToken.java246 final WindowState win = mChildren.get(i); in removeAllWindowsIfPossible() local
248 "removeAllWindowsIfPossible: removing win=%s", win); in removeAllWindowsIfPossible()
249 win.removeIfPossible(); in removeAllWindowsIfPossible()
275 final WindowState win = mChildren.get(i); in setExiting() local
276 changed |= win.onSetAppExiting(animateExit); in setExiting()
310 void addWindow(final WindowState win) { in addWindow() argument
312 "addWindow: win=%s Callers=%s", win, Debug.getCallers(5)); in addWindow()
314 if (win.isChildWindow()) { in addWindow()
326 if (!mChildren.contains(win)) { in addWindow()
327 ProtoLog.v(WM_DEBUG_ADD_REMOVE, "Adding %s to %s", win, this); in addWindow()
[all …]
H A DImeInsetsSourceProvider.java370 private static boolean isImeTargetWindowClosing(@NonNull WindowState win) { in isImeTargetWindowClosing() argument
371 return win.mAnimatingExit || win.mActivityRecord != null in isImeTargetWindowClosing()
372 && (win.mActivityRecord.isInTransition() in isImeTargetWindowClosing()
373 && !win.mActivityRecord.isVisibleRequested() in isImeTargetWindowClosing()
374 || win.mActivityRecord.willCloseOrEnterPip()); in isImeTargetWindowClosing()
H A DWindowSurfaceController.java86 final WindowState win = animator.mWin; in WindowSurfaceController() local
88 mWindowSession = win.mSession; in WindowSurfaceController()
91 final SurfaceControl.Builder b = win.makeSurface() in WindowSurfaceController()
92 .setParent(win.getSurfaceControl()) in WindowSurfaceController()
101 final boolean useBLAST = mService.mUseBLAST && ((win.getAttrs().privateFlags in WindowSurfaceController()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DRemoteAnimationControllerTest.java121 win.mActivityRecord = null; in createAppOverlayWindow()
122 win.mHasSurface = true; in createAppOverlayWindow()
123 return win; in createAppOverlayWindow()
133 win.mActivityRecord, in testForwardsShowBackdrop()
166 win.mActivityRecord, in testRun()
207 win.mActivityRecord, in testCancel()
221 win.mActivityRecord, in testTimeout()
313 win.mActivityRecord, in testRemovedBeforeStarted()
328 final Task task = win.getTask(); in testOpeningTaskWithTopFinishingActivity()
524 win.mActivityRecord, in testWallpaperIncluded_expectTarget()
[all …]
H A DInsetsPolicyTest.java438 win.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in addNavigationBar()
439 win.mAttrs.providedInsets = new InsetsFrameProvider[] { in addNavigationBar()
444 mDisplayContent.getDisplayPolicy().addWindowLw(win, win.mAttrs); in addNavigationBar()
445 return win; in addNavigationBar()
451 win.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in addStatusBar()
452 win.mAttrs.providedInsets = new InsetsFrameProvider[] { in addStatusBar()
457 mDisplayContent.getDisplayPolicy().addWindowLw(win, win.mAttrs); in addStatusBar()
458 return win; in addStatusBar()
463 mDisplayContent.getDisplayPolicy().addWindowLw(win, win.mAttrs); in addWindow()
464 return win; in addWindow()
[all …]
H A DWindowManagerServiceTests.java235 win.mHasSurface = true; in testRelayoutExitingWindow()
237 mWm.mWindowMap.put(win.mClient.asBinder(), win); in testRelayoutExitingWindow() local
249 mWm.relayoutWindow(win.mSession, win.mClient, win.mAttrs, w, h, View.GONE, 0, 0, 0, in testRelayoutExitingWindow()
254 assertTrue(win.mTransitionController.mAnimatingExitWindows.contains(win)); in testRelayoutExitingWindow()
256 win.mAnimatingExit = false; in testRelayoutExitingWindow()
260 mWm.relayoutWindow(win.mSession, win.mClient, win.mAttrs, w, h, View.GONE, 0, 0, 0, in testRelayoutExitingWindow()
270 mWm.relayoutWindow(win.mSession, win.mClient, win.mAttrs, w, h, View.VISIBLE, 0, 0, 0, in testRelayoutExitingWindow()
274 win.mActivityRecord = null; in testRelayoutExitingWindow()
362 mWm.mWindowMap.put(win.mClient.asBinder(), win); in testRelayoutFlagChanges() local
376 win.mRelayoutSeq = 1; in testRelayoutFlagChanges()
[all …]
H A DWindowTokenTests.java286 final WindowState win = createWindow(null, TYPE_APPLICATION, token, "win"); in testRemoveWindowToken_noAnimateExitWhenSet() local
287 makeWindowVisible(win); in testRemoveWindowToken_noAnimateExitWhenSet()
288 assertTrue(win.isOnScreen()); in testRemoveWindowToken_noAnimateExitWhenSet()
289 spyOn(win); in testRemoveWindowToken_noAnimateExitWhenSet()
290 spyOn(win.mWinAnimator); in testRemoveWindowToken_noAnimateExitWhenSet()
291 spyOn(win.mToken); in testRemoveWindowToken_noAnimateExitWhenSet()
297 verify(win).onSetAppExiting(Mockito.eq(false) /* animateExit */); in testRemoveWindowToken_noAnimateExitWhenSet()
298 verify(win).hide(false /* doAnimation */, false /* requestAnim */); in testRemoveWindowToken_noAnimateExitWhenSet()
299 assertFalse(win.isOnScreen()); in testRemoveWindowToken_noAnimateExitWhenSet()
301 assertTrue(win.mToken.hasChild()); in testRemoveWindowToken_noAnimateExitWhenSet()
[all …]
H A DDisplayPolicyTests.java90 return win; in createOpaqueFullscreen()
101 return win; in createDreamWindow()
111 when(win.isDimming()).thenReturn(true); in createDimmingDialogWindow()
112 return win; in createDimmingDialogWindow()
125 win.mHasSurface = visible; in createInputMethodWindow()
126 return win; in createInputMethodWindow()
293 win.mHasSurface = true; in createApplicationWindow()
294 return win; in createApplicationWindow()
304 win.mHasSurface = true; in createBaseApplicationWindow()
305 return win; in createBaseApplicationWindow()
[all …]
H A DWindowStateTests.java768 makeWindowVisible(win, win.getParentWindow()); in testReportResizedWithRemoteException()
769 win.mLayoutSeq = win.getDisplayContent().mLayoutSeq; in testReportResizedWithRemoteException()
776 spyOn(win.mClient); in testReportResizedWithRemoteException()
785 win.reportResized(); in testReportResizedWithRemoteException()
798 makeWindowVisible(win, win.getParentWindow()); in testRequestResizeForBlastSync()
799 win.mLayoutSeq = win.getDisplayContent().mLayoutSeq; in testRequestResizeForBlastSync()
800 win.reportResized(); in testRequestResizeForBlastSync()
805 win.reportResized(); in testRequestResizeForBlastSync()
806 win.prepareSync(); in testRequestResizeForBlastSync()
813 win.reportResized(); in testRequestResizeForBlastSync()
[all …]
H A DDisplayPolicyTestsBase.java70 void addWindow(WindowState win) { in addWindow() argument
71 mDisplayPolicy.adjustWindowParamsLw(win, win.mAttrs); in addWindow()
73 win.mAttrs, Binder.getCallingPid(), Binder.getCallingUid())); in addWindow()
74 mDisplayPolicy.addWindowLw(win, win.mAttrs); in addWindow()
75 win.mHasSurface = true; in addWindow()
H A DDisplayPolicyLayoutTests.java149 final WindowState win = createWindow(null, TYPE_STATUS_BAR_SUB_PANEL, "statusBar"); in addingWindow_withInsetsTypes() local
151 win.mAttrs.providedInsets = new InsetsFrameProvider[] { in addingWindow_withInsetsTypes()
155 addWindow(win); in addingWindow_withInsetsTypes()
156 win.getFrame().set(0, 0, 500, 100); in addingWindow_withInsetsTypes()
157 win.updateSourceFrame(win.getFrame()); in addingWindow_withInsetsTypes()
160 assertTrue(win.hasInsetsSourceProvider()); in addingWindow_withInsetsTypes()
161 final SparseArray<InsetsSourceProvider> providers = win.getInsetsSourceProviders(); in addingWindow_withInsetsTypes()
H A DDisplayContentTests.java1371 win.setHasSurface(true); in testUpdateSystemGestureExclusion()
1407 win.setHasSurface(true); in testCalculateSystemGestureExclusion()
1438 win.setHasSurface(true); in testCalculateSystemGestureExclusion_modal()
1460 win.setHasSurface(true); in testCalculateSystemGestureExclusion_immersiveStickyLegacyWindow()
1466 win.setHasSurface(false); in testCalculateSystemGestureExclusion_immersiveStickyLegacyWindow()
1482 win.setHasSurface(true); in testCalculateSystemGestureExclusion_unrestricted()
1488 win.setHasSurface(false); in testCalculateSystemGestureExclusion_unrestricted()
1495 makeWindowVisible(win, win.getParentWindow()); in testRequestResizeForEmptyFrames()
1497 win.mAttrs.width = win.mAttrs.height = WindowManager.LayoutParams.WRAP_CONTENT; in testRequestResizeForEmptyFrames()
2407 win.onSurfaceShownChanged(true); in testRemoveImeScreenshot_whenTargetSurfaceWasInvisible()
[all …]
H A DInsetsStateControllerTest.java207 final WindowState win = createWindow(null, TYPE_APPLICATION, "app"); in testStripForDispatch_imeOrderChanged() local
208 win.setHasSurface(true); in testStripForDispatch_imeOrderChanged()
209 final WindowToken parent = win.mToken; in testStripForDispatch_imeOrderChanged()
210 parent.removeChild(win); in testStripForDispatch_imeOrderChanged()
211 final WindowState app = spy(win); in testStripForDispatch_imeOrderChanged()
558 win.setHasSurface(true); in createTestWindow()
559 spyOn(win); in createTestWindow()
560 return win; in createTestWindow()
566 win.setHasSurface(true); in createNonAppWindow()
567 spyOn(win); in createNonAppWindow()
[all …]
/aosp14/frameworks/base/opengl/java/android/opengl/
H A DEGL14.java234 Object win, in _eglCreateWindowSurface() argument
242 Object win, in _eglCreateWindowSurfaceTexture() argument
249 Object win, in eglCreateWindowSurface() argument
254 if (win instanceof SurfaceView) { in eglCreateWindowSurface()
255 SurfaceView surfaceView = (SurfaceView)win; in eglCreateWindowSurface()
257 } else if (win instanceof SurfaceHolder) { in eglCreateWindowSurface()
258 SurfaceHolder holder = (SurfaceHolder)win; in eglCreateWindowSurface()
260 } else if (win instanceof Surface) { in eglCreateWindowSurface()
261 sur = (Surface) win; in eglCreateWindowSurface()
267 } else if (win instanceof SurfaceTexture) { in eglCreateWindowSurface()
[all …]
H A DGLU.java149 int[] view, int viewOffset, float[] win, int winOffset) { in gluProject() argument
173 win[winOffset] = in gluProject()
177 win[winOffset + 1] = in gluProject()
180 win[winOffset + 2] = (scratch[V2_OFFSET + 2] * rw + 1.0f) * 0.5f; in gluProject()
/aosp14/frameworks/base/native/android/
H A Dnative_window_jni.cpp31 sp<ANativeWindow> win = android_view_Surface_getNativeWindow(env, surface); in ANativeWindow_fromSurface() local
32 if (win != NULL) { in ANativeWindow_fromSurface()
33 ANativeWindow_acquire(win.get()); in ANativeWindow_fromSurface()
35 return win.get(); in ANativeWindow_fromSurface()
/aosp14/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuDialogHelper.java96 Window win = mDialog.getWindow(); in onKey() local
97 if (win != null) { in onKey()
98 View decor = win.getDecorView(); in onKey()
108 Window win = mDialog.getWindow(); in onKey() local
109 if (win != null) { in onKey()
110 View decor = win.getDecorView(); in onKey()
/aosp14/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
H A DStatusBarTest.java131 Window win = getWindow();
132 win.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
134 Log.d(TAG, "flags=" + Integer.toHexString(win.getAttributes().flags));
139 Window win = getWindow();
140 win.setFlags(0, WindowManager.LayoutParams.FLAG_FULLSCREEN);
141 Log.d(TAG, "flags=" + Integer.toHexString(win.getAttributes().flags));

123