Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 1063) sorted by relevance

12345678910>>...43

/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_math_agree.java183 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 …]
Dreduce_backward.rscript44 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;
DUT_bug_char.java41 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/
DUT_math_agree.java181 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 …]
Dreduce_backward.rscript42 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;
DUT_bug_char.java39 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/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_math_agree.java149 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 …]
DUT_bug_char.java40 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/backuplib/java/com/android/server/backup/transport/
DTransportStats.java79 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/base/core/java/com/android/internal/policy/
DTaskResizingAlgorithm.java94 width = Math.max(minVisibleWidth, Math.min(width - deltaX, maxVisibleSize.x)); in resizeDrag()
96 width = Math.max(minVisibleWidth, Math.min(width + deltaX, maxVisibleSize.x)); in resizeDrag()
99 height = Math.max(minVisibleHeight, Math.min(height - deltaY, maxVisibleSize.y)); in resizeDrag()
101 height = Math.max(minVisibleHeight, Math.min(height + deltaY, maxVisibleSize.y)); in resizeDrag()
116 width1 = Math.max(minVisibleWidth, Math.min(maxVisibleSize.x, width)); in resizeDrag()
117 height1 = Math.min(height, Math.round((float) width1 / MIN_ASPECT)); in resizeDrag()
122 Math.min(maxVisibleSize.x, Math.round((float) height1 * MIN_ASPECT))); in resizeDrag()
125 height2 = Math.max(minVisibleHeight, Math.min(maxVisibleSize.y, height)); in resizeDrag()
131 Math.min(maxVisibleSize.y, Math.round((float) width2 / MIN_ASPECT))); in resizeDrag()
135 width1 = Math.max(minVisibleWidth, Math.min(maxVisibleSize.x, width)); in resizeDrag()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DBrightnessUtils.java54 public static final int convertGammaToLinear(int val, int min, int max) { in convertGammaToLinear() argument
65 return Math.round(MathUtils.lerp(min, max, ret / 12)); in convertGammaToLinear()
77 public static final float convertGammaToLinearFloat(int val, float min, float max) { in convertGammaToLinearFloat() argument
92 return MathUtils.lerp(min, max, normalizedRet / 12); in convertGammaToLinearFloat()
117 public static final int convertLinearToGamma(int val, int min, int max) { in convertLinearToGamma() argument
118 return convertLinearToGammaFloat((float) val, (float) min, (float) max); in convertLinearToGamma()
129 public static final int convertLinearToGammaFloat(float val, float min, float max) { in convertLinearToGammaFloat() argument
131 final float normalizedVal = MathUtils.norm(min, max, val) * 12; in convertLinearToGammaFloat()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DDepthImage.java95 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/
DC2InterfaceUtils.h62 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/media/libstagefright/codecs/m4v_h263/dec/src/
Dfind_min_max.cpp142 int min, max; in FindMaxMin() local
147 max = min = *input_ptr; in FindMaxMin()
158 else if (*input_ptr < min) in FindMaxMin()
160 min = *input_ptr; in FindMaxMin()
170 *min_ptr = min; in FindMaxMin()
/frameworks/av/drm/libmediadrm/tests/
DEventMetric_test.cpp59 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/
DColorSpace.java1085 @Size(min = 3)
1086 public abstract float[] toXyz(@NonNull @Size(min = 3) float[] v); in toXyz()
1102 @Size(min = 3)
1130 @Size(min = 3)
1131 public abstract float[] fromXyz(@NonNull @Size(min = 3) float[] v); in fromXyz()
1308 @NonNull @Size(min = 2, max = 3) float[] whitePoint) { in adapt() argument
1337 @NonNull @Size(min = 2, max = 3) float[] whitePoint, in adapt() argument
1732 @Size(min = 3)
1734 @NonNull @Size(9) float[] lhs, @NonNull @Size(min = 3) float[] rhs) { in mul3x3Float3() argument
1914 @NonNull @Size(min = 2, max = 3) float[] srcWhitePoint, in chromaticAdaptation() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
DPhysicsAnimator.kt34 import kotlin.math.min in <lambda>()
77 friction = 1f, min = -Float.MAX_VALUE, max = Float.MAX_VALUE)
263 min: Float = defaultFling.min, in fling()
271 flingConfigs[property] = FlingConfig(friction, min, max, startVelocity) in fling()
286 return fling(property, startVelocity, config.friction, config.min, config.max) in fling()
327 val toAtLeast = if (startVelocity < 0) flingConfig.min else flingConfig.max in flingThenSpring()
334 val midpoint = (flingConfig.min + flingConfig.max) / 2 in flingThenSpring()
341 if (projectedFlingEndValue < midpoint) flingConfig.min else flingConfig.max in flingThenSpring()
364 min(velocityToReachDestination, startVelocity) in flingThenSpring()
510 min = min(currentValue, this.min) in startInternal()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/
DBlendComposite.java92 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/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DDiagonalClassifier.java98 private boolean angleBetween(float angle, float min, float max) { in angleBetween() argument
100 min = normalizeAngle(min); in angleBetween()
103 if (min > max) { // Can happen when angle is close to 0. in angleBetween()
104 return angle >= min || angle <= max; in angleBetween()
107 return angle >= min && angle <= max; in angleBetween()
/frameworks/av/media/libaaudio/src/flowgraph/
DClipToRange.h41 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/
DUtils.java99 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/native/libs/math/include/math/
Dscalar.h26 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/av/media/libmedia/include/media/
DEventMetric.h30 double min; member
96 stats->min = stats->min < value ? stats->min : value; in Record()
102 stats->min = value; in Record()
/frameworks/native/services/inputflinger/reader/mapper/
DJoystickInputMapper.h49 float min; // normalized inclusive minimum member
63 float highOffset, float min, float max, float flat, float fuzz, in initialize()
72 this->min = min; in initialize()
99 float min, float max);
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DBitmapUtils.java73 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()

12345678910>>...43