/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/sizecompatui/ |
D | SizeCompatUILayout.java | 270 final Rect taskBounds = mTaskConfig.windowConfiguration.getBounds(); in updateButtonSurfacePosition() local 273 stableBounds.intersect(taskBounds); in updateButtonSurfacePosition() 277 ? stableBounds.left - taskBounds.left in updateButtonSurfacePosition() 278 : stableBounds.right - taskBounds.left - mButtonSize; in updateButtonSurfacePosition() 279 final int positionY = stableBounds.bottom - taskBounds.top - mButtonSize; in updateButtonSurfacePosition() 292 final Rect taskBounds = mTaskConfig.windowConfiguration.getBounds(); in updateHintSurfacePosition() local 295 stableBounds.intersect(taskBounds); in updateHintSurfacePosition() 299 ? stableBounds.left - taskBounds.left + mPopupOffsetX in updateHintSurfacePosition() 300 : stableBounds.right - taskBounds.left - mPopupOffsetX - mHint.getMeasuredWidth(); in updateHintSurfacePosition() 302 stableBounds.bottom - taskBounds.top - mPopupOffsetY - mHint.getMeasuredHeight(); in updateHintSurfacePosition()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipTransition.java | 143 Rect taskBounds = null; in prepareFinishResizeTransaction() local 147 taskBounds = destinationBounds; in prepareFinishResizeTransaction() 153 taskBounds = (direction == TRANSITION_DIRECTION_LEAVE_PIP) in prepareFinishResizeTransaction() 160 wct.setBounds(taskInfo.token, taskBounds); in prepareFinishResizeTransaction()
|
D | PipTaskOrganizer.java | 1240 final Rect taskBounds; in prepareFinishResizeTransaction() local 1244 taskBounds = destinationBounds; in prepareFinishResizeTransaction() 1249 taskBounds = null; in prepareFinishResizeTransaction() 1253 taskBounds = destinationBounds; in prepareFinishResizeTransaction() 1257 wct.setBounds(mToken, taskBounds); in prepareFinishResizeTransaction()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/startingsurface/ |
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()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
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()
|
D | WindowFrameTests.java | 179 final Rect taskBounds = new Rect( in testLayoutNonfullscreenTask() local 185 task.setBounds(taskBounds); in testLayoutNonfullscreenTask() 225 final Rect taskBounds = new Rect(taskLeft, taskTop, taskRight, taskBottom); in testLayoutLetterboxedWindow() local 230 task.setBounds(taskBounds); in testLayoutLetterboxedWindow()
|
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()
|
D | RootTaskTests.java | 252 final Rect taskBounds = new Rect(200, 200, 800, 1000); in testTaskOutset() local 254 task.setBounds(taskBounds); in testTaskOutset() 256 assertEquals(taskBounds.width() + 2 * taskOutset, task.getLastSurfaceSize().x); in testTaskOutset() 257 assertEquals(taskBounds.height() + 2 * taskOutset, task.getLastSurfaceSize().y); in testTaskOutset() 258 assertEquals(taskBounds.left - taskOutset, task.getLastSurfacePosition().x); in testTaskOutset() 259 assertEquals(taskBounds.top - taskOutset, task.getLastSurfacePosition().y); in testTaskOutset()
|
D | SizeCompatTests.java | 1389 final Rect taskBounds = new Rect(mTask.getBounds()); in testDisplayIgnoreOrientationRequest_newLaunchedOrientationAppInLetterbox() local 1399 assertEquals(taskBounds, displayBounds); in testDisplayIgnoreOrientationRequest_newLaunchedOrientationAppInLetterbox() 1433 final Rect taskBounds = new Rect(mTask.getBounds()); in testDisplayIgnoreOrientationRequest_newLaunchedMaxAspectApp() local 1437 assertEquals(displayBounds, taskBounds); in testDisplayIgnoreOrientationRequest_newLaunchedMaxAspectApp()
|
D | ActivityRecordTests.java | 2691 final Rect taskBounds = new Rect(100, 400, 600, 800); in testTransitionAnimationBounds() local 2695 task.getWindowConfiguration().setBounds(taskBounds); in testTransitionAnimationBounds() 2696 activity.getWindowConfiguration().setBounds(taskBounds); in testTransitionAnimationBounds() 2710 final Rect halfBounds = new Rect(taskBounds); in testTransitionAnimationBounds() 2716 assertEquals(taskBounds, activity.getAnimationBounds(ROOT_TASK_CLIP_AFTER_ANIM)); in testTransitionAnimationBounds()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotSurface.java | 167 final Rect taskBounds; in create() local 220 taskBounds = new Rect(); in create() 221 task.getBounds(taskBounds); in create() 240 appearance, windowFlags, windowPrivateFlags, taskBounds, currentOrientation, in create() 261 int windowPrivateFlags, Rect taskBounds, int currentOrientation, int activityType, in TaskSnapshotSurface() argument 273 mTaskBounds = taskBounds; in TaskSnapshotSurface()
|
D | TaskSnapshotController.java | 547 final Rect taskBounds = task.getBounds(); 549 final Rect systemBarInsets = getSystemBarInsets(taskBounds, insetsState); 553 final int taskWidth = taskBounds.width(); 554 final int taskHeight = taskBounds.height();
|
D | TaskLaunchParamsModifier.java | 1007 for (Rect taskBounds : taskBoundsToCheck) { in boundsConflict() 1008 final boolean leftClose = Math.abs(taskBounds.left - candidateBounds.left) in boundsConflict() 1010 final boolean topClose = Math.abs(taskBounds.top - candidateBounds.top) in boundsConflict() 1012 final boolean rightClose = Math.abs(taskBounds.right - candidateBounds.right) in boundsConflict() 1014 final boolean bottomClose = Math.abs(taskBounds.bottom - candidateBounds.bottom) in boundsConflict()
|
D | Task.java | 2420 final Rect taskBounds = getBounds(); in updateSurfaceSize() local 2421 width = taskBounds.width(); in updateSurfaceSize() 2422 height = taskBounds.height(); in updateSurfaceSize()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/ |
D | TaskSnapshotWindow.java | 199 final Rect taskBounds = new Rect(0, 0, taskSize.x, taskSize.y); in create() local 224 windowFlags, windowPrivateFlags, taskBounds, orientation, activityType, in create() 262 int appearance, int windowFlags, int windowPrivateFlags, Rect taskBounds, in TaskSnapshotWindow() argument 275 mTaskBounds = taskBounds; in TaskSnapshotWindow()
|