Home
last modified time | relevance | path

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

12345

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestMin.rs26 return min(inA, inB);
31 return min(inA, inB);
36 return min(inA, inB);
41 return min(inA, inB);
46 return min(inA, inB);
51 return min(inA, inB);
56 return min(inA, inB);
61 return min(inA, inB);
66 return min(inA, inB);
71 return min(inA, inB);
[all …]
/cts/tests/tests/app/src/android/app/cts/
DWallpaperManagerTest.java44 final Point min = getScreenSize(); in testSuggestDesiredDimensions() local
45 final int w = min.x * 3; in testSuggestDesiredDimensions()
46 final int h = min.y * 2; in testSuggestDesiredDimensions()
48 assertDesiredMinimum(new Point(min.x / 2, min.y / 2), min); in testSuggestDesiredDimensions()
53 assertDesiredMinimum(new Point(min.x / 2, h), in testSuggestDesiredDimensions()
54 new Point(min.x, h)); in testSuggestDesiredDimensions()
56 assertDesiredMinimum(new Point(w, min.y / 2), in testSuggestDesiredDimensions()
57 new Point(w, min.y)); in testSuggestDesiredDimensions()
/cts/libs/commonutil/src/com/android/cts/util/
DStat.java36 public StatResult(double average, double min, double max, double stddev, int dataCount) { in StatResult() argument
38 mMin = min; in StatResult()
50 double min = data[0]; in getStat() local
59 if (data[i] < min) { in getStat()
60 min = data[i]; in getStat()
67 return new StatResult(average, min, max, stddev, data.length); in getStat()
89 double min = median; in getStatWithOutlierRejection() local
101 if (data[i] < min) { in getStatWithOutlierRejection()
102 min = data[i]; in getStatWithOutlierRejection()
118 return new StatResult(average, min, max, stddev, validDataCounter); in getStatWithOutlierRejection()
[all …]
/cts/common/util/src/com/android/compatibility/common/util/
DStat.java35 public StatResult(double average, double min, double max, double stddev, int dataCount) { in StatResult() argument
37 mMin = min; in StatResult()
49 double min = data[0]; in getStat() local
58 if (data[i] < min) { in getStat()
59 min = data[i]; in getStat()
66 return new StatResult(average, min, max, stddev, data.length); in getStat()
88 double min = median; in getStatWithOutlierRejection() local
100 if (data[i] < min) { in getStatWithOutlierRejection()
101 min = data[i]; in getStatWithOutlierRejection()
117 return new StatResult(average, min, max, stddev, validDataCounter); in getStatWithOutlierRejection()
[all …]
DStacktrace.java61 depth = Math.min(depth, elements.length - 1); in buildClassMethodName()
/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
51 int minExponent = Math.min(Math.getExponent(min), 0); in genRandomDoubles()
59 int sign = (min >= 0) ? 1 : 1 - r.nextInt(2) * 2; // -1 or 1 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()
80 array[r.nextInt(array.length)] = min; in genRandomDoubles()
99 public static void genRandomFloats(long seed, float min, float max, float array[], in genRandomFloats() argument
102 int minExponent = Math.min(Math.getExponent(min), 0); in genRandomFloats()
110 int sign = (min >= 0) ? 1 : 1 - r.nextInt(2) * 2; // -1 or 1 in genRandomFloats()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DRSUtils.java48 public static void genRandomDoubles(long seed, double min, double max, double array[], in genRandomDoubles() argument
51 int minExponent = Math.min(Math.getExponent(min), 0); in genRandomDoubles()
59 int sign = (min >= 0) ? 1 : 1 - r.nextInt(2) * 2; // -1 or 1 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()
80 array[r.nextInt(array.length)] = min; in genRandomDoubles()
99 public static void genRandomFloats(long seed, float min, float max, float array[], in genRandomFloats() argument
102 int minExponent = Math.min(Math.getExponent(min), 0); in genRandomFloats()
110 int sign = (min >= 0) ? 1 : 1 - r.nextInt(2) * 2; // -1 or 1 in genRandomFloats()
[all …]
Dintrinsic_convolve5x5.rs30 uint32_t x3 = min((int32_t)x+1, gWidth-1);
31 uint32_t x4 = min((int32_t)x+2, gWidth-1);
36 uint32_t y3 = min((int32_t)y+1, gHeight-1);
37 uint32_t y4 = min((int32_t)y+2, gHeight-1);
77 uint32_t x3 = min((int32_t)x+1, gWidth-1);
78 uint32_t x4 = min((int32_t)x+2, gWidth-1);
83 uint32_t y3 = min((int32_t)y+1, gHeight-1);
84 uint32_t y4 = min((int32_t)y+2, gHeight-1);
124 uint32_t x3 = min((int32_t)x+1, gWidth-1);
125 uint32_t x4 = min((int32_t)x+2, gWidth-1);
[all …]
Dintrinsic_resize.rs58 uint32_t xs2 = (uint32_t) min(maxx, startx + 2);
59 uint32_t xs3 = (uint32_t) min(maxx, startx + 3);
63 uint32_t ys2 = (uint32_t) min(maxy, starty + 2);
64 uint32_t ys3 = (uint32_t) min(maxy, starty + 3);
108 uint32_t xs2 = (uint32_t) min(maxx, startx + 2);
109 uint32_t xs3 = (uint32_t) min(maxx, startx + 3);
113 uint32_t ys2 = (uint32_t) min(maxy, starty + 2);
114 uint32_t ys3 = (uint32_t) min(maxy, starty + 3);
158 uint32_t xs2 = (uint32_t) min(maxx, startx + 2);
159 uint32_t xs3 = (uint32_t) min(maxx, startx + 3);
[all …]
Dintrinsic_convolve3x3.rs26 uint32_t x1 = min((int32_t)x+1, gWidth-1);
28 uint32_t y1 = min((int32_t)y+1, gHeight-1);
67 uint32_t x1 = min((int32_t)x+1, gWidth-1);
69 uint32_t y1 = min((int32_t)y+1, gHeight-1);
108 uint32_t x1 = min((int32_t)x+1, gWidth-1);
110 uint32_t y1 = min((int32_t)y+1, gHeight-1);
149 uint32_t x1 = min((int32_t)x+1, gWidth-1);
151 uint32_t y1 = min((int32_t)y+1, gHeight-1);
190 uint32_t x1 = min((int32_t)x+1, gWidth-1);
192 uint32_t y1 = min((int32_t)y+1, gHeight-1);
[all …]
DRSBaseCompute.java117 double min = -4.0 * Math.PI; in createRandomAllocation() local
119 RSUtils.genRandomDoubles(seed, min, max, inArray, includeExtremes); in createRandomAllocation()
124 float min = -4.0f * (float) Math.PI; in createRandomAllocation() local
126 RSUtils.genRandomFloats(seed, min, max, inArray, includeExtremes); in createRandomAllocation()
307 long min = minArray[i] &0xffffffffl; in enforceOrdering() local
309 if (min > max) { in enforceOrdering()
311 maxArray[i] = (int) min; in enforceOrdering()
336 int min = minArray[i] &0xffff; in enforceOrdering() local
338 if (min > max) { in enforceOrdering()
340 maxArray[i] = (short) min; in enforceOrdering()
[all …]
DTarget.java210 double min = Math.sqrt(a.mMinValue); in sqrt() local
219 values = new double[]{f, 0., min, max}; in sqrt()
221 values = new double[]{f, min, max}; in sqrt()
441 u = Math.min(u, smallestNormal(-1.f)); in NegativeUlp()
514 float min = (float)mMinValue; in toString() local
517 s += String.format("%11.9g {%08x} to %11.9g {%08x} to %11.9g {%08x}", min, in toString()
518 Float.floatToRawIntBits(min), mid, in toString()
DAtomicTest.rs70 gISum = min(gISum, v);
82 gUSum = min(gUSum, v);
/cts/tests/tests/dpi/src/android/dpi/cts/
DAspectRatioTest.java70 int min = Math.min(metrics.widthPixels, metrics.heightPixels); in getRealAspectRatio() local
71 return (double) max / min; in getRealAspectRatio()
DConfigurationScreenLayoutTest.java103 int min = Math.min(metrics.widthPixels, metrics.heightPixels); in reduceScreenLayout() local
105 int shortSize = (int) (min / metrics.density); in reduceScreenLayout()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java334 List<T> list, T min) { in expectValuesGreaterOrEqual() argument
338 min.toString()), value.compareTo(min) >= 0); in expectValuesGreaterOrEqual()
350 T[] array, T min) { in expectValuesGreaterOrEqual() argument
351 expectValuesGreaterOrEqual(msg, Arrays.asList(array), min); in expectValuesGreaterOrEqual()
363 T min, T max) { in expectValuesInRange() argument
367 min.toString(), max.toString()), in expectValuesInRange()
368 value.compareTo(max)<= 0 && value.compareTo(min) >= 0); in expectValuesInRange()
381 T min, T max) { in expectValuesInRange() argument
382 expectValuesInRange(msg, Arrays.asList(array), min, max); in expectValuesInRange()
393 public void expectValuesInRange(String msg, int[] array, int min, int max) { in expectValuesInRange() argument
[all …]
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGlVboPerfTest.java138 float min = data[0]; in findMinMax() local
143 if (data[i] < min) min = data[i]; in findMinMax()
145 float[] result = {min, max}; in findMinMax()
/cts/apps/CameraITS/tests/scene1/
Dtest_param_tonemap_mode.py58 sum([[i/LM1, min(1.0,(1+0.5*n)*i/LM1)] for i in range(L)], []))
60 sum([[i/LM1, min(1.0,(1+1.0*n)*i/LM1)] for i in range(L)], []))
62 sum([[i/LM1, min(1.0,(1+1.5*n)*i/LM1)] for i in range(L)], []))
Dtest_locked_burst.py69 spread = max(means) - min(means)
71 " (min/max: ", min(means), "/", max(means), ")"
Dtest_crop_regions.py88 wtest = min(tile_full.shape[1], aw)
89 htest = min(tile_full.shape[0], ah)
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
DEventGapVerification.java76 int eventGapTolerance = (int)Math.max(1, Math.min(EVENT_GAP_TOLERANCE_COUNT, in verify()
85 for (int i = 0; i < Math.min(count, TRUNCATE_MESSAGE_LENGTH); i++) { in verify()
DBatchArrivalVerification.java78 reportLatencyUs = Math.min(reportLatencyUs, fifoBasedReportLatencyUs); in getDefault()
97 for (int i = 0; i < Math.min(count, TRUNCATE_MESSAGE_LENGTH); i++) { in verify()
/cts/apps/CameraITS/pymodules/its/
Dobjects.py243 s = min(props['android.sensor.info.sensitivityRange'])
244 e = min(props['android.sensor.info.exposureTimeRange'])
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundPlayerObject.java92 float left = Math.min(2.0f * (1.0f - mBalance), 1.0f); in setBalance()
93 float right = Math.min(2.0f * mBalance, 1.0f); in setBalance()
/cts/apps/CameraITS/tests/scene0/
Dtest_param_sensitivity_burst.py37 e = min(props['android.sensor.info.exposureTimeRange'])

12345