Home
last modified time | relevance | path

Searched refs:newBounds (Results 1 – 25 of 33) sorted by relevance

12

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DStatusBarBoundsProviderTest.kt80 val newBounds = Rect(START_SIDE_BOUNDS).apply { left += 1 } regex
82 startSideContent.setBoundsOnScreen(newBounds)
89 val newBounds = Rect(START_SIDE_BOUNDS).apply { left += 1 } regex
91 startSideContent.setBoundsOnScreen(newBounds)
100 val newBounds = Rect(START_SIDE_BOUNDS).apply { left += 1 } regex
102 startSideContent.setBoundsOnScreen(newBounds)
112 startSideContent.layout(newBounds)
122 endSideContent.setBoundsOnScreen(newBounds)
131 endSideContent.setBoundsOnScreen(newBounds)
142 endSideContent.setBoundsOnScreen(newBounds)
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
H A DResizeVeil.java157 private void relayout(Rect newBounds, SurfaceControl.Transaction t) { in relayout() argument
158 mViewHost.relayout(newBounds.width(), newBounds.height()); in relayout()
159 t.setWindowCrop(mVeilSurface, newBounds.width(), newBounds.height()); in relayout()
160 t.setPosition(mParentSurface, newBounds.left, newBounds.top); in relayout()
161 t.setWindowCrop(mParentSurface, newBounds.width(), newBounds.height()); in relayout()
168 public void updateResizeVeil(Rect newBounds) { in updateResizeVeil() argument
170 updateResizeVeil(t, newBounds); in updateResizeVeil()
179 public void updateResizeVeil(SurfaceControl.Transaction t, Rect newBounds) { in updateResizeVeil() argument
180 relayout(newBounds, t); in updateResizeVeil()
H A DDesktopModeWindowDecoration.java313 public void updateResizeVeil(Rect newBounds) { in updateResizeVeil() argument
314 mResizeVeil.updateResizeVeil(newBounds); in updateResizeVeil()
320 public void updateResizeVeil(SurfaceControl.Transaction tx, Rect newBounds) { in updateResizeVeil() argument
321 mResizeVeil.updateResizeVeil(tx, newBounds); in updateResizeVeil()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DFloatingContentCoordinator.kt203 val newBounds = content.calculateNewBoundsOnOverlap( regex
216 if (!newBounds.isEmpty) {
217 content.moveToBounds(newBounds)
301 val newBounds = if (usePositionBelow) newContentBoundsBelow else newContentBoundsAbove regex
307 return if (allowedBounds.contains(newBounds)) newBounds else Rect()
H A DDisplayLayout.java413 final Rect[] newBounds = new Rect[cutoutRects.length]; in calculateDisplayCutoutForRotation() local
420 newBounds[getBoundIndexFromRotation(i, rotation)] = rect; in calculateDisplayCutoutForRotation()
428 DisplayCutout.constructDisplayCutout(newBounds, waterfallInsets, newInfo), in calculateDisplayCutoutForRotation()
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/
H A DRegionSampler.kt246 val newBounds = RectF() regex
248 newBounds.left = ((originalBounds.left / screenWidth) + wallpaperPageNum) / numScreens
249 newBounds.right = ((originalBounds.right / screenWidth) + wallpaperPageNum) / numScreens
251 newBounds.top = originalBounds.top / screenHeight
252 newBounds.bottom = originalBounds.bottom / screenHeight
254 return newBounds
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMultiProducerActivity.java159 Rect newBounds = new Rect(); in run() local
198 newBounds.set(surfaceOrigin[0], surfaceOrigin[1], in run()
201 if (!currentFrameBounds.equals(newBounds)) { in run()
202 currentFrameBounds.set(newBounds); in run()
220 newBounds.set(surfaceOrigin[0], surfaceOrigin[1], in run()
223 if (!currentBackBounds.equals(newBounds)) { in run()
224 currentBackBounds.set(newBounds); in run()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarBoundsProvider.kt48 val newBounds = BoundsPair(start = visibleStartSideBounds, end = visibleEndSideBounds) regex
49 if (previousBounds != newBounds) {
50 previousBounds = newBounds
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
H A DSplitDecorManager.java185 public void onResizing(ActivityManager.RunningTaskInfo resizingTask, Rect newBounds, in onResizing() argument
194 mOldBounds.set(newBounds); in onResizing()
196 mResizingBounds.set(newBounds); in onResizing()
201 newBounds.width() > mOldBounds.width() || newBounds.height() > mOldBounds.height(); in onResizing()
217 final boolean isLandscape = newBounds.height() == sideBounds.height(); in onResizing()
242 newBounds.width() / 2 - mIconSize / 2, in onResizing()
243 newBounds.height() / 2 - mIconSize / 2); in onResizing()
/aosp14/frameworks/base/core/java/com/android/internal/policy/
H A DBackdropFrameRenderer.java304 private void redrawLocked(Rect newBounds, boolean fullscreen) { in redrawLocked() argument
327 final int left = mLastXOffset + newBounds.left; in redrawLocked()
328 final int top = mLastYOffset + newBounds.top; in redrawLocked()
329 final int width = newBounds.width(); in redrawLocked()
330 final int height = newBounds.height(); in redrawLocked()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
H A DTvPipBasicTest.kt58 testApp.ui?.visibleBounds?.let { newBounds ->
59 assertEquals("Pip window ratio has changed", actualRatio, newBounds.ratio)
/aosp14/frameworks/base/core/java/android/window/
H A DConfigurationHelper.java112 final Rect newBounds = newConfig.windowConfiguration.getBounds(); in shouldUpdateWindowMetricsBounds() local
117 return !currentBounds.equals(newBounds) || !currentMaxBounds.equals(newMaxBounds); in shouldUpdateWindowMetricsBounds()
/aosp14/frameworks/base/core/java/android/view/
H A DPrivacyIndicatorBounds.java71 Rect[] newBounds = ArrayUtils.cloneOrNull(mStaticBounds); in updateBoundsForRotation() local
72 newBounds[rotation] = bounds; in updateBoundsForRotation()
73 return updateStaticBounds(newBounds); in updateBoundsForRotation()
H A DWindowCallbacks.java44 void onWindowSizeIsChanging(Rect newBounds, boolean fullscreen, Rect systemInsets, in onWindowSizeIsChanging() argument
H A DDisplayCutout.java1178 final Rect[] newBounds = getBoundingRectsAll(); in getRotated() local
1180 for (int i = 0; i < newBounds.length; ++i) { in getRotated()
1181 if (newBounds[i].isEmpty()) continue; in getRotated()
1182 RotationUtils.rotateBounds(newBounds[i], displayBounds, rotation); in getRotated()
1184 Collections.rotate(Arrays.asList(newBounds), -rotation); in getRotated()
1194 DisplayCutout.constructDisplayCutout(newBounds, waterfallInsets, newInfo); in getRotated()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
H A DFluidResizeTaskPositionerTest.kt485 val newBounds = Rect( regex
491 newBounds.right.toFloat(),
492 newBounds.bottom.toFloat()
498 newBounds.left,
499 newBounds.top,
500 newBounds.right + 10,
513 token == taskBinder && change.ofBounds(newBounds)
531 newBounds.bottom // Stayed at the first resize destination.
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
H A DPipBoundsStateTest.java205 final Rect newBounds = new Rect(50, 50, 100, 75); in testSetBounds_updatesPipExclusionBounds() local
212 mPipBoundsState.setBounds(newBounds); in testSetBounds_updatesPipExclusionBounds()
214 verify(callback).accept(newBounds); in testSetBounds_updatesPipExclusionBounds()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
H A DPipMotionHelper.java124 private final Consumer<Rect> mUpdateBoundsCallback = (Rect newBounds) -> {
125 if (mPipBoundsState.getBounds().equals(newBounds)) {
129 mMenuController.updateMenuLayout(newBounds);
130 mPipBoundsState.setBounds(newBounds);
253 (Rect newBounds) -> { in movePip()
254 mMenuController.updateMenuLayout(newBounds); in movePip()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
H A DMagnificationModeSwitch.java372 final Rect newBounds = getDraggableWindowBounds(); in onWindowInsetChanged() local
373 if (mDraggableWindowBounds.equals(newBounds)) { in onWindowInsetChanged()
376 mDraggableWindowBounds.set(newBounds); in onWindowInsetChanged()
H A DWindowMagnificationSettings.java589 final Rect newBounds = getDraggableWindowBounds(); in onWindowInsetChanged() local
590 if (mDraggableWindowBounds.equals(newBounds)) { in onWindowInsetChanged()
593 mDraggableWindowBounds.set(newBounds); in onWindowInsetChanged()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DConfigurationContainer.java209 final Rect newBounds = mRequestedOverrideConfiguration.windowConfiguration.getBounds(); in updateRequestedOverrideConfiguration() local
211 && diffRequestedOverrideMaxBounds(newBounds) != BOUNDS_CHANGE_NONE) { in updateRequestedOverrideConfiguration()
212 mRequestedOverrideConfiguration.windowConfiguration.setMaxBounds(newBounds); in updateRequestedOverrideConfiguration()
H A DTaskPositioner.java419 private void updateDraggedBounds(Rect newBounds) {
420 mWindowDragBounds.set(newBounds);
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DImageTileSet.java74 int arg, Rect newBounds) { in addOnContentChangedListener()
/aosp14/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DActivityThreadTest.java640 final Rect newBounds = new Rect(newAppConfig.windowConfiguration.getAppBounds()); in testHandleConfigurationChanged_DoesntOverrideActivityConfig()
641 newBounds.bottom += 100; in testHandleConfigurationChanged_DoesntOverrideActivityConfig()
642 newAppConfig.windowConfiguration.setAppBounds(newBounds); in testHandleConfigurationChanged_DoesntOverrideActivityConfig()
643 newAppConfig.windowConfiguration.setBounds(newBounds); in testHandleConfigurationChanged_DoesntOverrideActivityConfig()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
H A DStageTaskListener.java303 void onResizing(Rect newBounds, Rect sideBounds, SurfaceControl.Transaction t, int offsetX, in onResizing() argument
306 mSplitDecorManager.onResizing(mRootTaskInfo, newBounds, sideBounds, t, offsetX, in onResizing()

12