Home
last modified time | relevance | path

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

1234567891011

/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DBufferDebug.java43 public static String debugString(byte[] buf, int max) { in debugString() argument
51 int len = max; in debugString()
53 max = len = buf.length; in debugString()
59 return toHex(buf, len, max); in debugString()
63 private static String toHex(byte[] buf, int len, int max) { in toHex() argument
69 writeRow(str, buf, row * WIDTH, WIDTH, max); in toHex()
74 writeRow(str, buf, rows * WIDTH, max - (rows * WIDTH), max); in toHex()
79 if (buf.length != max) { in toHex()
80 str.append(String.format("truncated to %d 0x%08x", max, max)); in toHex()
87 private static void writeRow(StringBuilder str, byte[] buf, int start, int len, int max) { in writeRow() argument
[all …]
/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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DVersions.java98 public static boolean meetsSdkVersionRequirements(int min, int max) { in meetsSdkVersionRequirements() argument
102 Log.e(TAG, "meetsSdkVersionRequirements(" + min + "," + max in meetsSdkVersionRequirements()
109 + max + "): false2 (Current: " + CODENAME + ", sdk: " in meetsSdkVersionRequirements()
115 if (max != ANY && max != Integer.MAX_VALUE in meetsSdkVersionRequirements()
116 && max != Build.VERSION_CODES.CUR_DEVELOPMENT) { in meetsSdkVersionRequirements()
117 if (max < Build.VERSION.SDK_INT) { in meetsSdkVersionRequirements()
119 + max + "): false3 (Current: " + CODENAME + ", sdk: " in meetsSdkVersionRequirements()
125 + max + "): false4 (Current: " + CODENAME + ", sdk: " in meetsSdkVersionRequirements()
131 Log.e(TAG, "meetsSdkVersionRequirements(" + min + "," + max in meetsSdkVersionRequirements()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
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 …]
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 …]
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 …]
/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.java38 total = Math.max(total, getContext().getExternalCacheDirs().length); in collectDeviceInfo()
39 total = Math.max(total, getContext().getExternalFilesDirs(null).length); in collectDeviceInfo()
40 total = Math.max( in collectDeviceInfo()
42 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()
/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/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/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/
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()
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 …]
/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/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()
/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.py72 if np.max(patch)-np.min(patch) < 255/8:
113 if not (opts[0] == max(opts) or opts[3] == max(opts)):
117 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);

1234567891011