Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestMax.rs26 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.rs55 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;
103 half min, max;
108 accum->max = negInfHalf;
[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.rs27 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 …]
Dverify.rs120 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 …]
Dintrinsic_resize.rs56 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.rs27 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 …]
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/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/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/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/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/tests/widget/src/android/widget/cts/
DAbsSeekBarTest.java245 int max = progress + 1; in testAccessMax() local
246 myAbsSeekBar.setMax(max); in testAccessMax()
247 assertEquals(max, myAbsSeekBar.getMax()); in testAccessMax()
251 max = progress - 1; in testAccessMax()
252 myAbsSeekBar.setMax(max); in testAccessMax()
253 assertEquals(max, myAbsSeekBar.getMax()); in testAccessMax()
254 assertEquals(max, myAbsSeekBar.getProgress()); in testAccessMax()
260 max = (keyProgressIncrement - 1) * 20; in testAccessMax()
261 myAbsSeekBar.setMax(max); in testAccessMax()
263 max = (keyProgressIncrement + 1) * 20; in testAccessMax()
[all …]
/cts/tests/tests/rscpp/src/android/cts/rscpp/
Dverify.rs130 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/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/graphics/src/android/graphics/drawable/cts/
DAnimatable2Callback.java97 public void assertAVDRuntime(long min, long max) { in assertAVDRuntime() argument
102 min + "," + max, durationNs <= max && durationNs >= min); in assertAVDRuntime()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/image/
DRangeLinearDepthTransform.java54 return Math.max(0, Math.min(255, in quantize()
60 return near + (far - near) * Math.max(0, Math.min(255, value)) / 255f; in reconstruct()
DRangeInverseDepthTransform.java53 return Math.max(0, Math.min(255, in quantize()
60 Math.max(0, Math.min(255, value)) / 255f); in reconstruct()
/cts/apps/CameraITS/tests/inprog/
Dtest_burst_sameness_fullres_auto.py84 delta_max_pos = numpy.max(deltas)
86 delta_maxes.append(max(abs(delta_max_pos), abs(delta_max_neg)))
87 max_delta_max = max(delta_maxes)
/cts/apps/CameraITS/tests/scene3/
Dtest_flip_mirror.py73 assert np.max(patch)-np.min(patch) > 255/8
110 assert_flag = (opts[0] == max(opts) or opts[3] == max(opts))
114 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);

1234567