Searched refs:scale (Results 51 - 75 of 171) sorted by relevance

1234567

/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DKeyguardCircleFramedDrawable.java136 public void setScale(float scale) { argument
137 Log.i("KFD", "scale: " + scale);
138 mScale = scale;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DLines2Activity.java106 canvas.scale(2, 2);
115 canvas.scale(2, 2);
124 canvas.scale(2, 2);
134 canvas.scale(2, 2);
143 canvas.scale(2, 2);
152 canvas.scale(2, 2);
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
H A DPlaybackGraphs.java40 if (tile.left < (view.right * view.scale)
41 && tile.right >= (view.left * view.scale)
42 && tile.top < (view.bottom * view.scale)
43 && tile.bottom >= (view.top * view.scale)) {
218 int newBar = (int)((frame[0].top + frame[0].bottom) * frame[0].scale / 2.0f);
277 canvas.scale(CANVAS_SCALE, CANVAS_SCALE);
H A DPlaybackView.java62 // ignore scale value for tiles
66 setBounds((int) (t.left * t.scale),
67 (int) (t.top * t.scale),
68 (int) (t.right * t.scale),
69 (int) (t.bottom * t.scale));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DStatusBarIconView.java65 // We do not resize and scale system icons (on the right), only notification icons (on the
70 final float scale = (float)imageBounds / (float)outerBounds;
71 setScaleX(scale);
72 setScaleY(scale);
85 final float scale = (float)imageBounds / (float)outerBounds;
86 setScaleX(scale);
87 setScaleY(scale);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DBlackWhiteFilter.java55 "uniform float scale;\n" +
82 " vec3 xform = clamp((color.rgb - black) * scale, 0.0, 1.0);\n" +
83 " vec3 temp = clamp((color.rgb + stepsize - black) * scale, 0.0, 1.0);\n" +
121 float scale = (mBlack != mWhite) ? 1.0f / (mWhite - mBlack) : 2000f;
124 mProgram.setHostValue("scale", scale);
/frameworks/base/core/java/android/gesture/
H A DGestureStroke.java169 float scale = sx > sy ? sy : sx;
170 GestureUtils.scale(pts, scale, scale);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenuItemView.java158 final float scale = (float) mMaxIconSize / width;
160 height *= scale;
163 final float scale = (float) mMaxIconSize / height;
165 width *= scale;
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DPointCloud.java162 public void setScale(float scale) { argument
163 mScale = scale;
206 canvas.scale(mScale, mScale, mCenterX, mCenterY);
222 canvas.scale(s, s, px, py);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DCompoundTransform.java115 public ScaleComponent(String name, Float3 scale) { argument
117 setValue(scale);
149 public ScaleComponent addScale(String name, Float3 scale) { argument
150 ScaleComponent c = new ScaleComponent(name, scale);
/frameworks/base/media/mca/filterpacks/native/base/
H A Dvec_types.h99 Vec<T, dim> operator * (const Vec<T,dim> &x, T scale) { argument
102 out.data[i] = x.data[i] * scale;
107 Vec<T, dim> operator / (const Vec<T,dim> &x, T scale) { argument
110 out.data[i] = x.data[i] / scale;
/frameworks/base/graphics/java/android/graphics/
H A DRect.java589 * Scales up the rect by the given scale.
592 public void scale(float scale) { argument
593 if (scale != 1.0f) {
594 left = (int) (left * scale + 0.5f);
595 top = (int) (top * scale + 0.5f);
596 right = (int) (right * scale + 0.5f);
597 bottom = (int) (bottom * scale + 0.5f);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DResourceHelper.java316 float scale; field in class:ResourceHelper.UnitEntry
318 UnitEntry(String name, int type, int unit, float scale) { argument
322 this.scale = scale;
433 private static void computeTypedValue(TypedValue outValue, float value, float scale) { argument
434 value *= scale;
490 outScale[0] = unit.scale;
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
H A DUiDevice.java696 * Default scale of 1.0f (original size) and 90% quality is used
712 * @param scale scale the screenshot down if needed; 1.0f for original size
716 public boolean takeScreenshot(File storePath, float scale, int quality) { argument
728 if (scale != 1.0f) {
729 matrix.setScale(scale, scale);
749 if (scale != 1.0f) {
750 width = Math.round(scale * width);
751 height = Math.round(scale * heigh
[all...]
/frameworks/base/libs/hwui/
H A DMatrix.cpp132 double scale = 1.0 / local
141 v.data[kTranslateY] * v.data[kPerspective1]) * scale;
143 v.data[kSkewX] * v.data[kPerspective2]) * scale;
145 v.data[kTranslateX] * v.data[kScaleY]) * scale;
148 v.data[kSkewY] * v.data[kPerspective2]) * scale;
150 v.data[kTranslateX] * v.data[kPerspective0]) * scale;
152 v.data[kScaleX] * v.data[kTranslateY]) * scale;
155 v.data[kScaleY] * v.data[kPerspective0]) * scale;
157 v.data[kScaleX] * v.data[kPerspective1]) * scale;
159 v.data[kSkewX] * v.data[kSkewY]) * scale;
[all...]
/frameworks/base/services/java/com/android/server/accessibility/
H A DScreenMagnifier.java101 * magnification scale which will become the current default magnification
102 * scale. The next time the user magnifies the same magnification scale
110 * fingers to change the magnification scale which will become the current
111 * default magnification scale. The next time the user magnifies the same
112 * magnification scale would be used.
114 * 6. The magnification scale will be persisted in settings and in the cloud.
288 final float scale = mMagnificationController.getScale();
296 coords[i].x = (coords[i].x - scaledOffsetX) / scale;
297 coords[i].y = (coords[i].y - scaledOffsetY) / scale;
750 persistScale(final float scale) argument
1332 setScale(float scale, float pivotX, float pivotY, boolean animate) argument
1351 setScaleAndMagnifiedRegionCenter(float scale, float centerX, float centerY, boolean animate) argument
1418 initialize(float scale, float magnifiedRegionCenterX, float magnifiedRegionCenterY) argument
[all...]
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityInteractionClient.java200 // If the scale is zero the call has failed.
249 // If the scale is zero the call has failed.
296 // If the scale is zero the call has failed.
342 // If the scale is zero the call has failed.
387 // If the scale is zero the call has failed.
607 * Applies compatibility scale to the info bounds if it is not equal to one.
609 * @param info The info whose bounds to scale.
610 * @param scale The scale to apply.
612 private void applyCompatibilityScaleIfNeeded(AccessibilityNodeInfo info, float scale) { argument
[all...]
/frameworks/base/core/java/android/widget/
H A DRatingBar.java250 void onProgressRefresh(float scale, boolean fromUser) { argument
251 super.onProgressRefresh(scale, fromUser);
/frameworks/base/services/input/
H A DPointerController.h192 float scale; member in struct:android::PointerController::Spot
196 : id(id), sprite(sprite), alpha(1.0f), scale(1.0f),
/frameworks/base/core/java/android/view/
H A DIWindowManager.aidl128 void setAnimationScale(int which, float scale);
224 * Gets the compatibility scale of e window given its token.
234 * Sets the scale and offset for implementing accessibility magnification.
236 void magnifyDisplay(int dipslayId, float scale, float offsetX, float offsetY);
/frameworks/base/graphics/java/android/renderscript/
H A DMatrix2f.java118 * Sets current values to be a scale matrix of given dimensions
120 * @param x scale component x
121 * @param y scale component y
173 * scale matrix of given dimensions
175 * @param x scale component x
176 * @param y scale component y
178 public void scale(float x, float y) { method in class:Matrix2f
/frameworks/native/services/surfaceflinger/
H A DTransform.cpp261 bool scale = false; local
267 scale = true;
274 scale = true;
291 if (scale)
/frameworks/rs/
H A DrsMatrix4x4.h70 void scale(float x, float y, float z) { function in struct:android::renderscript::Matrix4x4
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DMatrix2f.java118 * Sets current values to be a scale matrix of given dimensions
120 * @param x scale component x
121 * @param y scale component y
173 * scale matrix of given dimensions
175 * @param x scale component x
176 * @param y scale component y
178 public void scale(float x, float y) { method in class:Matrix2f
/frameworks/support/renderscript/v8/rs_support/
H A DrsMatrix4x4.h70 void scale(float x, float y, float z) { function in struct:android::renderscript::Matrix4x4

Completed in 3510 milliseconds

1234567