Home
last modified time | relevance | path

Searched refs:factor (Results 1 – 25 of 116) 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/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/
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/base/core/jni/
Dcom_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp34 static jlong createAccelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { in createAccelerateInterpolator() argument
35 return reinterpret_cast<jlong>(new AccelerateInterpolator(factor)); in createAccelerateInterpolator()
54 static jlong createDecelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { in createDecelerateInterpolator() argument
55 return reinterpret_cast<jlong>(new DecelerateInterpolator(factor)); in createDecelerateInterpolator()
/frameworks/base/core/java/android/util/
DLauncherIcons.java153 float factor = 1 / (1 + 2 * ICON_SIZE_BLUR_FACTOR + ICON_SIZE_KEY_SHADOW_DELTA_FACTOR); in draw() local
156 bounds.width() * factor * in draw()
158 bounds.height() * factor * ICON_SIZE_BLUR_FACTOR); in draw()
159 canvas.scale(factor, factor); in draw()
/frameworks/layoutlib/bridge/src/com/android/internal/view/animation/
DNativeInterpolatorFactoryHelper_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/media/java/android/media/
DUtils.java140 static Range<Integer>factorRange(Range<Integer> range, int factor) {
141 if (factor == 1) {
144 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
151 static Range<Long>factorRange(Range<Long> range, long factor) {
152 if (factor == 1) {
155 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
/frameworks/base/core/java/com/android/internal/view/animation/
DNativeInterpolatorFactoryHelper.java27 public static native long createAccelerateInterpolator(float factor); in createAccelerateInterpolator() argument
32 public static native long createDecelerateInterpolator(float factor); in createDecelerateInterpolator() argument
/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/rs/java/android/renderscript/
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()
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()
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()
DShort4.java388 public void addMultiple(Short4 a, short factor) { in addMultiple() argument
389 x += a.x * factor; in addMultiple()
390 y += a.y * factor; in addMultiple()
391 z += a.z * factor; in addMultiple()
392 w += a.w * factor; in addMultiple()
DInt4.java388 public void addMultiple(Int4 a, int factor) { in addMultiple() argument
389 x += a.x * factor; in addMultiple()
390 y += a.y * factor; in addMultiple()
391 z += a.z * factor; in addMultiple()
392 w += a.w * factor; in addMultiple()
DLong4.java388 public void addMultiple(Long4 a, long factor) { in addMultiple() argument
389 x += a.x * factor; in addMultiple()
390 y += a.y * factor; in addMultiple()
391 z += a.z * factor; in addMultiple()
392 w += a.w * factor; in addMultiple()
DFloat3.java286 public void addMultiple(Float3 a, float 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()
/frameworks/base/core/java/android/os/
DPowerSaveState.java91 public Builder setBrightnessFactor(float factor) { in setBrightnessFactor() argument
92 mBrightnessFactor = factor; in setBrightnessFactor()
/frameworks/base/core/java/android/view/animation/
DDecelerateInterpolator.java47 public DecelerateInterpolator(float factor) { in DecelerateInterpolator() argument
48 mFactor = factor; in DecelerateInterpolator()

12345