/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);
|
/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/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/support/v4/java/android/support/v4/widget/ |
H A D | AutoScrollHelper.java | 139 /** Interpolator used to scale velocity with touch position. */ 824 final float scale = interpolateValue(value); 828 mDeltaX = (int) (elapsedSinceDelta * scale * mTargetVelocityX); 829 mDeltaY = (int) (elapsedSinceDelta * scale * mTargetVelocityY);
|
/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 | 254 bool scale = false; local 260 scale = true; 267 scale = true; 284 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/SettingsLib/src/com/android/settingslib/ |
H A D | Utils.java | 115 int scale = batteryChangedIntent.getIntExtra(BatteryManager.EXTRA_SCALE, 100); 116 return (level * 100) / scale;
|
/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;
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Matrix3f.java | 165 * Makes the upper 2x2 a scale matrix of given dimensions 167 * @param x scale component x 168 * @param y scale component y 177 * Sets current values to be a scale matrix of given dimensions 179 * @param x scale component x 180 * @param y scale component y 181 * @param z scale component z 267 * post-multiplying it with a scale matrix of given dimensions 269 * @param x scale component x 270 * @param y scale componen 272 public void scale(float x, float y) { method in class:Matrix3f 286 public void scale(float x, float y, float z) { method in class:Matrix3f [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | ColorFade.java | 249 mScaleLoc = GLES20.glGetUniformLocation(mProgram, "scale"); 398 float scale = (float) ((-Math.pow(one_minus_level, 2) + 1) * 0.1d + 0.9d); 400 drawFaded(opacity, 1.f / gamma, saturation, scale); 412 private void drawFaded(float opacity, float gamma, float saturation, float scale) { argument 415 ", saturation=" + saturation + ", scale=" + scale); 426 GLES20.glUniform1f(mScaleLoc, scale);
|