/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
D | Quad.java | 248 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/av/media/libeffects/lvm/lib/Eq/src/ |
D | LVEQNB_CalcCoef.c | 110 LVM_INT32 factor; in LVEQNB_DoublePrecCoefs() local 142 factor = 0x7fff; /* Initialise to 1.0 for the a0 coefficient */ in LVEQNB_DoublePrecCoefs() 147 CosErr += (factor * coef) >> 5; /* The nth partial sum */ in LVEQNB_DoublePrecCoefs() 148 factor = (factor * t0) >> 15; /* Calculate t0^n */ in LVEQNB_DoublePrecCoefs() 241 LVM_INT32 factor; in LVEQNB_SinglePrecCoefs() local 273 factor = 0x7fff; /* Initialise to 1.0 for the a0 coefficient */ in LVEQNB_SinglePrecCoefs() 278 COS_T0 += (factor * coef) >> 5; /* The nth partial sum */ in LVEQNB_SinglePrecCoefs() 279 factor = (factor * t0) >> 15; /* Calculate t0^n */ in LVEQNB_SinglePrecCoefs()
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | geometry.cpp | 59 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | HistoryEvaluator.java | 75 float factor = (float) Math.pow(HISTORY_FACTOR, in decayValue() local 78 decayValue(mStrokes, factor); in decayValue() 79 decayValue(mGestureWeights, factor); in decayValue() 83 private void decayValue(ArrayList<Data> list, float factor) { in decayValue() argument 86 list.get(i).weight *= factor; in decayValue()
|
/frameworks/base/media/mca/filterpacks/native/base/ |
D | geometry.cpp | 58 Point Point::operator*(float factor) const { in operator *() 60 out.x_ = factor * x_; in operator *() 61 out.y_ = factor * y_; in operator *() 106 bool Rect::ScaleWithLengthLimit(float factor, float max_length) { in ScaleWithLengthLimit() argument 107 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) { in ScaleWithLengthLimit() 116 float f = factor; in ScaleWithLengthLimit()
|
/frameworks/base/libs/hwui/ |
D | Interpolator.h | 46 AccelerateInterpolator(float factor) : mFactor(factor), mDoubleFactor(factor*2) {} in AccelerateInterpolator() argument 84 DecelerateInterpolator(float factor) : mFactor(factor) {} in DecelerateInterpolator() argument
|
/frameworks/base/media/mca/filterpacks/native/imageproc/ |
D | brightness.c | 81 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/ |
D | LVPSA_Control.c | 485 LVM_INT32 factor; in LVPSA_BPSinglePrecCoefs() local 520 factor = 0x7fff; /* Initialise to 1.0 for the a0 coefficient */ in LVPSA_BPSinglePrecCoefs() 525 COS_T0 += (factor * coef) >> 5; /* The nth partial sum */ in LVPSA_BPSinglePrecCoefs() 526 factor = (factor * t0) >> 15; /* Calculate t0^n */ in LVPSA_BPSinglePrecCoefs() 608 LVM_INT32 factor; in LVPSA_BPDoublePrecCoefs() local 642 factor = 0x7fff; /* Initialise to 1.0 for the a0 coefficient */ in LVPSA_BPDoublePrecCoefs() 647 CosErr += (factor * coef) >> 5; /* The nth partial sum */ in LVPSA_BPDoublePrecCoefs() 648 factor = (factor * t0) >> 15; /* Calculate t0^n */ in LVPSA_BPDoublePrecCoefs()
|
/frameworks/base/core/jni/ |
D | com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp | 33 static jlong createAccelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { in createAccelerateInterpolator() argument 34 return reinterpret_cast<jlong>(new AccelerateInterpolator(factor)); in createAccelerateInterpolator() 53 static jlong createDecelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { in createDecelerateInterpolator() argument 54 return reinterpret_cast<jlong>(new DecelerateInterpolator(factor)); in createDecelerateInterpolator()
|
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/ |
D | layered_filter_fast_d1new.rs | 515 const float factor = capacity * (float)matte * g_blend_info.matte_normalizer; 516 fuzzy_RGBA.r += factor * result.r; 517 fuzzy_RGBA.g += factor * result.g; 518 fuzzy_RGBA.b += factor * result.b; 519 fuzzy_RGBA.a += factor; 568 const float factor = capacity * (float)matte * g_blend_info.matte_normalizer; 569 fuzzy_RGBA.r += factor * result.r; 570 fuzzy_RGBA.g += factor * result.g; 571 fuzzy_RGBA.b += factor * result.b; 572 fuzzy_RGBA.a += factor; [all …]
|
D | layered_filter_fast_f32.rs | 385 const float factor = capacity * (float)matte * g_blend_info.matte_normalizer; 386 fuzzy->red += factor * result.red; 387 fuzzy->green += factor * result.green; 388 fuzzy->blue += factor * result.blue; 389 fuzzy->alpha += factor; 429 float factor = (float)matte * g_blend_info.matte_normalizer; 432 sharp->red += factor * (fuzzy->red - sharp->red); 433 sharp->green += factor * (fuzzy->green - sharp->green); 434 sharp->blue += factor * (fuzzy->blue - sharp->blue);
|
D | layered_filter_f32_helper.rsh | 106 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/media/java/android/media/ |
D | Utils.java | 131 static Range<Integer>factorRange(Range<Integer> range, int factor) { 132 if (factor == 1) { 135 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor); 142 static Range<Long>factorRange(Range<Long> range, long factor) { 143 if (factor == 1) { 146 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/view/animation/ |
D | NativeInterpolatorFactoryHelper_Delegate.java | 57 /*package*/ static long createAccelerateInterpolator(float factor) { in createAccelerateInterpolator() argument 58 return sManager.addNewDelegate(new AccelerateInterpolator(factor)); in createAccelerateInterpolator() 82 /*package*/ static long createDecelerateInterpolator(float factor) { in createDecelerateInterpolator() argument 83 return sManager.addNewDelegate(new DecelerateInterpolator(factor)); in createDecelerateInterpolator()
|
/frameworks/base/core/java/com/android/internal/view/animation/ |
D | NativeInterpolatorFactoryHelper.java | 27 public static native long createAccelerateInterpolator(float factor); in createAccelerateInterpolator() argument 32 public static native long createDecelerateInterpolator(float factor); in createDecelerateInterpolator() argument
|
/frameworks/base/rs/java/android/renderscript/ |
D | Float4.java | 305 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()
|
D | Byte4.java | 325 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()
|
D | Double4.java | 305 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()
|
D | Byte3.java | 306 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()
|
D | Double3.java | 286 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()
|
D | Long4.java | 388 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()
|
D | Int4.java | 388 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()
|
D | Short4.java | 388 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()
|
D | Float3.java | 286 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/view/animation/ |
D | DecelerateInterpolator.java | 47 public DecelerateInterpolator(float factor) { in DecelerateInterpolator() argument 48 mFactor = factor; in DecelerateInterpolator()
|