Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterColorBorder.java30 RectF mBounds = new RectF(); field in ImageFilterColorBorder
62 mBounds.set(0, 0, w, h); in applyHelper()
66 float bs = size / 100.f * mBounds.width(); in applyHelper()
67 float r = radius / 100.f * mBounds.width(); in applyHelper()
69 mInsideBounds.set(mBounds.left + bs, in applyHelper()
70 mBounds.top + bs, mBounds.right - bs, in applyHelper()
71 mBounds.bottom - bs); in applyHelper()
73 mBorderPath.moveTo(mBounds.left, mBounds.top); in applyHelper()
74 mBorderPath.lineTo(mBounds.right, mBounds.top); in applyHelper()
75 mBorderPath.lineTo(mBounds.right, mBounds.bottom); in applyHelper()
[all …]
DRedEyeCandidate.java23 RectF mBounds = new RectF(); field in RedEyeCandidate
27 mBounds.set(candidate.mBounds); in RedEyeCandidate()
32 mBounds.set(bounds); in RedEyeCandidate()
37 && candidate.mBounds.equals(mBounds)) { in equals()
DFilterRedEyeRepresentation.java61 bounds.union(r.mBounds); in addRect()
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/
DIconNormalizer.java83 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 …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java59 protected final Rect mBounds = new Rect(); field in GLView
188 return mBounds; in bounds()
192 return mBounds.right - mBounds.left; in getWidth()
196 return mBounds.bottom - mBounds.top; in getHeight()
271 int xoffset = component.mBounds.left - mScrollX; in renderChild()
272 int yoffset = component.mBounds.top - mScrollY; in renderChild()
297 Rect rect = component.mBounds; in dispatchTouchEvent()
359 boolean sizeChanged = (right - left) != (mBounds.right - mBounds.left) in setBounds()
360 || (bottom - top) != (mBounds.bottom - mBounds.top); in setBounds()
361 mBounds.set(left, top, right, bottom); in setBounds()
[all …]
DEdgeEffect.java412 private Rect mBounds = new Rect(); field in EdgeEffect.Drawable
428 mBounds.set(left, top, right, bottom); in setBounds()
438 Rect b = mBounds; in draw()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DTransformingTouchDelegate.java34 private final RectF mBounds; field in TransformingTouchDelegate
47 mBounds = new RectF(); in TransformingTouchDelegate()
52 mBounds.set(left, top, right, bottom); in setBounds()
62 mTouchCheckBounds.set(mBounds); in updateTouchBounds()
83 mWasTouchOutsideBounds = !mBounds.contains(event.getX(), event.getY()); in onTouchEvent()
101 event.setLocation(mBounds.centerX(), mBounds.centerY()); in onTouchEvent()
103 event.offsetLocation(-mBounds.left, -mBounds.top); in onTouchEvent()
/packages/apps/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java57 private Rect mBounds = new Rect(); field in AutoThumbnailDrawable
97 mBounds.set(bounds); in onBoundsChange()
98 if (mBounds.isEmpty()) { in onBoundsChange()
112 canvas.clipRect(mBounds); in draw()
122 if (mBitmap == null || mBounds.isEmpty()) { in updateDrawMatrixLocked()
132 int vwidth = mBounds.width(); in updateDrawMatrixLocked()
133 int vheight = mBounds.height(); in updateDrawMatrixLocked()
156 int vwidth = mBounds.width(); in calculateSampleSizeLocked()
157 int vheight = mBounds.height(); in calculateSampleSizeLocked()
170 if (mBounds.isEmpty() || mImageWidth == 0 || mImageHeight == 0) { in refreshSampleSizeLocked()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/
DAnimationParticle.java51 private final Rect mBounds; // bounds for the canvas field in AnimationParticle
78 mBounds = bounds; in AnimationParticle()
219 final float w = mBounds.right - mBounds.exactCenterX() - mBorderWidth; in drawDot()
220 final float h = mBounds.bottom - mBounds.exactCenterY() - mBorderWidth; in drawDot()
222 mBounds.exactCenterX() + w * (float) Math.cos(mCurrentAngle), in drawDot()
223 mBounds.exactCenterY() + h * (float) Math.sin(mCurrentAngle), in drawDot()
231 mBounds.width() - mBorderWidth, mBounds.height() - mBorderWidth); in drawRing()
DFaceEnrollAnimationDrawable.java45 private Rect mBounds; field in FaceEnrollAnimationDrawable
95 mBounds = bounds; in onBoundsChange()
111 if (mBounds == null) { in draw()
117 canvas.drawRect(0, 0, mBounds.width(), mBounds.height(), mSquarePaint); in draw()
120 canvas.drawCircle(mBounds.exactCenterX(), mBounds.exactCenterY(), in draw()
121 mBounds.height() / 2 - BORDER_BOUNDS, mCircleCutoutPaint); in draw()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DAnimationParticle.java51 private final Rect mBounds; // bounds for the canvas field in AnimationParticle
78 mBounds = bounds; in AnimationParticle()
219 final float w = mBounds.right - mBounds.exactCenterX() - mBorderWidth; in drawDot()
220 final float h = mBounds.bottom - mBounds.exactCenterY() - mBorderWidth; in drawDot()
222 mBounds.exactCenterX() + w * (float) Math.cos(mCurrentAngle), in drawDot()
223 mBounds.exactCenterY() + h * (float) Math.sin(mCurrentAngle), in drawDot()
231 mBounds.width() - mBorderWidth, mBounds.height() - mBorderWidth); in drawRing()
DFaceEnrollAnimationDrawable.java45 private Rect mBounds; field in FaceEnrollAnimationDrawable
95 mBounds = bounds; in onBoundsChange()
111 if (mBounds == null) { in draw()
117 canvas.drawRect(0, 0, mBounds.width(), mBounds.height(), mSquarePaint); in draw()
120 canvas.drawCircle(mBounds.exactCenterX(), mBounds.exactCenterY(), in draw()
121 mBounds.height() / 2 - BORDER_BOUNDS, mCircleCutoutPaint); in draw()
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/
DLetterTileProvider.java50 private final Rect mBounds; field in LetterTileProvider
70 mBounds = new Rect(); in LetterTileProvider()
106 mPaint.getTextBounds(mFirstChar, 0, 1, mBounds); in getLetterTile()
108 0 + dimensions.height / 2 + (mBounds.bottom - mBounds.top) / 2, mPaint); in getLetterTile()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/view/
DVerticalListDividerDecoration.java42 private final Rect mBounds = new Rect(); field in VerticalListDividerDecoration
101 parent.getDecoratedBoundsWithMargins(child, mBounds); in drawVertical()
102 final int bottom = mBounds.bottom + Math.round(child.getTranslationY()); in drawVertical()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DRenderingRequest.java36 private Rect mBounds = null; field in RenderingRequest
167 return mBounds; in getBounds()
171 mBounds = bounds; in setBounds()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperCropActivity.java446 private final Point mBounds;
455 mBounds = bounds;
461 setBoundsAndFinish(mBounds, cropSucceeded && mShouldFadeOutOnFinish);
/packages/apps/Contacts/src/com/android/contacts/list/
DPinnedHeaderListView.java101 private RectF mBounds = new RectF(); field in PinnedHeaderListView
574 mBounds.set(0, 0, view.getWidth(), view.getHeight()); in drawHeader()
575 canvas.saveLayerAlpha(mBounds, header.alpha); in drawHeader()