Home
last modified time | relevance | path

Searched refs:factor (Results 1 – 25 of 107) sorted by relevance

12345

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
DQuad.java248 public Quad grow(float factor) { in grow() argument
250 return new Quad(factor * (mTopLeft.x - pc.x) + pc.x, in grow()
251 factor * (mTopLeft.y - pc.y) + pc.y, in grow()
252 factor * (mTopRight.x - pc.x) + pc.x, in grow()
253 factor * (mTopRight.y - pc.y) + pc.y, in grow()
254 factor * (mBottomLeft.x - pc.x) + pc.x, in grow()
255 factor * (mBottomLeft.y - pc.y) + pc.y, in grow()
256 factor * (mBottomRight.x - pc.x) + pc.x, in grow()
257 factor * (mBottomRight.y - pc.y) + pc.y); in grow()
266 public Quad scale(float factor) { in scale() argument
[all …]
/frameworks/base/media/mca/filterfw/native/core/
Dgeometry.cpp59 Point Point::operator*(float factor) const { in operator *()
61 out.x_ = factor * x_; in operator *()
62 out.y_ = factor * y_; in operator *()
107 bool Rect::ScaleWithLengthLimit(float factor, float max_length) { in ScaleWithLengthLimit() argument
108 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) { in ScaleWithLengthLimit()
117 float f = factor; in ScaleWithLengthLimit()
Dgeometry.h43 Point operator*(float factor) const;
88 bool ScaleWithLengthLimit(float factor, float max_length);
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DHistoryEvaluator.java81 float factor = (float) Math.pow(HISTORY_FACTOR, (time - mLastUpdate) / INTERVAL); in decayValue() local
83 decayValue(mStrokes, factor); in decayValue()
84 decayValue(mGestureWeights, factor); in decayValue()
88 private void decayValue(ArrayList<Data> list, float factor) { in decayValue() argument
91 list.get(i).weight *= factor; in decayValue()
/frameworks/base/media/mca/filterpacks/native/base/
Dgeometry.cpp60 Point Point::operator*(float factor) const { in operator *()
62 out.x_ = factor * x_; in operator *()
63 out.y_ = factor * y_; in operator *()
108 bool Rect::ScaleWithLengthLimit(float factor, float max_length) { in ScaleWithLengthLimit() argument
109 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) { in ScaleWithLengthLimit()
118 float f = factor; in ScaleWithLengthLimit()
/frameworks/base/media/mca/filterpacks/native/imageproc/
Dbrightness.c81 const int factor = (int)(brightness * 255.0f); in brightness_process() local
86 const short r = (pixel.rgba[0] * factor) / 255; in brightness_process()
87 const short g = (pixel.rgba[1] * factor) / 255; in brightness_process()
88 const short b = (pixel.rgba[2] * factor) / 255; in brightness_process()
/frameworks/base/libs/hwui/
DInterpolator.h47 explicit AccelerateInterpolator(float factor) : mFactor(factor), mDoubleFactor(factor * 2) {} in AccelerateInterpolator() argument
89 explicit DecelerateInterpolator(float factor) : mFactor(factor) {} in DecelerateInterpolator() argument
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_Control.cpp467 LVM_FLOAT factor; in LVPSA_BPSinglePrecCoefs() local
500 factor = 1.0f; /* Initialise to 1.0 for the a0 coefficient */ in LVPSA_BPSinglePrecCoefs()
505 COS_T0 += (factor * coef); /* The nth partial sum */ in LVPSA_BPSinglePrecCoefs()
506 factor = (factor * t0) ; /* Calculate t0^n */ in LVPSA_BPSinglePrecCoefs()
585 LVM_FLOAT factor; in LVPSA_BPDoublePrecCoefs() local
618 factor = 1.0f; /* Initialise to 1.0 for the a0 coefficient */ in LVPSA_BPDoublePrecCoefs()
623 CosErr += factor * coef; /* The nth partial sum */ in LVPSA_BPDoublePrecCoefs()
624 factor = factor * t0; /* Calculate t0^n */ in LVPSA_BPDoublePrecCoefs()
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_animation_NativeInterpolatorFactory.cpp32 static jlong createAccelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { in createAccelerateInterpolator() argument
33 return reinterpret_cast<jlong>(new AccelerateInterpolator(factor)); in createAccelerateInterpolator()
52 static jlong createDecelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { in createDecelerateInterpolator() argument
53 return reinterpret_cast<jlong>(new DecelerateInterpolator(factor)); in createDecelerateInterpolator()
/frameworks/layoutlib/bridge/src/android/graphics/animation/
DNativeInterpolatorFactory_Delegate.java59 /*package*/ static long createAccelerateInterpolator(float factor) { in createAccelerateInterpolator() argument
60 return sManager.addNewDelegate(new AccelerateInterpolator(factor)); in createAccelerateInterpolator()
84 /*package*/ static long createDecelerateInterpolator(float factor) { in createDecelerateInterpolator() argument
85 return sManager.addNewDelegate(new DecelerateInterpolator(factor)); in createDecelerateInterpolator()
/frameworks/base/core/java/android/util/
DLauncherIcons.java155 float factor = 1 / (1 + 2 * ICON_SIZE_BLUR_FACTOR + ICON_SIZE_KEY_SHADOW_DELTA_FACTOR); in draw() local
158 bounds.width() * factor * in draw()
160 bounds.height() * factor * ICON_SIZE_BLUR_FACTOR); in draw()
161 canvas.scale(factor, factor); in draw()
/frameworks/base/graphics/java/android/graphics/animation/
DNativeInterpolatorFactory.java48 public static native long createAccelerateInterpolator(float factor); in createAccelerateInterpolator() argument
58 public static native long createDecelerateInterpolator(float factor); in createDecelerateInterpolator() argument
/frameworks/base/media/java/android/media/
DUtils.java157 static Range<Integer>factorRange(Range<Integer> range, int factor) {
158 if (factor == 1) {
161 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
168 static Range<Long>factorRange(Range<Long> range, long factor) {
169 if (factor == 1) {
172 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dlayered_filter_f32_helper.rsh106 float factor = 1.0f / result.alpha;
107 result.red *= factor;
108 result.green *= factor;
109 result.blue *= factor;
142 float factor = 1.0f / result.a;
143 fuzzy.red = result.r * factor;
144 fuzzy.green = result.g * factor;
145 fuzzy.blue = result.b * factor;
/frameworks/base/core/java/android/os/
DPowerSaveState.java91 public Builder setBrightnessFactor(float factor) { in setBrightnessFactor() argument
92 mBrightnessFactor = factor; in setBrightnessFactor()
/frameworks/base/rs/java/android/renderscript/
DFloat4.java305 public void addMultiple(Float4 a, float factor) { in addMultiple() argument
306 x += a.x * factor; in addMultiple()
307 y += a.y * factor; in addMultiple()
308 z += a.z * factor; in addMultiple()
309 w += a.w * factor; in addMultiple()
DByte4.java325 public void addMultiple(Byte4 a, byte factor) { in addMultiple() argument
326 x += a.x * factor; in addMultiple()
327 y += a.y * factor; in addMultiple()
328 z += a.z * factor; in addMultiple()
329 w += a.w * factor; in addMultiple()
DDouble4.java305 public void addMultiple(Double4 a, double factor) { in addMultiple() argument
306 x += a.x * factor; in addMultiple()
307 y += a.y * factor; in addMultiple()
308 z += a.z * factor; in addMultiple()
309 w += a.w * factor; in addMultiple()
DDouble3.java286 public void addMultiple(Double3 a, double factor) { in addMultiple() argument
287 x += a.x * factor; in addMultiple()
288 y += a.y * factor; in addMultiple()
289 z += a.z * factor; in addMultiple()
DByte3.java306 public void addMultiple(Byte3 a, byte factor) { in addMultiple() argument
307 x += a.x * factor; in addMultiple()
308 y += a.y * factor; in addMultiple()
309 z += a.z * factor; in addMultiple()
/frameworks/base/core/java/android/view/animation/
DDecelerateInterpolator.java47 public DecelerateInterpolator(float factor) { in DecelerateInterpolator() argument
48 mFactor = factor; in DecelerateInterpolator()
DAccelerateInterpolator.java53 public AccelerateInterpolator(float factor) { in AccelerateInterpolator() argument
54 mFactor = factor; in AccelerateInterpolator()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
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/
Dfisheye_approx.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;
Dfisheye.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;

12345