/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/ |
D | ActivityRecordWrapper.java | 31 private final ActivityRecord mActivityRecord; field in ActivityRecordWrapper 34 mActivityRecord = activityRecord; in ActivityRecordWrapper() 45 return mActivityRecord; in getActivityRecord() 52 return mActivityRecord.mUserId; in getUserId() 59 if (mActivityRecord.info == null) return null; in getComponentName() 60 return mActivityRecord.info.getComponentName(); in getComponentName() 67 return TaskDisplayAreaWrapper.create(mActivityRecord.getDisplayArea()); in getDisplayArea() 74 return mActivityRecord.noDisplay; in isNoDisplay() 81 return TaskDisplayAreaWrapper.create(mActivityRecord.mHandoverTaskDisplayArea); in getHandoverTaskDisplayArea() 88 return mActivityRecord.mHandoverLaunchDisplayId; in getHandoverLaunchDisplayId() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | LetterboxUiController.java | 158 private final ActivityRecord mActivityRecord; field in LetterboxUiController 244 mActivityRecord = activityRecord; in LetterboxUiController() 280 () -> mActivityRecord.mDisplayContent != null in LetterboxUiController() 281 && mActivityRecord.getTask() != null in LetterboxUiController() 282 && mActivityRecord.mDisplayContent.getIgnoreOrientationRequest() in LetterboxUiController() 283 && !mActivityRecord.getTask().inMultiWindowMode() in LetterboxUiController() 284 && mActivityRecord.mDisplayContent.getNaturalOrientation() in LetterboxUiController() 323 mActivityRecord.mTransparentPolicy.stop(); in destroy() 365 + mActivityRecord); in shouldIgnoreRequestedOrientation() 371 + " due to camera compat treatment for " + mActivityRecord); in shouldIgnoreRequestedOrientation() [all …]
|
D | ActivityRecordInputSink.java | 38 private final ActivityRecord mActivityRecord; field in ActivityRecordInputSink 46 mActivityRecord = activityRecord; in ActivityRecordInputSink() 48 mActivityRecord.getUid()); in ActivityRecordInputSink() 50 + mActivityRecord.mActivityComponent.flattenToShortString(); in ActivityRecordInputSink() 52 sourceRecord.mAllowedTouchUid = mActivityRecord.getUid(); in ActivityRecordInputSink() 67 SurfaceControl surfaceControl = mActivityRecord.makeChildSurface(null) in createSurface() 84 final ActivityRecord activityBelowInTask = mActivityRecord.getTask() != null in getInputWindowHandleWrapper() 85 ? mActivityRecord.getTask().getActivityBelow(mActivityRecord) : null; in getInputWindowHandleWrapper() 87 activityBelowInTask.mAllowedTouchUid == mActivityRecord.getUid() in getInputWindowHandleWrapper() 88 || activityBelowInTask.isUid(mActivityRecord.getUid())); in getInputWindowHandleWrapper() [all …]
|
D | TransparentPolicy.java | 60 private final ActivityRecord mActivityRecord; field in TransparentPolicy 77 mActivityRecord = activityRecord; in TransparentPolicy() 91 final WindowContainer<?> parent = mActivityRecord.getParent(); in start() 98 final ActivityRecord firstOpaqueActivity = mActivityRecord.getTask().getActivity( in start() 100 mActivityRecord /* boundary */, false /* includeBoundary */, in start() 136 && mActivityRecord.getOverrideOrientation() in hasInheritedOrientation() 197 mActivityRecord.recomputeConfiguration(); in shouldSkipTransparentPolicy() 200 if (mActivityRecord.getTask() == null || mActivityRecord.fillsParent() in shouldSkipTransparentPolicy() 201 || mActivityRecord.hasCompatDisplayInsetsWithoutInheritance()) { in shouldSkipTransparentPolicy() 232 private final ActivityRecord mActivityRecord; field in TransparentPolicy.TransparentPolicyState [all …]
|
D | WindowState.java | 309 ActivityRecord mActivityRecord; field in WindowState 964 && mActivityRecord != null && mActivityRecord.mTargetSdk < Build.VERSION_CODES.Q; in isImplicitlyExcludingAllSystemGestures() 1092 mActivityRecord = mToken.asActivityRecord(); in WindowState() 1103 mLastReportedActivityWindowInfo = Flags.activityWindowInfoFlag() && mActivityRecord != null in WindowState() 1107 mActivityRecord != null in WindowState() 1108 ? mActivityRecord.getInputApplicationHandle(false /* update */) : null, in WindowState() 1151 if (mActivityRecord != null && mActivityRecord.mShowForAllUsers) { in WindowState() 1251 return mActivityRecord != null && mActivityRecord.hasSizeCompatBounds() in hasCompatScale() 1295 return mActivityRecord != null && mActivityRecord.mWaitForEnteringPinnedMode; in skipLayout() 1359 if (mActivityRecord != null && !mIsChildWindow) { in setFrames() [all …]
|
D | WindowStateAnimator.java | 175 (mWin.mActivityRecord != null && mWin.mActivityRecord.reportedVisible)); in onAnimationFinished() 195 if (mWin.mActivityRecord != null) { in onAnimationFinished() 196 mWin.mActivityRecord.updateReportedVisibilityLocked(); in onAnimationFinished() 254 final ActivityRecord activity = mWin.mActivityRecord; in commitFinishDrawingLocked() 265 if (mWin.mActivityRecord == null) { in resetDrawState() 269 if (!mWin.mActivityRecord.isAnimating(TRANSITION)) { in resetDrawState() 270 mWin.mActivityRecord.clearAllDrawn(); in resetDrawState() 525 && !(mWin.mActivityRecord != null && mWin.mActivityRecord.hasStartingWindow())) { in applyEnterAnimationLocked()
|
D | WallpaperController.java | 130 if (w.mActivityRecord != null && !w.mActivityRecord.isVisible() 131 && !w.mActivityRecord.isAnimating(TRANSITION | PARENTS)) { 137 final ActivityRecord ar = w.mActivityRecord; 149 final WindowContainer animatingContainer = w.mActivityRecord != null 150 ? w.mActivityRecord.getAnimatingContainer() : null; 166 || (w.mActivityRecord != null && !w.mActivityRecord.fillsParent()); 201 if (w.mActivityRecord == null && mDisplayContent.isKeyguardGoingAway()) { 313 && (mWallpaperTarget.mActivityRecord == null in isWallpaperTargetAnimating() 314 || !mWallpaperTarget.mActivityRecord.isWaitingForTransitionStart()); in isWallpaperTargetAnimating() 840 final boolean newTargetHidden = wallpaperTarget.mActivityRecord != null in updateWallpaperWindowsTarget() [all …]
|
D | WallpaperWindowToken.java | 173 } else if ((wallpaperTarget.mActivityRecord == null in updateWallpaperWindows() 175 || wallpaperTarget.mActivityRecord.isVisibleRequested()) in updateWallpaperWindows() 212 || (wpTarget.mActivityRecord != null in setVisibility() 213 && !mTransitionController.isCollecting(wpTarget.mActivityRecord)); in setVisibility()
|
D | ImeInsetsSourceProvider.java | 135 startingData = targetWin.mActivityRecord.mStartingData; in getControl() 157 && imeControlTarget.getWindow().mActivityRecord == null) { in setClientVisible() 598 return win.mAnimatingExit || win.mActivityRecord != null in isImeTargetWindowClosing() 599 && (win.mActivityRecord.isInTransition() in isImeTargetWindowClosing() 600 && !win.mActivityRecord.isVisibleRequested() in isImeTargetWindowClosing() 601 || win.mActivityRecord.willCloseOrEnterPip()); in isImeTargetWindowClosing() 612 && mImeRequester.getWindow().mActivityRecord == target.getWindow().mActivityRecord; in isTargetChangedWithinActivity()
|
D | TaskPositioningController.java | 174 if (win == null || win.mActivityRecord == null) { in startPositioningLocked() 203 && displayContent.mCurrentFocus.mActivityRecord == win.mActivityRecord) { in startPositioningLocked()
|
D | SmoothDimmer.java | 193 if (!mDimState.mIsVisible && ws != null && ws.mActivityRecord != null in updateDims() 194 && ws.mActivityRecord.mStartingData != null) { in updateDims()
|
D | InsetsPolicy.java | 386 } else if (w.mActivityRecord != null && w.mActivityRecord.mImeInsetsFrozenUntilStartInput) { in adjustVisibilityForIme() 504 ComponentName component = focusedWin.mActivityRecord != null in getStatusControlTarget() 505 ? focusedWin.mActivityRecord.mActivityComponent : null; in getStatusControlTarget() 564 ComponentName component = focusedWin.mActivityRecord != null in getNavControlTarget() 565 ? focusedWin.mActivityRecord.mActivityComponent : null; in getNavControlTarget()
|
D | InputMonitor.java | 253 inputWindowHandle.setInputApplicationHandle(w.mActivityRecord != null in populateInputWindowHandle() 254 ? w.mActivityRecord.getInputApplicationHandle(false /* update */) : null); in populateInputWindowHandle() 258 inputWindowHandle.setPaused(w.mActivityRecord != null && w.mActivityRecord.paused); in populateInputWindowHandle() 420 && recentsAnimationController.shouldApplyInputConsumer(focus.mActivityRecord)) in updateInputFocusRequest() 637 && recentsAnimationController.shouldApplyInputConsumer(w.mActivityRecord); in accept()
|
D | ImeTargetVisibilityPolicy.java | 80 || imeLayeringTarget.mActivityRecord != imeInputTarget.getActivityRecord()); in canComputeImeParent()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivitySnapshotControllerTests.java | 81 openingWindow.mActivityRecord.commitVisibility( in testOpenActivityTransition() 85 closingWindow.mActivityRecord.commitVisibility( in testOpenActivityTransition() 88 windows.add(openingWindow.mActivityRecord); in testOpenActivityTransition() 89 windows.add(closingWindow.mActivityRecord); in testOpenActivityTransition() 98 belowClose.mActivityRecord.commitVisibility( in testOpenActivityTransition() 100 windows.add(belowClose.mActivityRecord); in testOpenActivityTransition() 103 assertEquals(belowClose.mActivityRecord, in testOpenActivityTransition() 113 closingWindow.mActivityRecord.commitVisibility( in testCloseActivityTransition() 117 openingWindow.mActivityRecord.commitVisibility( in testCloseActivityTransition() 120 windows.add(openingWindow.mActivityRecord); in testCloseActivityTransition() [all …]
|
D | TaskSnapshotControllerTest.java | 75 closingWindow.mActivityRecord.commitVisibility( in testGetClosingApps_closing() 78 closingApps.add(closingWindow.mActivityRecord); in testGetClosingApps_closing() 82 assertEquals(closingWindow.mActivityRecord.getTask(), closingTasks.valueAt(0)); in testGetClosingApps_closing() 91 closingWindow.mActivityRecord.commitVisibility( in testGetClosingApps_notClosing() 93 openingWindow.mActivityRecord.commitVisibility( in testGetClosingApps_notClosing() 96 closingApps.add(closingWindow.mActivityRecord); in testGetClosingApps_notClosing() 106 closingWindow.mActivityRecord.commitVisibility( in testGetClosingApps_skipClosingAppsSnapshotTasks() 109 closingApps.add(closingWindow.mActivityRecord); in testGetClosingApps_skipClosingAppsSnapshotTasks() 112 Sets.newArraySet(closingWindow.mActivityRecord.getTask())); in testGetClosingApps_skipClosingAppsSnapshotTasks() 134 disabledWindow.mActivityRecord.setRecentsScreenshotEnabled(false); in testGetSnapshotMode() [all …]
|
D | RemoteAnimationControllerTest.java | 121 win.mActivityRecord = null; in createAppOverlayWindow() 129 mDisplayContent.mOpeningApps.add(win.mActivityRecord); in testForwardsShowBackdrop() 133 win.mActivityRecord, in testForwardsShowBackdrop() 162 mDisplayContent.mOpeningApps.add(win.mActivityRecord); in testRun() 166 win.mActivityRecord, in testRun() 187 assertEquals(win.mActivityRecord.getPrefixOrderIndex(), app.prefixOrderIndex); in testRun() 188 assertEquals(win.mActivityRecord.getTask().mTaskId, app.taskId); in testRun() 207 win.mActivityRecord, in testCancel() 221 win.mActivityRecord, in testTimeout() 242 win.mActivityRecord, new Point(50, 100), null, new Rect(50, 100, 150, 150), in testTimeout_scaled() [all …]
|
D | WindowStateTests.java | 291 int initialMode = appWindow.mActivityRecord.getWindowingMode(); in testCanBeImeTarget() 292 appWindow.mActivityRecord.setWindowingMode(WINDOWING_MODE_PINNED); in testCanBeImeTarget() 294 appWindow.mActivityRecord.setWindowingMode(initialMode); in testCanBeImeTarget() 298 appWindow.mActivityRecord.setVisibleRequested(false); in testCanBeImeTarget() 425 assertThat(appWindow.mActivityRecord.currentLaunchCanTurnScreenOn(), in testPrepareWindowToDisplayDuringRelayout() 432 app.mActivityRecord.setVisible(true); in testCanAffectSystemUiFlags() 434 app.mActivityRecord.setVisible(false); in testCanAffectSystemUiFlags() 436 app.mActivityRecord.setVisible(true); in testCanAffectSystemUiFlags() 444 app.mActivityRecord.setVisible(true); in testCanAffectSystemUiFlags_starting() 454 app.mActivityRecord.setVisible(true); in testCanAffectSystemUiFlags_disallow() [all …]
|
D | AnimatingActivityRegistryTest.java | 67 "activity2").mActivityRecord; in testDeferring() 90 "window2").mActivityRecord; in testContainerRemoved()
|
D | RefreshRatePolicyTest.java | 296 overrideWindow.mActivityRecord.mSurfaceAnimator.startAnimation( in testAnimatingAppOverridePreferredModeId() 306 overrideWindow.mActivityRecord.mSurfaceAnimator.cancelAnimation(); in testAnimatingAppOverridePreferredModeId() 310 transition.collect(overrideWindow.mActivityRecord); in testAnimatingAppOverridePreferredModeId() 337 overrideWindow.mActivityRecord.mSurfaceAnimator.startAnimation( in testAnimatingAppOverridePreferredRefreshRate() 362 window.mActivityRecord.mSurfaceAnimator.startAnimation( in testAnimatingDenylist() 388 cameraUsingWindow.mActivityRecord.mSurfaceAnimator.startAnimation( in testAnimatingCamera() 409 window.mActivityRecord.mSurfaceAnimator.startAnimation( in testAppMaxRefreshRate() 430 window.mActivityRecord.mSurfaceAnimator.startAnimation( in testAppMinRefreshRate()
|
D | TaskSnapshotCacheTest.java | 70 mCache.onAppRemoved(window.mActivityRecord); in testAppRemoved() 81 mCache.onAppDied(window.mActivityRecord); in testAppDied()
|
D | ActivityRecordTests.java | 2649 closingWindow.mActivityRecord.commitVisibility( in testStuckExitingWindow() 3226 app.mActivityRecord.commitVisibility(false, false); in testImeInsetsFrozenFlag_resetWhenNoImeFocusableInActivity() 3227 app.mActivityRecord.onWindowsGone(); in testImeInsetsFrozenFlag_resetWhenNoImeFocusableInActivity() 3229 assertTrue(app.mActivityRecord.mLastImeShown); in testImeInsetsFrozenFlag_resetWhenNoImeFocusableInActivity() 3230 assertTrue(app.mActivityRecord.mImeInsetsFrozenUntilStartInput); in testImeInsetsFrozenFlag_resetWhenNoImeFocusableInActivity() 3233 app.mActivityRecord.forAllWindows(w -> { in testImeInsetsFrozenFlag_resetWhenNoImeFocusableInActivity() 3238 app.mActivityRecord.commitVisibility(true, false); in testImeInsetsFrozenFlag_resetWhenNoImeFocusableInActivity() 3239 app.mActivityRecord.onWindowsVisible(); in testImeInsetsFrozenFlag_resetWhenNoImeFocusableInActivity() 3241 assertFalse(app.mActivityRecord.mImeInsetsFrozenUntilStartInput); in testImeInsetsFrozenFlag_resetWhenNoImeFocusableInActivity() 3264 app.mActivityRecord.commitVisibility(false, false); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget() [all …]
|
D | DisplayContentTests.java | 183 final ActivityRecord exitingApp = exitingAppWindow.mActivityRecord; in testForAllWindows() 532 window1.mActivityRecord.mTargetSdk = targetSdk; in doTestFocusedWindowMultipleDisplays() 548 window2.mActivityRecord.mTargetSdk = targetSdk; in doTestFocusedWindowMultipleDisplays() 562 window1.mActivityRecord.setVisibleRequested(false); in doTestFocusedWindowMultipleDisplays() 563 window1.getDisplayContent().setFocusedApp(window1.mActivityRecord); in doTestFocusedWindowMultipleDisplays() 637 ws.mActivityRecord.setBounds(bounds); in testImeIsAttachedToDisplayForLetterboxedApp() 643 .mActivityRecord.getSurfaceControl()); in testImeIsAttachedToDisplayForLetterboxedApp() 899 window.mActivityRecord.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testOrientationDefinedByKeyguard() 1194 .mActivityRecord.getSurfaceControl(), dc.computeImeParent()); in testComputeImeParent_app() 1210 spyOn(mAppWindow.mActivityRecord); in testComputeImeParent_app_notMatchParentBounds() [all …]
|
D | WindowManagerServiceTests.java | 279 eq(win.mActivityRecord)); in testRelayoutExitingWindow_legacy() 282 win.mActivityRecord.mAppStopped = true; in testRelayoutExitingWindow_legacy() 304 win.mActivityRecord.setVisibleRequested(false); in testRelayoutExitingWindow_legacy() 305 win.mActivityRecord.setVisible(false); in testRelayoutExitingWindow_legacy() 319 win.mActivityRecord = null; in testRelayoutExitingWindow_legacy() 339 eq(win.mActivityRecord)); in testRelayoutExitingWindow() 342 win.mActivityRecord.mAppStopped = true; in testRelayoutExitingWindow() 365 win.mActivityRecord.setVisibleRequested(false); in testRelayoutExitingWindow() 366 win.mActivityRecord.setVisible(false); in testRelayoutExitingWindow() 380 win.mActivityRecord = null; in testRelayoutExitingWindow() [all …]
|
/frameworks/opt/car/services/builtInServices/tests/src/com/android/server/wm/ |
D | ActivityRecordWrapperTest.java | 32 private ActivityRecord mActivityRecord; field in ActivityRecordWrapperTest 36 ActivityRecordWrapper wrapper = ActivityRecordWrapper.create(mActivityRecord); in create_returnsActivityOptionWrapper() 38 assertThat(wrapper.getActivityRecord()).isSameInstanceAs(mActivityRecord); in create_returnsActivityOptionWrapper() 39 assertThat(wrapper.toString()).isEqualTo(mActivityRecord.toString()); in create_returnsActivityOptionWrapper()
|