/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Region_Delegate.java | 245 /*package*/ static void scale(Region thisRegion, float scale, Region dst) { argument 261 mtx.scale(scale, scale);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | NinePatchDrawable.java | 146 * Set the density scale at which this drawable will be rendered. This 150 * @param canvas The Canvas from which the density scale must be obtained. 160 * Set the density scale at which this drawable will be rendered. 162 * @param metrics The DisplayMetrics indicating the density scale for this drawable. 174 * @param density The density scale for this drawable. 220 final float scale = mTargetDensity / (float) state.mNinePatch.getDensity(); 223 canvas.scale(scale, scale, px, py); 233 scaledBounds.right = bounds.left + Math.round(bounds.width() / scale); [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ResourceHelper.java | 442 float scale; field in class:ResourceHelper.UnitEntry 444 UnitEntry(String name, int type, int unit, float scale) { argument 448 this.scale = scale; 559 private static void computeTypedValue(TypedValue outValue, float value, float scale) { argument 560 value *= scale; 618 outScale[0] = unit.scale;
|
/frameworks/base/core/java/android/view/ |
H A D | AccessibilityInteractionController.java | 745 point.x *= spec.scale; 746 point.y *= spec.scale; 769 boundsInParent.scale(applicationScale); 770 boundsInScreen.scale(applicationScale); 773 boundsInParent.scale(spec.scale); 775 boundsInScreen.scale(spec.scale); 787 final float scale = attachInfo.mApplicationScale * spec.scale; [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/ |
H A D | BitmapRegionTileSource.java | 134 mTempCanvas.scale(1f / sampleSize, 1f / sampleSize); 189 float scale = (float) previewSize / Math.max(width, height); 190 opts.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); 509 float scale = (float) targetSize / (float) (Math.max(result.getWidth(), result.getHeight())); 511 if (scale <= 0.5) { 512 result = BitmapUtils.resizeBitmapByScale(result, scale, true);
|
/frameworks/base/core/java/android/hardware/radio/ |
H A D | RadioMetadata.java | 497 float scale = Math.min(widthScale, heightScale); 498 int height = (int) (bmp.getHeight() * scale); 499 int width = (int) (bmp.getWidth() * scale);
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | BakedOpStateTests.cpp | 93 float scale; member in struct:android::uirenderer::StrokeTestCase 116 // 3x3 scale: 136 // 0.5f x 0.5f scale 170 snapshotMatrix.loadScale(testCase.scale, testCase.scale, 1);
|
H A D | ClipAreaTests.cpp | 205 translateScale.scale(2, 3, 1); 270 translateScale.scale(2, 3, 1); // recorded clip will have non-int coords, even after transform 292 translateScale.scale(2, 2, 1); 331 transform.scale(2, 3, 1);
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | BasicBitmapDrawable.java | 319 final float scale = 322 bufferW = (int) (mDecodeWidth * scale); 323 bufferH = (int) (mDecodeHeight * scale);
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | AutoScrollHelper.java | 139 /** Interpolator used to scale velocity with touch position. */ 827 final float scale = interpolateValue(value); 831 mDeltaX = (int) (elapsedSinceDelta * scale * mTargetVelocityX); 832 mDeltaY = (int) (elapsedSinceDelta * scale * mTargetVelocityY);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | SearchOrbView.java | 215 void scaleOrbViewOnly(float scale) { argument 216 mSearchOrbView.setScaleX(scale); 217 mSearchOrbView.setScaleY(scale);
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/ |
H A D | Norm_Corr_opt.s | 97 RSB r7, r6, #0 @scale = -(exp >> 1) 101 @r7 --- scale r4 --- t_min r8 --- excf[] 173 ADD r6, r6, r7 @exp_corr + exp_norm + scale 178 MOVGT r12, r12, LSL r6 @L_tmp = L_shl(L_tmp, exp_corr + exp_norm + scale)
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV7/ |
H A D | Norm_Corr_neon.s | 105 RSB r7, r6, #0 @scale = -(exp >> 1) 109 @r7 --- scale r4 --- t_min r8 --- excf[] 213 ADD r6, r6, r7 @exp_corr + exp_norm + scale 218 MOVGT r12, r12, LSL r6 @L_tmp = L_shl(L_tmp, exp_corr + exp_norm + scale)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyguardUserSwitcherScrim.java | 61 canvas.scale(1, height / width);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 58 public abstract void scale(float sx, float sy, float sz); method in interface:GLCanvas
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ScaledPathsActivity.java | 86 canvas.scale(scaleX, scaleY);
|
H A D | AlphaLayersActivity.java | 96 canvas.scale(2.0f, 2.0f); 116 canvas.scale(2.0f, 2.0f);
|
H A D | LinesActivity.java | 151 canvas.scale(10.0f, 10.0f); 158 canvas.scale(10.0f, 50.0f);
|
/frameworks/native/services/surfaceflinger/ |
H A D | Transform.cpp | 261 bool scale = false; local 267 scale = true; 274 scale = true; 291 if (scale)
|
/frameworks/base/libs/hwui/ |
H A D | CanvasState.cpp | 177 void CanvasState::scale(float sx, float sy) { function in class:android::uirenderer::CanvasState 178 mSnapshot->transform->scale(sx, sy, 1.0f);
|
/frameworks/base/libs/input/ |
H A D | PointerController.h | 128 float scale; member in struct:android::PointerController::Spot 132 : id(id), sprite(sprite), alpha(1.0f), scale(1.0f),
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | KeyguardClockPositionAlgorithm.java | 174 private float getClockAlpha(float scale) { argument 178 float alpha = (scale - fadeEnd) 199 * The scale of the Clock
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | TiledImageRenderer.java | 240 public void setPosition(int centerX, int centerY, float scale) { argument 242 && mScale == scale) { 247 mScale = scale; 273 // we use for display. So it can be faster when the scale moves to the 274 // next level. We choose the level closest to the current scale. 353 // If the bitmap is scaled by the given factor "scale", return the 360 int cX, int cY, int level, float scale, int rotation) { 373 int left = (int) Math.floor(cX - width / (2f * scale)); 374 int top = (int) Math.floor(cY - height / (2f * scale)); 375 int right = (int) Math.ceil(left + width / scale); 359 getRange(Rect out, int cX, int cY, int level, float scale, int rotation) argument [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | Matrix3f.java | 162 * Makes the upper 2x2 a scale matrix of given dimensions 164 * @param x scale component x 165 * @param y scale component y 174 * Sets current values to be a scale matrix of given dimensions 176 * @param x scale component x 177 * @param y scale component y 178 * @param z scale component z 264 * post-multiplying it with a scale matrix of given dimensions 266 * @param x scale component x 267 * @param y scale componen 269 public void scale(float x, float y) { method in class:Matrix3f 283 public void scale(float x, float y, float z) { method in class:Matrix3f [all...] |
/frameworks/support/v17/leanback/kitkat/android/support/v17/leanback/transition/ |
H A D | TransitionHelperKitkat.java | 69 Scale scale = new Scale(); 70 return scale;
|