Searched refs:scale (Results 101 - 125 of 171) sorted by relevance

1234567

/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dwb_vad.c35 * 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 Dfastcodemb.h31 const Int *scale; member in struct:struct_approxDCT
/frameworks/base/core/java/com/android/internal/widget/
H A DDrawableHolder.java133 canvas.scale(mScaleX, mScaleY);
H A DPointerLocationView.java798 int scale = 1;
800 scale *= 10;
802 value = (float) (Math.rint(value * scale) / scale);
810 append((int) (value * scale), precision);
/frameworks/av/media/libstagefright/codecs/amrwbenc/
H A DAndroid.mk45 src/scale.c \
/frameworks/base/core/jni/android/graphics/
H A DNinePatchImpl.cpp65 int scale = alpha + (alpha >> 7); local
66 int a = SkColorGetA(c) * scale >> 8;
/frameworks/base/graphics/java/android/graphics/drawable/
H A DShapeDrawable.java199 int scale = alpha + (alpha >>> 7); // convert to 0..256
200 return paintAlpha * scale >>> 8;
463 // resize params (e.g. scaletofit, etc.). This could be used to scale
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
H A DTestAppRS.java128 public void onActionScale(float scale) { argument
129 mTouchHandler.onActionScale(scale);
/frameworks/base/core/java/android/view/
H A DWindowManager.java1664 public void scale(float scale) { argument
1665 x = (int) (x * scale + 0.5f);
1666 y = (int) (y * scale + 0.5f);
1668 width = (int) (width * scale + 0.5f);
1671 height = (int) (height * scale + 0.5f);
H A DMotionEvent.java502 * although it is not a linear scale. This value is of limited use.
1366 private static native void nativeScale(int nativePtr, float scale); argument
1659 * Applies a scale factor to all points within this event.
1664 * are also affected by the scale factor.
1666 * @param scale The scale factor to apply.
1669 public final void scale(float scale) { argument
1670 if (scale != 1.0f) {
1671 nativeScale(mNativePtr, scale);
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DWindowManagerService.java818 // Get persisted window scale setting
2568 w.mGivenContentInsets.scale(w.mGlobalScale);
2569 w.mGivenVisibleInsets.scale(w.mGlobalScale);
2570 w.mGivenTouchableRegion.scale(w.mGlobalScale);
3129 public void magnifyDisplay(int displayId, float scale, float offsetX, float offsetY) { argument
3137 final boolean scaleChanged = spec.mScale != scale;
3142 spec.initialize(scale, offsetX, offsetY);
3307 Animation scale = new ScaleAnimation(scaleW, 1, scaleH, 1,
3310 scale.setDuration(duration);
3313 scale
5319 fixScale(float scale) argument
5325 setAnimationScale(int which, float scale) argument
5366 setAnimatorDurationScale(float scale) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DStackView.java327 final float scale = 1 - PERSPECTIVE_SCALE_FACTOR * (1 - r);
330 float scaleShiftCorrectionY = (scale - 1) *
335 float scaleShiftCorrectionX = (1 - scale) *
348 PropertyValuesHolder scalePropX = PropertyValuesHolder.ofFloat("scaleX", scale);
349 PropertyValuesHolder scalePropY = PropertyValuesHolder.ofFloat("scaleY", scale);
361 view.setScaleX(scale);
362 view.setScaleY(scale);
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java310 * calls to translate,scale,rotate,skew,concat or clipRect,clipPath
321 * stack. Subsequent calls to translate,scale,rotate,skew,concat or
337 * scale, rotate, skew, concat or clipRect, clipPath all operate on this
369 * scale, rotate, skew, concat or clipRect, clipPath all operate on this
431 * Preconcat the current matrix with the specified scale.
433 * @param sx The amount to scale in X
434 * @param sy The amount to scale in Y
436 public native void scale(float sx, float sy); method in class:Canvas
439 * Preconcat the current matrix with the specified scale.
441 * @param sx The amount to scale i
446 public final void scale(float sx, float sy, float px, float py) { method in class:Canvas
[all...]
/frameworks/base/libs/androidfw/
H A DInput.cpp203 void PointerCoords::scale(float scaleFactor) { function in class:android::PointerCoords
204 // No need to scale pressure or size since they are normalized.
205 // No need to scale orientation since it is meaningless to do so.
408 void MotionEvent::scale(float scaleFactor) { function in class:android::MotionEvent
416 mSamplePointerCoords.editItemAt(i).scale(scaleFactor);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java444 public void scale(float sx, float sy) { method in class:GcSnapshot
447 layer.getGraphics().scale(sx, sy);
453 mTransform.scale(sx, sy);
/frameworks/base/core/java/android/view/animation/
H A DAnimationSet.java412 public void scaleCurrentDuration(float scale) { argument
416 animations.get(i).scaleCurrentDuration(scale);
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dvad1.cpp446 scale -- Word16 -- scaling for the level calculation
515 Word16 scale, /* i : scaling for the level calculation */
531 l_temp2 = L_add(l_temp1, L_shl(*sub_level, sub(16, scale, pOverflow), pOverflow), pOverflow);
532 *sub_level = extract_h(L_shl(l_temp1, scale, pOverflow));
538 level = extract_h(L_shl(l_temp2, scale, pOverflow));
505 level_calculation( Word16 data[], Word16 *sub_level, Word16 count1, Word16 count2, Word16 ind_m, Word16 ind_a, Word16 scale, Flag *pOverflow ) argument
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DTargetDrawable.java245 canvas.scale(mScaleX, mScaleY, mPositionX, mPositionY);
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DIWindowManagerImpl.java478 public void magnifyDisplay(int dipslayId, float scale, float offsetX, float offsetY) argument
/frameworks/ex/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java56 /** By how much to scale the image when double click occurs */
118 /** When {@code true}, allows gestures to scale / pan the image */
124 /** When {@code true}, prevents scale end gesture from falsely triggering a double click. */
126 /** When {@code false}, event is a scale gesture. Otherwise, event is a double touch. */
130 /** Minimum scale the image can have. */
132 /** Maximum scale to limit scaling to, 0 means no limit. */
204 // Ensure the target scale is within our bounds
273 scale(newScale, detector.getFocusX(), detector.getFocusY());
495 // scale for the final dimensions
500 // translate to the origin & scale
757 private void scale(float newScale, float centerX, float centerY) { method in class:PhotoView
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java56 /** By how much to scale the image when double click occurs */
120 /** When {@code true}, allows gestures to scale / pan the image */
126 /** When {@code true}, prevents scale end gesture from falsely triggering a double click. */
128 /** When {@code false}, event is a scale gesture. Otherwise, event is a double touch. */
132 /** Minimum scale the image can have. */
134 /** Maximum scale to limit scaling to, 0 means no limit. */
206 // Ensure the target scale is within our bounds
275 scale(newScale, detector.getFocusX(), detector.getFocusY());
497 // scale for the final dimensions
502 // translate to the origin & scale
763 private void scale(float newScale, float centerX, float centerY) { method in class:PhotoView
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyButtonView.java113 canvas.scale(mGlowScale, mGlowScale, w*0.5f, h*0.5f);
/frameworks/base/services/input/
H A DInputReader.cpp721 "scale=%0.3f, lowThreshold=%0.3f, highThreshold=%0.3f, acceleration=%0.3f\n",
722 mConfig.pointerVelocityControlParameters.scale,
728 "scale=%0.3f, lowThreshold=%0.3f, highThreshold=%0.3f, acceleration=%0.3f\n",
729 mConfig.wheelVelocityControlParameters.scale,
3370 out.haveSizeScale = in.tryGetProperty(String8("touch.size.scale"),
3393 out.havePressureScale = in.tryGetProperty(String8("touch.pressure.scale"),
3426 out.haveDistanceScale = in.tryGetProperty(String8("touch.distance.scale"),
3493 dump.appendFormat(INDENT4 "touch.size.scale: %0.3f\n",
3523 dump.appendFormat(INDENT4 "touch.pressure.scale: %0.3f\n",
3555 dump.appendFormat(INDENT4 "touch.distance.scale
4140 float scale = 1.0f + confidence / 16.0f; local
[all...]
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A Dcarousel.rs151 static const int ANIMATION_DELAY_TIME = 125; // hold off scale animation until this time
190 float dragFactor; // a scale factor for how sensitive the carousel is to user dragging
577 // Gets animated scale value for current selected card.
579 static bool getAnimatedScaleForSelected(float3* scale)
585 // "scale up" animation
594 // "scale down" animation
604 *scale = one + fraction * SELECTED_SCALE_FACTOR;
684 float3 scale;
685 stillAnimating = getAnimatedScaleForSelected(&scale);
686 rsMatrixScale(matrix, scale
[all...]
/frameworks/base/libs/hwui/
H A DLayerRenderer.cpp443 renderer.scale(1.0f, -1.0f);
449 invert.scale(1.0f, -1.0f, 1.0f);

Completed in 4846 milliseconds

1234567