/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
D | PhonePipKeepClearAlgorithmTest.java | 68 final Rect outBounds = mPipKeepClearAlgorithm.findUnoccludedPosition(inBounds, in findUnoccludedPosition_withCollidingRestrictedKeepClearArea_movesBounds() local 71 assertFalse(outBounds.contains(keepClearRect)); in findUnoccludedPosition_withCollidingRestrictedKeepClearArea_movesBounds() 79 final Rect outBounds = mPipKeepClearAlgorithm.findUnoccludedPosition(inBounds, in findUnoccludedPosition_withNonCollidingRestrictedKeepClearArea_boundsUnchanged() local 82 assertEquals(inBounds, outBounds); in findUnoccludedPosition_withNonCollidingRestrictedKeepClearArea_boundsUnchanged() 90 final Rect outBounds = mPipKeepClearAlgorithm.findUnoccludedPosition(inBounds, Set.of(), in findUnoccludedPosition_withCollidingUnrestrictedKeepClearArea_moveBounds() local 93 assertFalse(outBounds.contains(keepClearRect)); in findUnoccludedPosition_withCollidingUnrestrictedKeepClearArea_moveBounds() 101 final Rect outBounds = mPipKeepClearAlgorithm.findUnoccludedPosition(inBounds, Set.of(), in findUnoccludedPosition_withNonCollidingUnrestrictedKeepClearArea_boundsUnchanged() local 104 assertEquals(inBounds, outBounds); in findUnoccludedPosition_withNonCollidingUnrestrictedKeepClearArea_boundsUnchanged() 119 final Rect outBounds = mPipKeepClearAlgorithm.adjust( in adjust_withCollidingRestrictedKeepClearArea_moveBounds() local 122 assertFalse(outBounds.contains(keepClearRect)); in adjust_withCollidingRestrictedKeepClearArea_moveBounds() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PhonePipKeepClearAlgorithm.java | 124 Rect outBounds = new Rect(defaultBounds); in findUnoccludedPosition() local 129 if (Rect.intersects(r, outBounds)) { in findUnoccludedPosition() 130 if (tryOffsetUp(outBounds, tmpRect, allowedBounds)) continue; in findUnoccludedPosition() 131 if (tryOffsetLeft(outBounds, tmpRect, allowedBounds)) continue; in findUnoccludedPosition() 132 if (tryOffsetDown(outBounds, tmpRect, allowedBounds)) continue; in findUnoccludedPosition() 133 if (tryOffsetRight(outBounds, tmpRect, allowedBounds)) continue; in findUnoccludedPosition() 136 return outBounds; in findUnoccludedPosition()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayHashController.java | 276 Rect outBounds) { in calculateDisplayHashBoundsLocked() argument 281 outBounds.set(boundsInWindow); in calculateDisplayHashBoundsLocked() 294 outBounds.intersectUnchecked(windowBounds); in calculateDisplayHashBoundsLocked() 298 "calculateDisplayHashBoundsLocked: boundsIntersectWindow=" + outBounds); in calculateDisplayHashBoundsLocked() 301 if (outBounds.isEmpty()) { in calculateDisplayHashBoundsLocked() 308 mTmpRectF.set(outBounds); in calculateDisplayHashBoundsLocked() 310 outBounds.set((int) mTmpRectF.left, (int) mTmpRectF.top, (int) mTmpRectF.right, in calculateDisplayHashBoundsLocked() 313 Slog.d(TAG, "calculateDisplayHashBoundsLocked: boundsInDisplay=" + outBounds); in calculateDisplayHashBoundsLocked() 319 outBounds.scale(magSpec.scale); in calculateDisplayHashBoundsLocked() 320 outBounds.offset((int) magSpec.offsetX, (int) magSpec.offsetY); in calculateDisplayHashBoundsLocked() [all …]
|
D | ConfigurationContainer.java | 410 public void getBounds(Rect outBounds) { in getBounds() argument 411 outBounds.set(getBounds()); in getBounds() 463 public void getRequestedOverrideBounds(Rect outBounds) { in getRequestedOverrideBounds() argument 464 outBounds.set(getRequestedOverrideBounds()); in getRequestedOverrideBounds()
|
D | LetterboxUiController.java | 758 void getLetterboxInnerBounds(Rect outBounds) { in getLetterboxInnerBounds() argument 760 outBounds.set(mLetterbox.getInnerFrame()); in getLetterboxInnerBounds() 763 adjustBoundsForTaskbar(w, outBounds); in getLetterboxInnerBounds() 766 outBounds.setEmpty(); in getLetterboxInnerBounds() 771 private void getLetterboxOuterBounds(Rect outBounds) { in getLetterboxOuterBounds() argument 773 outBounds.set(mLetterbox.getOuterFrame()); in getLetterboxOuterBounds() 775 outBounds.setEmpty(); in getLetterboxOuterBounds()
|
D | TaskLaunchParamsModifier.java | 717 @NonNull Rect outBounds) { in cascadeBounds() argument 718 outBounds.set(srcBounds); in cascadeBounds() 725 outBounds.offset(dx, dy); in cascadeBounds()
|
/frameworks/base/core/java/android/widget/ |
D | CalendarViewMaterialDelegate.java | 114 public boolean getBoundsForDate(long date, Rect outBounds) { in getBoundsForDate() argument 115 boolean result = mDayPickerView.getBoundsForDate(date, outBounds); in getBoundsForDate() 125 outBounds.top += extraVerticalOffset; in getBoundsForDate() 126 outBounds.bottom += extraVerticalOffset; in getBoundsForDate()
|
D | CalendarViewLegacyDelegate.java | 603 public boolean getBoundsForDate(long date, Rect outBounds) { in getBoundsForDate() argument 609 if (currWeekView.getBoundsForDate(calendarDate, outBounds)) { in getBoundsForDate() 618 outBounds.top += extraVerticalOffset; in getBoundsForDate() 619 outBounds.bottom += extraVerticalOffset; in getBoundsForDate() 1373 public boolean getBoundsForDate(Calendar date, Rect outBounds) { in getBoundsForDate() argument 1385 outBounds.left = cellSize * in getBoundsForDate() 1388 outBounds.left = cellSize * (mShowWeekNumber ? i + 1 : i); in getBoundsForDate() 1390 outBounds.top = 0; in getBoundsForDate() 1391 outBounds.right = outBounds.left + cellSize; in getBoundsForDate() 1392 outBounds.bottom = getHeight(); in getBoundsForDate()
|
D | CalendarView.java | 577 public boolean getBoundsForDate(long date, Rect outBounds) { in getBoundsForDate() argument 578 return mDelegate.getBoundsForDate(date, outBounds); in getBoundsForDate() 642 boolean getBoundsForDate(long date, Rect outBounds); in getBoundsForDate() argument
|
D | DayPickerPagerAdapter.java | 111 public boolean getBoundsForDate(Calendar day, Rect outBounds) { in getBoundsForDate() argument 118 return monthView.calendar.getBoundsForDay(dayOfMonth, outBounds); in getBoundsForDate()
|
D | DayPickerView.java | 322 public boolean getBoundsForDate(long timeInMillis, Rect outBounds) { 329 return mAdapter.getBoundsForDate(mTempCalendar, outBounds);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/ |
D | ShadeTouchHandler.java | 123 final Rect outBounds = new Rect(bounds); in getTouchInitiationRegion() local 124 outBounds.inset(0, 0, 0, outBounds.height() - mInitiationHeight); in getTouchInitiationRegion() 125 region.op(outBounds, Region.Op.UNION); in getTouchInitiationRegion()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/ |
D | CommunalTouchHandler.java | 92 final Rect outBounds = new Rect(bounds); in getTouchInitiationRegion() local 93 outBounds.inset(outBounds.width() - mInitiationWidth, 0, 0, 0); in getTouchInitiationRegion() 94 region.op(outBounds, Region.Op.UNION); in getTouchInitiationRegion()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | IconNormalizer.java | 136 public static float normalizeAdaptiveIcon(Drawable d, int size, @Nullable RectF outBounds) { in normalizeAdaptiveIcon() argument 147 if (outBounds != null) { in normalizeAdaptiveIcon() 149 outBounds.set( in normalizeAdaptiveIcon() 239 public synchronized float getScale(@NonNull Drawable d, @Nullable RectF outBounds, in getScale() argument 245 if (outBounds != null) { in getScale() 246 outBounds.set(mAdaptiveIconBounds); in getScale() 337 if (outBounds != null) { in getScale() 338 outBounds.set(((float) mBounds.left) / width, ((float) mBounds.top) / height, in getScale()
|
/frameworks/base/libs/hwui/ |
D | RevealClip.h | 44 void getBounds(Rect* outBounds) const { in getBounds() argument 45 outBounds->set(mX - mRadius, mY - mRadius, mX + mRadius, mY + mRadius); in getBounds()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityWindowManagerTest.java | 509 final Region outBounds = new Region(); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() local 512 mA11yWindowManager.computePartialInteractiveRegionForWindowLocked(windowId, outBounds); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 513 assertThat(outBounds.getBounds().width(), is(SCREEN_WIDTH)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 514 assertThat(outBounds.getBounds().height(), is(SCREEN_HEIGHT / 2)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 518 mA11yWindowManager.computePartialInteractiveRegionForWindowLocked(windowId, outBounds); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 519 assertThat(outBounds.getBounds().width(), is(SCREEN_WIDTH)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 520 assertThat(outBounds.getBounds().height(), is(SCREEN_HEIGHT / 2)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 532 final Region outBounds = new Region(); in computePartialInteractiveRegionForWindow_halfVisible_returnHalfRegion() local 535 mA11yWindowManager.computePartialInteractiveRegionForWindowLocked(windowId, outBounds); in computePartialInteractiveRegionForWindow_halfVisible_returnHalfRegion() 536 assertThat(outBounds.getBounds().width(), is(SCREEN_WIDTH)); in computePartialInteractiveRegionForWindow_halfVisible_returnHalfRegion() [all …]
|
D | AccessibilityWindowManagerWithAccessibilityWindowTest.java | 651 final Region outBounds = new Region(); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() local 654 mA11yWindowManager.computePartialInteractiveRegionForWindowLocked(windowId, outBounds); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 655 assertThat(outBounds.getBounds().width(), is(SCREEN_WIDTH)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 656 assertThat(outBounds.getBounds().height(), is(SCREEN_HEIGHT / 2)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 660 mA11yWindowManager.computePartialInteractiveRegionForWindowLocked(windowId, outBounds); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 661 assertThat(outBounds.getBounds().width(), is(SCREEN_WIDTH)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 662 assertThat(outBounds.getBounds().height(), is(SCREEN_HEIGHT / 2)); in computePartialInteractiveRegionForWindow_wholeVisible_returnWholeRegion() 679 final Region outBounds = new Region(); in computePartialInteractiveRegionForWindow_halfVisible_returnHalfRegion() local 682 mA11yWindowManager.computePartialInteractiveRegionForWindowLocked(windowId, outBounds); in computePartialInteractiveRegionForWindow_halfVisible_returnHalfRegion() 683 assertThat(outBounds.getBounds().width(), is(SCREEN_WIDTH)); in computePartialInteractiveRegionForWindow_halfVisible_returnHalfRegion() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipController.java | 270 final Rect outBounds = new Rect(); 271 final boolean changed = onDisplayRotationChanged(mContext, outBounds, currentBounds, 276 mTouchHandler.adjustBoundsForRotation(outBounds, mPipBoundsState.getBounds(), 295 updateMovementBounds(outBounds, true /* fromRotation */, false /* fromImeAdjustment */, 1089 final Rect outBounds = new Rect(toBounds); in updateMovementBounds() local 1094 if (outBounds.isEmpty()) { in updateMovementBounds() 1095 outBounds.set(mPipBoundsAlgorithm.getDefaultBounds()); in updateMovementBounds() 1099 mPipTaskOrganizer.onMovementBoundsChanged(outBounds, fromRotation, fromImeAdjustment, in updateMovementBounds() 1101 mPipTaskOrganizer.finishResizeForMenu(outBounds); in updateMovementBounds() 1103 outBounds, fromImeAdjustment, fromShelfAdjustment, rotation); in updateMovementBounds() [all …]
|
D | PipTouchHandler.java | 366 public void adjustBoundsForRotation(Rect outBounds, Rect curBounds, Rect insetBounds) { in adjustBoundsForRotation() argument 368 mPipBoundsAlgorithm.getMovementBounds(outBounds, insetBounds, toMovementBounds, 0); in adjustBoundsForRotation() 372 outBounds.offsetTo(outBounds.left, toMovementBounds.bottom); in adjustBoundsForRotation()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/ |
D | SplitLayout.java | 197 Rect outBounds = getBounds1(); in getRefBounds1() local 198 outBounds.offset(-mRootBounds.left, -mRootBounds.top); in getRefBounds1() 199 return outBounds; in getRefBounds1() 209 final Rect outBounds = getBounds2(); in getRefBounds2() local 210 outBounds.offset(-mRootBounds.left, -mRootBounds.top); in getRefBounds2() 211 return outBounds; in getRefBounds2() 226 final Rect outBounds = getDividerBounds(); in getRefDividerBounds() local 227 outBounds.offset(-mRootBounds.left, -mRootBounds.top); in getRefDividerBounds() 228 return outBounds; in getRefDividerBounds()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | SimpleIconFactory.java | 488 private synchronized float getScale(@NonNull Drawable d, @Nullable RectF outBounds) { in getScale() argument 491 if (outBounds != null) { in getScale() 492 outBounds.set(mAdaptiveIconBounds); in getScale() 594 if (outBounds != null) { in getScale() 595 outBounds.set(((float) mBounds.left) / width, ((float) mBounds.top) / height, in getScale()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | DisplayLayout.java | 319 public void getStableBounds(Rect outBounds) { in getStableBounds() argument 320 outBounds.set(0, 0, mWidth, mHeight); in getStableBounds() 321 outBounds.inset(mStableInsets); in getStableBounds()
|
/frameworks/base/core/java/android/view/ |
D | InsetsState.java | 482 public void getDisplayCutoutSafe(Rect outBounds) { in getDisplayCutoutSafe() argument 483 outBounds.set( in getDisplayCutoutSafe() 489 outBounds.left = displayFrame.left + cutout.getSafeInsetLeft(); in getDisplayCutoutSafe() 492 outBounds.top = displayFrame.top + cutout.getSafeInsetTop(); in getDisplayCutoutSafe() 495 outBounds.right = displayFrame.right - cutout.getSafeInsetRight(); in getDisplayCutoutSafe() 498 outBounds.bottom = displayFrame.bottom - cutout.getSafeInsetBottom(); in getDisplayCutoutSafe()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PipTouchHandler.java | 375 void adjustBoundsForRotation(Rect outBounds, Rect curBounds, Rect insetBounds) { in adjustBoundsForRotation() argument 377 mPipBoundsAlgorithm.getMovementBounds(outBounds, insetBounds, toMovementBounds, 0); in adjustBoundsForRotation() 381 outBounds.offsetTo(outBounds.left, toMovementBounds.bottom); in adjustBoundsForRotation()
|
/frameworks/base/core/java/android/view/accessibility/ |
D | AccessibilityWindowInfo.java | 404 public void getBoundsInScreen(Rect outBounds) { in getBoundsInScreen() argument 405 outBounds.set(mRegionInScreen.getBounds()); in getBoundsInScreen()
|