/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/ |
D | TestMax.rs | 26 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/ |
D | reduce.rs | 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; 103 half min, max; 108 accum->max = negInfHalf; [all …]
|
D | RSUtils.java | 70 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 …]
|
D | intrinsic_convolve5x5.rs | 27 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 …]
|
D | intrinsic_resize.rs | 56 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 …]
|
D | verify.rs | 120 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 …]
|
D | intrinsic_convolve3x3.rs | 27 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 …]
|
D | RSBaseCompute.java | 120 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 …]
|
D | CoreMathVerifier.java | 245 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 …]
|
D | Target.java | 260 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/ |
D | RSUtils.java | 48 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/ |
D | ColorUtils.java | 29 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/widget/src/android/widget/cts/ |
D | AbsSeekBarTest.java | 247 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/rscpp/src/android/cts/rscpp/ |
D | verify.rs | 130 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 …]
|
D | RSUtils.java | 49 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/tests/tests/openglperf/src/android/openglperf/cts/ |
D | Sphere.java | 101 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()
|
D | GlVboPerfTest.java | 147 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/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | StorageDeviceInfo.java | 37 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/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/ |
D | SustainedPerformanceHostTest.java | 117 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/openglperf2/jni/graphics/ |
D | Vector2D.cpp | 59 void Vector2D::limit(float max) { in limit() argument 60 if (magnitude() > max) { in limit() 62 scale(max); in limit()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsPolicyTest.java | 171 Insets stableAndSystem = Insets.max(insets.getSystemGestureInsets(), in commonAsserts() 218 private static Matcher<Insets> insetsLessThanOrEqualTo(Insets max) { in insetsLessThanOrEqualTo() argument 219 return new CustomTypeSafeMatcher<Insets>("must be smaller on each side than " + max) { in insetsLessThanOrEqualTo() 222 return actual.left <= max.left && actual.top <= max.top in insetsLessThanOrEqualTo() 223 && actual.right <= max.right && actual.bottom <= max.bottom; in insetsLessThanOrEqualTo()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | Animatable2Callback.java | 110 public void assertAVDRuntime(long min, long max) { in assertAVDRuntime() argument 115 min + "," + max, durationNs <= max && durationNs >= min); in assertAVDRuntime()
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_flip_mirror.py | 68 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/apps/CameraITS/tests/inprog/ |
D | test_burst_sameness_fullres_auto.py | 84 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/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | luts_for_speedup_f32.rsh | 12 // 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);
|