/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis4/ |
D | vu.rs | 48 float scale = 0.0041; 49 rsMatrixLoadTranslate(&mat1, 0.f, -90.0f * scale, 0.f); 50 rsMatrixScale(&mat1, scale, scale, scale); 86 rsMatrixLoadTranslate(&mat1, 0.f, -147.0f * scale, 0.f); 88 rsMatrixScale(&mat1, scale, scale, scale); 103 rsMatrixLoadTranslate(&mat1, 0.f, -90.0f * scale, 0.f); 104 rsMatrixScale(&mat1, scale, scale, scale);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 97 public static int computeSampleSizeLarger(float scale) { in computeSampleSizeLarger() argument 98 int initialSize = (int) Math.floor(1f / scale); in computeSampleSizeLarger() 107 public static int computeSampleSize(float scale) { in computeSampleSize() argument 108 Utils.assertTrue(scale > 0); in computeSampleSize() 109 int initialSize = Math.max(1, (int) Math.ceil(1 / scale)); in computeSampleSize() 119 float scale = (float) Math.sqrt( in resizeDownToPixels() local 121 if (scale >= 1.0f) return bitmap; in resizeDownToPixels() 122 return resizeBitmapByScale(bitmap, scale, recycle); in resizeDownToPixels() 126 Bitmap bitmap, float scale, boolean recycle) { in resizeBitmapByScale() argument 127 int width = Math.round(bitmap.getWidth() * scale); in resizeBitmapByScale() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | AdaptiveBackground.java | 57 float scale = (float) BACKGROUND_HEIGHT / height; in getAdaptiveBitmap() local 58 canvas.scale(scale, scale); in getAdaptiveBitmap() 59 left = (BACKGROUND_WIDTH - (int) (width * scale + 0.5)) / 2; in getAdaptiveBitmap() 61 float scale = (float) BACKGROUND_WIDTH / width; in getAdaptiveBitmap() local 62 canvas.scale(scale, scale); in getAdaptiveBitmap() 63 top = (BACKGROUND_HEIGHT - (int) (height * scale + 0.5)) / 2; in getAdaptiveBitmap() 103 float scale = (float) height / BACKGROUND_HEIGHT; in render() local 104 int width = (int) (BACKGROUND_WIDTH * scale + 0.5f); in render()
|
D | IconDrawer.java | 102 float scale = (float) mIconSize / icon.getWidth(); in getIconDimension() local 103 id.width = Math.round(scale * icon.getWidth()); in getIconDimension() 104 id.height = Math.round(scale * icon.getHeight()); in getIconDimension() 124 float scale = (float) height / mVideoOverlay.getHeight(); in drawVideoOverlay() local 125 int w = Math.round(scale * mVideoOverlay.getWidth()); in drawVideoOverlay() 126 int h = Math.round(scale * mVideoOverlay.getHeight()); in drawVideoOverlay() 135 float scale = (float) width / mPanoramaBorder.getWidth(); in drawPanoramaBorder() local 136 int w = Math.round(scale * mPanoramaBorder.getWidth()); in drawPanoramaBorder() 137 int h = Math.round(scale * mPanoramaBorder.getHeight()); in drawPanoramaBorder()
|
D | PositionController.java | 152 float scale = 240f / Math.min(width, height); in setImageSize() local 153 mCurrentX = Math.round((mViewW / 2f - position.x) / scale) + mImageW / 2; in setImageSize() 154 mCurrentY = Math.round((mViewH / 2f - position.y) / scale) + mImageH / 2; in setImageSize() 155 mCurrentScale = scale; in setImageSize() 391 int targetX, int targetY, float scale, int kind) { in startAnimation() argument 393 && scale == mCurrentScale) return; in startAnimation() 401 mToScale = Utils.clamp(scale, 0.6f * mScaleMin, 1.4f * mScaleMax); in startAnimation() 539 float scale = mCurrentScale; in startSnapback() local 543 scale = Utils.clamp(mCurrentScale, mScaleMin, mScaleMax); in startSnapback() 546 calculateStableBound(scale); in startSnapback() [all …]
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | Environment.java | 125 int scale; in onConfigurationChanged() local 129 scale = mScreenWidth; in onConfigurationChanged() 133 scale = mScreenHeight; in onConfigurationChanged() 135 mNormalKeyTextSize = (int) (scale * NORMAL_KEY_TEXT_SIZE_RATIO); in onConfigurationChanged() 136 mFunctionKeyTextSize = (int) (scale * FUNCTION_KEY_TEXT_SIZE_RATIO); in onConfigurationChanged() 137 mNormalBalloonTextSize = (int) (scale * NORMAL_BALLOON_TEXT_SIZE_RATIO); in onConfigurationChanged() 138 mFunctionBalloonTextSize = (int) (scale * FUNCTION_BALLOON_TEXT_SIZE_RATIO); in onConfigurationChanged() 139 mKeyBalloonWidthPlus = (int) (scale * KEY_BALLOON_WIDTH_PLUS_RATIO); in onConfigurationChanged() 140 mKeyBalloonHeightPlus = (int) (scale * KEY_BALLOON_HEIGHT_PLUS_RATIO); in onConfigurationChanged()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/ |
D | nexus.rs | 44 float scale; 87 float scale = rsRand(SPEED_DELTA_MIN, SPEED_DELTA_MAX); 88 pulse->scale = scale; 97 pulse->dy = scale; 100 pulse->originY = gHeight / scale; 101 pulse->dy = -scale; 109 pulse->dx = scale; 112 pulse->originX = gWidth * 2 / scale; 113 pulse->dx = -scale; 171 rsMatrixScale(&modelMatrix, p->scale, p->scale, 1.0f); [all …]
|
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/ |
D | AbsSeekBar.java | 209 void onProgressRefresh(float scale, boolean fromUser) { 210 super.onProgressRefresh(scale, fromUser); 213 setThumbPos(getWidth(), getHeight(), thumb, scale, Integer.MIN_VALUE); 239 float scale = max > 0 ? (float) getProgress() / (float) max : 0; 243 setThumbPos(w, h, thumb, scale, 0); 260 setThumbPos(w, h, thumb, scale, gap); 270 float scale = max > 0 ? (float) getProgress() / (float) max : 0; 274 setThumbPos(w, h, thumb, scale, 0); 291 setThumbPos(w, h, thumb, scale, gap); 300 private void setThumbPos(int w, int h, Drawable thumb, float scale, int gap) { [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/filters/ |
D | FaceliftFilter.java | 28 private float scale; field in FaceliftFilter 35 public void setScale(float scale) { in setScale() argument 36 this.scale = scale; in setScale() 43 effect.setParameter("blend", scale); in process()
|
D | SaturationFilter.java | 29 private float scale; field in SaturationFilter 36 public void setSaturation(float scale) { in setSaturation() argument 37 this.scale = (scale - 0.5f) * 2; in setSaturation() 44 effect.setParameter("scale", scale); in process()
|
D | VignetteFilter.java | 29 private float scale; field in VignetteFilter 36 public void setScale(float scale) { in setScale() argument 37 this.scale = scale; in setScale() 44 effect.setParameter("scale", scale); in process()
|
D | GrainFilter.java | 29 private float scale; field in GrainFilter 36 public void setScale(float scale) { in setScale() argument 37 this.scale = scale; in setScale() 44 effect.setParameter("strength", scale); in process()
|
D | FisheyeFilter.java | 29 private float scale; field in FisheyeFilter 36 public void setScale(float scale) { in setScale() argument 37 this.scale = scale; in setScale() 44 effect.setParameter("scale", scale); in process()
|
D | AutoFixFilter.java | 29 private float scale; field in AutoFixFilter 36 public void setScale(float scale) { in setScale() argument 37 this.scale = scale; in setScale() 44 effect.setParameter("scale", scale); in process()
|
D | ColorTemperatureFilter.java | 29 private float scale; field in ColorTemperatureFilter 36 public void setColorTemperature(float scale) { in setColorTemperature() argument 37 this.scale = scale; in setColorTemperature() 44 effect.setParameter("scale", scale); in process()
|
D | SharpenFilter.java | 29 private float scale; field in SharpenFilter 36 public void setSharpen(float scale) { in setSharpen() argument 37 this.scale = scale; in setSharpen() 44 effect.setParameter("scale", scale); in process()
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
D | KenBurnsActivity.java | 436 final float scale = ((float)mMediaItemWidth) in showBitmapRectangle() local 439 Log.d(TAG, "showBitmapRectangle START: " + scale + " " in showBitmapRectangle() 443 if (scale > 1F) { in showBitmapRectangle() 444 mImageView.zoomToOffset(scale, mStartRect.left * scale * mImageViewScale, in showBitmapRectangle() 445 mStartRect.top * scale * mImageViewScale); in showBitmapRectangle() 454 final float scale = ((float)mMediaItemWidth) in showBitmapRectangle() local 457 Log.d(TAG, "showBitmapRectangle END: " + scale + " " in showBitmapRectangle() 461 if (scale > 1F) { in showBitmapRectangle() 462 mImageView.zoomToOffset(scale, mEndRect.left * scale * mImageViewScale, in showBitmapRectangle() 463 mEndRect.top * scale * mImageViewScale); in showBitmapRectangle() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ |
D | RendererUtils.java | 175 float scale = Math.min(dstWidth / maxWidth, dstHeight / maxHeight); in setRenderToRotate() local 178 vertices[i] *= scale / dstWidth; in setRenderToRotate() 179 vertices[i + 1] *= scale / dstHeight; in setRenderToRotate() 211 float scale = length / (length + sinTheta * base[0]); in setRenderToFlip() local 212 vertices[0] = cosTheta * base[0] * scale; in setRenderToFlip() 213 vertices[1] = base[1] * scale; in setRenderToFlip() 215 vertices[5] = base[5] * scale; in setRenderToFlip() 217 scale = length / (length + sinTheta * base[2]); in setRenderToFlip() 218 vertices[2] = cosTheta * base[2] * scale; in setRenderToFlip() 219 vertices[3] = base[3] * scale; in setRenderToFlip() [all …]
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | ImageViewTouchBase.java | 276 float scale = Math.min(widthScale, heightScale); in getProperBaseMatrix() local 277 matrix.postScale(scale, scale); in getProperBaseMatrix() 278 matrix.postTranslate((viewWidth - w * scale) / 2F, (viewHeight - h * scale) / 2F); in getProperBaseMatrix() 341 private float correctedZoomScale(float scale) { in correctedZoomScale() argument 342 float result = scale; in correctedZoomScale() 359 public void zoomTo(float scale, float centerX, float centerY) { in zoomTo() argument 360 float correctedScale = correctedZoomScale(scale); in zoomTo() 375 public void zoomTo(float scale) { in zoomTo() argument 379 zoomTo(scale, cx, cy); in zoomTo() 389 public void zoomToPoint(float scale, float pointX, float pointY) { in zoomToPoint() argument [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 271 float scale = Math.min(widthScale, heightScale); in getProperBaseMatrix() local 274 matrix.postScale(scale, scale); in getProperBaseMatrix() 277 (viewWidth - w * scale) / 2F, in getProperBaseMatrix() 278 (viewHeight - h * scale) / 2F); in getProperBaseMatrix() 307 protected void zoomTo(float scale, float centerX, float centerY) { in zoomTo() argument 308 if (scale > mMaxZoom) { in zoomTo() 309 scale = mMaxZoom; in zoomTo() 313 float deltaScale = scale / oldScale; in zoomTo() 320 protected void zoomTo(final float scale, final float centerX, in zoomTo() argument 322 final float incrementPerMs = (scale - getScale()) / durationMs; in zoomTo() [all …]
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/ |
D | many.rs | 58 float scale = 0.0041; 62 rsMatrixScale(&mat1, scale, scale, scale); 102 rsMatrixTranslate(&mat1, 0.f, -57.0f * scale, 0.f); 104 rsMatrixScale(&mat1, scale, scale, scale); 121 rsMatrixScale(&mat1, scale, scale, scale); 186 float scale = .008f; 189 rsMatrixScale(&mat1, scale, scale / 2048.f, scale);
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | WidgetUtils.java | 61 float scale; in createWidgetBitmap() local 63 scale = Math.max((float) sStackPhotoWidth / w, in createWidgetBitmap() 66 scale = Math.max((float) sStackPhotoWidth / h, in createWidgetBitmap() 75 canvas.scale(scale, scale); in createWidgetBitmap()
|
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/ |
D | clouds.rs | 96 static float scale[5]; 148 gVSConstants->layer0.z = m * scale[0]; 149 gVSConstants->layer1.z = m * scale[1]; 150 gVSConstants->layer2.z = m * scale[2]; 151 gVSConstants->layer3.z = m * scale[3]; 152 gVSConstants->layer4.z = m * scale[4]; 279 float scale = 255.f / (255.f - lowcol); 288 alpha = (alpha - lowcol) * scale; 303 float scale = 255.f / (255.f - lowcol); 363 scale[0] = 4.0f; // changed below based on preset [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | HolographicOutlineHelper.java | 50 final float scale = LauncherApplication.getScreenDensity(); 52 MIN_OUTER_BLUR_RADIUS = (int) (scale * 1.0f); 53 MAX_OUTER_BLUR_RADIUS = (int) (scale * 12.0f); 55 … sExtraThickOuterBlurMaskFilter = new BlurMaskFilter(scale * 12.0f, BlurMaskFilter.Blur.OUTER); 56 sThickOuterBlurMaskFilter = new BlurMaskFilter(scale * 6.0f, BlurMaskFilter.Blur.OUTER); 57 sMediumOuterBlurMaskFilter = new BlurMaskFilter(scale * 2.0f, BlurMaskFilter.Blur.OUTER); 58 sThinOuterBlurMaskFilter = new BlurMaskFilter(scale * 1.0f, BlurMaskFilter.Blur.OUTER); 59 … sExtraThickInnerBlurMaskFilter = new BlurMaskFilter(scale * 6.0f, BlurMaskFilter.Blur.NORMAL); 60 sThickInnerBlurMaskFilter = new BlurMaskFilter(scale * 4.0f, BlurMaskFilter.Blur.NORMAL); 61 sMediumInnerBlurMaskFilter = new BlurMaskFilter(scale * 2.0f, BlurMaskFilter.Blur.NORMAL);
|
D | FolderIcon.java | 354 float scale = getLocalCenterForIndex(index, center); in onDrop() local 364 scale * scaleRelativeToDragLayer, DROP_IN_ANIMATION_DURATION, in onDrop() 421 PreviewItemDrawingParams(float transX, float transY, float scale, int overlayAlpha) { 424 this.scale = scale; 429 float scale; 439 float offsetX = mParams.transX + (mParams.scale * mIntrinsicIconSize) / 2; 440 float offsetY = mParams.transY + (mParams.scale * mIntrinsicIconSize) / 2; 444 return mParams.scale; 451 float scale = (1 - PERSPECTIVE_SCALE_FACTOR * (1 - r)); 454 float scaledSize = scale * mBaselineIconSize; [all …]
|