Home
last modified time | relevance | path

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

123456789

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestMin.rscript26 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/renderscript/src/android/renderscript/cts/
DRSUtils.java70 public static void genRandomDoubles(long seed, double min, double max, double array[], in genRandomDoubles() argument
73 int minExponent = Math.min(Math.getExponent(min), 0); in genRandomDoubles()
81 int sign = (min >= 0) ? 1 : 1 - r.nextInt(2) * 2; // -1 or 1 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()
102 array[r.nextInt(array.length)] = min; in genRandomDoubles()
121 public static void genRandomFloats(long seed, float min, float max, float array[], in genRandomFloats() argument
124 int minExponent = Math.min(Math.getExponent(min), 0); in genRandomFloats()
132 int sign = (min >= 0) ? 1 : 1 - r.nextInt(2) * 2; // -1 or 1 in genRandomFloats()
[all …]
Dreduce.rscript43 // Finds LOCATION of min and max float values
55 IndexedVal min, max;
59 accum->min.val = posInf;
60 accum->min.idx = -1;
70 if (me.val <= accum->min.val)
71 accum->min = me;
78 if ((accum->min.idx < 0) || (val->min.val < accum->min.val))
79 accum->min = val->min;
86 result->x = val->min.idx;
92 // finds min and max half values (not their locations)
[all …]
Dintrinsic_convolve5x5.rscript30 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.rscript58 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.rscript26 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.java119 double min = -4.0 * Math.PI; in createRandomAllocation() local
121 RSUtils.genRandomDoubles(seed, min, max, inArray, includeExtremes); in createRandomAllocation()
126 float min = -4.0f * (float) Math.PI; in createRandomAllocation() local
128 RSUtils.genRandomFloats(seed, min, max, inArray, includeExtremes); in createRandomAllocation()
132 double min = -4.0 * Math.PI; in createRandomAllocation() local
134 RSUtils.genRandomFloat16s(seed, min, max, inArray, includeExtremes); in createRandomAllocation()
335 long min = minArray[i] &0xffffffffl; in enforceOrdering() local
337 if (min > max) { in enforceOrdering()
339 maxArray[i] = (int) min; in enforceOrdering()
364 int min = minArray[i] &0xffff; in enforceOrdering() local
[all …]
DCoreMathVerifier.java244 Math.acos(in.min()), in acos()
263 acosh((float) in.min()), in acosh()
287 Math.asin(in.min()), in asin()
305 asinh((float) in.min()), in asinh()
329 Math.atan(in.min()), in atan()
347 atanh((float) in.min()), in atanh()
372 Math.atan2(numerator.min(), denominator.min()), in atan2()
373 Math.atan2(numerator.min(), denominator.max()), in atan2()
374 Math.atan2(numerator.max(), denominator.min()), in atan2()
401 Math.cbrt(in.min()), in cbrt()
[all …]
DTarget.java272 double min = Math.sqrt(a.mMinValue); in sqrt() local
281 values = new double[]{f, 0., min, max}; in sqrt()
283 values = new double[]{f, min, max}; in sqrt()
559 u = Math.min(u, smallestNormal(-1.f)); in NegativeUlp()
607 public double min() { return mMinValue; } in min() method in Target.Floaty
638 float min = (float)mMinValue; in toString() local
641 s += String.format("%11.9g {%08x} to %11.9g {%08x} to %11.9g {%08x}", min, in toString()
642 Float.floatToRawIntBits(min), mid, 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
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/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java332 List<T> list, T min) { in expectValuesGreaterOrEqual() argument
336 min.toString()), value.compareTo(min) >= 0); in expectValuesGreaterOrEqual()
348 T[] array, T min) { in expectValuesGreaterOrEqual() argument
349 expectValuesGreaterOrEqual(msg, Arrays.asList(array), min); in expectValuesGreaterOrEqual()
361 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
[all …]
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java235 final Point min = getScreenSize(); in suggestDesiredDimensionsTest() local
236 final int w = min.x * 3; in suggestDesiredDimensionsTest()
237 final int h = min.y * 2; in suggestDesiredDimensionsTest()
238 assertDesiredDimension(new Point(min.x / 2, min.y / 2), new Point(min.x / 2, min.y / 2)); in suggestDesiredDimensionsTest()
242 assertDesiredDimension(new Point(min.x / 2, h), new Point(min.x / 2, h)); in suggestDesiredDimensionsTest()
244 assertDesiredDimension(new Point(w, min.y / 2), new Point(w, min.y / 2)); in suggestDesiredDimensionsTest()
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/
DSustainedPerformanceHostTest.java117 double min = Double.MAX_VALUE, max = Double.MIN_VALUE; in analyzeResults() local
141 if (testSet[5] < min) { in analyzeResults()
142 min = testSet[5]; in analyzeResults()
149 double diff = (max - min)*100/max; in analyzeResults()
151 appResultsWithMode.add(0, min); in analyzeResults()
155 appResultsWithoutMode.add(0, min); in analyzeResults()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowInsetsPolicyTest.java171 Insets stableAndSystem = Insets.min(insets.getSystemWindowInsets(), in commonAsserts()
228 private static Matcher<Insets> insetsGreaterThanOrEqualTo(Insets min) {
229 return new CustomTypeSafeMatcher<Insets>("must be greater on each side than " + min) {
232 return actual.left >= min.left && actual.top >= min.top
233 && actual.right >= min.right && actual.bottom >= min.bottom;
/cts/apps/CameraITS/tests/scene3/
Dtest_lens_movement_reporting.py147 min_loc = min([v['loc'] for v in d_af_fd.itervalues()])
152 min_sharp = min([v['sharpness'] for v in d_af_fd.itervalues()])
157 first_key = min(d_af_fd.keys()) # finds 1st non-moving frame
163 min_loc = min([v['loc'] for v in d_min_fd.itervalues()])
168 min_sharp = min([v['sharpness'] for v in d_min_fd.itervalues()])
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DEventBasicVerification.java112 long expectedBatchUs = Math.min(maximumFifoUs, askedBatchUs); in getDefault()
124 long minBatchUs = Math.min(reservedFifoUs, askedBatchUs); in getDefault()
125 long maxBatchUs = Math.min(maximumFifoUs, askedBatchUs); in getDefault()
152 double ratio = Math.min(Math.abs(worstBatchUs - minBatchUs), in getDefault()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGlVboPerfTest.java146 float min = data[0]; in findMinMax() local
151 if (data[i] < min) min = data[i]; in findMinMax()
153 float[] result = {min, max}; in findMinMax()
/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/tests/tests/security/src/android/security/cts/
DAmbiguousBundlesTest.java58 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2017_13310()
61 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2017_13310()
167 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2018_9339()
170 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2018_9339()
244 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2017_0806()
247 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2017_0806()
307 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2017_13311()
310 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2017_13311()
401 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2017_13287()
404 minHash = Math.min(minHash, s.hashCode()); in test_android_CVE_2017_13287()
/cts/tests/tests/widget/src/android/widget/cts/
DAbsSeekBarTest.java275 int min = progress - 1; in testAccessMin() local
278 myAbsSeekBar.setMin(min); in testAccessMin()
280 assertEquals(min, myAbsSeekBar.getMin()); in testAccessMin()
284 min = progress + 1; in testAccessMin()
285 myAbsSeekBar.setMin(min); in testAccessMin()
286 assertEquals(min, myAbsSeekBar.getMin()); in testAccessMin()
287 assertEquals(min, myAbsSeekBar.getProgress()); in testAccessMin()
294 min = -1 * keyProgressIncrement * 10; in testAccessMin()
296 myAbsSeekBar.setMin(min); in testAccessMin()
302 assertEquals(min, myAbsSeekBar.getMin()); in testAccessMin()
/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/scene1/
Dtest_param_tonemap_mode.py66 "red": (sum([[i/LM1, min(1.0,(1+0.5*n)*i/LM1)]
68 "green": (sum([[i/LM1, min(1.0,(1+1.0*n)*i/LM1)]
70 "blue": (sum([[i/LM1, min(1.0,(1+1.5*n)*i/LM1)]
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DBaseDumpsysTest.java102 protected static void assertMinAvgMax(String min, String avg, String max, boolean checkAvg) { in assertMinAvgMax() argument
103 final long lMin = assertNonNegativeInteger(min); in assertMinAvgMax()
108 assertTrue("min [" + min + "] <= avg [" + avg + "]", lMin <= lAvg); in assertMinAvgMax()
113 assertTrue("min [" + min + "] <= max [" + max + "]", lMin <= lMax); in assertMinAvgMax()
/cts/tests/tests/systemui/src/android/systemui/cts/
DColorUtils.java40 int temp = Math.min(b, Math.min(r, g)); in hue()

123456789