Searched refs:scale (Results 126 - 150 of 272) sorted by relevance

1234567891011

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DResourceHelper.java442 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 DAccessibilityInteractionController.java745 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 DBitmapRegionTileSource.java134 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 DRadioMetadata.java497 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 DBakedOpStateTests.cpp93 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 DBasicBitmapDrawable.java319 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 DSearchOrbView.java215 void scaleOrbViewOnly(float scale) { argument
216 mSearchOrbView.setScaleX(scale);
217 mSearchOrbView.setScaleY(scale);
/frameworks/support/v4/java/android/support/v4/widget/
H A DAutoScrollHelper.java139 /** 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 DNorm_Corr_opt.s97 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 DNorm_Corr_neon.s105 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 DKeyguardUserSwitcherScrim.java61 canvas.scale(1, height / width);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java58 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 DScaledPathsActivity.java86 canvas.scale(scaleX, scaleY);
H A DAlphaLayersActivity.java96 canvas.scale(2.0f, 2.0f);
116 canvas.scale(2.0f, 2.0f);
H A DLinesActivity.java151 canvas.scale(10.0f, 10.0f);
158 canvas.scale(10.0f, 50.0f);
/frameworks/native/services/surfaceflinger/
H A DTransform.cpp254 bool scale = false; local
260 scale = true;
267 scale = true;
284 if (scale)
/frameworks/base/libs/hwui/
H A DCanvasState.cpp177 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 DPointerController.h128 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 DUtils.java115 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 DKeyguardClockPositionAlgorithm.java174 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 DTiledImageRenderer.java240 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 DMatrix3f.java162 * 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 DTransitionHelperKitkat.java69 Scale scale = new Scale();
70 return scale;
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DMatrix3f.java165 * 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 DColorFade.java249 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);

Completed in 6681 milliseconds

1234567891011