/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_math_agree.java | 202 private float max(float v1, float v2) { in max() method in UT_math_agree 205 private float[] max(float[] v1, float[] v2) { in max() method in UT_math_agree 209 rv[i] = max(v1[i], v2[i]); in max() 212 private byte max(byte v1, byte v2) { in max() method in UT_math_agree 215 private byte[] max(byte[] v1, byte[] v2) { in max() method in UT_math_agree 219 rv[i] = max(v1[i], v2[i]); in max() 222 private short max(short v1, short v2) { in max() method in UT_math_agree 225 private short[] max(short[] v1, short[] v2) { in max() method in UT_math_agree 229 rv[i] = max(v1[i], v2[i]); in max() 232 private int max(int v1, int v2) { in max() method in UT_math_agree [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_math_agree.java | 245 private float max(float v1, float v2) { in max() method in UT_math_agree 249 private float[] max(float[] v1, float[] v2) { in max() method in UT_math_agree 253 rv[i] = max(v1[i], v2[i]); in max() 257 private byte max(byte v1, byte v2) { in max() method in UT_math_agree 261 private byte[] max(byte[] v1, byte[] v2) { in max() method in UT_math_agree 265 rv[i] = max(v1[i], v2[i]); in max() 269 private short max(short v1, short v2) { in max() method in UT_math_agree 273 private short[] max(short[] v1, short[] v2) { in max() method in UT_math_agree 277 rv[i] = max(v1[i], v2[i]); in max() 281 private int max(int v1, int v2) { in max() method in UT_math_agree [all …]
|
D | reduce_backward.rscript | 44 IndexedVal min, max; 50 accum->max.val = negInf; 51 accum->max.idx = -1; 61 if (me.val >= accum->max.val) 62 accum->max = me; 69 if ((accum->max.idx < 0) || (val->max.val > accum->max.val)) 70 accum->max = val->max; 76 result->y = val->max.idx;
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_math_agree.java | 243 private float max(float v1, float v2) { in max() method in UT_math_agree 247 private float[] max(float[] v1, float[] v2) { in max() method in UT_math_agree 251 rv[i] = max(v1[i], v2[i]); in max() 255 private byte max(byte v1, byte v2) { in max() method in UT_math_agree 259 private byte[] max(byte[] v1, byte[] v2) { in max() method in UT_math_agree 263 rv[i] = max(v1[i], v2[i]); in max() 267 private short max(short v1, short v2) { in max() method in UT_math_agree 271 private short[] max(short[] v1, short[] v2) { in max() method in UT_math_agree 275 rv[i] = max(v1[i], v2[i]); in max() 279 private int max(int v1, int v2) { in max() method in UT_math_agree [all …]
|
D | reduce_backward.rscript | 42 IndexedVal min, max; 48 accum->max.val = negInf; 49 accum->max.idx = -1; 59 if (me.val >= accum->max.val) 60 accum->max = me; 67 if ((accum->max.idx < 0) || (val->max.val > accum->max.val)) 68 accum->max = val->max; 74 result->y = val->max.idx;
|
/frameworks/base/services/backup/java/com/android/server/backup/transport/ |
D | TransportStats.java | 78 pw.println(String.format(Locale.US, "%sMax connection time: %d ms", prefix, stats.max)); in dumpStats() 88 Math.max(a.max, b.max), in merge() 94 public long max; field in TransportStats.Stats 100 max = 0; in Stats() 104 private Stats(int n, double average, long max, long min) { in Stats() argument 107 this.max = max; in Stats() 112 this(original.n, original.average, original.max, original.min); in Stats() 118 max = Math.max(max, sample); in register()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | bugdroid.rscript | 37 static short pill(float3 p1, float3 p2, float rad, short max, float3 img) { 38 return (short) (max * sigmoid(pillDistance(p1, p2, img) - rad)); 41 static short cogPill(float3 p1, float3 p2, float rad, short max, float3 img) { 44 return (short) (max 57 static short cylinder(float3 p1, float3 p2, float rad, short max, float3 img) { 58 return (short) (max * sigmoid(cylinderDistance(p1, p2, img) - rad)); 61 static short cogCylinder(float3 p1, float3 p2, float rad, short max, float3 img) { 64 return (short) (max 78 short max, float3 img) { 79 return (short) (max [all …]
|
/frameworks/av/drm/libmediadrm/tests/ |
D | EventMetric_test.cpp | 60 EXPECT_EQ(4, values[7].max); in TEST() 65 EXPECT_EQ(6, values[8].max); in TEST() 89 EXPECT_EQ(1, values["a"].max); in TEST() 94 EXPECT_EQ(3, values["b"].max); in TEST() 129 EXPECT_LT(values[0].min, values[0].max); in TEST() 130 EXPECT_GE(4000, values[0].max); in TEST() 132 EXPECT_LE(values[0].mean, values[0].max); in TEST() 135 EXPECT_LT(values[1].min, values[1].max); in TEST() 136 EXPECT_GE(3000, values[1].max); in TEST() 138 EXPECT_LE(values[1].mean, values[1].max); in TEST()
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | DepthImage.java | 96 public float max; field in DepthImage.MinMax 98 public MinMax(float min, float max) { in MinMax() argument 100 this.max = max; in MinMax() 103 public static MinMax create(float min, float max) { in create() argument 104 return new MinMax(min, max); in create() 110 float max = min; in findMinAndMax() local 115 } else if (x > max) { in findMinAndMax() 116 max = x; in findMinAndMax() 119 return MinMax.create(min, max); in findMinAndMax() 130 final float far = minMax.max; in createFromPFM()
|
/frameworks/base/core/java/android/net/metrics/ |
D | NetworkMetrics.java | 151 (int) dnsLatencies.average(), (int) dnsLatencies.max, in toString() 154 (int) connectLatencies.average(), (int) connectLatencies.max, in toString() 167 public double max = Double.MIN_VALUE; field in NetworkMetrics.Metrics 173 this.max = Math.max(this.max, that.max); in merge() 183 max = Math.max(max, value); in count()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | WatchListDecorLayout.java | 117 final int width = Math.max(0, getMeasuredWidth() in applyMeasureToChild() 131 final int height = Math.max(0, getMeasuredHeight() in applyMeasureToChild() 176 maxWidth = Math.max(maxWidth, in onMeasure() 178 maxHeight = Math.max(maxHeight, in onMeasure() 195 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure() 196 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure() 201 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); in onMeasure() 202 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure() 215 int paddingTop = Math.max(mListView.getPaddingTop(), in onMeasure() 217 int paddingBottom = Math.max(mListView.getPaddingBottom(), in onMeasure() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | DataUsageGraph.java | 58 mLimitLevel = Math.max(0, limitLevel); in setLevels() 59 mWarningLevel = Math.max(0, warningLevel); in setLevels() 60 mUsageLevel = Math.max(0, usageLevel); in setLevels() 61 mMaxLevel = Math.max(Math.max(Math.max(mLimitLevel, mWarningLevel), mUsageLevel), 1); in setLevels() 79 usageRight = Math.min(Math.max(usageRight, mMarkerWidth), w - mMarkerWidth * 2); in onDraw() 99 warningLeft = Math.min(Math.max(warningLeft, 0), w - mMarkerWidth); in onDraw()
|
/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 88 max = normalizeAngle(max); 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/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | cor_h_x2.cpp | 244 Word32 max; in cor_h_x2() local 252 max = 0; in cor_h_x2() 266 if (s > max) in cor_h_x2() 268 max = s; in cor_h_x2() 271 tot = (tot + (max >> 1)); in cor_h_x2()
|
D | hp_max.cpp | 249 Word32 max, t0, t1; in hp_max() local 254 max = MIN_32; in hp_max() 265 if (t0 >= max) in hp_max() 267 max = t0; in hp_max() 300 t016 = norm_l(max); in hp_max() 303 L_temp = L_shl(max, shift1, pOverflow); in hp_max()
|
D | cor_h_x.cpp | 258 Word32 max; in cor_h_x() local 269 max = 0; in cor_h_x() 296 if (s > max) in cor_h_x() 298 max = s; in cor_h_x() 302 tot += (max >> 1); in cor_h_x()
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
D | gmed_n.cpp | 189 Word16 max; in gmed_n() local 201 max = -32767; in gmed_n() 204 if (*(tmp2 + j) >= max) in gmed_n() 206 max = *(tmp2 + j); in gmed_n()
|
/frameworks/base/core/java/android/widget/ |
D | LinearLayout.java | 715 mWeightSum = Math.max(0.0f, weightSum); in setWeightSum() 825 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin); in measureVertical() 855 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical() 859 largestChildHeight = Math.max(childHeight, largestChildHeight); in measureVertical() 893 maxWidth = Math.max(maxWidth, measuredWidth); in measureVertical() 902 weightedMaxWidth = Math.max(weightedMaxWidth, in measureVertical() 905 alternativeMaxWidth = Math.max(alternativeMaxWidth, in measureVertical() 936 mTotalLength = Math.max(totalLength, totalLength + largestChildHeight + in measureVertical() 947 heightSize = Math.max(heightSize, getSuggestedMinimumHeight()); in measureVertical() 991 Math.max(0, childHeight), MeasureSpec.EXACTLY); in measureVertical() [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/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/base/services/core/java/com/android/server/wm/ |
D | TaskPositioner.java | 466 nX = Math.min(Math.max(nX, mTmpRect.left), mTmpRect.right); in notifyMoveLocked() 467 nY = Math.min(Math.max(nY, mTmpRect.top), mTmpRect.bottom); in notifyMoveLocked() 503 width = Math.max(mMinVisibleWidth, width - deltaX); in resizeDrag() 505 width = Math.max(mMinVisibleWidth, width + deltaX); in resizeDrag() 508 height = Math.max(mMinVisibleHeight, height - deltaY); in resizeDrag() 510 height = Math.max(mMinVisibleHeight, height + deltaY); in resizeDrag() 525 width1 = Math.max(mMinVisibleWidth, Math.min(mMaxVisibleSize.x, width)); in resizeDrag() 530 width1 = Math.max(mMinVisibleWidth, in resizeDrag() 534 height2 = Math.max(mMinVisibleHeight, Math.min(mMaxVisibleSize.y, height)); in resizeDrag() 535 width2 = Math.max(width, Math.round((float)height2 * MIN_ASPECT)); in resizeDrag() [all …]
|
/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/base/core/java/android/preference/ |
D | SeekBarPreference.java | 116 public void setMax(int max) { in setMax() argument 117 if (max != mMax) { in setMax() 118 mMax = max; in setMax() 200 myState.max = mMax; in onSaveInstanceState() 216 mMax = myState.max; in onRestoreInstanceState() 228 int max; field in SeekBarPreference.SavedState 235 max = source.readInt(); in SavedState() 244 dest.writeInt(max); in writeToParcel()
|
/frameworks/av/media/libeffects/loudness/dsp/core/ |
D | dynamic_range_compression.cpp | 78 const float max_abs_x = std::max(std::fabs(x), kMinLogAbsValue); in Compress() 83 const float rect = std::max(overshoot, 0.0f); in Compress() 106 const float max_abs_x = std::max(std::fabs(*x1), in Compress() 107 std::max(std::fabs(*x2), kMinLogAbsValue)); in Compress() 112 const float rect = std::max(overshoot, 0.0f); in Compress()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | JoystickInputMapper.h | 49 float max; // normalized inclusive maximum member 62 float highOffset, float min, float max, float flat, float fuzz, in initialize() 72 this->max = max; in initialize() 98 float min, float max);
|