Home
last modified time | relevance | path

Searched refs:mAppWindow (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotControllerTest.java220 Task task = mAppWindow.mActivityRecord.getTask(); in testCreateTaskSnapshotWithExcludingIme()
229 mWm.mTaskSnapshotController.createSnapshot(mAppWindow.mActivityRecord.getTask(), in testCreateTaskSnapshotWithExcludingIme()
239 Task task = mAppWindow.mActivityRecord.getTask(); in testCreateTaskSnapshotWithIncludingIme()
251 mAppWindow.mActivityRecord.getTask(), 1f /* scaleFraction */, in testCreateTaskSnapshotWithIncludingIme()
267 mAppWindow.mWinAnimator.mLastAlpha = 1f; in testPrepareTaskSnapshot()
268 spyOn(mAppWindow.mWinAnimator); in testPrepareTaskSnapshot()
269 doReturn(true).when(mAppWindow.mWinAnimator).getShown(); in testPrepareTaskSnapshot()
270 doReturn(true).when(mAppWindow.mActivityRecord).isSurfaceShowing(); in testPrepareTaskSnapshot()
275 mAppWindow.mActivityRecord.getTask(), builder) != null; in testPrepareTaskSnapshot()
282 doReturn(true).when(mAppWindow.mActivityRecord).hasFixedRotationTransform(); in testPrepareTaskSnapshot()
[all …]
DZOrderingTests.java246 assertWindowHigher(mImeWindow, mAppWindow); in testAssignWindowLayers_ForImeWithNoTarget()
265 assertWindowHigher(mImeWindow, mAppWindow); in testAssignWindowLayers_ForImeWithAppTarget()
292 assertWindowHigher(mImeWindow, mAppWindow); in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows()
316 assertWindowHigher(mImeWindow, mAppWindow); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove()
337 assertWindowHigher(mImeWindow, mAppWindow); in testAssignWindowLayers_ForImeNonAppImeTarget()
357 assertWindowHigher(mImeWindow, mAppWindow); in testAssignWindowLayers_ForStatusBarImeTarget()
415 mAppWindow.mActivityRecord, "imeAppTarget"); in testAssignWindowLayers_ForImeOnAppWithRecentsAnimating()
439 mAppWindow.mActivityRecord, "imeAppTarget"); in testAssignWindowLayers_ForImeOnPopupImeLayeringTarget()
446 TYPE_APPLICATION_SUB_PANEL, mAppWindow.mActivityRecord, "popupImeTargetWin"); in testAssignWindowLayers_ForImeOnPopupImeLayeringTarget()
535 mAppWindow.getConfiguration().windowConfiguration.setWindowingMode( in testPopupWindowAndParentIsImeTarget_expectHigherThanIme_inMultiWindow()
[all …]
DInsetsPolicyTest.java269 mAppWindow.setRequestedVisibleTypes( in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls()
271 policy.updateBarControlTarget(mAppWindow); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls()
281 mDisplayContent.getInsetsStateController().getControlsForDispatch(mAppWindow); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls()
302 policy.updateBarControlTarget(mAppWindow); in testShowTransientBars_statusBarCanBeTransient_appGetsStatusBarFakeControl()
309 mDisplayContent.getInsetsStateController().getControlsForDispatch(mAppWindow); in testShowTransientBars_statusBarCanBeTransient_appGetsStatusBarFakeControl()
333 mAppWindow.setRequestedVisibleTypes(0, navigationBars() | statusBars()); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
334 mAppWindow.mAboveInsetsState.addSource(navBarSource); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
335 mAppWindow.mAboveInsetsState.addSource(statusBarSource); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
337 policy.updateBarControlTarget(mAppWindow); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
342 mDisplayContent.getInsetsStateController().getControlsForDispatch(mAppWindow); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
[all …]
DDisplayContentTests.java193 mAppWindow, in testForAllWindows()
222 mAppWindow, in testForAllWindows_WithAppImeTarget()
241 mAppWindow, in testForAllWindows_WithChildWindowImeTarget()
259 mAppWindow, in testForAllWindows_WithStatusBarImeTarget()
277 mAppWindow, in testForAllWindows_WithNotificationShadeImeTarget()
298 mAppWindow, in testForAllWindows_WithInBetweenWindowToken()
1210 spyOn(mAppWindow.mActivityRecord); in testComputeImeParent_app_notMatchParentBounds()
1211 doReturn(false).when(mAppWindow.mActivityRecord).matchParentBounds(); in testComputeImeParent_app_notMatchParentBounds()
1212 mDisplayContent.setImeLayeringTarget(mAppWindow); in testComputeImeParent_app_notMatchParentBounds()
1341 spyOn(mAppWindow.mActivityRecord); in testComputeImeControlTarget_notMatchParentBounds()
[all …]
DWindowStateTests.java464 final WindowState app = mAppWindow; in testVisibleWithInsetsProvider()
750 final WindowState allDrawnApp = mAppWindow; in testRequestDrawIfNeeded()
767 final WindowState invisibleApp = mAppWindow; in testRequestDrawIfNeeded()
1009 WindowState sameTokenWindow = createWindow(null, TYPE_BASE_APPLICATION, mAppWindow.mToken, in testNeedsRelativeLayeringToIme_notAttached()
1011 mDisplayContent.setImeLayeringTarget(mAppWindow); in testNeedsRelativeLayeringToIme_notAttached()
1023 mAppWindow.mToken, "SameTokenWindow"); in testNeedsRelativeLayeringToIme_startingWindow()
1024 mDisplayContent.setImeLayeringTarget(mAppWindow); in testNeedsRelativeLayeringToIme_startingWindow()
1036 mDisplayContent.setImeLayeringTarget(mAppWindow); in testNeedsRelativeLayeringToIme_systemDialog()
1037 mAppWindow.getRootTask().setWindowingMode(WINDOWING_MODE_MULTI_WINDOW); in testNeedsRelativeLayeringToIme_systemDialog()
1095 mAppWindow.mAboveInsetsState.addSource(navSource); in testImeAlwaysReceivesVisibleNavigationBarInsets()
[all …]
DDisplayPolicyTests.java268 final WindowManager.LayoutParams attrs = mAppWindow.mAttrs; in testComputeTopFullscreenOpaqueWindow()
275 mAppWindow, attrs, null /* attached */, null /* imeTarget */); in testComputeTopFullscreenOpaqueWindow()
277 assertEquals(mAppWindow, policy.getTopFullscreenOpaqueWindow()); in testComputeTopFullscreenOpaqueWindow()
552 mAppWindow.mAttrs.insetsFlags.behavior = BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE; in testCanSystemBarsBeShownByUser()
553 mAppWindow.setRequestedVisibleTypes(0, navigationBars()); in testCanSystemBarsBeShownByUser()
557 navBarProvider.updateControlForTarget(mAppWindow, false); in testCanSystemBarsBeShownByUser()
DSyncEngineTests.java421 mAppWindow = createWindow(null, TYPE_BASE_APPLICATION, "mAppWindow"); in testNonBlastMethod()
430 bse.addToSyncSet(id, mAppWindow.mToken); in testNonBlastMethod()
431 mAppWindow.prepareSync(); in testNonBlastMethod()
432 assertFalse(mAppWindow.shouldSyncWithBuffers()); in testNonBlastMethod()
434 mAppWindow.removeImmediately(); in testNonBlastMethod()
DWindowTestsBase.java189 WindowState mAppWindow; field in WindowTestsBase
421 mAppWindow = createCommonWindow(null, TYPE_BASE_APPLICATION, "mAppWindow"); in addCommonWindows()
424 mChildAppWindowAbove = createCommonWindow(mAppWindow, TYPE_APPLICATION_ATTACHED_DIALOG, in addCommonWindows()
428 mChildAppWindowBelow = createCommonWindow(mAppWindow, TYPE_APPLICATION_MEDIA_OVERLAY, in addCommonWindows()