/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | Versions.java | 53 public static void requireMinimumVersion(int min) { in requireMinimumVersion() argument 54 if (!meetsSdkVersionRequirements(min, ANY)) { in requireMinimumVersion() 59 + versionToLetter(min) in requireMinimumVersion() 89 public static boolean meetsMinimumSdkVersionRequirement(int min) { in meetsMinimumSdkVersionRequirement() argument 90 return meetsSdkVersionRequirements(min, ANY); in meetsMinimumSdkVersionRequirement() 98 public static boolean meetsSdkVersionRequirements(int min, int max) { in meetsSdkVersionRequirements() argument 99 if (min != ANY) { in meetsSdkVersionRequirements() 100 if (min == Build.VERSION_CODES.CUR_DEVELOPMENT) { in meetsSdkVersionRequirements() 102 Log.e(TAG, "meetsSdkVersionRequirements(" + min + "," + max in meetsSdkVersionRequirements() 107 } else if (min > Build.VERSION.SDK_INT) { in meetsSdkVersionRequirements() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/ |
D | TestMin.rscript | 26 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/ |
D | RSUtils.java | 70 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 …]
|
D | reduce.rscript | 43 // 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 …]
|
D | intrinsic_convolve5x5.rscript | 30 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 …]
|
D | intrinsic_resize.rscript | 58 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 …]
|
D | intrinsic_convolve3x3.rscript | 26 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 …]
|
D | RSBaseCompute.java | 119 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 …]
|
/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 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/hostsidetests/packagemanager/parsing/host/src/android/content/pm/parsing/cts/host/ |
D | UsesSdkTest.kt | 66 assertSdks(result, min = 1, target = 0) in defaultsNoTag() 81 assertSdks(result, min = 1, target = 1) in defaultsWithTag() 96 assertSdks(result, min = 1, target = 29) in missingMinDefaults() 111 assertSdks(result, min = 29, target = 29) in missingTargetCoercedToMin() 149 assertSdks(result, min = 1, target = 1, extensions = emptyMap()) in emptyUsesSdk() 182 assertSdks(result, min = 29, target = 29) in takeLastMinSdk() 202 assertSdks(result, min = 1, target = 1, extensions = mapOf(31 to 0)) in takeLastExtensionSdk() 220 assertSdks(result, min = 1, target = 30, extensions = emptyMap()) in lastDeclarationOverridesAllPrevious() 240 assertSdks(result, min = 30, target = 30, extensions = mapOf(31 to 0)) in takeLastAfterAppTag() 245 min: Int = 1, in assertSdks() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/analyzers/ |
D | InfiniteRecording.java | 43 position = Math.min(position, maxPosition); in readFrom() 44 int numToRead = Math.min(count, mMaxSamples); in readFrom() 45 numToRead = Math.min(numToRead, maxPosition - position); in readFrom() 52 final int firstReadSize = Math.min(numToRead, mMaxSamples - offset); in readFrom()
|
/cts/tools/incremental-cts/testdata/ |
D | perf_dump.txt | 3 pgoff 0x0, maj 253, min 9, ino 14709, ino_generation 2575019956 11 pgoff 0x0, maj 253, min 9, ino 14709, ino_generation 2575019956 31 pgoff 0x0, maj 253, min 9, ino 14709, ino_generation 2575019956 39 pgoff 0x0, maj 253, min 9, ino 14709, ino_generation 2575019956 47 pgoff 0x0, maj 253, min 9, ino 14709, ino_generation 2575019956 55 pgoff 0x0, maj 253, min 9, ino 14709, ino_generation 2575019956 63 pgoff 0x0, maj 253, min 9, ino 14709, ino_generation 2575019956
|
/cts/hostsidetests/mediapc/videoencodingquality/bdrate/src/main/java/com/android/media/videoquality/bdrate/ |
D | BdCalculus.java | 31 public static double calculateAuc(PolynomialSplineFunction func, double min, double max) { in calculateAuc() argument 48 if (rightKnot < min) { in calculateAuc() 56 double integrationLeft = Math.max(0, min - leftKnot); in calculateAuc() 57 double integrationRight = Math.min(rightKnot - leftKnot, max - leftKnot); in calculateAuc()
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_imu_drift.py | 107 x_drift_min, x_drift_max = min(x_drift), max(x_drift) 108 y_drift_min, y_drift_max = min(y_drift), max(y_drift) 109 z_drift_min, z_drift_max = min(z_drift), max(z_drift) 120 pylab.ylim([min([x_drift_min, y_drift_min, z_drift_min, -_RV_DRIFT_THRESH]), 139 pylab.ylim([min([np.amin(x), np.amin(y), np.amin(z), -_GYRO_MEAN_THRESH]), 169 x_min, x_max = min(x_sums), max(x_sums) 170 y_min, y_max = min(y_sums), max(y_sums) 171 z_min, z_max = min(z_sums), max(z_sums) 182 pylab.ylim([min([x_min, y_min, z_min, -_GYRO_DRIFT_ATOL]),
|
/cts/tests/tests/gameframerate/src/ |
D | GameFrameRateCtsActivity.java | 141 FrameRateRange(float min, float max) { in FrameRateRange() argument 142 this.min = min; in FrameRateRange() 145 public float min; field in GameFrameRateCtsActivity.FrameRateRange 211 return (fps + FPS_TOLERANCE_FOR_FRAME_RATE_OVERRIDE >= expectedFrameRateRange.min) in frameRatesMatchesOverride() 271 long timeoutNs = Math.min(waitUntilNanos, surfacePostTime) - nowNanos; in waitForEvents() 343 expectedFrameRateRange.min = frameRateOverride - divisorOverrideGap; in getExpectedFrameRate() 346 expectedFrameRateRange.min, expectedFrameRateRange.max)); in getExpectedFrameRate() 382 condition, expectedFrameRate.min, expectedFrameRate.max, fps), in observe() 440 mExpectedRefreshRate.min, in verifyFrameRate() 470 condition, expectedFrameRate.min, in observe() [all …]
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/settings/ |
D | SystemSettingsTest.kt | 46 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 76 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 118 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 128 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 137 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 165 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 192 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 221 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 250 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 268 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>()
|
D | SecureSettingsTest.kt | 54 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 83 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 125 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 144 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 153 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 181 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 208 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 235 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 274 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 293 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() [all …]
|
D | GlobalSettingsTest.kt | 52 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 80 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 121 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 130 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 139 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 168 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 195 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 224 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 253 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() 272 @RequireSdkVersion(min = Build.VERSION_CODES.S) in <lambda>() [all …]
|
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/ |
D | SustainedPerformanceHostTest.java | 118 double min = Double.MAX_VALUE, max = Double.MIN_VALUE; in analyzeResults() local 142 if (testSet[5] < min) { in analyzeResults() 143 min = testSet[5]; in analyzeResults() 150 double diff = (max - min)*100/max; in analyzeResults() 152 appResultsWithMode.add(0, min); in analyzeResults() 156 appResultsWithoutMode.add(0, min); in analyzeResults()
|
/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/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/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | EventBasicVerification.java | 112 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/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | CameraErrorCollector.java | 396 List<T> list, T min) { in expectValuesGreaterOrEqual() argument 400 min.toString()), value.compareTo(min) >= 0); in expectValuesGreaterOrEqual() 412 T[] array, T min) { in expectValuesGreaterOrEqual() argument 413 expectValuesGreaterOrEqual(msg, Arrays.asList(array), min); in expectValuesGreaterOrEqual() 425 T min, T max) { in expectValuesInRange() argument 429 min.toString(), max.toString()), in expectValuesInRange() 430 value.compareTo(max)<= 0 && value.compareTo(min) >= 0); in expectValuesInRange() 443 T min, T max) { in expectValuesInRange() argument 444 expectValuesInRange(msg, Arrays.asList(array), min, max); in expectValuesInRange() 455 public void expectValuesInRange(String msg, int[] array, int min, int max) { in expectValuesInRange() argument [all …]
|
/cts/common/device-side/bedstead/modules/permissions/src/test/kotlin/com/android/bedstead/permissions/ |
D | PermissionsTest.kt | 52 min = Build.VERSION_CODES.Q, 64 min = Build.VERSION_CODES.Q, 91 min = Build.VERSION_CODES.Q, 106 min = Build.VERSION_CODES.Q, 131 min = Build.VERSION_CODES.Q, 185 @RequireSdkVersion(min = Build.VERSION_CODES.R) 197 @RequireSdkVersion(min = Build.VERSION_CODES.R) 228 @RequireSdkVersion(min = Build.VERSION_CODES.R, max = Build.VERSION_CODES.R) 242 @RequireSdkVersion(min = Build.VERSION_CODES.S)
|