Home
last modified time | relevance | path

Searched refs:mBounds (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/support/v4/java/android/support/v4/widget/
DSwipeProgressBar.java68 private Rect mBounds = new Rect(); field in SwipeProgressBar
104 mParent, mBounds.left, mBounds.top, mBounds.right, mBounds.bottom); in setTriggerPercentage()
139 final int width = mBounds.width(); in draw()
140 final int height = mBounds.height(); in draw()
145 canvas.clipRect(mBounds); in draw()
228 canvas.clipRect(mBounds); in draw()
233 mParent, mBounds.left, mBounds.top, mBounds.right, mBounds.bottom); in draw()
271 mBounds.left = left; in setBounds()
272 mBounds.top = top; in setBounds()
273 mBounds.right = right; in setBounds()
[all …]
/frameworks/base/libs/hwui/
DDeferredDisplayList.cpp74 mBounds.unionWith(state->mBounds); in add()
80 if (!rect.intersects(mBounds)) return false; in intersects()
83 if (rect.intersects(mOps[i].state->mBounds)) { in intersects()
86 mOps[i].state->mBounds.left, mOps[i].state->mBounds.top, in intersects()
87 mOps[i].state->mBounds.right, mOps[i].state->mBounds.bottom); in intersects()
111 const Rect& bounds = state->mBounds; in replay()
125 if (CC_LIKELY(!mAllOpsOpaque || !mBounds.contains(bounds) || count() == 1)) return false; in coversBounds()
129 const Rect &r = mOps[i].state->mBounds; in coversBounds()
141 Rect mBounds; // union of bounds of contained ops member in android::uirenderer::DrawBatch
189 if (intersects(state->mBounds)) return false; in canMergeWith()
[all …]
DOutline.h45 && left == mBounds.left in setRoundRect()
46 && right == mBounds.right in setRoundRect()
47 && top == mBounds.top in setRoundRect()
48 && bottom == mBounds.bottom in setRoundRect()
55 mBounds.set(left, top, right, bottom); in setRoundRect()
75 mBounds.set(outline->getBounds()); in setConvexPath()
119 outRect->set(mBounds); in getAsRoundRect()
137 return mBounds; in getBounds()
147 Rect mBounds; variable
DFontRenderer.cpp106 , mBounds(nullptr) in FontRenderer()
526 if (mBounds) { in appendMeshQuad()
527 mBounds->left = std::min(mBounds->left, x1); in appendMeshQuad()
528 mBounds->top = std::min(mBounds->top, y3); in appendMeshQuad()
529 mBounds->right = std::max(mBounds->right, x3); in appendMeshQuad()
530 mBounds->bottom = std::max(mBounds->bottom, y1); in appendMeshQuad()
544 if (mBounds) { in appendRotatedMeshQuad()
545 mBounds->left = std::min(mBounds->left, std::min(x1, std::min(x2, std::min(x3, x4)))); in appendRotatedMeshQuad()
546 mBounds->top = std::min(mBounds->top, std::min(y1, std::min(y2, std::min(y3, y4)))); in appendRotatedMeshQuad()
547 mBounds->right = std::max(mBounds->right, std::max(x1, std::max(x2, std::max(x3, x4)))); in appendRotatedMeshQuad()
[all …]
DVertexBuffer.h110 mBounds.setEmpty();
119 mBounds.set(current->x, current->y, current->x, current->y);
121 mBounds.expandToCover(current->x, current->y);
127 const Rect& getBounds() const { return mBounds; } in getBounds()
142 void setBounds(Rect bounds) { mBounds = bounds; } in setBounds()
159 Rect mBounds; variable
DLayerBuilder.cpp34 mBounds = op->computedState.clippedBounds; in BatchBase()
39 if (!rect.intersects(mBounds)) return false; in intersects()
56 this, mBatchId, mMerging, (int) mOps.size(), RECT_ARGS(mBounds)); in dump()
60 Rect mBounds; member in android::uirenderer::BatchBase
72 mBounds.unionWith(op->computedState.clippedBounds); in batchOp()
157 float boundsDelta = mBounds.left - opBounds.left; in canMergeWith()
159 boundsDelta = mBounds.top - opBounds.top; in canMergeWith()
163 boundsDelta = opBounds.right - mBounds.right; in canMergeWith()
165 boundsDelta = opBounds.bottom - mBounds.bottom; in canMergeWith()
184 mBounds.unionWith(op->computedState.clippedBounds); in mergeOp()
[all …]
DDeferredDisplayList.h53 Rect mBounds;
81 : mBounds(bounds) { in DeferredDisplayList()
148 Rect mBounds; variable
DClipArea.h43 return mBounds; in getBounds()
47 Rect transformedBounds(transformAndCalculateBounds(mBounds, mTransform)); in transformedBounds()
62 Rect mBounds;
/frameworks/base/core/java/android/inputmethodservice/
DSoftInputWindow.java43 private final Rect mBounds = new Rect(); field in SoftInputWindow
89 getWindow().getDecorView().getHitRect(mBounds); in dispatchTouchEvent()
91 if (ev.isWithinBoundsNoHistory(mBounds.left, mBounds.top, in dispatchTouchEvent()
92 mBounds.right - 1, mBounds.bottom - 1)) { in dispatchTouchEvent()
95 MotionEvent temp = ev.clampNoHistory(mBounds.left, mBounds.top, in dispatchTouchEvent()
96 mBounds.right - 1, mBounds.bottom - 1); in dispatchTouchEvent()
/frameworks/base/services/core/java/com/android/server/wm/
DDimLayer.java49 private final Rect mBounds = new Rect(); field in DimLayer
192 getBoundsForFullscreen(mBounds); in adjustBounds()
196 mDimSurface.setPosition(mBounds.left, mBounds.top); in adjustBounds()
197 mDimSurface.setSize(mBounds.width(), mBounds.height()); in adjustBounds()
199 "adjustBounds user=" + mUser.toShortString() + " mBounds=" + mBounds); in adjustBounds()
202 mLastBounds.set(mBounds); in adjustBounds()
221 getBoundsForFullscreen(mBounds); in setBoundsForFullscreen()
222 setBounds(mBounds); in setBoundsForFullscreen()
227 mBounds.set(bounds); in setBounds()
279 if (!mLastBounds.equals(mBounds)) { in show()
[all …]
DTaskStack.java83 private Rect mBounds = new Rect(); field in TaskStack
237 insetBounds = mBounds; in setAdjustedBounds()
240 insetBounds = mBounds; in setAdjustedBounds()
245 alignTasksToAdjustedBounds(adjusted ? mAdjustedBounds : mBounds, insetBounds); in setAdjustedBounds()
287 if (mBounds.equals(bounds) && oldFullscreen == mFullscreen && mRotation == rotation) { in setBounds()
296 mBounds.set(bounds); in setBounds()
310 out.set(mBounds); in getRawBounds()
333 out.set(mBounds); in getBounds()
366 mTmpRect2.set(mBounds); in updateDisplayInfo()
402 mTmpRect2.set(mBounds); in updateBoundsAfterConfigChange()
[all …]
DTask.java64 private Rect mBounds = new Rect(); field in Task
324 mPreparedFrozenBounds.set(mBounds); in prepareFreezingBounds()
360 mBounds.set(mPreScrollBounds); in resetScrollLocked()
376 win.mXOffset = mBounds.left; in applyScrollToWindowIfNeeded()
377 win.mYOffset = mBounds.top; in applyScrollToWindowIfNeeded()
387 bounds.right = mTmpRect.left + mBounds.width(); in scrollLocked()
389 bounds.left = mTmpRect.right - mBounds.width(); in scrollLocked()
395 bounds.bottom = mTmpRect.top + mBounds.height(); in scrollLocked()
397 bounds.top = mTmpRect.bottom - mBounds.height(); in scrollLocked()
403 if (mScrollValid && bounds.equals(mBounds)) { in scrollLocked()
[all …]
/frameworks/av/services/audioflinger/
DFastThread.cpp57 mBounds(0), in FastThread()
180 mBounds = 0; in threadLoop()
288 size_t i = mBounds & (mDumpState->mSamplingN - 1); in threadLoop()
289 mBounds = (mBounds & 0xFFFF0000) | ((mBounds + 1) & 0xFFFF); in threadLoop()
291 mBounds += 0x10000; in threadLoop()
292 } else if (!(mBounds & (mDumpState->mSamplingN - 1))) { in threadLoop()
338 mDumpState->mBounds = mBounds; in threadLoop()
DFastThreadDumpState.h56 uint32_t mBounds; // bounds for mMonotonicNs, mThreadCpuNs, and mCpukHz member
DFastThreadDumpState.cpp26 , mSamplingN(0), mBounds(0) in FastThreadDumpState()
/frameworks/base/core/java/android/widget/
DEdgeEffect.java107 private final Rect mBounds = new Rect(); field in EdgeEffect
148 mBounds.set(mBounds.left, mBounds.top, width, (int) Math.min(height, h)); in setSize()
224 Math.sqrt(Math.abs(mPullDistance) * mBounds.height()) - 0.3d) / 0.7d); in onPull()
324 final float centerX = mBounds.centerX(); in draw()
325 final float centerY = mBounds.height() - mRadius; in draw()
330 float translateX = mBounds.width() * displacement / 2; in draw()
332 canvas.clipRect(mBounds); in draw()
353 return (int) (mBounds.height() * MAX_GLOW_SCALE + 0.5f); in getMaxHeight()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java67 private RectF mBounds; field in BidiRenderer
88 mBounds = new RectF(); in BidiRenderer()
99 mBounds = new RectF(x, y, x, y); in setRenderLocation()
119 return mBounds; in renderText()
147 return mBounds; in renderText()
238 mGraphics.drawGlyphVector(gv, mBounds.right, mBaseline); in render()
243 RectF bounds = awtRectToAndroidRect(awtBounds, mBounds.right, mBaseline); in render()
246 if (Math.abs(mBounds.right - mBounds.left) == 0) { in render()
247 mBounds = bounds; in render()
249 mBounds.union(bounds); in render()
/frameworks/base/core/java/android/hardware/camera2/params/
DFace.java53 private final Rect mBounds; field in Face
102 mBounds = bounds; in Face()
148 return mBounds; in getBounds()
251 mBounds, mScore, mId, mLeftEye, mRightEye, mMouth); in toString()
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleComponent.java37 protected final Rect mBounds; field in RippleComponent
64 mBounds = bounds; in RippleComponent()
70 mTargetRadius = getTargetRadius(mBounds); in onBoundsChange()
80 mTargetRadius = getTargetRadius(mBounds); in setup()
262 final float halfWidth = mBounds.width() / 2.0f; in onHotspotBoundsChanged()
263 final float halfHeight = mBounds.height() / 2.0f; in onHotspotBoundsChanged()
DDrawable.java182 private Rect mBounds = ZERO_BOUNDS_RECT; // lazily becomes a new Rect() field in Drawable
201 Rect oldBounds = mBounds; in setBounds()
204 oldBounds = mBounds = new Rect(); in setBounds()
213 mBounds.set(left, top, right, bottom); in setBounds()
214 onBoundsChange(mBounds); in setBounds()
235 bounds.set(mBounds); in copyBounds()
248 return new Rect(mBounds); in copyBounds()
268 if (mBounds == ZERO_BOUNDS_RECT) { in getBounds()
269 mBounds = new Rect(); in getBounds()
272 return mBounds; in getBounds()
DRippleForeground.java197 return MathUtils.lerp(mClampedStartingX - mBounds.exactCenterX(), mTargetX, mTweenX); in getCurrentX()
201 return MathUtils.lerp(mClampedStartingY - mBounds.exactCenterY(), mTargetY, mTweenY); in getCurrentY()
222 mTargetX = (mClampedStartingX - mBounds.exactCenterX()) * .7f; in computeBoundedTargetValues()
223 mTargetY = (mClampedStartingY - mBounds.exactCenterY()) * .7f; in computeBoundedTargetValues()
333 final float cX = mBounds.exactCenterX(); in clampStartingPosition()
334 final float cY = mBounds.exactCenterY(); in clampStartingPosition()
/frameworks/base/core/java/android/view/
DTouchDelegate.java46 private Rect mBounds; field in TouchDelegate
91 mBounds = bounds; in TouchDelegate()
115 Rect bounds = mBounds; in onTouchEvent()
/frameworks/minikin/include/minikin/
DLayout.h83 Layout() : mGlyphs(), mAdvances(), mCollection(0), mFaces(), mAdvance(0), mBounds() { in Layout()
84 mBounds.setEmpty(); in Layout()
160 MinikinRect mBounds; variable
/frameworks/base/services/core/java/com/android/server/am/
DTaskRecord.java252 Rect mBounds = null; field in TaskRecord
577 if (mBounds != null) { in setLastThumbnailLocked()
579 taskWidth = mBounds.width(); in setLastThumbnailLocked()
580 taskHeight = mBounds.height(); in setLastThumbnailLocked()
1418 if (mBounds != null && bounds.right == mBounds.right) { in adjustForMinimalTaskDimensions()
1427 if (mBounds != null && bounds.bottom == mBounds.bottom) { in adjustForMinimalTaskDimensions()
1455 if (Objects.equals(mBounds, bounds)) { in updateOverrideConfiguration()
1463 if (mBounds != null && StackId.persistTaskBounds(stack.mStackId)) { in updateOverrideConfiguration()
1464 mLastNonFullscreenBounds = mBounds; in updateOverrideConfiguration()
1466 mBounds = null; in updateOverrideConfiguration()
[all …]
/frameworks/base/core/java/android/transition/
DChangeBounds.java70 private Rect mBounds = new Rect();
74 object.copyBounds(mBounds);
75 mBounds.offsetTo(Math.round(value.x), Math.round(value.y));
76 object.setBounds(mBounds);
81 object.copyBounds(mBounds);
82 return new PointF(mBounds.left, mBounds.top);

12