/frameworks/base/services/core/java/com/android/server/wm/ |
D | LetterboxUiController.java | 56 private final ActivityRecord mActivityRecord; field in LetterboxUiController 68 mActivityRecord = activityRecord; in LetterboxUiController() 116 final WindowState w = mActivityRecord.findMainWindow(); in updateLetterboxSurface() 122 mLetterbox.applySurfaceChanges(mActivityRecord.getSyncTransaction()); in updateLetterboxSurface() 127 final WindowState w = mActivityRecord.findMainWindow(); in layoutLetterbox() 135 mLetterbox = new Letterbox(() -> mActivityRecord.makeChildSurface(null), in layoutLetterbox() 136 mActivityRecord.mWmService.mTransactionFactory, in layoutLetterbox() 144 mActivityRecord.getPosition(mTmpPoint); in layoutLetterbox() 149 final Rect transformedBounds = mActivityRecord.getFixedRotationTransformDisplayBounds(); in layoutLetterbox() 152 : mActivityRecord.inMultiWindowMode() in layoutLetterbox() [all …]
|
D | WindowState.java | 309 ActivityRecord mActivityRecord; field in WindowState 1001 && mActivityRecord != null && mActivityRecord.mTargetSdk < Build.VERSION_CODES.Q; in isImplicitlyExcludingAllSystemGestures() 1052 mActivityRecord = mToken.asActivityRecord(); in WindowState() 1066 mActivityRecord != null in WindowState() 1067 ? mActivityRecord.getInputApplicationHandle(false /* update */) : null, in WindowState() 1128 if (mActivityRecord != null && mActivityRecord.mShowForAllUsers) { in WindowState() 1185 return (mOverrideScale != 1f || hasCompatScale(mAttrs, mActivityRecord)) && !mIsChildWindow; in hasCompatScale() 1438 if (mActivityRecord != null) { in getBounds() 1439 return mActivityRecord.getBounds(); in getBounds() 1497 return mActivityRecord != null ? mActivityRecord.appToken : null; in getAppToken() [all …]
|
D | WallpaperController.java | 128 if (w.mActivityRecord != null && !w.mActivityRecord.isVisible() 129 && !w.mActivityRecord.isAnimating(TRANSITION | PARENTS)) { 135 if (w.mActivityRecord != null && !w.mActivityRecord.isVisibleRequested()) { 151 final WindowContainer animatingContainer = w.mActivityRecord != null 152 ? w.mActivityRecord.getAnimatingContainer() : null; 166 || (w.mActivityRecord != null && !w.mActivityRecord.fillsParent()); 259 && (mWallpaperTarget.mActivityRecord == null in isWallpaperTargetAnimating() 260 || !mWallpaperTarget.mActivityRecord.isWaitingForTransitionStart()); in isWallpaperTargetAnimating() 574 final boolean newTargetHidden = wallpaperTarget.mActivityRecord != null in updateWallpaperWindowsTarget() 575 && !wallpaperTarget.mActivityRecord.mVisibleRequested; in updateWallpaperWindowsTarget() [all …]
|
D | WindowStateAnimator.java | 197 + (mWin.mActivityRecord != null && mWin.mActivityRecord.reportedVisible)); in onAnimationFinished() 217 if (mWin.mActivityRecord != null) { in onAnimationFinished() 218 mWin.mActivityRecord.updateReportedVisibilityLocked(); in onAnimationFinished() 284 final ActivityRecord activity = mWin.mActivityRecord; in commitFinishDrawingLocked() 295 if (mWin.mActivityRecord == null) { in resetDrawState() 299 if (!mWin.mActivityRecord.isAnimating(TRANSITION)) { in resetDrawState() 300 mWin.mActivityRecord.clearAllDrawn(); in resetDrawState() 402 final ActivityRecord activity = mWin.mActivityRecord; in destroySurfaceLocked() 480 if (!mWin.mActivityRecord.isRootOfTask()) return false; in shouldConsumeMainWindowSizeTransaction()
|
D | ImeInsetsSourceProvider.java | 74 control.setSkipAnimationOnce(targetWin.mActivityRecord != null in getControl() 75 && targetWin.mActivityRecord.hasStartingWindow() in getControl() 235 && mImeRequester.getWindow().mActivityRecord in isTargetChangedWithinActivity() 236 == target.getWindow().mActivityRecord; in isTargetChangedWithinActivity()
|
D | InputMonitor.java | 273 inputWindowHandle.setInputApplicationHandle(w.mActivityRecord != null in populateInputWindowHandle() 274 ? w.mActivityRecord.getInputApplicationHandle(false /* update */) : null); in populateInputWindowHandle() 279 inputWindowHandle.setPaused(w.mActivityRecord != null && w.mActivityRecord.paused); in populateInputWindowHandle() 405 && recentsAnimationController.shouldApplyInputConsumer(focus.mActivityRecord); in updateInputFocusRequest() 522 && recentsAnimationController.shouldApplyInputConsumer(w.mActivityRecord); in accept() 542 mRecentsAnimationInputConsumer.show(mInputTransaction, w.mActivityRecord); in accept()
|
D | TaskPositioningController.java | 187 && displayContent.mCurrentFocus.mActivityRecord == win.mActivityRecord) { in startPositioningLocked()
|
D | WallpaperWindowToken.java | 130 } else if ((wallpaperTarget.mActivityRecord == null in updateWallpaperWindows() 132 || wallpaperTarget.mActivityRecord.mVisibleRequested) in updateWallpaperWindows()
|
D | AnrController.java | 87 activity = windowState.mActivityRecord; in notifyWindowUnresponsive() 154 if (unresponsiveApp == null || unresponsiveApp != newFocus.mActivityRecord) { in onFocusChanged()
|
D | AppTransitionController.java | 372 && !openingApps.contains(oldWallpaper.mActivityRecord) in getTransitCompatType() 373 && closingApps.contains(oldWallpaper.mActivityRecord) in getTransitCompatType() 374 && topClosingApp == oldWallpaper.mActivityRecord) { in getTransitCompatType() 378 && openingApps.contains(wallpaperTarget.mActivityRecord) in getTransitCompatType() 379 && topOpeningApp == wallpaperTarget.mActivityRecord in getTransitCompatType()
|
D | Letterbox.java | 222 … final String name = namePrefix + (win.mActivityRecord != null ? win.mActivityRecord : win); in InputInterceptor()
|
D | FadeRotationAnimationController.java | 72 if (w.mActivityRecord == null && w.mHasSurface && !w.mForceSeamlesslyRotate in FadeRotationAnimationController()
|
D | EmbeddedWindowController.java | 161 mHostActivityRecord = (mHostWindowState != null) ? mHostWindowState.mActivityRecord in EmbeddedWindow()
|
D | DisplayContent.java | 695 final ActivityRecord activity = w.mActivityRecord; 747 final ActivityRecord activity = w.mActivityRecord; 790 final ActivityRecord activity = w.mActivityRecord; 827 if (w.mActivityRecord != null) { 828 w.mActivityRecord.layoutLetterbox(w); 975 final ActivityRecord activity = w.mActivityRecord; 3608 } else if (w.mActivityRecord != null && !w.mActivityRecord.isClientVisible()) { in destroyLeakedSurfaces() 3611 + " token=" + w.mActivityRecord); in destroyLeakedSurfaces() 3707 if (mImeLayeringTarget != null && mImeLayeringTarget.mActivityRecord == candidate) { in computeImeTargetIfNeeded() 3719 && mImeLayeringTarget.mActivityRecord != null in shouldImeAttachedToApp() [all …]
|
D | NonAppWindowAnimationAdapter.java | 103 if (nonAppWindow.mActivityRecord == null && policy.canBeHiddenByKeyguardLw(nonAppWindow) in startNonAppWindowAnimationsForKeyguardExit()
|
D | RecentsAnimationController.java | 1060 ((w.mActivityRecord != null && mTargetActivityRecord == w.mActivityRecord) 1140 return task != null && isAnimatingTask(task) && !isTargetApp(windowState.mActivityRecord); 1196 InsetUtils.addInsets(insets, mainWindow.mActivityRecord.getLetterboxInsets());
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotControllerTest.java | 73 closingWindow.mActivityRecord.commitVisibility( in testGetClosingApps_closing() 76 closingApps.add(closingWindow.mActivityRecord); in testGetClosingApps_closing() 80 assertEquals(closingWindow.mActivityRecord.getTask(), closingTasks.valueAt(0)); in testGetClosingApps_closing() 89 closingWindow.mActivityRecord.commitVisibility( in testGetClosingApps_notClosing() 91 openingWindow.mActivityRecord.commitVisibility( in testGetClosingApps_notClosing() 94 closingApps.add(closingWindow.mActivityRecord); in testGetClosingApps_notClosing() 104 closingWindow.mActivityRecord.commitVisibility( in testGetClosingApps_skipClosingAppsSnapshotTasks() 107 closingApps.add(closingWindow.mActivityRecord); in testGetClosingApps_skipClosingAppsSnapshotTasks() 110 Sets.newArraySet(closingWindow.mActivityRecord.getTask())); in testGetClosingApps_skipClosingAppsSnapshotTasks() 119 disabledWindow.mActivityRecord.setDisablePreviewScreenshots(true); in testGetSnapshotMode() [all …]
|
D | RemoteAnimationControllerTest.java | 110 win.mActivityRecord = null; in createAppOverlayWindow() 118 mDisplayContent.mOpeningApps.add(win.mActivityRecord); in testRun() 121 … final AnimationAdapter adapter = mController.createRemoteAnimationRecord(win.mActivityRecord, in testRun() 142 assertEquals(win.mActivityRecord.getPrefixOrderIndex(), app.prefixOrderIndex); in testRun() 143 assertEquals(win.mActivityRecord.getTask().mTaskId, app.taskId); in testRun() 161 … final AnimationAdapter adapter = mController.createRemoteAnimationRecord(win.mActivityRecord, in testCancel() 174 … final AnimationAdapter adapter = mController.createRemoteAnimationRecord(win.mActivityRecord, in testTimeout() 195 win.mActivityRecord, new Point(50, 100), null, new Rect(50, 100, 150, 150), in testTimeout_scaled() 227 mController.createRemoteAnimationRecord(win.mActivityRecord, in testNotReallyStarted() 238 mController.createRemoteAnimationRecord(win1.mActivityRecord, in testOneNotStarted() [all …]
|
D | WindowStateTests.java | 247 int initialMode = appWindow.mActivityRecord.getWindowingMode(); in testCanBeImeTarget() 248 appWindow.mActivityRecord.setWindowingMode(WINDOWING_MODE_PINNED); in testCanBeImeTarget() 250 appWindow.mActivityRecord.setWindowingMode(initialMode); in testCanBeImeTarget() 404 assertThat(appWindow.mActivityRecord.currentLaunchCanTurnScreenOn(), in testPrepareWindowToDisplayDuringRelayout() 411 app.mActivityRecord.setVisible(true); in testCanAffectSystemUiFlags() 413 app.mActivityRecord.setVisible(false); in testCanAffectSystemUiFlags() 415 app.mActivityRecord.setVisible(true); in testCanAffectSystemUiFlags() 423 app.mActivityRecord.setVisible(true); in testCanAffectSystemUiFlags_disallow() 469 final ActivityRecord activity = appWindow.mActivityRecord; in testDeferredRemovalByAnimating() 643 startingApp.mActivityRecord.mStartingWindow = startingWindow; in testRequestDrawIfNeeded() [all …]
|
D | WallpaperControllerTests.java | 289 mAppWindow.mActivityRecord.applyFixedRotationTransform(mDisplayContent.getDisplayInfo(), in testFixedRotationRecentsAnimatingTask() 291 mAppWindow.mActivityRecord.mVisibleRequested = true; in testFixedRotationRecentsAnimatingTask() 296 assertTrue(mAppWindow.mActivityRecord.hasFixedRotationTransform()); in testFixedRotationRecentsAnimatingTask() 298 mAppWindow.mActivityRecord.finishFixedRotationTransform(); in testFixedRotationRecentsAnimatingTask() 300 mAppWindow.mActivityRecord.mVisibleRequested = false; in testFixedRotationRecentsAnimatingTask() 303 assertFalse(mAppWindow.mActivityRecord.hasFixedRotationTransform()); in testFixedRotationRecentsAnimatingTask()
|
D | RefreshRatePolicyTest.java | 200 overrideWindow.mActivityRecord.mSurfaceAnimator.startAnimation( in testAnimatingAppOverridePreferredModeId() 221 overrideWindow.mActivityRecord.mSurfaceAnimator.startAnimation( in testAnimatingAppOverridePreferredRefreshRate() 242 window.mActivityRecord.mSurfaceAnimator.startAnimation( in testAnimatingDenylist() 264 cameraUsingWindow.mActivityRecord.mSurfaceAnimator.startAnimation( in testAnimatingCamera() 283 window.mActivityRecord.mSurfaceAnimator.startAnimation( in testAppMaxRefreshRate() 302 window.mActivityRecord.mSurfaceAnimator.startAnimation( in testAppMinRefreshRate()
|
D | AnimatingActivityRegistryTest.java | 67 "activity2").mActivityRecord; in testDeferring() 90 "window2").mActivityRecord; in testContainerRemoved()
|
D | TaskSnapshotCacheTest.java | 70 mCache.onAppRemoved(window.mActivityRecord); in testAppRemoved() 81 mCache.onAppDied(window.mActivityRecord); in testAppDied()
|
D | DisplayContentTests.java | 167 final ActivityRecord exitingApp = exitingAppWindow.mActivityRecord; in testForAllWindows() 511 window1.mActivityRecord.mTargetSdk = targetSdk; in doTestFocusedWindowMultipleDisplays() 524 window2.mActivityRecord.mTargetSdk = targetSdk; in doTestFocusedWindowMultipleDisplays() 538 window1.mActivityRecord.mVisibleRequested = false; in doTestFocusedWindowMultipleDisplays() 539 window1.getDisplayContent().setFocusedApp(window1.mActivityRecord); in doTestFocusedWindowMultipleDisplays() 595 ws.mActivityRecord.getConfiguration().windowConfiguration.setBounds(new Rect(1, 1, 1, 1)); in testImeIsAttachedToDisplayForLetterboxedApp() 601 .mActivityRecord.getSurfaceControl()); in testImeIsAttachedToDisplayForLetterboxedApp() 803 window.mActivityRecord.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testOrientationDefinedByKeyguard() 1049 .mActivityRecord.getSurfaceControl(), dc.computeImeParent()); in testComputeImeParent_app() 1064 spyOn(mAppWindow.mActivityRecord); in testComputeImeParent_app_notMatchParentBounds() [all …]
|
D | WindowFrameTests.java | 244 … Configuration config = new Configuration(w.mActivityRecord.getRequestedOverrideConfiguration()); in testLayoutLetterboxedWindow() 247 w.mActivityRecord.onRequestedOverrideConfigurationChanged(config); in testLayoutLetterboxedWindow()
|