/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
D | CropView.java | 100 final float scale = mRenderer.scale; in getEdgesHelper() local 102 * scale + width / 2f; in getEdgesHelper() 104 * scale + height / 2f; in getEdgesHelper() 105 float leftEdge = centerX - imageWidth / 2f * scale; in getEdgesHelper() 106 float rightEdge = centerX + imageWidth / 2f * scale; in getEdgesHelper() 107 float topEdge = centerY - imageHeight / 2f * scale; in getEdgesHelper() 108 float bottomEdge = centerY + imageHeight / 2f * scale; in getEdgesHelper() 123 final float scale = mRenderer.scale; in getCrop() local 125 float cropLeft = -edges.left / scale; in getCrop() 126 float cropTop = -edges.top / scale; in getCrop() [all …]
|
/frameworks/native/libs/input/ |
D | VelocityControl.cpp | 72 float scale = mParameters.scale; in move() local 74 float speed = hypotf(vx, vy) * scale; in move() 77 scale *= mParameters.acceleration; in move() 81 scale *= 1 + (speed - mParameters.lowThreshold) in move() 89 mParameters.scale, mParameters.lowThreshold, mParameters.highThreshold, in move() 91 vx, vy, speed, scale / mParameters.scale); in move() 96 mParameters.scale, mParameters.lowThreshold, mParameters.highThreshold, in move() 102 *deltaX *= scale; in move() 105 *deltaY *= scale; in move()
|
/frameworks/base/core/java/android/view/ |
D | MagnificationSpec.java | 33 public float scale = 1.0f; field in MagnificationSpec 41 public void initialize(float scale, float offsetX, float offsetY) { in initialize() argument 42 if (scale < 1) { in initialize() 45 this.scale = scale; in initialize() 51 return scale == 1.0f && offsetX == 0 && offsetY == 0; in isNop() 56 info.scale = other.scale; in obtain() 73 scale = 1.0f; in clear() 85 parcel.writeFloat(scale); in writeToParcel() 95 builder.append(scale); in toString() 105 scale = parcel.readFloat(); in initFromParcel()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 98 public static int computeSampleSizeLarger(float scale) { in computeSampleSizeLarger() argument 99 int initialSize = (int) FloatMath.floor(1f / scale); in computeSampleSizeLarger() 108 public static int computeSampleSize(float scale) { in computeSampleSize() argument 109 Utils.assertTrue(scale > 0); in computeSampleSize() 110 int initialSize = Math.max(1, (int) FloatMath.ceil(1 / scale)); in computeSampleSize() 117 Bitmap bitmap, float scale, boolean recycle) { in resizeBitmapByScale() argument 118 int width = Math.round(bitmap.getWidth() * scale); in resizeBitmapByScale() 119 int height = Math.round(bitmap.getHeight() * scale); in resizeBitmapByScale() 124 canvas.scale(scale, scale); in resizeBitmapByScale() 143 float scale = Math.min( in resizeDownBySideLength() local [all …]
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | DocumentaryFilter.java | 144 float scale[] = new float[2]; in initParameters() local 146 scale[0] = 1f; in initParameters() 147 scale[1] = ((float) mHeight) / mWidth; in initParameters() 149 scale[0] = ((float) mWidth) / mHeight; in initParameters() 150 scale[1] = 1f; in initParameters() 152 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[1] * scale[1])) * 0.5f; in initParameters() 154 mProgram.setHostValue("scale", scale); in initParameters()
|
D | LomoishFilter.java | 153 float scale[] = new float[2]; in initParameters() local 155 scale[0] = 1f; in initParameters() 156 scale[1] = ((float) mHeight) / mWidth; in initParameters() 158 scale[0] = ((float) mWidth) / mHeight; in initParameters() 159 scale[1] = 1f; in initParameters() 161 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[1] * scale[1])) * 0.5f; in initParameters() 163 mProgram.setHostValue("scale", scale); in initParameters()
|
D | VignetteFilter.java | 94 float scale[] = new float[2]; in initParameters() local 96 scale[0] = 1f; in initParameters() 97 scale[1] = ((float) mHeight) / mWidth; in initParameters() 99 scale[0] = ((float) mWidth) / mHeight; in initParameters() 100 scale[1] = 1f; in initParameters() 102 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[1] * scale[1])) * 0.5f; in initParameters() 103 mProgram.setHostValue("scale", scale); in initParameters()
|
D | FisheyeFilter.java | 145 float scale[] = new float[2]; in updateProgramParams() local 147 scale[0] = 1f; in updateProgramParams() 148 scale[1] = ((float) mHeight) / mWidth; in updateProgramParams() 150 scale[0] = ((float) mWidth) / mHeight; in updateProgramParams() 151 scale[1] = 1f; in updateProgramParams() 154 float bound2 = 0.25f * (scale[0] * scale[0] + scale[1] * scale[1]); in updateProgramParams() 162 mProgram.setHostValue("scale", scale); in updateProgramParams()
|
D | StraightenFilter.java | 138 float scale = 0.5f * Math.min( mWidth / maxWidth, in updateParameters() local 141 p0.set(scale * p0.x / mWidth + 0.5f, scale * p0.y / mHeight + 0.5f); in updateParameters() 142 p1.set(scale * p1.x / mWidth + 0.5f, scale * p1.y / mHeight + 0.5f); in updateParameters() 143 p2.set(scale * p2.x / mWidth + 0.5f, scale * p2.y / mHeight + 0.5f); in updateParameters() 144 p3.set(scale * p3.x / mWidth + 0.5f, scale * p3.y / mHeight + 0.5f); in updateParameters()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | TaskViewTransform.java | 32 public float scale = 1f; field in TaskViewTransform 46 scale = o.scale; in TaskViewTransform() 58 scale = 1f; in reset() 70 return (Float.compare(scale, v) != 0); in hasScaleChangedFrom() 95 anim.scaleX(scale) in applyToTaskView() 96 .scaleY(scale); in applyToTaskView() 125 v.setScaleX(scale); in applyToTaskView() 126 v.setScaleY(scale); in applyToTaskView() 147 … " scale: " + scale + " alpha: " + alpha + " visible: " + visible + " rect: " + rect + in toString()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 245 int dens, float scale, float invertedScale) { in CompatibilityInfo() argument 248 applicationScale = scale; in CompatibilityInfo() 311 rect.scale(applicationInvertedScale); in translateRectInScreenToAppWinFrame() 318 transparentRegion.scale(applicationScale); in translateRegionInWindowToScreen() 344 canvas.scale(applicationScale, applicationScale); in translateCanvas() 351 event.scale(applicationInvertedScale); in translateEventInScreenToAppWindow() 359 params.scale(applicationScale); in translateWindowLayout() 366 rect.scale(applicationScale); in translateRectInAppWindowToScreen() 373 rect.scale(applicationInvertedScale); in translateRectInScreenToAppWindow() 380 final float scale = applicationInvertedScale; in translatePointInScreenToAppWindow() local [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | ScreenMagnifier.java | 231 final float scale = spec.scale; in handleOnMagnifiedBoundsChanged() local 232 final float centerX = (-spec.offsetX + magnifiedFrame.width() / 2) / scale; in handleOnMagnifiedBoundsChanged() 233 final float centerY = (-spec.offsetY + magnifiedFrame.height() / 2) / scale; in handleOnMagnifiedBoundsChanged() 234 mMagnificationController.setScaleAndMagnifiedRegionCenter(scale, centerX, in handleOnMagnifiedBoundsChanged() 284 final float scale = mMagnificationController.getScale(); in handleOnRectangleOnScreenRequested() local 285 mMagnificationController.offsetMagnifiedRegionCenter(scrollX * scale, scrollY * scale); in handleOnRectangleOnScreenRequested() 313 rect.scale(1.0f / spec.scale); in getMagnifiedFrameInContentCoords() 397 final float scale = mMagnificationController.getScale(); in handleMotionEventStateDelegating() local 405 coords[i].x = (coords[i].x - scaledOffsetX) / scale; in handleMotionEventStateDelegating() 406 coords[i].y = (coords[i].y - scaledOffsetY) / scale; in handleMotionEventStateDelegating() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
D | Utilities.java | 61 public static void scaleRectAboutCenter(Rect r, float scale) { in scaleRectAboutCenter() argument 62 if (scale != 1.0f) { in scaleRectAboutCenter() 66 r.left = (int) (r.left * scale + 0.5f); in scaleRectAboutCenter() 67 r.top = (int) (r.top * scale + 0.5f); in scaleRectAboutCenter() 68 r.right = (int) (r.right * scale + 0.5f); in scaleRectAboutCenter() 69 r.bottom = (int) (r.bottom * scale + 0.5f); in scaleRectAboutCenter() 88 float scale = 1.0f; in mapCoordInDescendentToSelf() local 102 scale *= v0.getScaleX(); in mapCoordInDescendentToSelf() 107 return scale; in mapCoordInDescendentToSelf() 124 float scale = 1.0f; in mapCoordInSelfToDescendent() local [all …]
|
/frameworks/native/include/input/ |
D | VelocityControl.h | 37 float scale; member 65 scale(1.0f), lowThreshold(0.0f), highThreshold(0.0f), acceleration(1.0f) { in VelocityControlParameters() 68 VelocityControlParameters(float scale, float lowThreshold, in VelocityControlParameters() 70 scale(scale), lowThreshold(lowThreshold), in VelocityControlParameters()
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | BitmapUtils.java | 69 final float scale = Math.min(sampleSize, regularScale); in calculateCroppedSrcRect() local 71 final int srcCroppedW = Math.round(dstW * scale); in calculateCroppedSrcRect() 72 final int srcCroppedH = Math.round(dstH * scale); in calculateCroppedSrcRect() 73 final int srcCroppedSliceH = Math.round(dstSliceH * scale); in calculateCroppedSrcRect() 114 final float scale = Math.min(sampleSize, regularScale); in calculateCroppedSrcRect() local 116 final int srcCroppedW = Math.round(dstW * scale); in calculateCroppedSrcRect() 117 final int srcCroppedH = Math.round(dstH * scale); in calculateCroppedSrcRect()
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 178 float scale = 512f / max; in createVideoThumbnail() local 179 int w = Math.round(scale * width); in createVideoThumbnail() 180 int h = Math.round(scale * height); in createVideoThumbnail() 218 float scale; in extractThumbnail() local 220 scale = width / (float) source.getWidth(); in extractThumbnail() 222 scale = height / (float) source.getHeight(); in extractThumbnail() 225 matrix.setScale(scale, scale); in extractThumbnail() 405 float scale = targetHeight / bitmapHeightF; in transform() local 406 if (scale < .9F || scale > 1F) { in transform() 407 scaler.setScale(scale, scale); in transform() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AppTransition.java | 404 Animation scale = new ScaleAnimation(scaleW, 1, scaleH, 1, in createScaleUpAnimationLocked() local 407 scale.setInterpolator(mDecelerateInterpolator); in createScaleUpAnimationLocked() 413 set.addAnimation(scale); in createScaleUpAnimationLocked() 522 Animation scale = new ScaleAnimation(1f, scaleW, 1f, scaleW, in createThumbnailAspectScaleAnimationLocked() local 525 scale.setInterpolator(mThumbnailFastOutSlowInInterpolator); in createThumbnailAspectScaleAnimationLocked() 526 scale.setDuration(THUMBNAIL_APP_TRANSITION_DURATION); in createThumbnailAspectScaleAnimationLocked() 537 set.addAnimation(scale); in createThumbnailAspectScaleAnimationLocked() 543 Animation scale = new ScaleAnimation(scaleW, 1f, scaleW, 1f, in createThumbnailAspectScaleAnimationLocked() local 546 scale.setInterpolator(mThumbnailFastOutSlowInInterpolator); in createThumbnailAspectScaleAnimationLocked() 547 scale.setDuration(THUMBNAIL_APP_TRANSITION_DURATION); in createThumbnailAspectScaleAnimationLocked() [all …]
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | TiledImageView.java | 64 public float scale; field in TiledImageView.ImageRendererWrapper 162 mRenderer.scale = 0; in setTileSource() 182 || renderer.scale > 0 || getWidth() == 0) { in updateScaleIfNecessaryLocked() 185 renderer.scale = Math.min( in updateScaleIfNecessaryLocked() 261 float scale = mValues[Matrix.MSCALE_X]; in positionFromMatrix() local 262 int xoffset = Math.round((getWidth() - mTempRectF.width()) / 2 / scale); in positionFromMatrix() 263 int yoffset = Math.round((getHeight() - mTempRectF.height()) / 2 / scale); in positionFromMatrix() 265 cx += (mTempRectF.left / scale) - xoffset; in positionFromMatrix() 267 cx -= (mTempRectF.left / scale) - xoffset; in positionFromMatrix() 270 cy += (mTempRectF.top / scale) - yoffset; in positionFromMatrix() [all …]
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | Fisheye.java | 35 private float scale = 0.5f; field in Fisheye 62 scale = progress / 50.0f; in onBar1Changed() 75 scale = time % 2.f; in animateBars() 85 center_y, scale); in do_init() local 90 center_y, scale); in do_init() local 95 scale); in do_init() local 100 scale); in do_init() local
|
D | Vignette.java | 31 private float scale = 0.5f; field in Vignette 73 scale = progress / 50.0f; in onBar1Changed() 94 scale = time % 2.f; in animateBars() 104 center_y, scale, shade, slope); in do_init() local 109 center_y, scale, shade, slope); in do_init() local 114 scale, shade, slope); in do_init() local 119 scale, shade, slope); in do_init() local
|
/frameworks/support/v4/java/android/support/v4/app/ |
D | SharedElementCallback.java | 174 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); in onCaptureSharedElementSnapshot() local 175 bitmapWidth *= scale; in onCaptureSharedElementSnapshot() 176 bitmapHeight *= scale; in onCaptureSharedElementSnapshot() 182 mTempMatrix.postScale(scale, scale); in onCaptureSharedElementSnapshot() 200 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (width * height)); in createDrawableBitmap() local 201 if (drawable instanceof BitmapDrawable && scale == 1f) { in createDrawableBitmap() 205 int bitmapWidth = (int) (width * scale); in createDrawableBitmap() 206 int bitmapHeight = (int) (height * scale); in createDrawableBitmap()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | OverlayDisplayWindow.java | 232 float scale = mWindowScale * mLiveScale; in updateWindowParams() local 233 scale = Math.min(scale, (float)mDefaultDisplayInfo.logicalWidth / mWidth); in updateWindowParams() 234 scale = Math.min(scale, (float)mDefaultDisplayInfo.logicalHeight / mHeight); in updateWindowParams() 235 scale = Math.max(MIN_SCALE, Math.min(MAX_SCALE, scale)); in updateWindowParams() 237 float offsetScale = (scale / mWindowScale - 1.0f) * 0.5f; in updateWindowParams() 238 int width = (int)(mWidth * scale); in updateWindowParams() 239 int height = (int)(mHeight * scale); in updateWindowParams() 246 Slog.d(TAG, "updateWindowParams: scale=" + scale in updateWindowParams() 252 mTextureView.setScaleX(scale); in updateWindowParams() 253 mTextureView.setScaleY(scale); in updateWindowParams()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
D | PdfManipulationService.java | 306 final float scale; in applyPrintAttributes() local 309 scale = Math.min((float) dstWidthPts / srcWidthPts, in applyPrintAttributes() 311 transform.postScale(scale, scale); in applyPrintAttributes() 313 scale = Math.min((float) dstWidthPts / srcHeightPts, in applyPrintAttributes() 315 transform.postScale(scale, scale, mediaBox.left, mediaBox.bottom); in applyPrintAttributes() 318 scale = 1.0f; in applyPrintAttributes() 323 cropBox.left = (int) (cropBox.left * scale + 0.5f); in applyPrintAttributes() 324 cropBox.top = (int) (cropBox.top * scale + 0.5f); in applyPrintAttributes() 325 cropBox.right = (int) (cropBox.right * scale + 0.5f); in applyPrintAttributes() 326 cropBox.bottom = (int) (cropBox.bottom * scale + 0.5f); in applyPrintAttributes() [all …]
|
/frameworks/av/media/libstagefright/codecs/aacenc/basic_op/ |
D | oper_32b.c | 251 Word32 scale; in rsqrt() local 256 scale = norm_l(value); in rsqrt() 257 if(scale & 1) scale--; in rsqrt() 259 value <<= scale; in rsqrt() 266 scale >>= 1; in rsqrt() 270 root >>= scale; in rsqrt()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DessertCaseView.java | 355 int scale = 1; 358 scale = 4; 362 scale = 3; 366 scale = 2; 371 v.setTag(TAG_SPAN, scale); 422 ObjectAnimator.ofFloat(v, View.SCALE_X, (float) scale), 423 ObjectAnimator.ofFloat(v, View.SCALE_Y, (float) scale) 431 ObjectAnimator.ofFloat(v, View.X, i* mCellSize + (scale-1) * mCellSize /2), 432 ObjectAnimator.ofFloat(v, View.Y, j* mCellSize + (scale-1) * mCellSize /2) 442 v.setX(i * mCellSize + (scale-1) * mCellSize /2); [all …]
|