Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 205) sorted by relevance

123456789

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestMax.rscript26 return max(inA, inB);
31 return max(inA, inB);
36 return max(inA, inB);
41 return max(inA, inB);
46 return max(inA, inB);
51 return max(inA, inB);
56 return max(inA, inB);
61 return max(inA, inB);
66 return max(inA, inB);
71 return max(inA, inB);
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dreduce.rscript43 // Finds LOCATION of min and max float values
55 IndexedVal min, max;
61 accum->max.val = negInf;
62 accum->max.idx = -1;
72 if (me.val >= accum->max.val)
73 accum->max = me;
80 if ((accum->max.idx < 0) || (val->max.val > accum->max.val))
81 accum->max = val->max;
87 result->y = val->max.idx;
92 // finds min and max half values (not their locations)
[all …]
DRSUtils.java70 public static void genRandomDoubles(long seed, double min, double max, double array[], in genRandomDoubles() argument
74 int maxExponent = Math.max(Math.getExponent(max), 0); in genRandomDoubles()
83 if (rand < min || rand > max) { in genRandomDoubles()
92 array[i] = min + rand * (max - min); in genRandomDoubles()
98 if (min <= d && d <= max) { in genRandomDoubles()
103 array[r.nextInt(array.length)] = max; in genRandomDoubles()
121 public static void genRandomFloats(long seed, float min, float max, float array[], in genRandomFloats() argument
125 int maxExponent = Math.max(Math.getExponent(max), 0); in genRandomFloats()
134 if (rand < min || rand > max) { in genRandomFloats()
143 array[i] = min + rand * (max - min); in genRandomFloats()
[all …]
Dintrinsic_convolve5x5.rscript27 uint32_t x0 = max((int32_t)x-2, 0);
28 uint32_t x1 = max((int32_t)x-1, 0);
33 uint32_t y0 = max((int32_t)y-2, 0);
34 uint32_t y1 = max((int32_t)y-1, 0);
74 uint32_t x0 = max((int32_t)x-2, 0);
75 uint32_t x1 = max((int32_t)x-1, 0);
80 uint32_t y0 = max((int32_t)y-2, 0);
81 uint32_t y1 = max((int32_t)y-1, 0);
121 uint32_t x0 = max((int32_t)x-2, 0);
122 uint32_t x1 = max((int32_t)x-1, 0);
[all …]
Dintrinsic_resize.rscript56 uint32_t xs0 = (uint32_t) max(0, startx + 0);
57 uint32_t xs1 = (uint32_t) max(0, startx + 1);
61 uint32_t ys0 = (uint32_t) max(0, starty + 0);
62 uint32_t ys1 = (uint32_t) max(0, starty + 1);
106 uint32_t xs0 = (uint32_t) max(0, startx + 0);
107 uint32_t xs1 = (uint32_t) max(0, startx + 1);
111 uint32_t ys0 = (uint32_t) max(0, starty + 0);
112 uint32_t ys1 = (uint32_t) max(0, starty + 1);
156 uint32_t xs0 = (uint32_t) max(0, startx + 0);
157 uint32_t xs1 = (uint32_t) max(0, startx + 1);
[all …]
Dintrinsic_convolve3x3.rscript27 uint32_t x2 = max((int32_t)x-1, 0);
29 uint32_t y2 = max((int32_t)y-1, 0);
68 uint32_t x2 = max((int32_t)x-1, 0);
70 uint32_t y2 = max((int32_t)y-1, 0);
109 uint32_t x2 = max((int32_t)x-1, 0);
111 uint32_t y2 = max((int32_t)y-1, 0);
150 uint32_t x2 = max((int32_t)x-1, 0);
152 uint32_t y2 = max((int32_t)y-1, 0);
191 uint32_t x2 = max((int32_t)x-1, 0);
193 uint32_t y2 = max((int32_t)y-1, 0);
[all …]
DRSBaseCompute.java120 double max = 4.0 * Math.PI; in createRandomAllocation() local
121 RSUtils.genRandomDoubles(seed, min, max, inArray, includeExtremes); in createRandomAllocation()
127 float max = 4.0f * (float) Math.PI; in createRandomAllocation() local
128 RSUtils.genRandomFloats(seed, min, max, inArray, includeExtremes); in createRandomAllocation()
133 double max = 4.0 * Math.PI; in createRandomAllocation() local
134 RSUtils.genRandomFloat16s(seed, min, max, inArray, includeExtremes); in createRandomAllocation()
336 long max = maxArray[i] &0xffffffffl; in enforceOrdering() local
337 if (min > max) { in enforceOrdering()
338 minArray[i] = (int) max; in enforceOrdering()
365 int max = maxArray[i] &0xffff; in enforceOrdering() local
[all …]
Dverify.rscript120 e = max(e, d.x);
121 e = max(e, d.y);
122 e = max(e, d.z);
123 e = max(e, d.w);
130 merr = max(e, merr);
146 e = max(e, d.x);
147 e = max(e, d.y);
148 e = max(e, d.z);
155 merr = max(e, merr);
171 e = max(e, d.x);
[all …]
DCoreMathVerifier.java245 Math.acos(in.max())); in acos()
264 acosh((float) in.max())); in acosh()
288 Math.asin(in.max())); in asin()
306 asinh((float) in.max())); in asinh()
330 Math.atan(in.max())); in atan()
348 atanh((float) in.max())); in atanh()
373 Math.atan2(numerator.min(), denominator.max()), in atan2()
374 Math.atan2(numerator.max(), denominator.min()), in atan2()
375 Math.atan2(numerator.max(), denominator.max())); in atan2()
402 Math.cbrt(in.max())); in cbrt()
[all …]
DTarget.java260 f.mMaxValue = Math.max(-a.mMinValue, a.mMaxValue); in abs()
273 double max = Math.sqrt(a.mMaxValue); in sqrt() local
281 values = new double[]{f, 0., min, max}; in sqrt()
283 values = new double[]{f, min, max}; in sqrt()
543 u = Math.max(u, smallestNormal(1.f)); in Ulp()
608 public double max() { return mMaxValue; } in max() method in Target.Floaty
640 float max = (float)mMaxValue; in toString() local
643 Float.floatToRawIntBits(mid), max, in toString()
644 Float.floatToRawIntBits(max)); in toString()
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DRSUtils.java48 public static void genRandomDoubles(long seed, double min, double max, double array[], in genRandomDoubles() argument
52 int maxExponent = Math.max(Math.getExponent(max), 0); in genRandomDoubles()
61 if (rand < min || rand > max) { in genRandomDoubles()
70 array[i] = min + rand * (max - min); in genRandomDoubles()
76 if (min <= d && d <= max) { in genRandomDoubles()
81 array[r.nextInt(array.length)] = max; in genRandomDoubles()
99 public static void genRandomFloats(long seed, float min, float max, float array[], in genRandomFloats() argument
103 int maxExponent = Math.max(Math.getExponent(max), 0); in genRandomFloats()
112 if (rand < min || rand > max) { in genRandomFloats()
121 array[i] = min + rand * (max - min); in genRandomFloats()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DAbsSeekBarTest.java247 int max = progress + 1; in testAccessMax() local
248 myAbsSeekBar.setMax(max); in testAccessMax()
249 assertEquals(max, myAbsSeekBar.getMax()); in testAccessMax()
253 max = progress - 1; in testAccessMax()
254 myAbsSeekBar.setMax(max); in testAccessMax()
255 assertEquals(max, myAbsSeekBar.getMax()); in testAccessMax()
256 assertEquals(max, myAbsSeekBar.getProgress()); in testAccessMax()
262 max = (keyProgressIncrement - 1) * 20; in testAccessMax()
263 myAbsSeekBar.setMax(max); in testAccessMax()
265 max = (keyProgressIncrement + 1) * 20; in testAccessMax()
[all …]
/cts/tests/tests/systemui/src/android/systemui/cts/
DColorUtils.java29 int V = Math.max(b, Math.max(r, g)); in brightness()
39 int V = Math.max(b, Math.max(r, g)); in hue()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DSphere.java101 short[] indexBuffer = new short[max(mNumIndices)]; in Sphere()
152 private int max(int[] array) { in max() method in Sphere
153 int max = array[0]; in max() local
155 if (array[i] > max) max = array[i]; in max()
157 return max; in max()
DGlVboPerfTest.java147 float max = data[0]; in findMinMax() local
150 if (data[i] > max) max = data[i]; in findMinMax()
153 float[] result = {min, max}; in findMinMax()
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/
DSustainedPerformanceHostTest.java117 double min = Double.MAX_VALUE, max = Double.MIN_VALUE; in analyzeResults() local
138 if (testSet[5] > max) { in analyzeResults()
139 max = testSet[5]; in analyzeResults()
149 double diff = (max - min)*100/max; in analyzeResults()
152 appResultsWithMode.add(1, max); in analyzeResults()
156 appResultsWithoutMode.add(1, max); in analyzeResults()
/cts/tests/tests/rscpp/src/android/cts/rscpp/
Dverify.rscript130 e = max(e, d.x);
131 e = max(e, d.y);
132 e = max(e, d.z);
133 e = max(e, d.w);
140 merr = max(e, merr);
157 e = max(e, d.x);
158 e = max(e, d.y);
159 e = max(e, d.z);
166 merr = max(e, merr);
183 e = max(e, d.x);
[all …]
DRSUtils.java49 public static void genRandom(long seed, int max, int factor, int offset, int array[]) { in genRandom() argument
52 array[i] = (r.nextInt(max) * factor + offset); in genRandom()
69 public static void genRandom(long seed, int max, int factor, int offset, int array[], in genRandom() argument
77 array[i * stride + j] = r.nextInt(max) * factor + offset; in genRandom()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DStorageDeviceInfo.java37 total = Math.max(total, getContext().getExternalCacheDirs().length); in collectDeviceInfo()
38 total = Math.max(total, getContext().getExternalFilesDirs(null).length); in collectDeviceInfo()
39 total = Math.max( in collectDeviceInfo()
41 total = Math.max(total, getContext().getObbDirs().length); in collectDeviceInfo()
/cts/tests/openglperf2/jni/graphics/
DVector2D.cpp59 void Vector2D::limit(float max) { in limit() argument
60 if (magnitude() > max) { in limit()
62 scale(max); in limit()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java361 T min, T max) { in expectValuesInRange() argument
365 min.toString(), max.toString()), in expectValuesInRange()
366 value.compareTo(max)<= 0 && value.compareTo(min) >= 0); in expectValuesInRange()
379 T min, T max) { in expectValuesInRange() argument
380 expectValuesInRange(msg, Arrays.asList(array), min, max); in expectValuesInRange()
391 public void expectValuesInRange(String msg, int[] array, int min, int max) { in expectValuesInRange() argument
396 expectValuesInRange(msg, l, min, max); in expectValuesInRange()
410 T min, T max) { in expectInRange() argument
413 min.toString(), max.toString()), in expectInRange()
414 value.compareTo(max)<= 0 && value.compareTo(min) >= 0); in expectInRange()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DBoxInsetLayout.java144 maxWidth = Math.max(maxWidth, in onMeasure()
146 maxHeight = Math.max(maxHeight, in onMeasure()
158 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure()
159 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
164 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); in onMeasure()
165 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
173 int boxInset = (int) (FACTOR * Math.max(getMeasuredWidth(), getMeasuredHeight())); in onMeasure()
244 int boxInset = (int)(FACTOR * Math.max(right - left, bottom - top)); in layoutBoxChildren()
/cts/apps/CameraITS/tests/scene3/
Dtest_flip_mirror.py68 assert np.max(patch)-np.min(patch) > 255/8
105 assert_flag = (opts[0] == max(opts) or opts[3] == max(opts))
109 if opts[3] == max(opts):
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dluts_for_speedup_f32.rsh12 // VisibilityProbability.lut[y][x] = 1.0f/(max(x-y,0)+1).
26 return (x <= a) ? (x) : (a + max(x - b, 0));
39 visibility_probability->lut[y][x] = 1.0f / (max(z - y, 0) + 1);
47 1.0f / (max(x - front_focal_depth, 0) + 1);
74 float tmp = max(0, r * r - y * y);
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatable2Callback.java110 public void assertAVDRuntime(long min, long max) { in assertAVDRuntime() argument
115 min + "," + max, durationNs <= max && durationNs >= min); in assertAVDRuntime()

123456789