/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/freeform/ |
H A D | FreeformTaskListener.java | 70 final Rect taskBounds = taskInfo.configuration.windowConfiguration.getBounds(); in onTaskAppeared() local 74 .setWindowCrop(leash, taskBounds.width(), taskBounds.height()) in onTaskAppeared() 102 final Rect taskBounds = taskInfo.configuration.windowConfiguration.getBounds(); in onTaskInfoChanged() local 107 .setWindowCrop(leash, taskBounds.width(), taskBounds.height()) in onTaskInfoChanged()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/ |
H A D | CompatUIWindowManager.java | 242 final Rect taskBounds = mTaskConfig.windowConfiguration.getBounds(); in updateSurfacePosition() local 245 stableBounds.intersect(taskBounds); in updateSurfacePosition() 249 ? stableBounds.left - taskBounds.left in updateSurfacePosition() 250 : stableBounds.right - taskBounds.left - mCompatUILayout.getMeasuredWidth(); in updateSurfacePosition() 251 final int positionY = stableBounds.bottom - taskBounds.top in updateSurfacePosition()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/startingsurface/ |
H A D | TaskSnapshotWindowTest.java | 71 int windowFlags, Rect taskBounds) { in setupSurface() argument 77 assertEquals(width, taskBounds.width()); in setupSurface() 78 assertEquals(height, taskBounds.height()); in setupSurface() 79 Point taskSize = new Point(taskBounds.width(), taskBounds.height()); in setupSurface() 85 taskBounds, ORIENTATION_PORTRAIT, ACTIVITY_TYPE_STANDARD, in setupSurface()
|
/aosp12/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
H A D | OverviewTask.java | 108 final Rect taskBounds = mLauncher.getVisibleBounds(mTask); in dismissBySwipingUp() local 109 final int centerX = taskBounds.centerX(); in dismissBySwipingUp() 110 final int centerY = taskBounds.centerY(); in dismissBySwipingUp()
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | TaskSnapshotSurfaceTest.java | 78 int windowFlags, Rect taskBounds) { in setupSurface() argument 84 assertEquals(width, taskBounds.width()); in setupSurface() 85 assertEquals(height, taskBounds.height()); in setupSurface() 86 Point taskSize = new Point(taskBounds.width(), taskBounds.height()); in setupSurface() 91 Color.RED, Color.BLUE), sysuiVis, windowFlags, 0, taskBounds, ORIENTATION_PORTRAIT, in setupSurface()
|
H A D | WindowFrameTests.java | 182 final Rect taskBounds = new Rect( in testLayoutNonfullscreenTask() local 188 task.setBounds(taskBounds); in testLayoutNonfullscreenTask() 228 final Rect taskBounds = new Rect(taskLeft, taskTop, taskRight, taskBottom); in testLayoutLetterboxedWindow() local 233 task.setBounds(taskBounds); in testLayoutLetterboxedWindow()
|
H A D | DualDisplayAreaGroupPolicyTest.java | 170 final Rect taskBounds = new Rect(mFirstTask.getBounds()); in testLaunchPortraitApp_fillsDisplayAreaGroup() local 176 assertThat(taskBounds).isEqualTo(dagBounds); in testLaunchPortraitApp_fillsDisplayAreaGroup() 177 assertThat(activityBounds).isEqualTo(taskBounds); in testLaunchPortraitApp_fillsDisplayAreaGroup() 221 final Rect taskBounds = new Rect(mFirstTask.getBounds()); in testLaunchLandscapeApp_activityIsLetterboxForFixedOrientationInDisplayAreaGroup() local 228 assertThat(taskBounds).isEqualTo(dagBounds); in testLaunchLandscapeApp_activityIsLetterboxForFixedOrientationInDisplayAreaGroup()
|
H A D | AppTransitionTests.java | 438 final Rect taskBounds = new Rect(); in testActivityRecordReparentToTaskFragment() local 439 task.getBounds(taskBounds); in testActivityRecordReparentToTaskFragment() 440 taskFragment.setBounds(0, 0, taskBounds.right / 2, taskBounds.bottom); in testActivityRecordReparentToTaskFragment()
|
H A D | ActivityRecordTests.java | 2739 final Rect taskBounds = task.getBounds(); in testStartingWindowInTaskFragment() local 2740 final int width = taskBounds.width(); in testStartingWindowInTaskFragment() 2741 final int height = taskBounds.height(); in testStartingWindowInTaskFragment() 2772 assertEquals(taskBounds, activity1.mStartingWindow.getBounds()); in testStartingWindowInTaskFragment() 2790 final Rect taskBounds = new Rect(100, 400, 600, 800); in testTransitionAnimationBounds() local 2794 task.getWindowConfiguration().setBounds(taskBounds); in testTransitionAnimationBounds() 2795 activity.getWindowConfiguration().setBounds(taskBounds); in testTransitionAnimationBounds() 2809 final Rect halfBounds = new Rect(taskBounds); in testTransitionAnimationBounds() 2815 assertEquals(taskBounds, activity.getAnimationBounds(ROOT_TASK_CLIP_AFTER_ANIM)); in testTransitionAnimationBounds() 2828 final Rect taskBounds = new Rect(100, 400, 600, 800); in testTransitionAnimationBounds_returnTaskFragment() local [all …]
|
H A D | RootTaskTests.java | 248 final Rect taskBounds = new Rect(200, 200, 800, 1000); in testTaskOutset() local 250 task.setBounds(taskBounds); in testTaskOutset() 252 assertEquals(taskBounds.width() + 2 * taskOutset, task.getLastSurfaceSize().x); in testTaskOutset() 253 assertEquals(taskBounds.height() + 2 * taskOutset, task.getLastSurfaceSize().y); in testTaskOutset() 254 assertEquals(taskBounds.left - taskOutset, task.getLastSurfacePosition().x); in testTaskOutset() 255 assertEquals(taskBounds.top - taskOutset, task.getLastSurfacePosition().y); in testTaskOutset()
|
H A D | SizeCompatTests.java | 1513 final Rect taskBounds = new Rect(mTask.getBounds()); in testDisplayIgnoreOrientationRequest_newLaunchedOrientationAppInLetterbox() local 1523 assertEquals(taskBounds, displayBounds); in testDisplayIgnoreOrientationRequest_newLaunchedOrientationAppInLetterbox() 1557 final Rect taskBounds = new Rect(mTask.getBounds()); in testDisplayIgnoreOrientationRequest_newLaunchedMaxAspectApp() local 1561 assertEquals(displayBounds, taskBounds); in testDisplayIgnoreOrientationRequest_newLaunchedMaxAspectApp()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
H A D | TaskShortcutFactory.java | 217 final Rect taskBounds = new Rect(position[0], position[1], in onClick() local 224 taskBounds.width(), taskBounds.height(), mThumbnailView, 1f, in onClick() 233 taskId, thumbnail, taskBounds)); in onClick()
|
/aosp12/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskSnapshotSurface.java | 168 final Rect taskBounds; in create() local 222 taskBounds = new Rect(); in create() 223 task.getBounds(taskBounds); in create() 243 appearance, windowFlags, windowPrivateFlags, taskBounds, currentOrientation, in create() 264 int windowPrivateFlags, Rect taskBounds, int currentOrientation, int activityType, in TaskSnapshotSurface() argument 276 mTaskBounds = taskBounds; in TaskSnapshotSurface()
|
H A D | TaskSnapshotController.java | 556 final Rect taskBounds = task.getBounds(); 558 final Rect systemBarInsets = getSystemBarInsets(taskBounds, insetsState); 562 final int taskWidth = taskBounds.width(); 563 final int taskHeight = taskBounds.height();
|
H A D | TaskLaunchParamsModifier.java | 1039 for (Rect taskBounds : taskBoundsToCheck) { in boundsConflict() 1040 final boolean leftClose = Math.abs(taskBounds.left - candidateBounds.left) in boundsConflict() 1042 final boolean topClose = Math.abs(taskBounds.top - candidateBounds.top) in boundsConflict() 1044 final boolean rightClose = Math.abs(taskBounds.right - candidateBounds.right) in boundsConflict() 1046 final boolean bottomClose = Math.abs(taskBounds.bottom - candidateBounds.bottom) in boundsConflict()
|
H A D | TaskFragmentOrganizerController.java | 617 final Rect taskBounds = parentTask.getBounds(); in isActivityEmbedded() local 619 return !taskBounds.equals(taskFragBounds) && taskBounds.contains(taskFragBounds); in isActivityEmbedded()
|
H A D | Task.java | 2208 final Rect taskBounds = getBounds(); in updateSurfaceSize() local 2209 width = taskBounds.width(); in updateSurfaceSize() 2210 height = taskBounds.height(); in updateSurfaceSize()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
H A D | PipTransition.java | 354 Rect taskBounds = null; in prepareFinishResizeTransaction() local 358 taskBounds = destinationBounds; in prepareFinishResizeTransaction() 364 taskBounds = (direction == TRANSITION_DIRECTION_LEAVE_PIP) in prepareFinishResizeTransaction() 371 wct.setBounds(taskInfo.token, taskBounds); in prepareFinishResizeTransaction()
|
H A D | PipTaskOrganizer.java | 1253 final Rect taskBounds; in prepareFinishResizeTransaction() local 1257 taskBounds = destinationBounds; in prepareFinishResizeTransaction() 1262 taskBounds = null; in prepareFinishResizeTransaction() 1266 taskBounds = destinationBounds; in prepareFinishResizeTransaction() 1270 wct.setBounds(mToken, taskBounds); in prepareFinishResizeTransaction()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/ |
H A D | TaskSnapshotWindow.java | 203 final Rect taskBounds = new Rect(0, 0, taskSize.x, taskSize.y); in create() local 225 windowFlags, windowPrivateFlags, taskBounds, orientation, activityType, in create() 263 int appearance, int windowFlags, int windowPrivateFlags, Rect taskBounds, in TaskSnapshotWindow() argument 275 mTaskBounds = taskBounds; in TaskSnapshotWindow()
|