/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipMotionHelper.java | 94 private final Rect mBounds = new Rect(); field in PipMotionHelper 131 mBounds.set(stackInfo.bounds); in synchronizePinnedStackBounds() 144 mBounds.set(toBounds); in movePip() 197 return mBounds; in getBounds() 217 if (mBounds.left < 0) { in shouldMinimizePip() 218 float offscreenFraction = (float) -mBounds.left / mBounds.width(); in shouldMinimizePip() 220 } else if (mBounds.right > displaySize.x) { in shouldMinimizePip() 221 float offscreenFraction = (float) (mBounds.right - displaySize.x) / in shouldMinimizePip() 222 mBounds.width(); in shouldMinimizePip() 236 if (mBounds.bottom > y) { in shouldDismissPip() [all …]
|
/frameworks/base/core/java/android/app/ |
D | WindowConfiguration.java | 56 private Rect mBounds = new Rect(); field in WindowConfiguration 219 dest.writeParcelable(mBounds, flags); in writeToParcel() 229 mBounds = source.readParcelable(Rect.class.getClassLoader()); in readFromParcel() 262 mBounds.setEmpty(); in setBounds() 266 mBounds.set(rect); in setBounds() 318 return mBounds; in getBounds() 367 setBounds(other.mBounds); in setTo() 404 if (!delta.mBounds.isEmpty() && !delta.mBounds.equals(mBounds)) { in updateFrom() 406 setBounds(delta.mBounds); in updateFrom() 453 if (!mBounds.equals(other.mBounds)) { in diff() [all …]
|
/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 setConvexPath() 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/services/core/java/com/android/server/wm/ |
D | LaunchParamsController.java | 149 if (mTmpParams.mBounds.isEmpty()) { in layoutTask() 155 task.updateOverrideConfiguration(mTmpParams.mBounds); in layoutTask() 161 task.setLastNonFullscreenBounds(mTmpParams.mBounds); in layoutTask() 185 final Rect mBounds = new Rect(); field in LaunchParamsController.LaunchParams 195 mBounds.setEmpty(); in reset() 202 mBounds.set(params.mBounds); in set() 209 return mBounds.isEmpty() && mPreferredDisplayId == INVALID_DISPLAY in isEmpty() 230 return mBounds != null ? mBounds.equals(that.mBounds) : that.mBounds == null; in equals() 235 int result = mBounds != null ? mBounds.hashCode() : 0; in hashCode()
|
D | LaunchParamsPersister.java | 238 changed |= !Objects.equals(params.mBounds, task.mLastNonFullscreenBounds); in saveTaskToLaunchParam() 239 params.mBounds.set(task.mLastNonFullscreenBounds); in saveTaskToLaunchParam() 241 changed |= !params.mBounds.isEmpty(); in saveTaskToLaunchParam() 242 params.mBounds.setEmpty(); in saveTaskToLaunchParam() 269 outParams.mBounds.set(persistableParams.mBounds); in getLaunchParams() 413 final Rect mBounds = new Rect(); field in LaunchParamsPersister.PersistableLaunchParams 425 serializer.attribute(null, ATTR_BOUNDS, mBounds.flattenToString()); in saveToXml() 441 mBounds.set(bounds); in restoreFromXml() 454 builder.append(" bounds=" + mBounds); in toString()
|
D | TaskLaunchParamsModifier.java | 177 outParams.mBounds.set(options.getLaunchBounds()); in calculate() 178 if (DEBUG) appendLog("activity-options-bounds=" + outParams.mBounds); in calculate() 183 if (DEBUG) appendLog("activity-options-fullscreen=" + outParams.mBounds); in calculate() 188 outParams.mBounds.set(mTmpBounds); in calculate() 190 if (DEBUG) appendLog("bounds-from-layout=" + outParams.mBounds); in calculate() 222 if (!currentParams.mBounds.isEmpty()) { in calculate() 227 outParams.mBounds.set(currentParams.mBounds); in calculate() 230 if (DEBUG) appendLog("inherit-bounds=" + outParams.mBounds); in calculate() 247 outParams.mBounds.setEmpty(); in calculate() 273 adjustBoundsToFitInDisplay(display, outParams.mBounds); in calculate() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskLaunchParamsModifierTests.java | 370 mCurrent.mBounds.set(0, 0, 200, 100); in testRespectsModeFromFullyResolvedCurrentParam_NonEmptyBounds() 390 mCurrent.mBounds.set(0, 0, 200, 100); in testForceMaximizesPreDApp() 412 mCurrent.mBounds.set(0, 0, 200, 100); in testForceMaximizesAppWithoutMultipleDensitySupport() 434 mCurrent.mBounds.set(0, 0, 200, 100); in testForceMaximizesUnresizeableApp() 453 mCurrent.mBounds.set(0, 0, 200, 100); in testSkipsForceMaximizingAppsOnNonFreeformDisplay() 557 assertEquals(expected, mResult.mBounds); in testKeepsBoundsWithPictureInPictureLaunchModeInOptions() 573 assertEquals(0, mResult.mBounds.left); in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_LeftGravity() 589 assertEquals(0, mResult.mBounds.top); in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_TopGravity() 605 assertEquals(0, mResult.mBounds.left); in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_TopLeftGravity() 606 assertEquals(0, mResult.mBounds.top); in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_TopLeftGravity() [all …]
|
D | LaunchParamsControllerTests.java | 113 expected.mBounds.set(200, 300, 400, 500); in testStoredParamsRecovery() 181 params.mBounds.set(0, 0, 30, 20); in testPassThrough() 203 params1.mBounds.set(0, 0, 10, 10); in testSkip() 207 params2.mBounds.set(0, 0, 20, 30); in testSkip() 324 params.mBounds.set(expected); in testLayoutTaskBoundsChangeFreeformWindow() 347 params.mBounds.set(expected); in testLayoutTaskBoundsChangeFixedWindow() 428 mTmpParams.mBounds.set(task.mLastNonFullscreenBounds); in saveTask() 430 mTmpParams.mBounds.setEmpty(); in saveTask()
|
/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/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationSection.java | 37 private Rect mBounds = new Rect(); field in NotificationSection 64 return mBounds; in getBounds() 68 return !mCurrentBounds.equals(mBounds); in didBoundsChange() 77 mCurrentBounds.left = mBounds.left; in startBackgroundAnimation() 78 mCurrentBounds.right = mBounds.right; in startBackgroundAnimation() 87 int newEndValue = mBounds.top; in startTopAnimation() 137 int newEndValue = mBounds.bottom; in startBottomAnimation() 211 mCurrentBounds.set(mBounds); in resetCurrentBounds() 262 mBounds.left += Math.max(firstView.getTranslation(), 0); in updateBounds() 263 mBounds.right += Math.min(firstView.getTranslation(), 0); in updateBounds() [all …]
|
/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()
|
D | Drawable.java | 192 private Rect mBounds = ZERO_BOUNDS_RECT; // lazily becomes a new Rect() field in Drawable 246 Rect oldBounds = mBounds; in setBounds() 249 oldBounds = mBounds = new Rect(); in setBounds() 258 mBounds.set(left, top, right, bottom); in setBounds() 259 onBoundsChange(mBounds); in setBounds() 280 bounds.set(mBounds); in copyBounds() 293 return new Rect(mBounds); in copyBounds() 313 if (mBounds == ZERO_BOUNDS_RECT) { in getBounds() 314 mBounds = new Rect(); in getBounds() 317 return mBounds; in getBounds()
|
/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 232 private final Bounds mBounds; field in DisplayCutout 287 mBounds = new Bounds(boundLeft, boundTop, boundRight, boundBottom, copyArguments); in DisplayCutout() 292 mBounds = new Bounds(bounds, copyArguments); in DisplayCutout() 297 mBounds = bounds; in DisplayCutout() 347 return mBounds.isEmpty(); in isBoundsEmpty() 425 return mBounds.getRects(); in getBoundingRectsAll() 436 return mBounds.getRect(BOUNDS_POSITION_LEFT); in getBoundingRectLeft() 447 return mBounds.getRect(BOUNDS_POSITION_TOP); in getBoundingRectTop() 458 return mBounds.getRect(BOUNDS_POSITION_RIGHT); in getBoundingRectRight() 469 return mBounds.getRect(BOUNDS_POSITION_BOTTOM); in getBoundingRectBottom() [all …]
|
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()
|
/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() 286 mGraphics.drawGlyphVector(gv, mBounds.right, mBaseline); in render() 293 if (Math.abs(mBounds.right - mBounds.left) == 0) { in render() 294 mBounds = awtRectToAndroidRect(awtBounds, mBounds.right, mBaseline, mBounds); in render() 296 mBounds.union(awtRectToAndroidRect(awtBounds, mBounds.right, mBaseline, null)); in render()
|
/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/core/java/android/inputmethodservice/ |
D | SoftInputWindow.java | 55 private final Rect mBounds = new Rect(); field in SoftInputWindow 152 getWindow().getDecorView().getHitRect(mBounds); in dispatchTouchEvent() 154 if (ev.isWithinBoundsNoHistory(mBounds.left, mBounds.top, in dispatchTouchEvent() 155 mBounds.right - 1, mBounds.bottom - 1)) { in dispatchTouchEvent() 158 MotionEvent temp = ev.clampNoHistory(mBounds.left, mBounds.top, in dispatchTouchEvent() 159 mBounds.right - 1, mBounds.bottom - 1); in dispatchTouchEvent()
|
/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 | 82 private Rect mBounds; field in FillWindow 151 mBounds = new Rect(area.getBounds()); in update() 173 mProxy.requestShowFillUi(mBounds.right - mBounds.left, in show() 174 mBounds.bottom - mBounds.top, in show() 283 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 | 141 mBounds = new Rect(); in SimpleIconFactory() 388 private final Rect mBounds; field in SimpleIconFactory 510 mBounds.left = leftX; in getScale() 511 mBounds.right = rightX; in getScale() 513 mBounds.top = topY; in getScale() 514 mBounds.bottom = bottomY; in getScale() 517 outBounds.set(((float) mBounds.left) / width, ((float) mBounds.top) / height, in getScale() 518 1 - ((float) mBounds.right) / width, in getScale() 519 1 - ((float) mBounds.bottom) / height); in getScale() 526 mAdaptiveIconBounds.set(mBounds); in getScale()
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 95 void getBounds(MinikinRect* rect) const { rect->set(mBounds); } in getBounds() 96 const MinikinRect& getBounds() const { return mBounds; } in getBounds() 138 MinikinRect mBounds; variable
|