/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayContentDeferredUpdateTests.java | 88 clearInvocations(mDisplayContent.mTransitionController, onUpdated); in testUpdate_deferrableFieldChangedTransitionStarted_deferrableFieldUpdated() 94 verify(mDisplayContent.mTransitionController).requestStartTransition( in testUpdate_deferrableFieldChangedTransitionStarted_deferrableFieldUpdated() 97 clearInvocations(mDisplayContent.mTransitionController, onUpdated); in testUpdate_deferrableFieldChangedTransitionStarted_deferrableFieldUpdated() 103 verify(mDisplayContent.mTransitionController).requestStartTransition( in testUpdate_deferrableFieldChangedTransitionStarted_deferrableFieldUpdated() 166 clearInvocations(mDisplayContent.mTransitionController, onUpdated); in testUpdate_deferrableFieldUpdatedTransitionPending_fieldNotUpdated() 184 clearInvocations(mDisplayContent.mTransitionController, onUpdated); in testTwoDisplayUpdates_transitionStarted_displayUpdated() 216 when(mDisplayContent.mTransitionController.inTransition()).thenReturn(true); in testWaitForTransition_displaySwitching_waitsForTransitionToBeStarted() 222 when(mDisplayContent.mTransitionController.inTransition()).thenReturn(false); in testWaitForTransition_displaySwitching_waitsForTransitionToBeStarted() 254 spyOn(mDisplayContent.mTransitionController); in mockTransitionsController() 255 when(mDisplayContent.mTransitionController.isShellTransitionsEnabled()).thenReturn(enabled); in mockTransitionsController() [all …]
|
D | PhysicalDisplaySwitchTransitionLauncherTest.java | 65 TransitionController mTransitionController; field in PhysicalDisplaySwitchTransitionLauncherTest 74 mTransitionController = new WindowTestsBase.TestTransitionController(mAtm); in setUp() 75 mTransitionController.setSyncEngine(mSyncEngine); in setUp() 77 mTransitionController, mAtm.mWindowOrganizerController); in setUp() 81 mTransitionController); in setUp() 222 assertTrue(mTransitionController.getCollectingTransition().mParticipants.contains( in testDisplaySwitchAfterUnfolding_otherCollectingTransition_collectsDisplaySwitch() 274 mTransitionController.registerTransitionPlayer(mPlayer, null /* proc */); in givenShellTransitionsEnabled() 276 mTransitionController.unregisterTransitionPlayer(mPlayer); in givenShellTransitionsEnabled()
|
D | TransitionTests.java | 296 assumeTrue(mDisplayContent.mTransitionController.useShellTransitionsRotation()); in testCreateInfo_DisplayArea() 674 final TransitionController controller = app.mTransitionController; in testRunningRemoteTransition() 1074 final Transition transition = wc.mTransitionController.createTransition(TRANSIT_OPEN); in testTransitionBounds() 1096 final int endRotation = app.mTransitionController.useShellTransitionsRotation() in testTransitionBounds() 1130 mDisplayContent.mTransitionController.setSyncEngine(createTestBLASTSyncEngine()); in testDisplayRotationChange() 1146 assertFalse(mDisplayContent.mTransitionController.isCollecting(statusBar.mToken)); in testDisplayRotationChange() 1147 assertFalse(mDisplayContent.mTransitionController.isCollecting(decorToken)); in testDisplayRotationChange() 1199 final Transition transition = app.mTransitionController.createTransition(TRANSIT_OPEN); in testShellRotationOpen() 1200 app.mTransitionController.requestStartTransition(transition, app.getTask(), in testShellRotationOpen() 1250 final Transition transition = app.mTransitionController.createTransition(TRANSIT_OPEN); in testFixedRotationOpen() [all …]
|
D | WallpaperControllerTests.java | 323 final Transition transition = wallpaperWindow.mTransitionController.createTransition( in testShowWhenLockedWallpaperTarget() 384 final Transition t = r.mTransitionController.createTransition(TRANSIT_OPEN); in testFixedRotationRecentsAnimatingTask() 387 r.mTransitionController.setTransientLaunch(recents, r.getTask()); in testFixedRotationRecentsAnimatingTask() 453 dc.mTransitionController.finishTransition(transit); in testWallpaperTokenVisibility()
|
D | WindowManagerServiceTests.java | 276 spyOn(win.mTransitionController); in testRelayoutExitingWindow_legacy() 277 doReturn(true).when(win.mTransitionController).isShellTransitionsEnabled(); in testRelayoutExitingWindow_legacy() 278 doReturn(true).when(win.mTransitionController).inTransition( in testRelayoutExitingWindow_legacy() 300 assertTrue(win.mTransitionController.mAnimatingExitWindows.contains(win)); in testRelayoutExitingWindow_legacy() 336 spyOn(win.mTransitionController); in testRelayoutExitingWindow() 337 doReturn(true).when(win.mTransitionController).isShellTransitionsEnabled(); in testRelayoutExitingWindow() 338 doReturn(true).when(win.mTransitionController).inTransition( in testRelayoutExitingWindow() 361 assertTrue(win.mTransitionController.mAnimatingExitWindows.contains(win)); in testRelayoutExitingWindow()
|
D | TaskFragmentOrganizerControllerTest.java | 135 private TransitionController mTransitionController; field in TaskFragmentOrganizerControllerTest 161 mTransitionController = mWindowOrganizerController.mTransitionController; in setup() 182 spyOn(mTransitionController); in setup() 1667 doReturn(true).when(mTransitionController).isCollecting(); in testDispatchTransaction_deferTransitionReady() 1668 doReturn(10).when(mTransitionController).getCollectingTransitionId(); in testDispatchTransaction_deferTransitionReady() 1674 verify(mTransitionController).deferTransitionReady(); in testDispatchTransaction_deferTransitionReady() 1684 verify(mTransitionController).continueTransitionReady(); in testDispatchTransaction_deferTransitionReady()
|
D | ActivityMetricsLaunchObserverTests.java | 109 mTopActivity.mTransitionController, createTestBLASTSyncEngine()); in setUpAMLO() 111 mTopActivity.mTransitionController.moveToCollecting(mTransition); in setUpAMLO()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | PhysicalDisplaySwitchTransitionLauncher.java | 47 private final TransitionController mTransitionController; field in PhysicalDisplaySwitchTransitionLauncher 73 mTransitionController = transitionController; in PhysicalDisplaySwitchTransitionLauncher() 104 if (!mTransitionController.isShellTransitionsEnabled()) return; in requestDisplaySwitchTransitionIfNeeded() 116 if (mTransitionController.isCollecting()) { in requestDisplaySwitchTransitionIfNeeded() 118 mTransition = mTransitionController.getCollectingTransition(); in requestDisplaySwitchTransitionIfNeeded() 137 mTransition = mTransitionController.requestStartDisplayTransition(TRANSIT_CHANGE, in requestDisplaySwitchTransitionIfNeeded()
|
D | WallpaperWindowToken.java | 92 if (!mTransitionController.inTransition(this)) { in prepareSurfaces() 182 if (mTransitionController.inTransition(this)) { in updateWallpaperWindows() 213 && !mTransitionController.isCollecting(wpTarget.mActivityRecord)); in setVisibility() 220 mTransitionController.collect(this); in setVisibility() 227 if (!visible && (mTransitionController.inTransition() in setVisibility()
|
D | DeferredDisplayUpdater.java | 142 || !mDisplayContent.mTransitionController.isShellTransitionsEnabled()) { in updateDisplayInfo() 188 mDisplayContent.mTransitionController, in requestDisplayChangeTransition() 189 mDisplayContent.mTransitionController.mSyncEngine); in requestDisplayChangeTransition() 193 mDisplayContent.mTransitionController.startCollectOrQueue(transition, deferred -> { in requestDisplayChangeTransition() 220 mDisplayContent.mTransitionController.requestStartTransition(transition, in requestDisplayChangeTransition() 284 mDisplayContent.mTransitionController.requestStartTransition(transition, in onDisplayUpdated() 317 if (mScreenUnblocker != null && !mDisplayContent.mTransitionController.inTransition()) { in onDisplayContentDisplayPropertiesPostChanged()
|
D | WindowToken.java | 463 mFixedRotationTransformState = mTransitionController.isShellTransitionsEnabled() in applyFixedRotationTransform() 563 if (mTransitionController.isShellTransitionsEnabled() in cancelFixedRotationTransform() 566 Transition transition = mTransitionController.getCollectingTransition(); in cancelFixedRotationTransform() 568 transition = mTransitionController.requestStartTransition( in cancelFixedRotationTransform() 569 mTransitionController.createTransition(WindowManager.TRANSIT_CHANGE), in cancelFixedRotationTransform() 588 if (!mTransitionController.isShellTransitionsEnabled()) return null; in getOrCreateFixedRotationLeash() 653 if (!mTransitionController.isShellTransitionsEnabled() && isFixedRotationTransforming()) { in updateSurfacePosition() 672 if (rootTask != null && mTransitionController.getWindowingModeAtStart(rootTask) in updateSurfaceRotation()
|
D | WindowOrganizerController.java | 175 final TransitionController mTransitionController; field in WindowOrganizerController 193 mTransitionController = new TransitionController(atm); in WindowOrganizerController() 197 return mTransitionController; in getTransitionController() 257 if (mTransitionController.isShellTransitionsEnabled()) { in applySyncTransaction() 258 mTransitionController.startLegacySyncOrQueue(syncGroup, (deferred) -> { in applySyncTransaction() 304 if (mTransitionController.getTransitionPlayer() == null && transition == null) { in startTransition() 326 mTransitionController, mService.mWindowManager.mSyncEngine); in startTransition() 329 mTransitionController.startCollectOrQueue(nextTransition, in startTransition() 452 if (mTransitionController.getTransitionPlayer() != null) { in startLegacyTransition() 491 mTransitionController.mFinishingTransition = transition; in finishTransition() [all …]
|
D | ActivityClientController.java | 861 final Transition transition = r.mTransitionController.isShellTransitionsEnabled() in convertFromTranslucent() 862 && !r.mTransitionController.isCollecting() in convertFromTranslucent() 863 ? r.mTransitionController.createTransition(TRANSIT_TO_BACK) : null; in convertFromTranslucent() 870 r.mTransitionController.requestStartTransition(transition, in convertFromTranslucent() 873 r.mTransitionController.setReady(r.getDisplayContent()); in convertFromTranslucent() 900 final Transition transition = r.mTransitionController.isShellTransitionsEnabled() in convertToTranslucent() 901 && !r.mTransitionController.isCollecting() in convertToTranslucent() 902 ? r.mTransitionController.createTransition(TRANSIT_TO_FRONT) : null; in convertToTranslucent() 906 r.mTransitionController.requestStartTransition(transition, in convertToTranslucent() 909 r.mTransitionController.setReady(r.getDisplayContent()); in convertToTranslucent() [all …]
|
D | AsyncRotationController.java | 117 displayContent.mTransitionController.getCollectingTransitionType(); in AsyncRotationController() 131 } else if (displayContent.mTransitionController.isShellTransitionsEnabled()) { in AsyncRotationController() 154 } else if (displayContent.mTransitionController.isCollecting(displayContent)) { in AsyncRotationController() 183 || mDisplayContent.mTransitionController.mNavigationBarAttachedToApp) { in accept() 349 if (mTransitionOp == OP_APP_SWITCH && token.mTransitionController.inTransition()) { in completeRotation()
|
D | ActivityRecord.java | 1634 if (mTransitionController.isShellTransitionsEnabled()) { in onParentChanged() 1878 mTransitionController.collect(this); in onDisplayChanged() 2908 if (mTransitionController.isCollecting()) { in attachStartingWindow() 2909 mStartingData.mTransitionId = mTransitionController.getCollectingTransitionId(); in attachStartingWindow() 2919 mTransitionController.collect(this); in attachStartingSurfaceToAssociatedTask() 3005 || mTransitionController.isCollecting(this)) { in removeStartingWindowAnimation() 3758 mTransitionController.requestCloseTransitionIfNeeded(trigger); in finishIfPossible() 3761 } else if (mTransitionController.isCollecting()) { in finishIfPossible() 3762 mTransitionController.getCollectingTransition().collectClose(trigger); in finishIfPossible() 3783 if (!mTransitionController.isShellTransitionsEnabled() in finishIfPossible() [all …]
|
D | DisplayContent.java | 1177 mTransitionController.registerLegacyListener(mFixedRotationTransitionListener); in DisplayContent() 1180 mTransitionController); in DisplayContent() 1615 if (mLastHasContent && mTransitionController.isShellTransitionsEnabled()) { in reconfigureDisplayLocked() 1618 if (!mTransitionController.isCollecting()) { in reconfigureDisplayLocked() 1625 final Transition transition = mTransitionController.getCollectingTransition(); in reconfigureDisplayLocked() 1629 mTransitionController.setDisplaySyncMethod(startBounds, endBounds, this); in reconfigureDisplayLocked() 1650 final Transition.ReadyCondition displayConfig = mTransitionController.isCollecting() in sendNewConfiguration() 1653 mTransitionController.waitFor(displayConfig); in sendNewConfiguration() 1654 } else if (mTransitionController.isShellTransitionsEnabled() && mLastHasContent) { in sendNewConfiguration() 1818 if (mTransitionController.useShellTransitionsRotation()) { in rotationForActivityInDifferentOrientation() [all …]
|
D | ActivityTaskSupervisor.java | 1530 final Transition newTransition = task.mTransitionController.isShellTransitionsEnabled() in findTaskToMoveToFront() 1531 ? task.mTransitionController.isCollecting() ? null in findTaskToMoveToFront() 1532 : task.mTransitionController.createTransition(TRANSIT_TO_FRONT) : null; in findTaskToMoveToFront() 1533 task.mTransitionController.collect(task); in findTaskToMoveToFront() 1577 task.mTransitionController.requestStartTransition(newTransition, task, in findTaskToMoveToFront() 1617 final Transition transition = rootTask.mTransitionController.requestTransitionIfNeeded( in removePinnedRootTaskInSurfaceTransaction() 1620 rootTask.mTransitionController.collect(rootTask); in removePinnedRootTaskInSurfaceTransaction() 1707 final Transition transit = task.mTransitionController.requestCloseTransitionIfNeeded(task); in removeTask() 1710 if (!task.mTransitionController.useFullReadyTracking()) { in removeTask() 1719 } else if (task.mTransitionController.isCollecting()) { in removeTask() [all …]
|
D | WindowContainer.java | 224 final TransitionController mTransitionController; field in WindowContainer 360 mTransitionController = mWmService.mAtmService.getTransitionController(); in WindowContainer() 606 mTransitionController.collectReparentChange(this, newParent); in reparent() 1243 if (!mTransitionController.isShellTransitionsEnabled()) { in inTransitionSelfOrParent() 1265 return mTransitionController.inTransition(this); in inTransition() 1269 if (!mTransitionController.isShellTransitionsEnabled()) { in isExitAnimationRunningSelfOrChild() 2666 if (!mTransitionController.canAssignLayers(this)) return; in assignLayer() 3023 if (mDisplayContent.mTransitionController.isShellTransitionsEnabled()) { in initializeChangeTransition() 3024 mDisplayContent.mTransitionController.collectVisibleChange(this); in initializeChangeTransition() 3676 if (mTransitionController.isShellTransitionsEnabled() in updateSurfacePosition() [all …]
|
D | RootWindowContainer.java | 2063 final TransitionController transitionController = task.mTransitionController; in moveActivityToPinnedRootTask() 2318 if (mTransitionController.inTransition()) { in scheduleTimeoutAbortPipEnter() 2323 mTransitionController.mStateValidators.add(() -> { in scheduleTimeoutAbortPipEnter() 2543 display.mTransitionController, mWmService.mSyncEngine); in sendSleepTransition() 2548 display.mTransitionController.requestStartTransition(transition, in sendSleepTransition() 2554 if (!display.mTransitionController.isCollecting()) { in sendSleepTransition() 2560 display.mTransitionController.moveToCollecting(transition); in sendSleepTransition() 2563 display.mTransitionController.startCollectOrQueue(transition, in sendSleepTransition() 2581 if (display.mTransitionController.isShellTransitionsEnabled() in applySleepTokens() 2599 if (!displayShouldSleep && display.mTransitionController.isShellTransitionsEnabled() in applySleepTokens() [all …]
|
D | Task.java | 1758 mTransitionController.collect(taskFragment); in moveTaskFragmentsToBottomIfNeeded() 2022 && !mTransitionController.isShellTransitionsEnabled()) { in onConfigurationChangedInner() 2267 if (mTransitionController.inTransition(this)) { in shouldStartChangeTransition() 3041 || mTransitionController.isTransientHide(this); in isAnimatingByRecents() 3318 if (mTransitionController.isCollecting() && mCreatedByOrganizer) { 4771 mTransitionController.collect(topActivity); 4794 if (topActivity.mTransitionController.inFinishingTransition(topActivity)) { 4820 && !mTransitionController.isShellTransitionsEnabled()) { 4846 mTransitionController, mWmService.mSyncEngine); 4847 mTransitionController.moveToCollecting(transition); [all …]
|
D | DisplayRotation.java | 534 && !mDisplayContent.mTransitionController.useShellTransitionsRotation()) { in updateRotationUnchecked() 633 if (mDisplayContent.mTransitionController.isShellTransitionsEnabled()) { in updateRotationUnchecked() 634 final boolean wasCollecting = mDisplayContent.mTransitionController.isCollecting(); in updateRotationUnchecked() 645 mDisplayContent.mTransitionController.getCollectingTransition()); in updateRotationUnchecked() 687 if (mDisplayContent.mTransitionController.isShellTransitionsEnabled()) { in continueRotation() 688 if (!mDisplayContent.mTransitionController.isCollecting()) { in continueRotation() 692 mDisplayContent.mTransitionController.collect(mDisplayContent); in continueRotation()
|
D | WallpaperController.java | 128 final boolean useShellTransition = w.mTransitionController.isShellTransitionsEnabled(); 169 && w.mTransitionController.hasTransientLaunch(mDisplayContent)) { 210 if (w.mTransitionController.isShellTransitionsEnabled()) { in isRecentsTransitionTarget() 657 && changingTarget.mTransitionController.inTransition()) { in updateWallpaperOffsetLocked()
|
D | WindowAnimator.java | 120 final boolean useShellTransition = root.mTransitionController.isShellTransitionsEnabled(); in animate()
|
D | BackNavigationController.java | 361 || removedWindowContainer.mTransitionController.inTransition() in startBackNavigation() 1612 if (mWindowManagerService.mRoot.mTransitionController.isShellTransitionsEnabled()) { in applyPreviewStrategy() 1634 mCloseTarget.mTransitionController.mSnapshotController in build() 1737 activity.mTransitionController.mSnapshotController 1763 activity.mTransitionController.mSnapshotController
|
D | TaskFragment.java | 1206 && mTransitionController.isTransientVisible(thisTask)) { in getVisibility() 1877 mTransitionController.setReady(this, false /* ready */); in startPausing() 2587 if (mTransitionController.isShellTransitionsEnabled() in updateOrganizedTaskFragmentSurface() 2588 && !mTransitionController.isCollecting(this)) { in updateOrganizedTaskFragmentSurface() 2592 } else if (!mTransitionController.isShellTransitionsEnabled() && !isAnimating()) { in updateOrganizedTaskFragmentSurface() 2729 if (mTransitionController.isShellTransitionsEnabled()) { in shouldStartChangeTransition()
|