/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BackgroundManager.java | 1054 float scale; 1058 scale = (float) mHeightPx / (float) dheight; 1060 scale = (float) mWidthPx / (float) dwidth; 1063 int subX = Math.min((int) (mWidthPx / scale), dwidth); 1067 matrix.setScale(scale, scale); 1071 " scale " + scale + " dx " + dx);
|
/frameworks/native/opengl/libagl/ |
H A D | primitives.cpp | 264 // Here we do some voodoo magic, to compute a suitable scale 310 const int scale = min(A, B - m_scale) - 2; local 311 if (scale >= 0) { 312 c0 <<= scale; local 313 dc01 <<= scale; local 314 dc02 <<= scale; local 316 c0 >>= -scale; 317 dc01 >>= -scale; 318 dc02 >>= -scale; 328 return scale; [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | AutoScrollHelper.java | 138 /** Interpolator used to scale velocity with touch position. */ 823 final float scale = interpolateValue(value); 827 mDeltaX = (int) (elapsedSinceDelta * scale * mTargetVelocityX); 828 mDeltaY = (int) (elapsedSinceDelta * scale * mTargetVelocityY);
|
H A D | DrawableHolder.java | 133 canvas.scale(mScaleX, mScaleY);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaMetadata.java | 761 float scale = Math.min(widthScale, heightScale); 762 int height = (int) (bmp.getHeight() * scale); 763 int width = (int) (bmp.getWidth() * scale);
|
/frameworks/native/include/input/ |
H A D | Input.h | 227 void scale(float scale); 570 void scale(float scaleFactor);
|
/frameworks/native/services/surfaceflinger/ |
H A D | DispSync.cpp | 430 double scale = 2.0 * M_PI / double(mPeriod); local 434 double samplePhase = double(sample % mPeriod) * scale; 442 mPhase = nsecs_t(atan2(sampleAvgY, sampleAvgX) / scale);
|
/frameworks/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/ |
H A D | Filters.java | 252 private final float scale = 0.5f; field in class:Filters.VignetteFilter 261 center_y, scale, shade, slope); 270 scale, shade, slope);
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | wb_vad.c | 35 * Calculate Log2 and scale the signal: 146 Word16 scale /* i : scaling for the level calculation */ 158 l_temp2 = vo_L_add(l_temp1, L_shl(*sub_level, 16 - scale)); 159 *sub_level = extract_h(L_shl(l_temp1, scale)); 165 level = extract_h(L_shl2(l_temp2, scale)); 597 tmp = (st->sp_max >> 1); /* scale to get "average" speech level */
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | fastcodemb.h | 31 const Int *scale; member in struct:struct_approxDCT
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmElement.h | 48 static sp<WebmElement> SegmentInfo(uint64_t scale = 1000000, double dur = 0);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 21 * Essentially, it allows the creation of custom graphics that will scale the 51 // if bitmap was scaled when decoded, scale the insets from the metadata values 52 opticalRect.scale(decodeScale);
|
/frameworks/base/libs/hwui/ |
H A D | Canvas.h | 89 virtual void scale(float sx, float sy) = 0;
|
H A D | CanvasState.h | 106 void scale(float sx, float sy);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | KeyguardAffordanceHelper.java | 458 float scale = getScale(alpha, view); 461 view.setImageScale(scale, animate); 465 float scale = alpha / icon.getRestingAlpha() * 0.2f + 467 return Math.min(scale, KeyguardAffordanceView.MAX_ICON_SCALE_AMOUNT);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowStateAnimator.java | 300 " scale=" + mService.getWindowAnimationScaleLocked()); 1082 // thing... magically makes it call good: scale each window 1115 tmpMatrix.postScale(spec.scale, spec.scale); 1209 tmpMatrix.postScale(spec.scale, spec.scale); 1260 // scale function because we want to round things to make the crop 1264 final float scale = w.mInvGlobalScale; 1265 w.mSystemDecorRect.left = (int) (w.mSystemDecorRect.left * scale - 0.5f); 1266 w.mSystemDecorRect.top = (int) (w.mSystemDecorRect.top * scale [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | SurfaceHolderTarget.java | 171 canvas.scale(surfaceRect.width(), surfaceRect.height());
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/ |
H A D | Android.mk | 45 src/scale.c \
|
/frameworks/base/core/jni/android/graphics/ |
H A D | NinePatchImpl.cpp | 61 int scale = alpha + (alpha >> 7); local 62 int a = SkColorGetA(c) * scale >> 8;
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
H A D | TestAppRS.java | 128 public void onActionScale(float scale) { argument 129 mTouchHandler.onActionScale(scale);
|
/frameworks/base/core/java/android/view/ |
H A D | WindowManager.java | 2064 public void scale(float scale) { argument 2065 x = (int) (x * scale + 0.5f); 2066 y = (int) (y * scale + 0.5f); 2068 width = (int) (width * scale + 0.5f); 2071 height = (int) (height * scale + 0.5f);
|
/frameworks/base/core/java/android/app/ |
H A D | ActivityManager.java | 1245 float scale; 1248 scale = (float) size.x / (float) th; 1249 dx = (size.y - tw * scale) * 0.5f; 1251 scale = (float) size.y / (float) tw; 1252 dy = (size.x - th * scale) * 0.5f; 1255 matrix.setScale(scale, scale);
|
/frameworks/base/core/java/android/widget/ |
H A D | ProgressBar.java | 1284 float scale = mMax > 0 ? (float) progress / (float) mMax : 0; 1296 final int level = (int) (scale * MAX_LEVEL); 1303 onProgressRefresh(scale, fromUser, progress); 1307 void onProgressRefresh(float scale, boolean fromUser, int progress) { argument 1691 canvas.scale(-1.0f, 1.0f); 1699 final float scale = mTransformation.getAlpha(); 1702 d.setLevel((int) (scale * MAX_LEVEL));
|
H A D | StackView.java | 333 final float scale = 1 - PERSPECTIVE_SCALE_FACTOR * (1 - r); 336 float scaleShiftCorrectionY = (scale - 1) * 341 float scaleShiftCorrectionX = (1 - scale) * 354 PropertyValuesHolder scalePropX = PropertyValuesHolder.ofFloat("scaleX", scale); 355 PropertyValuesHolder scalePropY = PropertyValuesHolder.ofFloat("scaleY", scale); 367 view.setScaleX(scale); 368 view.setScaleY(scale);
|
/frameworks/base/core/jni/ |
H A D | android_graphics_Canvas.cpp | 137 static void scale(JNIEnv*, jobject, jlong canvasHandle, jfloat sx, jfloat sy) { function in namespace:android::CanvasJNI 138 get_canvas(canvasHandle)->scale(sx, sy); 342 SkScalar scale = canvasDensity / (float)bitmapDensity; local 344 canvas->scale(scale, scale); 685 {"native_scale","(JFF)V", (void*) CanvasJNI::scale},
|