/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipMotionHelper.java | 69 private final Rect mBounds = new Rect(); field in PipMotionHelper 127 private final Consumer<Rect> mUpdateBoundsCallback = mBounds::set; 178 mBounds, mTemporaryBounds, null); in PipMotionHelper() 189 return !mAnimatingToBounds.isEmpty() ? mAnimatingToBounds : mBounds; in getFloatingBoundsOnScreen() 208 mBounds.set(mPipTaskOrganizer.getLastReportedBounds()); in synchronizePinnedStackBounds() 246 mBounds.set(toBounds); in movePip() 249 mPipTaskOrganizer.scheduleUserResizePip(mBounds, mTemporaryBounds, null); in movePip() 255 .spring(FloatProperties.RECT_WIDTH, mBounds.width(), mSpringConfig) in movePip() 256 .spring(FloatProperties.RECT_HEIGHT, mBounds.height(), mSpringConfig) in movePip() 272 final float desiredWidth = mBounds.width() / 2; in animateIntoDismissTarget() [all …]
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | IconNormalizer.java | 83 private final Rect mBounds; field in IconNormalizer 96 mBounds = new Rect(); in IconNormalizer() 167 float iconRatio = ((float) mBounds.width()) / mBounds.height(); in isShape() 181 mMatrix.setScale(mBounds.width(), mBounds.height()); in isShape() 182 mMatrix.postTranslate(mBounds.left, mBounds.top); in isShape() 203 int y = mBounds.top; in isTransparentBitmap() 207 int rowSizeDiff = mMaxSize - mBounds.right; in isTransparentBitmap() 210 for (; y < mBounds.bottom; y++) { in isTransparentBitmap() 211 index += mBounds.left; in isTransparentBitmap() 212 for (int x = mBounds.left; x < mBounds.right; x++) { in isTransparentBitmap() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | AppearanceRegion.java | 34 private @NonNull Rect mBounds; field in AppearanceRegion 45 return mAppearance == sa.mAppearance && mBounds.equals(sa.mBounds); in equals() 52 return "AppearanceRegion{" + appearanceString + " bounds=" + mBounds.toShortString() + "}"; in toString() 71 this.mBounds = bounds; in AppearanceRegion() 73 NonNull.class, null, mBounds); in AppearanceRegion() 85 return mBounds; in getBounds() 95 dest.writeTypedObject(mBounds, flags); in writeToParcel() 113 this.mBounds = bounds; in AppearanceRegion() 115 NonNull.class, null, mBounds); in AppearanceRegion()
|
/frameworks/base/libs/hwui/ |
D | Outline.h | 35 if (mType == Type::RoundRect && left == mBounds.left && right == mBounds.right && in setRoundRect() 36 top == mBounds.top && bottom == mBounds.bottom && radius == mRadius) { in setRoundRect() 42 mBounds.set(left, top, right, bottom); in setRoundRect() 67 mBounds.set(outline->getBounds()); in setPath() 103 outRect->set(mBounds); in getAsRoundRect() 118 const Rect& getBounds() const { return mBounds; } in getBounds() 125 Rect mBounds; variable
|
D | VertexBuffer.h | 109 mBounds.setEmpty(); 118 mBounds.set(current->x, current->y, current->x, current->y); 120 mBounds.expandToCover(current->x, current->y); 126 const Rect& getBounds() const { return mBounds; } in getBounds() 141 void setBounds(Rect bounds) { mBounds = bounds; } in setBounds() 158 Rect mBounds; variable
|
/frameworks/base/core/java/android/app/ |
D | WindowConfiguration.java | 56 private Rect mBounds = new Rect(); field in WindowConfiguration 229 dest.writeParcelable(mBounds, flags); in writeToParcel() 239 mBounds = source.readParcelable(Rect.class.getClassLoader()); in readFromParcel() 272 mBounds.setEmpty(); in setBounds() 276 mBounds.set(rect); in setBounds() 328 return mBounds; in getBounds() 382 setBounds(other.mBounds); in setTo() 419 if (!delta.mBounds.isEmpty() && !delta.mBounds.equals(mBounds)) { in updateFrom() 421 setBounds(delta.mBounds); in updateFrom() 460 setBounds(delta.mBounds); in setTo() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | LaunchParamsController.java | 155 if (mTmpParams.mBounds.isEmpty()) { in layoutTask() 161 task.setBounds(mTmpParams.mBounds); in layoutTask() 167 task.setLastNonFullscreenBounds(mTmpParams.mBounds); in layoutTask() 191 final Rect mBounds = new Rect(); field in LaunchParamsController.LaunchParams 202 mBounds.setEmpty(); in reset() 209 mBounds.set(params.mBounds); in set() 216 return mBounds.isEmpty() && mPreferredTaskDisplayArea == null in isEmpty() 237 return mBounds != null ? mBounds.equals(that.mBounds) : that.mBounds == null; in equals() 242 int result = mBounds != null ? mBounds.hashCode() : 0; in hashCode()
|
D | TaskLaunchParamsModifier.java | 181 outParams.mBounds.set(options.getLaunchBounds()); in calculate() 182 if (DEBUG) appendLog("activity-options-bounds=" + outParams.mBounds); in calculate() 187 if (DEBUG) appendLog("activity-options-fullscreen=" + outParams.mBounds); in calculate() 192 outParams.mBounds.set(mTmpBounds); in calculate() 194 if (DEBUG) appendLog("bounds-from-layout=" + outParams.mBounds); in calculate() 228 if (!currentParams.mBounds.isEmpty()) { in calculate() 233 outParams.mBounds.set(currentParams.mBounds); in calculate() 236 if (DEBUG) appendLog("inherit-bounds=" + outParams.mBounds); in calculate() 252 outParams.mBounds.setEmpty(); in calculate() 278 adjustBoundsToFitInDisplay(display, outParams.mBounds); in calculate() [all …]
|
D | LaunchParamsPersister.java | 249 changed |= !Objects.equals(params.mBounds, task.mLastNonFullscreenBounds); in saveTaskToLaunchParam() 250 params.mBounds.set(task.mLastNonFullscreenBounds); in saveTaskToLaunchParam() 252 changed |= !params.mBounds.isEmpty(); in saveTaskToLaunchParam() 253 params.mBounds.setEmpty(); in saveTaskToLaunchParam() 326 outParams.mBounds.set(persistableParams.mBounds); in getLaunchParams() 471 final Rect mBounds = new Rect(); field in LaunchParamsPersister.PersistableLaunchParams 495 serializer.attribute(null, ATTR_BOUNDS, mBounds.flattenToString()); in saveToXml() 514 mBounds.set(bounds); in restore() 535 builder.append(" bounds=" + mBounds); in toString()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskLaunchParamsModifierTests.java | 411 mCurrent.mBounds.set(0, 0, 200, 100); in testLaunchesFullscreenOnFullscreenDisplayWithFreeformHistory() 442 mCurrent.mBounds.set(0, 0, 200, 100); in testRespectsModeFromFullyResolvedCurrentParam_NonEmptyBounds() 463 mCurrent.mBounds.set(0, 0, 200, 100); in testForceMaximizesUnresizeableApp() 488 mCurrent.mBounds.set(expectedLaunchBounds); in testLaunchesAppInWindowOnFreeformDisplay() 495 assertEquals(expectedLaunchBounds, mResult.mBounds); in testLaunchesAppInWindowOnFreeformDisplay() 509 mCurrent.mBounds.set(0, 0, 200, 100); in testSkipsForceMaximizingAppsOnNonFreeformDisplay() 613 assertEquals(expected, mResult.mBounds); in testKeepsBoundsWithPictureInPictureLaunchModeInOptions() 630 assertEquals(expected, mResult.mBounds); in testRespectsLaunchBoundsWithFreeformSourceOnFullscreenDisplay() 646 assertEquals(DISPLAY_STABLE_BOUNDS.left, mResult.mBounds.left); in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_LeftGravity() 662 assertEquals(DISPLAY_STABLE_BOUNDS.top, mResult.mBounds.top); in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_TopGravity() [all …]
|
/frameworks/av/services/audioflinger/ |
D | FastThread.cpp | 60 mBounds(0), in FastThread() 189 mBounds = 0; in threadLoop() 301 size_t i = mBounds & (mDumpState->mSamplingN - 1); in threadLoop() 302 mBounds = (mBounds & 0xFFFF0000) | ((mBounds + 1) & 0xFFFF); in threadLoop() 305 __builtin_add_overflow(mBounds, 0x10000, &mBounds); in threadLoop() 306 } else if (!(mBounds & (mDumpState->mSamplingN - 1))) { in threadLoop() 353 mDumpState->mBounds = mBounds; in threadLoop()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleComponent.java | 29 protected final Rect mBounds; field in RippleComponent 42 mBounds = bounds; in RippleComponent() 47 mTargetRadius = getTargetRadius(mBounds); in onBoundsChange() 57 mTargetRadius = getTargetRadius(mBounds); in setup() 89 mTargetRadius = getTargetRadius(mBounds); in onHotspotBoundsChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationSection.java | 40 private Rect mBounds = new Rect(); field in NotificationSection 68 return mBounds; in getBounds() 72 return !mCurrentBounds.equals(mBounds); in didBoundsChange() 86 mCurrentBounds.left = mBounds.left; in startBackgroundAnimation() 87 mCurrentBounds.right = mBounds.right; in startBackgroundAnimation() 96 int newEndValue = mBounds.top; in startTopAnimation() 146 int newEndValue = mBounds.bottom; in startBottomAnimation() 224 mCurrentBounds.set(mBounds); in resetCurrentBounds() 275 mBounds.left += Math.max(firstView.getTranslation(), 0); in updateBounds() 276 mBounds.right += Math.min(firstView.getTranslation(), 0); in updateBounds() [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | BidiRenderer.java | 67 private RectF mBounds; field in BidiRenderer 82 mBounds = new RectF(); in BidiRenderer() 93 mBounds.set(x, y, x, y); in setRenderLocation() 114 return mBounds; in renderText() 142 return mBounds; in renderText() 287 mGraphics.drawGlyphVector(gv, mBounds.right, mBaseline); in render() 294 if (Math.abs(mBounds.right - mBounds.left) == 0) { in render() 295 mBounds = awtRectToAndroidRect(awtBounds, mBounds.right, mBaseline, mBounds); in render() 297 mBounds.union(awtRectToAndroidRect(awtBounds, mBounds.right, mBaseline, null)); in render()
|
/frameworks/base/core/java/android/view/ |
D | TouchDelegate.java | 48 private Rect mBounds; field in TouchDelegate 97 mBounds = bounds; in TouchDelegate() 121 mDelegateTargeted = mBounds.contains(x, y); in onTouchEvent() 171 if (mBounds == null) { in onTouchExplorationHoverEvent() 180 final boolean isInbound = mBounds.contains(x, y); in onTouchExplorationHoverEvent() 220 Rect bounds = mBounds; in getTouchDelegateInfo()
|
D | DisplayCutout.java | 226 private final Bounds mBounds; field in DisplayCutout 307 mBounds = new Bounds(boundLeft, boundTop, boundRight, boundBottom, copyArguments); in DisplayCutout() 314 mBounds = new Bounds(bounds, copyArguments); in DisplayCutout() 320 mBounds = bounds; in DisplayCutout() 390 return mBounds.isEmpty(); in isBoundsEmpty() 484 return mBounds.getRects(); in getBoundingRectsAll() 495 return mBounds.getRect(BOUNDS_POSITION_LEFT); in getBoundingRectLeft() 506 return mBounds.getRect(BOUNDS_POSITION_TOP); in getBoundingRectTop() 517 return mBounds.getRect(BOUNDS_POSITION_RIGHT); in getBoundingRectRight() 528 return mBounds.getRect(BOUNDS_POSITION_BOTTOM); in getBoundingRectBottom() [all …]
|
D | WindowMetrics.java | 34 private final @NonNull Rect mBounds; field in WindowMetrics 38 mBounds = bounds; in WindowMetrics() 70 return mBounds; in getBounds()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | SoftInputWindow.java | 54 private final Rect mBounds = new Rect(); field in SoftInputWindow 156 getWindow().getDecorView().getHitRect(mBounds); in dispatchTouchEvent() 158 if (ev.isWithinBoundsNoHistory(mBounds.left, mBounds.top, in dispatchTouchEvent() 159 mBounds.right - 1, mBounds.bottom - 1)) { in dispatchTouchEvent() 162 MotionEvent temp = ev.clampNoHistory(mBounds.left, mBounds.top, in dispatchTouchEvent() 163 mBounds.right - 1, mBounds.bottom - 1); in dispatchTouchEvent()
|
/frameworks/base/core/java/android/widget/ |
D | EdgeEffect.java | 117 private final Rect mBounds = new Rect(); field in EdgeEffect 159 mBounds.set(mBounds.left, mBounds.top, width, (int) Math.min(height, h)); in setSize() 235 Math.sqrt(Math.abs(mPullDistance) * mBounds.height()) - 0.3d) / 0.7d); in onPull() 365 final float centerX = mBounds.centerX(); in draw() 366 final float centerY = mBounds.height() - mRadius; in draw() 371 float translateX = mBounds.width() * displacement / 2; in draw() 373 canvas.clipRect(mBounds); in draw() 394 return (int) (mBounds.height() * MAX_GLOW_SCALE + 0.5f); in getMaxHeight()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | FunctorDrawable.h | 40 : mBounds(canvas->getLocalClipBounds()) in FunctorDrawable() 44 : mBounds(canvas->getLocalClipBounds()) in FunctorDrawable() 58 virtual SkRect onGetBounds() override { return mBounds; } in onGetBounds() 60 const SkRect mBounds; variable
|
/frameworks/base/core/java/android/service/autofill/augmented/ |
D | PresentationParams.java | 70 private final Rect mBounds; field in PresentationParams.Area 74 mBounds = bounds; in Area() 82 return mBounds; in getBounds() 88 return mBounds.toString(); in toString()
|
D | FillWindow.java | 83 private @Nullable Rect mBounds; field in FillWindow 152 mBounds = new Rect(area.getBounds()); in update() 174 mProxy.requestShowFillUi(mBounds.right - mBounds.left, in show() 175 mBounds.bottom - mBounds.top, in show() 292 pw.println(mBounds); in dump()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | Face.java | 52 private final Rect mBounds; field in Face 101 mBounds = bounds; in Face() 147 return mBounds; in getBounds() 250 mBounds, mScore, mId, mLeftEye, mRightEye, mMouth); in toString()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | DisplayCutoutView.java | 35 private final Region mBounds = new Region(); field in DisplayCutoutView 72 mBounds.setEmpty(); in update() 77 mBounds.set(mInfo.displayCutout.getBoundingRectTop()); in update() 79 mBounds.getBoundaryPath(mBoundingPath); in update() 105 if (mBounds.isEmpty()) { in onMeasure()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | SimpleIconFactory.java | 165 mBounds = new Rect(); in SimpleIconFactory() 453 private final Rect mBounds; field in SimpleIconFactory 575 mBounds.left = leftX; in getScale() 576 mBounds.right = rightX; in getScale() 578 mBounds.top = topY; in getScale() 579 mBounds.bottom = bottomY; in getScale() 582 outBounds.set(((float) mBounds.left) / width, ((float) mBounds.top) / height, in getScale() 583 1 - ((float) mBounds.right) / width, in getScale() 584 1 - ((float) mBounds.bottom) / height); in getScale() 591 mAdaptiveIconBounds.set(mBounds); in getScale()
|