/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropDrawingUtils.java | 30 public static void drawRuleOfThird(Canvas canvas, RectF bounds) { in drawRuleOfThird() argument 35 float stepX = bounds.width() / 3.0f; in drawRuleOfThird() 36 float stepY = bounds.height() / 3.0f; in drawRuleOfThird() 37 float x = bounds.left + stepX; in drawRuleOfThird() 38 float y = bounds.top + stepY; in drawRuleOfThird() 40 canvas.drawLine(x, bounds.top, x, bounds.bottom, p); in drawRuleOfThird() 44 canvas.drawLine(bounds.left, y, bounds.right, y, p); in drawRuleOfThird() 49 public static void drawCropRect(Canvas canvas, RectF bounds) { in drawCropRect() argument 54 canvas.drawRect(bounds, p); in drawCropRect() 57 public static void drawShade(Canvas canvas, RectF bounds) { in drawShade() argument [all …]
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | NormalizedFace.java | 29 public RectF bounds; field in NormalizedFace 51 bounds = new RectF(); in NormalizedFace() 52 bounds.left = (float) (face.getBounds().left - offX) / dX; in NormalizedFace() 53 bounds.top = (float) (face.getBounds().top - offY) / dY; in NormalizedFace() 54 bounds.right = (float) (face.getBounds().right - offX) / dX; in NormalizedFace() 55 bounds.bottom = (float) (face.getBounds().bottom - offY) / dY; in NormalizedFace() 69 float oldLeft = bounds.left; in mirrorInX() 70 bounds.left = 1f - bounds.right; in mirrorInX() 71 bounds.right = 1f - oldLeft; in mirrorInX() 87 float oldTop = bounds.top; in mirrorInY() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | PreloadIconDrawable.java | 123 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 124 super.onBoundsChange(bounds); in onBoundsChange() 126 (bounds.width() - 2 * PROGRESS_WIDTH - 2 * PROGRESS_GAP) / DEFAULT_PATH_SIZE, in onBoundsChange() 127 (bounds.height() - 2 * PROGRESS_WIDTH - 2 * PROGRESS_GAP) / DEFAULT_PATH_SIZE); in onBoundsChange() 129 bounds.left + PROGRESS_WIDTH + PROGRESS_GAP, in onBoundsChange() 130 bounds.top + PROGRESS_WIDTH + PROGRESS_GAP); in onBoundsChange() 133 float scale = bounds.width() / DEFAULT_PATH_SIZE; in onBoundsChange() 136 mShadowBitmap = getShadowBitmap(bounds.width(), bounds.height(), in onBoundsChange() 165 public void drawInternal(Canvas canvas, Rect bounds) { in drawInternal() argument 167 super.drawInternal(canvas, bounds); in drawInternal() [all …]
|
D | DragPreviewProvider.java | 72 Rect bounds = getDrawableBounds(d); in DragPreviewProvider() local 73 previewPadding = blurSizeOutline - bounds.left - bounds.top; in DragPreviewProvider() 88 Rect bounds = getDrawableBounds(d); in drawDragView() local 89 destCanvas.translate(blurSizeOutline / 2 - bounds.left, in drawDragView() 90 blurSizeOutline / 2 - bounds.top); in drawDragView() 131 Rect bounds = getDrawableBounds(d); in createDragBitmap() local 132 width = bounds.width(); in createDragBitmap() 133 height = bounds.height(); in createDragBitmap() 164 Rect bounds = new Rect(); in getDrawableBounds() local 165 d.copyBounds(bounds); in getDrawableBounds() [all …]
|
D | FastScrollThumbDrawable.java | 50 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 53 float r = bounds.height() * 0.5f; in onBoundsChange() 58 mPath.addRoundRect(bounds.left, bounds.top, bounds.left + diameter, bounds.top + diameter, in onBoundsChange() 62 sMatrix.setRotate(-45, bounds.left + r, bounds.top + r); in onBoundsChange() 64 sMatrix.postTranslate(bounds.width(), 0); in onBoundsChange() 65 sMatrix.postScale(-1, 1, bounds.width(), 0); in onBoundsChange()
|
D | PlaceHolderIconDrawable.java | 57 protected void drawInternal(Canvas canvas, Rect bounds) { in drawInternal() argument 59 canvas.translate(bounds.left, bounds.top); in drawInternal() 60 canvas.scale(bounds.width() / 100f, bounds.height() / 100f); in drawInternal()
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/ |
D | ShadowGenerator.java | 85 public static float getScaleForBounds(RectF bounds) { in getScaleForBounds() argument 89 float minSide = Math.min(Math.min(bounds.left, bounds.right), bounds.top); in getScaleForBounds() 95 if (bounds.bottom < bottomSpace) { in getScaleForBounds() 96 … scale = Math.min(scale, (HALF_DISTANCE - bottomSpace) / (HALF_DISTANCE - bounds.bottom)); in getScaleForBounds() 103 public final RectF bounds = new RectF(); field in ShadowGenerator.Builder 134 bounds.set(0, 0, width, height); in createPill() 135 bounds.offsetTo(center - width / 2f, center - height / 2f); in createPill() 150 c.drawRoundRect(bounds, radius, radius, p); in drawShadow() 155 c.drawRoundRect(bounds, radius, radius, p); in drawShadow() 162 c.drawRoundRect(bounds, radius, radius, p); in drawShadow() [all …]
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | LetterTileDrawable.java | 123 final Rect bounds = getBounds(); in draw() local 124 if (!isVisible() || bounds.isEmpty()) { in draw() 159 final Rect bounds = getBounds(); in drawLetterTile() local 160 final int minDimension = Math.min(bounds.width(), bounds.height()); in drawLetterTile() 163 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile() 165 canvas.drawRect(bounds, sPaint); in drawLetterTile() 177 canvas.drawText(mLetters, 0, mLetters.length(), bounds.centerX(), in drawLetterTile() 178 bounds.centerY() + mOffset * bounds.height() + sRect.height() / 2, in drawLetterTile() 287 Rect bounds = getBounds(); in toBitmap() local 290 setBounds(bounds); in toBitmap()
|
/packages/apps/Gallery2/src/com/android/photos/shims/ |
D | BitmapJobDrawable.java | 78 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 79 super.onBoundsChange(bounds); in onBoundsChange() 85 Rect bounds = getBounds(); in draw() local 88 canvas.clipRect(bounds); in draw() 90 canvas.rotate(mRotation, bounds.centerX(), bounds.centerY()); in draw() 95 canvas.drawRect(bounds, mPaint); in draw() 100 Rect bounds = getBounds(); in updateDrawMatrix() local 101 if (mBitmap == null || bounds.isEmpty()) { in updateDrawMatrix() 111 int vwidth = bounds.width(); in updateDrawMatrix() 112 int vheight = bounds.height(); in updateDrawMatrix()
|
/packages/apps/Gallery2/jni/filters/ |
D | wbalance.c | 109 int bounds = 5; in estmateWhiteBox() local 110 if (x<0) x = bounds; in estmateWhiteBox() 111 if (y<0) y = bounds; in estmateWhiteBox() 112 if (x>=(iw-bounds)) x = (iw-bounds-1); in estmateWhiteBox() 113 if (y>=(ih-bounds)) y = (ih-bounds-1); in estmateWhiteBox() 114 int startx = x - bounds; in estmateWhiteBox() 115 int starty = y - bounds; in estmateWhiteBox() 116 int endx = x + bounds; in estmateWhiteBox() 117 int endy = y + bounds; in estmateWhiteBox()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/view/ |
D | CircleBitmapDrawable.java | 52 public void onBoundsChange(Rect bounds) { in onBoundsChange() argument 53 super.onBoundsChange(bounds); in onBoundsChange() 54 int width = bounds.right - bounds.left; in onBoundsChange() 55 int height = bounds.bottom - bounds.top; in onBoundsChange() 59 mDrawable.setBounds(bounds); in onBoundsChange() 109 Rect bounds = getBounds(); in toBitmap() local 112 setBounds(bounds); in toBitmap()
|
/packages/apps/Contacts/src/com/android/contacts/lettertiles/ |
D | LetterTileDrawable.java | 103 final Rect bounds = getBounds(); in draw() local 104 if (!isVisible() || bounds.isEmpty()) { in draw() 143 final Rect bounds = getBounds(); in drawLetterTile() local 144 final int minDimension = Math.min(bounds.width(), bounds.height()); in drawLetterTile() 147 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile() 149 canvas.drawRect(bounds, sPaint); in drawLetterTile() 167 canvas.drawText(sFirstChar, 0, 1, bounds.centerX(), in drawLetterTile() 168 bounds.centerY() + mOffset * bounds.height() - sRect.exactCenterY(), in drawLetterTile()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | LogoUtils.java | 80 BitmapFactory.Options bounds = new BitmapFactory.Options(); in getBitmapPartiallyResized() local 82 bounds.inJustDecodeBounds = true; in getBitmapPartiallyResized() 83 BitmapFactory.decodeFile(filePath, bounds); in getBitmapPartiallyResized() 84 int streamWidth = bounds.outWidth; in getBitmapPartiallyResized() 85 int streamHeight = bounds.outHeight; in getBitmapPartiallyResized() 91 bounds.inSampleSize = ratio; in getBitmapPartiallyResized() 93 bounds.inJustDecodeBounds = false; in getBitmapPartiallyResized() 95 return BitmapFactory.decodeFile(filePath, bounds); in getBitmapPartiallyResized()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsBackgroundDrawable.java | 71 public void updateBounds(Rect bounds) { in updateBounds() argument 74 int left = bounds.left + (int) (mXPercent * bounds.width()); in updateBounds() 75 int top = bounds.top + (int) (mYPercent * bounds.height()); in updateBounds() 167 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 168 super.onBoundsChange(bounds); in onBoundsChange() 169 mHand.updateBounds(bounds); in onBoundsChange() 171 mIcons[i].updateBounds(bounds); in onBoundsChange()
|
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/ |
D | ThumbnailDrawable.java | 85 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 86 super.onBoundsChange(bounds); in onBoundsChange() 87 mDestRect.set(bounds); in onBoundsChange() 128 Rect bounds = getBounds(); in updateMatrix() local 135 scaleX = (float) bounds.width() / thumbnail.getHeight(); in updateMatrix() 136 scaleY = (float) bounds.height() / thumbnail.getWidth(); in updateMatrix() 138 scaleX = (float) bounds.width() / thumbnail.getWidth(); in updateMatrix() 139 scaleY = (float) bounds.height() / thumbnail.getHeight(); in updateMatrix()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | MaterialProgressDrawable.java | 242 final Rect bounds = getBounds(); in draw() local 244 c.rotate(mRotation, bounds.exactCenterX(), bounds.exactCenterY()); in draw() 245 mRing.draw(c, bounds); in draw() 532 public void draw(Canvas c, Rect bounds) { in draw() argument 534 arcBounds.set(bounds); in draw() 544 drawTriangle(c, startAngle, sweepAngle, bounds); in draw() 549 c.drawCircle(bounds.exactCenterX(), bounds.exactCenterY(), bounds.width() / 2, in draw() 554 private void drawTriangle(Canvas c, float startAngle, float sweepAngle, Rect bounds) { in drawTriangle() argument 566 float x = (float) (mRingCenterRadius * Math.cos(0) + bounds.exactCenterX()); in drawTriangle() 567 float y = (float) (mRingCenterRadius * Math.sin(0) + bounds.exactCenterY()); in drawTriangle() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/lettertile/ |
D | LetterTileDrawable.java | 182 final Rect bounds = getBounds(); in draw() local 183 if (!isVisible() || bounds.isEmpty()) { in draw() 202 final Rect bounds = getBounds(); in drawLetterTile() local 203 final int minDimension = Math.min(bounds.width(), bounds.height()); in drawLetterTile() 206 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, paint); in drawLetterTile() 208 canvas.drawRect(bounds, paint); in drawLetterTile() 229 bounds.centerX(), in drawLetterTile() 230 bounds.centerY() + offset * bounds.height() - rect.exactCenterY(), in drawLetterTile()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetImageView.java | 112 Rect bounds = mBadge.getBounds(); in updateDstRectF() local 114 (int) (mDstRectF.right + mBadgeMargin - bounds.width()), in updateDstRectF() 115 mBadgeMargin, getWidth() - bounds.width()); in updateDstRectF() 117 (int) (mDstRectF.bottom + mBadgeMargin - bounds.height()), in updateDstRectF() 118 mBadgeMargin, getHeight() - bounds.height()); in updateDstRectF() 119 mBadge.setBounds(left, top, bounds.width() + left, bounds.height() + top); in updateDstRectF()
|
/packages/apps/ThemePicker/src/com/android/customization/widget/ |
D | DynamicAdaptiveIconDrawable.java | 208 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 209 if (bounds.isEmpty()) { in onBoundsChange() 212 updateLayerBounds(bounds); in onBoundsChange() 215 private void updateLayerBounds(Rect bounds) { in updateLayerBounds() argument 216 if (bounds.isEmpty()) { in updateLayerBounds() 221 updateLayerBoundsInternal(bounds); in updateLayerBounds() 222 updateMaskBoundsInternal(bounds); in updateLayerBounds() 231 private void updateLayerBoundsInternal(Rect bounds) { in updateLayerBoundsInternal() argument 232 int cX = bounds.width() / 2; in updateLayerBoundsInternal() 233 int cY = bounds.height() / 2; in updateLayerBoundsInternal() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
D | ImageLoader.java | 256 Rect bounds) { in loadRegionBitmap() argument 269 Rect imageBounds = new Rect(bounds); in loadRegionBitmap() 273 bounds.left = imageBounds.left; in loadRegionBitmap() 274 bounds.top = imageBounds.top; in loadRegionBitmap() 290 + bounds.left + "," + bounds.top + " - " in loadRegionBitmap() 291 + bounds.width() + "x" + bounds.height() + " exc: " + e); in loadRegionBitmap() 417 Uri uri, Rect bounds, in getScaleOneImageForPreset() argument 423 if (bounds.width() > thresholdWidth) { in getScaleOneImageForPreset() 425 int w = bounds.width(); in getScaleOneImageForPreset() 433 return loadRegionBitmap(context, cache, uri, options, bounds); in getScaleOneImageForPreset()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
D | FileWallpaperInfo.java | 58 Point bounds = isp.getImageBounds(); in onSave() 59 if (bounds == null) { in onSave() 65 return bounds; in onSave() 75 protected void onPostExecute(Point bounds) { in onSave() 76 if (bounds != null) { in onSave() 77 a.setBoundsAndFinish(bounds, a.getWallpaperParallaxOffset() == 0f); in onSave()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | RenderingRequest.java | 56 RenderingRequestCaller caller, Rect bounds, Rect destination) { in post() argument 84 request.setBounds(bounds); in post() 86 passedPreset.setPartialRendering(true, bounds); in post() 170 public void setBounds(Rect bounds) { in setBounds() argument 171 mBounds = bounds; in setBounds() 190 public void setIconBounds(Rect bounds) { in setIconBounds() argument 191 mIconBounds = bounds; in setIconBounds()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/ |
D | QuickstepAppTransitionManagerImpl.java | 318 Rect bounds = new Rect(0, 0, mDeviceProfile.widthPx, mDeviceProfile.heightPx); in getWindowTargetBounds() local 322 bounds.set(target.sourceContainerBounds); in getWindowTargetBounds() 323 bounds.offsetTo(target.position.x, target.position.y); in getWindowTargetBounds() 324 return bounds; in getWindowTargetBounds() 328 return bounds; in getWindowTargetBounds() 432 RectF bounds = new RectF(); in getOpeningWindowAnimators() local 434 toggleVisibility, bounds, true /* isOpening */); in getOpeningWindowAnimators() 447 float maxScaleX = smallestSize / bounds.width(); in getOpeningWindowAnimators() 448 float maxScaleY = smallestSize / bounds.height(); in getOpeningWindowAnimators() 466 float dX = centerX - bounds.centerX(); in getOpeningWindowAnimators() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | ShortcutDragPreviewProvider.java | 44 Rect bounds = getDrawableBounds(d); in createDragBitmap() local 54 canvas.scale(((float) size) / bounds.width(), ((float) size) / bounds.height(), 0, 0); in createDragBitmap() 55 canvas.translate(bounds.left, bounds.top); in createDragBitmap()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragView.java | 226 Rect bounds = new Rect(0, 0, w, h); in setItemInfo() 227 bounds.inset(blurMargin, blurMargin); in setItemInfo() 230 Rect badgeBounds = new Rect(bounds); in setItemInfo() 245 Utilities.scaleRectAboutCenter(bounds, in setItemInfo() 252 Rect shrunkBounds = new Rect(bounds); in setItemInfo() 262 bounds.inset( in setItemInfo() 263 (int) (-bounds.width() * AdaptiveIconDrawable.getExtraInsetFraction()), in setItemInfo() 264 (int) (-bounds.height() * AdaptiveIconDrawable.getExtraInsetFraction()) in setItemInfo() 270 mBgSpringDrawable.setBounds(bounds); in setItemInfo() 275 mFgSpringDrawable.setBounds(bounds); in setItemInfo()
|