/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 …]
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | Stat.java | 39 public StatResult(double average, double min, double max, double stddev, int dataCount) { in StatResult() argument 42 mMax = max; in StatResult() 54 double max = data[0]; in getStat() local 57 if (data[i] > max) { in getStat() 58 max = data[i]; in getStat() 72 return new StatResult(average, min, max, stddev, data.length); in getStat() 133 double max = data[0]; in getMax() local 135 if (data[i] > max) { in getMax() 136 max = data[i]; in getMax() 139 return max; in getMax()
|
/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/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/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 | 139 float max = data[0]; in findMinMax() local 142 if (data[i] > max) max = data[i]; in findMinMax() 145 float[] result = {min, max}; in findMinMax()
|
/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/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/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/ |
D | SustainedPerformanceHostTest.java | 115 double min = Double.MAX_VALUE, max = Double.MIN_VALUE; in analyzeResults() local 136 if (testSet[5] > max) { in analyzeResults() 137 max = testSet[5]; in analyzeResults() 147 double diff = (max - min)*100/max; in analyzeResults() 150 appResultsWithMode.add(1, max); in analyzeResults() 154 appResultsWithoutMode.add(1, max); in analyzeResults()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | BatteryStatsValidationTest.java | 422 long max = prevBytes + downloadedBytes + FUZZ; // Add some fuzzing. local 423 assertValueRange("nt", "", 6, min, max); // wifi_bytes_rx 424 assertValueRange("nt", "", 10, min / HIGH_MTU, max / LOW_MTU); // wifi_packets_rx 438 max += downloadedBytes + FUZZ; 439 assertValueRange("nt", "", 6, min, max); // wifi_bytes_rx 440 assertValueRange("nt", "", 10, min / HIGH_MTU, max / LOW_MTU); // wifi_packets_rx 458 int max = min + (6 * 1024); // Add some fuzzing. in testWifiUpload() local 459 assertValueRange("nt", "", 21, min, max); // wifi_bytes_bg_tx in testWifiUpload() 462 assertValueRange("nt", "", 7, min * 2, max * 2); // wifi_bytes_tx in testWifiUpload() 483 int index, long min, long max) throws Exception { in assertValueRange() argument [all …]
|
/cts/apps/CameraITS/tests/scene4/ |
D | test_aspect_ratio_and_crop.py | 114 factor_cp_thres = (min(size_raw[0:1])/4.0) / max(circle_size_raw) 169 thres_ar_test = max(THRES_L_AR_TEST, 170 THRES_XS_AR_TEST + max(w_iter, h_iter) * 191 thres_hori_cp_test = max(thres_l_cp_test, 195 thres_hori_cp_test = max(thres_hori_cp_test, 199 thres_vert_cp_test = max(thres_l_cp_test, 203 thres_vert_cp_test = max(thres_vert_cp_test, 359 line_width = max(1, max(size)/500)
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsSeekBarTest.java | 245 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/renderscript/src/android/renderscript/cts/refocus/image/ |
D | RangeLinearDepthTransform.java | 54 return Math.max(0, Math.min(255, in quantize() 60 return near + (far - near) * Math.max(0, Math.min(255, value)) / 255f; in reconstruct()
|
D | RangeInverseDepthTransform.java | 53 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/ |
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);
|