Searched refs:appWindow (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | FrameRateSelectionPriorityTests.java | 98 final WindowState appWindow = createWindow("appWindow"); in basicTest() local 99 assertNotNull("Window state is created", appWindow); in basicTest() 101 assertEquals(appWindow.mFrameRateSelectionPriority, RefreshRatePolicy.LAYER_PRIORITY_UNSET); in basicTest() 102 assertEquals(appWindow.mFrameRateVote, FRAME_RATE_VOTE_NONE); in basicTest() 104 appWindow.updateFrameRateSelectionPriorityIfNeeded(); in basicTest() 106 assertEquals(appWindow.mFrameRateSelectionPriority, RefreshRatePolicy.LAYER_PRIORITY_UNSET); in basicTest() 107 assertEquals(appWindow.mFrameRateVote, FRAME_RATE_VOTE_NONE); in basicTest() 110 appWindow.updateFrameRateSelectionPriorityIfNeeded(); in basicTest() 111 appWindow.updateFrameRateSelectionPriorityIfNeeded(); in basicTest() 114 verify(appWindow.getPendingTransaction(), never()).setFrameRateSelectionPriority( in basicTest() [all …]
|
D | WindowStateTests.java | 266 final WindowState appWindow = createWindow(null, TYPE_APPLICATION, "appWindow"); in testCanBeImeTarget() local 270 appWindow.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testCanBeImeTarget() 274 appWindow.setHasSurface(true); in testCanBeImeTarget() 278 assertFalse(appWindow.canBeImeTarget()); in testCanBeImeTarget() 282 appWindow.mAttrs.flags |= (FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM); in testCanBeImeTarget() 287 assertTrue(appWindow.canBeImeTarget()); in testCanBeImeTarget() 291 int initialMode = appWindow.mActivityRecord.getWindowingMode(); in testCanBeImeTarget() 292 appWindow.mActivityRecord.setWindowingMode(WINDOWING_MODE_PINNED); in testCanBeImeTarget() 293 assertFalse(appWindow.canBeImeTarget()); in testCanBeImeTarget() 294 appWindow.mActivityRecord.setWindowingMode(initialMode); in testCanBeImeTarget() [all …]
|
D | WallpaperControllerTests.java | 581 WindowState appWindow = createWindow(null /* parent */, TYPE_BASE_APPLICATION, in createWallpaperTargetWindow() local 583 appWindow.getAttrs().flags |= FLAG_SHOW_WALLPAPER; in createWallpaperTargetWindow() 584 appWindow.mHasSurface = true; in createWallpaperTargetWindow() 585 spyOn(appWindow); in createWallpaperTargetWindow() 586 doReturn(true).when(appWindow).isDrawFinishedLw(); in createWallpaperTargetWindow() 588 homeActivity.addWindow(appWindow); in createWallpaperTargetWindow() 589 return appWindow; in createWallpaperTargetWindow()
|
D | BackNavigationControllerTests.java | 549 WindowState appWindow = task.getTopVisibleAppMainWindow(); in testUnregisterCallbacksWithSystemCallback() local 552 spyOn(appWindow.mSession); in testUnregisterCallbacksWithSystemCallback() 554 appWindow.setOnBackInvokedCallbackInfo(invocation.getArgument(1)); in testUnregisterCallbacksWithSystemCallback() 556 }).when(appWindow.mSession).setOnBackInvokedCallbackInfo(eq(appWindow.mClient), any()); in testUnregisterCallbacksWithSystemCallback() 558 addToWindowMap(appWindow, true); in testUnregisterCallbacksWithSystemCallback() 559 dispatcher.attachToWindow(appWindow.mSession, appWindow.mClient, null); in testUnregisterCallbacksWithSystemCallback()
|
D | ActivityRecordTests.java | 2516 final TestWindowState appWindow = createWindowState(attrs, activity); in testLandscapeSeascapeRotationByApp() local 2517 activity.addWindow(appWindow); in testLandscapeSeascapeRotationByApp() 2518 spyOn(appWindow); in testLandscapeSeascapeRotationByApp() 2519 doNothing().when(appWindow).onStartFreezingScreen(); in testLandscapeSeascapeRotationByApp() 2526 appWindow.mResizeReported = false; in testLandscapeSeascapeRotationByApp() 2536 assertTrue(appWindow.mResizeReported); in testLandscapeSeascapeRotationByApp() 2537 appWindow.removeImmediately(); in testLandscapeSeascapeRotationByApp() 2552 final TestWindowState appWindow = createWindowState(attrs, activity); in testLandscapeSeascapeRotationByPolicy() local 2553 activity.addWindow(appWindow); in testLandscapeSeascapeRotationByPolicy() 2554 spyOn(appWindow); in testLandscapeSeascapeRotationByPolicy() [all …]
|
D | SizeCompatTests.java | 561 final WindowState appWindow = addWindowToActivity(mActivity); in testFixedScreenBoundsWhenDisplaySizeChanged() local 564 mActivity.getBounds(), appWindow.getBounds()); in testFixedScreenBoundsWhenDisplaySizeChanged() 572 final WindowState appWindow = addWindowToActivity(mActivity); in testLetterboxDisplayedForWindowBelow() local 574 spyOn(appWindow); in testLetterboxDisplayedForWindowBelow() 576 doReturn(true).when(appWindow).isLetterboxedForDisplayCutout(); in testLetterboxDisplayedForWindowBelow()
|
/frameworks/base/tests/FlickerTests/Rotation/src/com/android/server/wm/flicker/rotation/ |
D | SeamlessAppRotationTest.kt | 118 val appWindow = in <lambda>() constant 121 val flags = appWindow.windowState.attributes.flags in <lambda>() 122 appWindow in <lambda>() 136 val appWindow = in <lambda>() constant 139 val rotationAnimation = appWindow.windowState.attributes.rotationAnimation in <lambda>() 140 appWindow in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayPolicy.java | 1525 boolean appWindow = attrs.type >= FIRST_APPLICATION_WINDOW 1534 appWindow = true; 1538 if (appWindow && attached == null && attrs.isFullscreen() 1545 if ((appWindow && attached == null && attrs.isFullscreen()) 1622 } else if (appWindow && attached == null
|
/frameworks/native/services/inputflinger/tests/ |
D | InputDispatcher_test.cpp | 10595 sp<FakeWindowHandle> appWindow = in TEST_F() local 10598 appWindow->setFocusable(false); in TEST_F() 10599 appWindow->setFrame(Rect(100, 100, 200, 200)); in TEST_F() 10602 {{*navigationBar->getInfo(), *appWindow->getInfo()}, {}, 0, 0}); in TEST_F() 10645 appWindow->consumeMotionEvent(WithMotionAction(ACTION_DOWN)); in TEST_F() 10647 appWindow->assertNoEvents(); in TEST_F()
|