/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
H A D | PreviewItemDrawingParams.java | 26 float scale; field in class:PreviewItemDrawingParams 32 PreviewItemDrawingParams(float transX, float transY, float scale, float overlayAlpha) { argument 35 this.scale = scale; 39 public void update(float transX, float transY, float scale) { argument 44 || anim.finalScale == scale) { 52 this.scale = scale;
|
H A D | StackFolderIconLayoutRule.java | 53 float scale = scaleForItem(index, curNumItems); 59 float scaledSize = scale * mBaselineIconSize; 60 float scaleOffsetCorrection = (1 - scale) * mBaselineIconSize; 66 float totalScale = mBaselineIconScale * scale;
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_framestitching.h | 36 Find scale, rotation and translation of the similarity that 76 \param scale scale 83 \param allow_scaling estimate scale 87 DB_API void db_StitchSimilarity3DRaw(double *scale,double R[9],double t[3],
|
H A D | db_image_homography.h | 82 double scale,t[3]; local 88 db_StitchSimilarity3DRaw(&scale,R,t,xp,x,2,1,0,1,0); 104 Find scale, rotation and translation of the similarity that 144 \param scale (out) 151 \param allow_scaling compute scale (if 0, scale=1) 155 DB_API void db_StitchSimilarity2DRaw(double *scale,double R[4],double t[2], 165 \param allow_scaling compute scale (if 0, scale=1)
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
H A D | CropView.java | 99 final float scale = mRenderer.scale; 101 * scale + width / 2f; 103 * scale + height / 2f; 104 float leftEdge = centerX - imageWidth / 2f * scale; 105 float rightEdge = centerX + imageWidth / 2f * scale; 106 float topEdge = centerY - imageHeight / 2f * scale; 107 float bottomEdge = centerY + imageHeight / 2f * scale; 122 final float scale = mRenderer.scale; 151 setScale(float scale) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/tinyplanet/ |
H A D | TinyPlanetNative.java | 37 * @param scale the scale factor (used for fast previews). 41 float scale, float angleRadians); 40 process(Bitmap in, int width, int height, Bitmap out, int outputSize, float scale, float angleRadians) argument
|
/packages/apps/Gallery2/jni/filters/ |
H A D | shadows.c | 22 void JNIFUNCF(ImageFilterShadows, nativeApplyFilter, jobject bitmap, jint width, jint height, float scale){ argument 35 double s = (scale>=0)?scale:scale/5;
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | ImageCanvas.java | 27 * Dimensions holds the desired width, height, and scale for a bitmap being 33 public float scale; field in class:ImageCanvas.Dimensions 47 public Dimensions(int width, int height, float scale, float fontSize) { argument 50 this.scale = scale;
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 96 // Find the min x that 1 / x >= scale 97 public static int computeSampleSizeLarger(float scale) { argument 98 int initialSize = (int) Math.floor(1d / scale); 106 // Find the max x that 1 / x <= scale. 107 public static int computeSampleSize(float scale) { argument 108 Utils.assertTrue(scale > 0); 109 int initialSize = Math.max(1, (int) Math.ceil(1 / scale)); 116 Bitmap bitmap, float scale, boolean recycle) { 117 int width = Math.round(bitmap.getWidth() * scale); 118 int height = Math.round(bitmap.getHeight() * scale); 115 resizeBitmapByScale( Bitmap bitmap, float scale, boolean recycle) argument [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | DragPreviewProvider.java | 110 float scale = 1f; 120 scale = ((LauncherAppWidgetHostView) mView).getScaleToFit(); 121 width = (int) (mView.getWidth() * scale); 122 height = (int) (mView.getHeight() * scale); 130 canvas.scale(scale, scale); 152 float scale = 1f; 157 scale = ((LauncherAppWidgetHostView) mView).getScaleToFit(); 158 width = (int) Math.floor(mView.getWidth() * scale); [all...] |
H A D | FixedScaleDrawable.java | 33 canvas.scale(mScaleX, mScaleY, 45 public void setScale(float scale) { argument 48 mScaleX = scale * LEGACY_ICON_SCALE; 49 mScaleY = scale * LEGACY_ICON_SCALE;
|
H A D | LauncherIcons.java | 104 float scale = 1f; 112 scale = normalizer.getScale(icon, null, dr.getIconMask(), outShape); 115 Drawable wrappedIcon = wrapToAdaptiveIconDrawable(context, icon, scale); 118 scale = normalizer.getScale(icon, null, null, null); 122 scale = normalizer.getScale(icon, null, null, null); 125 Bitmap bitmap = createIconBitmap(icon, context, scale); 158 float scale = 1f; 166 scale = normalizer.getScale(icon, iconBounds, dr.getIconMask(), outShape); 169 Drawable wrappedIcon = wrapToAdaptiveIconDrawable(context, icon, scale); 172 scale 231 createIconBitmap(Drawable icon, Context context, float scale) argument 298 wrapToAdaptiveIconDrawable(Context context, Drawable drawable, float scale) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
H A D | WidgetUtils.java | 61 float scale; 63 scale = Math.max((float) sStackPhotoWidth / w, 66 scale = Math.max((float) sStackPhotoWidth / h, 75 canvas.scale(scale, scale);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
H A D | BatteryTestUtils.java | 28 100 /* scale */, 36 100 /* scale */, 40 public static Intent getCustomBatteryIntent(int plugged, int level, int scale, int status) { argument 44 intent.putExtra(BatteryManager.EXTRA_SCALE, scale);
|
/packages/apps/Camera2/src/com/android/camera/ui/motion/ |
H A D | LinearScale.java | 20 * Represents a discrete linear scale function. 37 float scale = (mRangeB - mRangeA) / (mDomainB - mDomainA); 38 mScale = Float.isNaN(scale) ? 0.0f : scale; 63 * Linearly scale a given domain value into the output range. 65 public float scale(float domainValue) { method in class:LinearScale 70 * For the current domain and range parameters produce a new scale function 71 * that is the inverse of the current scale function.
|
H A D | InterpolateUtils.java | 43 * @param v value to scale into the 'to' number space. 51 public static float scale(float v, float vMin, float vMax, float pMin, float pMax) { method in class:InterpolateUtils
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
H A D | LivePreviewWidgetCell.java | 80 final float scale; 82 scale = ((float) previewSize) / viewWidth; 84 bitmapHeight = (int) (viewHeight * scale); 86 scale = 1; 93 c.scale(scale, scale);
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
H A D | BitmapUtils.java | 31 * @param bm The bitmap to scale. 49 float scale = heightScale > widthScale ? heightScale : widthScale; 50 int scaleWidth = (int) Math.ceil(bm.getWidth() * scale); 51 int scaleHeight = (int) Math.ceil(bm.getHeight() * scale); 54 // If you try to scale an image down too much in one go, you can end up with discontinuous 55 // interpolation. Therefore, if necessary, we scale the image to twice the desired size 57 if (scale < .5f) { 61 if (scale != 1f) {
|
/packages/apps/Gallery2/src/com/android/photos/drawables/ |
H A D | AutoThumbnailDrawable.java | 127 float scale; 137 scale = (float) vheight / (float) dheight; 138 dx = (vwidth - dwidth * scale) * 0.5f; 140 scale = (float) vwidth / (float) dwidth; 141 dy = (vheight - dheight * scale) * 0.5f; 143 if (scale < .8f) { 144 Log.w(TAG, "sample size was too small! Overdrawing! " + scale + ", " + mSampleSize); 145 } else if (scale > 1.5f) { 146 Log.w(TAG, "Potential quality loss! " + scale + ", " + mSampleSize); 149 mDrawMatrix.setScale(scale, scal [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | ImageFilterTinyPlanet.java | 71 Bitmap bitmapIn, int width, int height, Bitmap bitmapOut, int outSize, float scale, 129 float scale = intermediateWidth / (float) fullPanoWidth; 133 (int) (fullPanoWidth * scale), (int) (fullPanoHeight * scale), 137 scale /= 2; 144 RectF destRect = new RectF(left * scale, top * scale, right * scale, bottom * scale); 70 nativeApplyFilter( Bitmap bitmapIn, int width, int height, Bitmap bitmapOut, int outSize, float scale, float angle) argument
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
H A D | ShortcutDragPreviewProvider.java | 74 canvas.scale(((float) size) / bounds.width(), ((float) size) / bounds.height(), 0, 0); 85 float scale = launcher.getDragLayer().getLocationInDragLayer(mView, outPos); 92 outPos[0] += Math.round(scale * iconLeft + (scale * iconSize - preview.getWidth()) / 2 + 94 outPos[1] += Math.round((scale * mView.getHeight() - preview.getHeight()) / 2 97 return scale * iconSize / size;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
H A D | IconFactory.java | 31 * Builds an icon with the dimensions iconWidth:iconHeight. If scale is set 38 * @param scale if true, stretch sourceImage to fit the icon dimensions. 42 boolean scale) { 56 drawIcon(icon, sourceImage, scale); 61 * Draws an icon in the destination bitmap. If scale is set the source image 67 * @param scale if true, stretch sourceImage to fit the destination. 69 public static void drawIcon(Bitmap dest, Bitmap sourceImage, boolean scale) { argument 87 if (scale) { 88 // scale image to fit in icon (stretches if aspect isn't the same) 41 createIcon(Bitmap sourceImage, int iconWidth, int iconHeight, boolean scale) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/ |
H A D | MtpImageView.java | 130 float scale; 140 scale = 1.0f; 142 scale = Math.min(vwidth / dwidth, vheight / dheight); 144 mDrawMatrix.setScale(scale, scale); 146 mDrawMatrix.postTranslate(-dheight * scale * 0.5f, 147 -dwidth * scale * 0.5f); 149 mDrawMatrix.postTranslate(dwidth * scale * 0.5f, 150 dheight * scale * 0.5f); 152 mDrawMatrix.postTranslate((vwidth - dwidth * scale) * 0. [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
H A D | Thumbnail.java | 61 float scale = (float) targetWidth / width; 62 int w = Math.round(scale * width); 63 int h = Math.round(scale * height);
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ImageViewTouchBase.java | 249 // Get the scale factor out of the matrix. 271 float scale = Math.min(widthScale, heightScale); 274 matrix.postScale(scale, scale); 277 (viewWidth - w * scale) / 2F, 278 (viewHeight - h * scale) / 2F); 292 // Sets the maximum zoom, which is a scale relative to the base matrix. It 307 protected void zoomTo(float scale, float centerX, float centerY) { argument 308 if (scale > mMaxZoom) { 309 scale 320 zoomTo(final float scale, final float centerX, final float centerY, final float durationMs) argument 340 zoomTo(float scale) argument 347 zoomToPoint(float scale, float pointX, float pointY) argument [all...] |