/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/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()
|
D | geometry.h | 43 Point operator*(float factor) const; 88 bool ScaleWithLengthLimit(float factor, float max_length);
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/ |
D | MultiplicationPerfTest.java | 56 int factor = 10; in timeMultiplyIntByVariable10() local 59 result *= factor; in timeMultiplyIntByVariable10() 66 int factor = 8; in timeMultiplyIntByVariable8() local 69 result *= factor; in timeMultiplyIntByVariable8()
|
/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/base/media/mca/filterpacks/native/base/ |
D | geometry.cpp | 60 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/services/core/java/com/android/server/vibrator/ |
D | VibrationScaler.java | 123 return (T) effect.scale(scale.factor); in scale() 163 public final float factor; field in VibrationScaler.ScaleLevel 165 ScaleLevel(float factor) { in ScaleLevel() argument 166 this.factor = factor; in ScaleLevel() 171 return "ScaleLevel{factor=" + factor + "}"; in toString()
|
/frameworks/base/libs/hwui/ |
D | Interpolator.h | 47 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/ |
D | LVPSA_Control.cpp | 432 LVM_FLOAT factor; in LVPSA_BPSinglePrecCoefs() local 462 factor = 1.0f; /* Initialise to 1.0 for the a0 coefficient */ in LVPSA_BPSinglePrecCoefs() 466 COS_T0 += (factor * coef); /* The nth partial sum */ in LVPSA_BPSinglePrecCoefs() 467 factor = (factor * t0); /* Calculate t0^n */ in LVPSA_BPSinglePrecCoefs() 542 LVM_FLOAT factor; in LVPSA_BPDoublePrecCoefs() local 572 factor = 1.0f; /* Initialise to 1.0 for the a0 coefficient */ in LVPSA_BPDoublePrecCoefs() 576 CosErr += factor * coef; /* The nth partial sum */ in LVPSA_BPDoublePrecCoefs() 577 factor = factor * t0; /* Calculate t0^n */ in LVPSA_BPDoublePrecCoefs()
|
/frameworks/base/libs/hwui/jni/ |
D | android_graphics_animation_NativeInterpolatorFactory.cpp | 32 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/base/core/java/android/util/ |
D | LauncherIcons.java | 156 float factor = 1 / (1 + 2 * ICON_SIZE_BLUR_FACTOR + ICON_SIZE_KEY_SHADOW_DELTA_FACTOR); in draw() local 159 bounds.width() * factor * in draw() 161 bounds.height() * factor * ICON_SIZE_BLUR_FACTOR); in draw() 162 canvas.scale(factor, factor); in draw()
|
/frameworks/base/graphics/java/android/graphics/animation/ |
D | NativeInterpolatorFactory.java | 48 public static native long createAccelerateInterpolator(float factor); in createAccelerateInterpolator() argument 58 public static native long createDecelerateInterpolator(float factor); in createDecelerateInterpolator() argument
|
/frameworks/native/services/sensorservice/ |
D | SensorDeviceUtils.h | 38 inline void quantizeValue(float *value, double resolution, double factor = 0.125) { 43 double incRes = factor * resolution;
|
/frameworks/base/media/java/android/media/ |
D | Utils.java | 156 static Range<Integer>factorRange(Range<Integer> range, int factor) { 157 if (factor == 1) { 160 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor); 167 static Range<Long>factorRange(Range<Long> range, long factor) { 168 if (factor == 1) { 171 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
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/core/java/com/android/internal/widget/ |
D | NotificationMaxHeightFrameLayout.java | 77 final float factor = Math.max(1.0f, context.getResources().getDisplayMetrics().scaledDensity in getFontScaledHeight() local 79 return (int) (dimensionPixelSize * factor); in getFontScaledHeight()
|
/frameworks/base/core/java/android/view/animation/ |
D | AccelerateInterpolator.java | 53 public AccelerateInterpolator(float factor) { in AccelerateInterpolator() argument 54 mFactor = factor; in AccelerateInterpolator()
|
D | DecelerateInterpolator.java | 47 public DecelerateInterpolator(float factor) { in DecelerateInterpolator() argument 48 mFactor = factor; in DecelerateInterpolator()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Double4.java | 310 public void addMultiple(Double4 a, double factor) { in addMultiple() argument 311 x += a.x * factor; in addMultiple() 312 y += a.y * factor; in addMultiple() 313 z += a.z * factor; in addMultiple() 314 w += a.w * factor; in addMultiple()
|
D | Byte4.java | 329 public void addMultiple(Byte4 a, byte factor) { in addMultiple() argument 330 x += a.x * factor; in addMultiple() 331 y += a.y * factor; in addMultiple() 332 z += a.z * factor; in addMultiple() 333 w += a.w * factor; in addMultiple()
|
D | Float4.java | 310 public void addMultiple(Float4 a, float factor) { in addMultiple() argument 311 x += a.x * factor; in addMultiple() 312 y += a.y * factor; in addMultiple() 313 z += a.z * factor; in addMultiple() 314 w += a.w * factor; in addMultiple()
|
D | Byte3.java | 310 public void addMultiple(Byte3 a, byte factor) { in addMultiple() argument 311 x += a.x * factor; in addMultiple() 312 y += a.y * factor; in addMultiple() 313 z += a.z * factor; in addMultiple()
|
D | Double3.java | 291 public void addMultiple(Double3 a, double factor) { in addMultiple() argument 292 x += a.x * factor; in addMultiple() 293 y += a.y * factor; in addMultiple() 294 z += a.z * factor; in addMultiple()
|
/frameworks/base/core/java/android/os/ |
D | PowerSaveState.java | 101 public Builder setBrightnessFactor(float factor) { in setBrightnessFactor() argument 102 mBrightnessFactor = factor; in setBrightnessFactor()
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | fisheye_approx.rsh | 21 static float alpha, radius2, factor; 42 factor = bound / max_radian; 53 const float scalar = radian * factor * inv_dist;
|