Searched refs:factor (Results 1 - 25 of 88) sorted by relevance

1234

/frameworks/base/core/java/com/android/internal/view/animation/
H A DNativeInterpolatorFactoryHelper.java27 public static native long createAccelerateInterpolator(float factor); argument
32 public static native long createDecelerateInterpolator(float factor); argument
/frameworks/base/media/mca/filterpacks/native/imageproc/
H A Dbrightness.c81 const int factor = (int)(brightness * 255.0f); local
86 const short r = (pixel.rgba[0] * factor) / 255;
87 const short g = (pixel.rgba[1] * factor) / 255;
88 const short b = (pixel.rgba[2] * factor) / 255;
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
H A DLVEQNB_CalcCoef.c66 /* Q is the Q factor, 0.25 to 12 (represented by 25 to 1200) */
110 LVM_INT32 factor; local
142 factor = 0x7fff; /* Initialise to 1.0 for the a0 coefficient */
147 CosErr += (factor * coef) >> 5; /* The nth partial sum */
148 factor = (factor * t0) >> 15; /* Calculate t0^n */
204 /* Q is the Q factor, 0.25 to 12 */
241 LVM_INT32 factor; local
273 factor = 0x7fff; /* Initialise to 1.0 for the a0 coefficient */
278 COS_T0 += (factor * coe
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DHistoryEvaluator.java81 float factor = (float) Math.pow(HISTORY_FACTOR, (time - mLastUpdate) / INTERVAL);
83 decayValue(mStrokes, factor);
84 decayValue(mGestureWeights, factor);
88 private void decayValue(ArrayList<Data> list, float factor) { argument
91 list.get(i).weight *= factor;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
H A DQuad.java239 * Grow the Quad outwards by the specified factor.
242 * them to the centroid. A factor of 1.0 moves the quad outwards by the distance of the corners
245 * @param factor the growth factor
248 public Quad grow(float factor) { argument
250 return new Quad(factor * (mTopLeft.x - pc.x) + pc.x,
251 factor * (mTopLeft.y - pc.y) + pc.y,
252 factor * (mTopRight.x - pc.x) + pc.x,
253 factor * (mTopRight.y - pc.y) + pc.y,
254 factor * (mBottomLef
266 scale(float factor) argument
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dgeometry.cpp59 Point Point::operator*(float factor) const {
61 out.x_ = factor * x_;
62 out.y_ = factor * y_;
107 bool Rect::ScaleWithLengthLimit(float factor, float max_length) { argument
108 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) {
117 float f = factor;
H A Dgeometry.h43 Point operator*(float factor) const;
88 bool ScaleWithLengthLimit(float factor, float max_length);
/frameworks/base/libs/hwui/
H A DInterpolator.h47 explicit AccelerateInterpolator(float factor) : mFactor(factor), mDoubleFactor(factor*2) {} argument
85 explicit DecelerateInterpolator(float factor) : mFactor(factor) {} argument
/frameworks/base/media/mca/filterpacks/native/base/
H A Dgeometry.cpp60 Point Point::operator*(float factor) const {
62 out.x_ = factor * x_;
63 out.y_ = factor * y_;
108 bool Rect::ScaleWithLengthLimit(float factor, float max_length) { argument
109 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) {
118 float f = factor;
H A Dgeometry.h43 Point operator*(float factor) const;
105 bool ScaleWithLengthLimit(float factor, float max_length);
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
H A Dfisheye.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;
H A Dfisheye_approx.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
H A Dfisheye.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;
H A Dfisheye_approx.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
H A Dfisheye.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;
H A Dfisheye_approx.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
H A Dfisheye_approx_f.rsh21 static float alpha, radius2, factor;
44 factor = bound / max_radian;
55 const float scalar = radian * factor * inv_dist;
/frameworks/base/core/jni/
H A Dcom_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp34 static jlong createAccelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { argument
35 return reinterpret_cast<jlong>(new AccelerateInterpolator(factor));
54 static jlong createDecelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { argument
55 return reinterpret_cast<jlong>(new DecelerateInterpolator(factor));
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/view/animation/
H A DNativeInterpolatorFactoryHelper_Delegate.java59 /*package*/ static long createAccelerateInterpolator(float factor) { argument
60 return sManager.addNewDelegate(new AccelerateInterpolator(factor));
84 /*package*/ static long createDecelerateInterpolator(float factor) { argument
85 return sManager.addNewDelegate(new DecelerateInterpolator(factor));
/frameworks/base/core/java/android/os/
H A DPowerSaveState.java91 public Builder setBrightnessFactor(float factor) { argument
92 mBrightnessFactor = factor;
/frameworks/base/core/java/android/view/animation/
H A DAccelerateInterpolator.java48 * @param factor Degree to which the animation should be eased. Seting
49 * factor to 1.0f produces a y=x^2 parabola. Increasing factor above
53 public AccelerateInterpolator(float factor) { argument
54 mFactor = factor;
H A DDecelerateInterpolator.java43 * @param factor Degree to which the animation should be eased. Setting factor to 1.0f produces
44 * an upside-down y=x^2 parabola. Increasing factor above 1.0f makes exaggerates the
47 public DecelerateInterpolator(float factor) { argument
48 mFactor = factor;
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DDuration.java146 long factor = 1000 * sign;
147 return factor * ((7*24*60*60*weeks)
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
H A DLVPSA_Control.c275 LVM_INT16 QFactor; /* Filter Q factor */
283 QFactor =(LVM_INT16) pInst->pFiltersParams[ii].QFactor; /* Get the band Q factor */
457 /* Q is the Q factor, 0.25 to 12 */
485 LVM_INT32 factor; local
520 factor = 0x7fff; /* Initialise to 1.0 for the a0 coefficient */
525 COS_T0 += (factor * coef) >> 5; /* The nth partial sum */
526 factor = (factor * t0) >> 15; /* Calculate t0^n */
572 /* Q is the Q factor, 0.25 to 12 (represented by 25 to 1200) */
608 LVM_INT32 factor; local
[all...]
/frameworks/base/core/java/android/util/
H A DLauncherIcons.java151 float factor = 1 / (1 + 2 * ICON_SIZE_BLUR_FACTOR + ICON_SIZE_KEY_SHADOW_DELTA_FACTOR);
154 bounds.width() * factor *
156 bounds.height() * factor * ICON_SIZE_BLUR_FACTOR);
157 canvas.scale(factor, factor);

Completed in 8281 milliseconds

1234