/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_math_agree.java | 149 private float min(float v1, float v2) { in min() method in UT_math_agree 152 private float[] min(float[] v1, float[] v2) { in min() method in UT_math_agree 156 rv[i] = min(v1[i], v2[i]); in min() 159 private byte min(byte v1, byte v2) { in min() method in UT_math_agree 162 private byte[] min(byte[] v1, byte[] v2) { in min() method in UT_math_agree 166 rv[i] = min(v1[i], v2[i]); in min() 169 private short min(short v1, short v2) { in min() method in UT_math_agree 172 private short[] min(short[] v1, short[] v2) { in min() method in UT_math_agree 176 rv[i] = min(v1[i], v2[i]); in min() 179 private int min(int v1, int v2) { in min() method in UT_math_agree [all …]
|
D | UT_bug_char.java | 40 private byte min(byte v1, byte v2) { in min() method in UT_bug_char 43 private byte[] min(byte[] v1, byte[] v2) { in min() method in UT_bug_char 47 rv[i] = min(v1[i], v2[i]); in min() 68 s.set_min_rand_sc1_sc1(min(rand_sc1_0, rand_sc1_1)); in initializeValues() 69 byte[] min_rand_sc2_raw = min(rand_sc2_0, rand_sc2_1); in initializeValues()
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_math_agree.java | 183 private float min(float v1, float v2) { in min() method in UT_math_agree 187 private float[] min(float[] v1, float[] v2) { in min() method in UT_math_agree 191 rv[i] = min(v1[i], v2[i]); in min() 195 private byte min(byte v1, byte v2) { in min() method in UT_math_agree 199 private byte[] min(byte[] v1, byte[] v2) { in min() method in UT_math_agree 203 rv[i] = min(v1[i], v2[i]); in min() 207 private short min(short v1, short v2) { in min() method in UT_math_agree 211 private short[] min(short[] v1, short[] v2) { in min() method in UT_math_agree 215 rv[i] = min(v1[i], v2[i]); in min() 219 private int min(int v1, int v2) { in min() method in UT_math_agree [all …]
|
D | reduce_backward.rscript | 44 IndexedVal min, max; 48 accum->min.val = posInf; 49 accum->min.idx = -1; 59 if (me.val <= accum->min.val) 60 accum->min = me; 67 if ((accum->min.idx < 0) || (val->min.val < accum->min.val)) 68 accum->min = val->min; 75 result->x = val->min.idx;
|
D | UT_bug_char.java | 41 private byte min(byte v1, byte v2) { in min() method in UT_bug_char 45 private byte[] min(byte[] v1, byte[] v2) { in min() method in UT_bug_char 49 rv[i] = min(v1[i], v2[i]); in min() 70 s.set_min_rand_sc1_sc1(min(rand_sc1_0, rand_sc1_1)); in initializeValues() 71 byte[] min_rand_sc2_raw = min(rand_sc2_0, rand_sc2_1); in initializeValues()
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_math_agree.java | 181 private float min(float v1, float v2) { in min() method in UT_math_agree 185 private float[] min(float[] v1, float[] v2) { in min() method in UT_math_agree 189 rv[i] = min(v1[i], v2[i]); in min() 193 private byte min(byte v1, byte v2) { in min() method in UT_math_agree 197 private byte[] min(byte[] v1, byte[] v2) { in min() method in UT_math_agree 201 rv[i] = min(v1[i], v2[i]); in min() 205 private short min(short v1, short v2) { in min() method in UT_math_agree 209 private short[] min(short[] v1, short[] v2) { in min() method in UT_math_agree 213 rv[i] = min(v1[i], v2[i]); in min() 217 private int min(int v1, int v2) { in min() method in UT_math_agree [all …]
|
D | reduce_backward.rscript | 42 IndexedVal min, max; 46 accum->min.val = posInf; 47 accum->min.idx = -1; 57 if (me.val <= accum->min.val) 58 accum->min = me; 65 if ((accum->min.idx < 0) || (val->min.val < accum->min.val)) 66 accum->min = val->min; 73 result->x = val->min.idx;
|
D | UT_bug_char.java | 39 private byte min(byte v1, byte v2) { in min() method in UT_bug_char 43 private byte[] min(byte[] v1, byte[] v2) { in min() method in UT_bug_char 47 rv[i] = min(v1[i], v2[i]); in min() 68 s.set_min_rand_sc1_sc1(min(rand_sc1_0, rand_sc1_1)); in initializeValues() 69 byte[] min_rand_sc2_raw = min(rand_sc2_0, rand_sc2_1); in initializeValues()
|
/frameworks/base/services/backup/java/com/android/server/backup/transport/ |
D | TransportStats.java | 79 pw.println(String.format(Locale.US, "%sMin connection time: %d ms", prefix, stats.min)); in dumpStats() 89 Math.min(a.min, b.min)); in merge() 95 public long min; field in TransportStats.Stats 101 min = Long.MAX_VALUE; in Stats() 104 private Stats(int n, double average, long max, long min) { in Stats() argument 108 this.min = min; in Stats() 112 this(original.n, original.average, original.max, original.min); in Stats() 119 min = Math.min(min, sample); in register()
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | DepthImage.java | 95 public float min; field in DepthImage.MinMax 98 public MinMax(float min, float max) { in MinMax() argument 99 this.min = min; in MinMax() 103 public static MinMax create(float min, float max) { in create() argument 104 return new MinMax(min, max); in create() 109 float min = array[0]; in findMinAndMax() local 110 float max = min; in findMinAndMax() 113 if (x < min) { in findMinAndMax() 114 min = x; in findMinAndMax() 119 return MinMax.create(min, max); in findMinAndMax() [all …]
|
/frameworks/av/media/codec2/vndk/include/util/ |
D | C2InterfaceUtils.h | 62 constexpr static T MIN_VALUE = std::numeric_limits<T>::min(); 164 C2SupportedRange<T> InRange(T min, T max, T step = MIN_STEP) { 165 return C2SupportedRange(min, max, step); 179 C2SupportedRange<T> InSeries(T min, T max, T num, T denom) { 180 return C2SupportedRange(min, max, 0, num, denom); 195 C2SupportedRange<T> InMacSeries(T min, T max, T step, T num, T denom) { 196 return C2SupportedRange(min, max, step, num, denom); 249 inline C2_HIDE constexpr T min() const { return _mMin; } 312 …constexpr C2_HIDE C2SupportedRange(T min, T max, T step = T(std::is_floating_point<T>::value ? 0 :… 313 : _mMin(min), _mMax(max), _mStep(step), _mNum(1), _mDenom(1) { } [all …]
|
/frameworks/av/drm/libmediadrm/tests/ |
D | EventMetric_test.cpp | 59 EXPECT_EQ(4, values[7].min); in TEST() 64 EXPECT_EQ(5, values[8].min); in TEST() 88 EXPECT_EQ(1, values["a"].min); in TEST() 93 EXPECT_EQ(2, values["b"].min); in TEST() 129 EXPECT_LT(values[0].min, values[0].max); in TEST() 131 EXPECT_GT(values[0].mean, values[0].min); in TEST() 135 EXPECT_LT(values[1].min, values[1].max); in TEST() 137 EXPECT_GT(values[1].mean, values[1].min); in TEST()
|
/frameworks/base/graphics/java/android/graphics/ |
D | ColorSpace.java | 1079 @Size(min = 3) 1080 public abstract float[] toXyz(@NonNull @Size(min = 3) float[] v); in toXyz() 1096 @Size(min = 3) 1124 @Size(min = 3) 1125 public abstract float[] fromXyz(@NonNull @Size(min = 3) float[] v); in fromXyz() 1302 @NonNull @Size(min = 2, max = 3) float[] whitePoint) { in adapt() argument 1331 @NonNull @Size(min = 2, max = 3) float[] whitePoint, in adapt() argument 1719 @Size(min = 3) 1721 @NonNull @Size(9) float[] lhs, @NonNull @Size(min = 3) float[] rhs) { in mul3x3Float3() argument 1901 @NonNull @Size(min = 2, max = 3) float[] srcWhitePoint, in chromaticAdaptation() argument [all …]
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/utilities/ |
D | Utilities.java | 123 public static int clamp(int value, int min, int max) { in clamp() argument 124 return Math.max(min, Math.min(max, value)); in clamp() 131 return Math.max(0f, Math.min(1f, value)); in clamp01() 140 public static float mapRange(@FloatRange(from=0.0,to=1.0) float value, float min, float max) { in mapRange() argument 141 return min + (value * (max - min)); in mapRange() 149 public static float unmapRange(float value, float min, float max) { in unmapRange() argument 150 return (value - min) / (max - min); in unmapRange() 335 public static float clamp(float value, float min, float max) { in clamp() argument 336 return Math.max(min, Math.min(max, value)); in clamp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | DiagonalClassifier.java | 85 private boolean angleBetween(float angle, float min, float max) { in angleBetween() argument 87 min = normalizeAngle(min); in angleBetween() 90 if (min > max) { // Can happen when angle is close to 0. in angleBetween() 91 return angle >= min || angle <= max; in angleBetween() 94 return angle >= min && angle <= max; in angleBetween()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | BlendComposite.java | 92 alpha = Math.min(alpha, 1.0f); in setAlpha() 141 int width = Math.min(src.getWidth(), dstIn.getWidth()); in compose() 142 int height = Math.min(src.getHeight(), dstIn.getHeight()); in compose() 209 result[i] = Math.min(255, src[i] + dst[i]); in getBlenderFor() 219 result[i] = Math.min(src[i], dst[i]); in getBlenderFor() 221 result[3] = Math.min(255, src[3] + dst[3]); in getBlenderFor() 232 result[3] = Math.min(255, src[3] + dst[3]); in getBlenderFor() 243 result[3] = Math.min(255, src[3] + dst[3] - (src[3] * dst[3]) / 255); in getBlenderFor() 255 result[3] = Math.min(255, src[3] + dst[3]); in getBlenderFor() 266 result[3] = Math.min(255, src[3] + dst[3]); in getBlenderFor()
|
/frameworks/av/media/libaaudio/src/flowgraph/ |
D | ClipToRange.h | 41 void setMinimum(float min) { in setMinimum() argument 42 mMinimum = min; in setMinimum() 49 void setMaximum(float min) { in setMaximum() argument 50 mMaximum = min; in setMaximum()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
D | Utils.java | 99 public static int clamp(int x, int min, int max) { in clamp() argument 101 if (x < min) return min; in clamp() 106 public static float clamp(float x, float min, float max) { in clamp() argument 108 if (x < min) return min; in clamp() 113 public static long clamp(long x, long min, long max) { in clamp() argument 115 if (x < min) return min; in clamp() 321 newSize = Math.min(source.length, newSize); in copyOf() 332 int length = Math.min(s.length(), MASK_STRING.length()); in maskDebugInfo()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/ |
D | BrightnessUtils.java | 53 public static final int convertGammaToLinear(int val, int min, int max) { in convertGammaToLinear() argument 64 return Math.round(MathUtils.lerp(min, max, ret / 12)); in convertGammaToLinear() 89 public static final int convertLinearToGamma(int val, int min, int max) { in convertLinearToGamma() argument 91 final float normalizedVal = MathUtils.norm(min, max, val) * 12; in convertLinearToGamma()
|
/frameworks/native/libs/math/include/math/ |
D | scalar.h | 26 return T(std::min(T(1), std::max(T(0), v))); in saturate() 30 static constexpr T clamp(T v, T min, T max) noexcept { in clamp() argument 31 return T(std::min(max, std::max(min, v))); in clamp()
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | BitmapUtils.java | 73 final float scale = Math.min(sampleSize, regularScale); in calculateCroppedSrcRect() 78 final int srcHalfSliceH = Math.min(srcCroppedSliceH, srcH) / 2; in calculateCroppedSrcRect() 87 centerV = Math.max(minCenterV, Math.min(maxCenterV, Math.round(srcH * vertSliceFrac))); in calculateCroppedSrcRect() 114 final float regularScale = Math.min( in calculateCroppedSrcRect() 118 final float scale = Math.min(sampleSize, regularScale); in calculateCroppedSrcRect()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | JoystickInputMapper.h | 48 float min; // normalized inclusive minimum member 62 float highOffset, float min, float max, float flat, float fuzz, in initialize() 71 this->min = min; in initialize() 98 float min, float max);
|
/frameworks/av/media/libmedia/include/media/ |
D | EventMetric.h | 30 double min; member 96 stats->min = stats->min < value ? stats->min : value; in Record() 102 stats->min = value; in Record()
|
/frameworks/base/core/java/android/widget/ |
D | EdgeEffect.java | 157 mBaseGlowScale = h > 0 ? Math.min(oh / h, 1.f) : 1.f; in setSize() 159 mBounds.set(mBounds.left, mBounds.top, width, (int) Math.min(height, h)); in setSize() 228 mGlowAlpha = mGlowAlphaStart = Math.min(MAX_ALPHA, in onPull() 280 velocity = Math.min(Math.max(MIN_VELOCITY, Math.abs(velocity)), MAX_VELOCITY); in onAbsorb() 295 mGlowScaleYFinish = Math.min(0.025f + (velocity * (velocity / 100) * 0.00015f) / 2, 1.f); in onAbsorb() 298 mGlowAlphaStart, Math.min(velocity * VELOCITY_GLOW_FACTOR * .00001f, MAX_ALPHA)); in onAbsorb() 368 canvas.scale(1.f, Math.min(mGlowScaleY, 1.f) * mBaseGlowScale, centerX, 0); in draw() 370 final float displacement = Math.max(0, Math.min(mDisplacement, 1.f)) - 0.5f; in draw() 399 final float t = Math.min((time - mStartTime) / mDuration, 1.f); in update()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | post_proc.h | 35 #define UPDATE_PV_MAXPV_MIN(p,max,min) if ((p) > (max)) (max)=(p); else if ((p) < (min)) (min) = (p… argument
|