/cts/apps/CtsVerifier/res/raw/ |
D | ring_obj | 3537 f 25//1 26//1 2//1 3538 f 26//2 27//2 3//2 3539 f 3//3 27//3 28//3 3540 f 28//4 29//4 5//4 3541 f 5//5 29//5 30//5 3542 f 30//6 31//6 7//6 3543 f 31//7 32//7 8//7 3544 f 32//8 33//8 9//8 3545 f 9//9 33//9 34//9 3546 f 34//10 35//10 11//10 [all …]
|
D | cone_obj | 71 f 32//1 2//1 33//1 72 f 1//2 2//2 3//2 73 f 31//3 2//3 32//3 74 f 30//4 2//4 31//4 75 f 29//5 2//5 30//5 76 f 28//6 2//6 29//6 77 f 27//7 2//7 28//7 78 f 26//8 2//8 27//8 79 f 25//9 2//9 26//9 80 f 24//10 2//10 25//10 [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | MatrixTest.rscript | 5 if (fabs((a) - (b)) > 0.00001f) { \ 26 rsMatrixSet(&m2, col, row, row * 100.f + col); 32 rsMatrixSet(&m3, col, row, row * 100.f + col); 38 rsMatrixSet(&m4, col, row, row * 100.f + col); 45 EXPECT(row, col, rsMatrixGet(&m2, col, row), row * 100.f + col); 51 EXPECT(row, col, rsMatrixGet(&m3, col, row), row * 100.f + col); 57 EXPECT(row, col, rsMatrixGet(&m4, col, row), row * 100.f + col); 73 const float m2Values[] = { 11.f, 21.f, 74 12.f, 22.f }; 75 const float m3Values[] = { 11.f, 21.f, 31.f, [all …]
|
D | IntrinsicConvolve5x5.java | 77 float cf1[] = { 0.f, 0.f, 0.f, 0.f, 0.f, in testConvolve5() 78 0.f, 0.f, 0.f, 0.f, 0.f, in testConvolve5() 79 0.f, 0.f, 1.f, 0.f, 0.f, in testConvolve5() 80 0.f, 0.f, 0.f, 0.f, 0.f, in testConvolve5() 81 0.f, 0.f, 0.f, 0.f, 0.f}; in testConvolve5() 82 float cf2[] = {-1.f, -1.f, -1.f, -1.f, -1.f, in testConvolve5() 83 -1.f, 0.f, 0.f, 0.f, -1.f, in testConvolve5() 84 -1.f, 0.f, 16.f, 0.f, -1.f, in testConvolve5() 85 -1.f, 0.f, 0.f, 0.f, -1.f, in testConvolve5() 86 -1.f, -1.f, -1.f, -1.f, -1.f}; in testConvolve5() [all …]
|
D | IntrinsicResize.java | 104 testResize(inX, inX, Element.DataType.UNSIGNED_8, 4, 1.f, 1.f); in test_U8_4_SCALE10_10_inSquare() 108 testResize(inX, inX, Element.DataType.UNSIGNED_8, 3, 1.f, 1.f); in test_U8_3_SCALE10_10_inSquare() 112 testResize(inX, inX, Element.DataType.UNSIGNED_8, 2, 1.f, 1.f); in test_U8_2_SCALE10_10_inSquare() 116 testResize(inX, inX, Element.DataType.UNSIGNED_8, 1, 1.f, 1.f); in test_U8_1_SCALE10_10_inSquare() 121 testResize(inX, inX, Element.DataType.UNSIGNED_8, 4, 2.f, 2.f); in test_U8_4_SCALE20_20_inSquare() 125 testResize(inX, inX, Element.DataType.UNSIGNED_8, 3, 2.f, 2.f); in test_U8_3_SCALE20_20_inSquare() 129 testResize(inX, inX, Element.DataType.UNSIGNED_8, 2, 2.f, 2.f); in test_U8_2_SCALE20_20_inSquare() 133 testResize(inX, inX, Element.DataType.UNSIGNED_8, 1, 2.f, 2.f); in test_U8_1_SCALE20_20_inSquare() 138 testResize(inX, inX, Element.DataType.UNSIGNED_8, 4, 0.5f, 2.f); in test_U8_4_SCALE05_20_inSquare() 142 testResize(inX, inX, Element.DataType.UNSIGNED_8, 3, 0.5f, 2.f); in test_U8_3_SCALE05_20_inSquare() [all …]
|
D | ImageProcessingTest.java | 711 float f[] = new float[9]; in testConvolve3x3() local 712 f[0] = 0.f; f[1] = -1.f; f[2] = 0.f; in testConvolve3x3() 713 f[3] = -1.f; f[4] = 5.f; f[5] = -1.f; in testConvolve3x3() 714 f[6] = 0.f; f[7] = -1.f; f[8] = 0.f; in testConvolve3x3() 716 mConvolve3x3.setCoefficients(f); in testConvolve3x3() 735 float f[] = new float[25]; in testConvolve5x5() local 736 f[0] = -1.f; f[1] = -3.f; f[2] = -4.f; f[3] = -3.f; f[4] = -1.f; in testConvolve5x5() 737 f[5] = -3.f; f[6] = 0.f; f[7] = 6.f; f[8] = 0.f; f[9] = -3.f; in testConvolve5x5() 738 f[10]= -4.f; f[11]= 6.f; f[12]= 20.f; f[13]= 6.f; f[14]= -4.f; in testConvolve5x5() 739 f[15]= -3.f; f[16]= 0.f; f[17]= 6.f; f[18]= 0.f; f[19]= -3.f; in testConvolve5x5() [all …]
|
D | IntrinsicConvolve3x3.java | 24 float cf1[] = {0.f, 0.f, 0.f, 0.f, 1.f, 0.f, 0.f, 0.f, 0.f}; in testConvolve3() 25 float cf2[] = {0.f, -1.f, 0.f, -1.f, 5.f, -1.f, 0.f, -1.f, 0.f}; in testConvolve3() 29 float cf3[] = {0.f, irCoeff1, 0.f, irCoeff2, 1.f, irCoeff2, 0.f, irCoeff1, 0.f}; in testConvolve3()
|
D | Target.java | 251 Floaty f = new Floaty(a); in abs() local 252 f.mValue = Math.abs(a.mValue); in abs() 255 f.mMinValue = -a.mMaxValue; in abs() 256 f.mMaxValue = -a.mMinValue; in abs() 259 f.mMinValue = 0.f; in abs() 260 f.mMaxValue = Math.max(-a.mMinValue, a.mMaxValue); in abs() 262 return f; in abs() 271 double f = Math.sqrt(a.mValue); in sqrt() local 281 values = new double[]{f, 0., min, max}; in sqrt() 283 values = new double[]{f, min, max}; in sqrt() [all …]
|
D | StructFieldTest.java | 36 innerOne.f = r.nextFloat(); in makeInnerOne() 64 outer.innerOneA.x, outer.innerOneA.y, outer.innerOneA.f, in testStructField() 66 outer.innerOneB.x, outer.innerOneB.y, outer.innerOneB.f, in testStructField() 68 … outer.innerTwo3[0].innerOne.x, outer.innerTwo3[0].innerOne.y, outer.innerTwo3[0].innerOne.f, in testStructField() 70 … outer.innerTwo3[1].innerOne.x, outer.innerTwo3[1].innerOne.y, outer.innerTwo3[1].innerOne.f, in testStructField() 72 … outer.innerTwo3[2].innerOne.x, outer.innerTwo3[2].innerOne.y, outer.innerTwo3[2].innerOne.f, in testStructField() 74 … outer.innerTwo2[0].innerOne.x, outer.innerTwo2[0].innerOne.y, outer.innerTwo2[0].innerOne.f, in testStructField() 76 … outer.innerTwo2[1].innerOne.x, outer.innerTwo2[1].innerOne.y, outer.innerTwo2[1].innerOne.f, in testStructField() 77 outer.innerOne4[0].x, outer.innerOne4[0].y, outer.innerOne4[0].f, in testStructField() 78 outer.innerOne4[1].x, outer.innerOne4[1].y, outer.innerOne4[1].f, in testStructField() [all …]
|
D | vector.rscript | 4 float2 f2 = { 1.0f, 2.0f }; 5 float3 f3 = { 1.0f, 2.0f, 3.0f }; 6 float4 f4 = { 1.0f, 2.0f, 3.0f, 4.0f }; 48 _RS_ASSERT(f2.x == 2.99f); 49 _RS_ASSERT(f2.y == 3.99f); 51 _RS_ASSERT(f3.x == 2.99f); 52 _RS_ASSERT(f3.y == 3.99f); 53 _RS_ASSERT(f3.z == 4.99f); 55 _RS_ASSERT(f4.x == 2.99f); 56 _RS_ASSERT(f4.y == 3.99f); [all …]
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | RSResizeTest.java | 95 testResize(inX, inX, Element.DataType.UNSIGNED_8, 4, 1.f, 1.f); in test_U8_4_SCALE10_10_inSqure() 98 testResize(inX, inX, Element.DataType.UNSIGNED_8, 3, 1.f, 1.f); in test_U8_3_SCALE10_10_inSqure() 101 testResize(inX, inX, Element.DataType.UNSIGNED_8, 2, 1.f, 1.f); in test_U8_2_SCALE10_10_inSqure() 104 testResize(inX, inX, Element.DataType.UNSIGNED_8, 1, 1.f, 1.f); in test_U8_1_SCALE10_10_inSqure() 108 testResize(inX, inX, Element.DataType.UNSIGNED_8, 4, 2.f, 2.f); in test_U8_4_SCALE20_20_inSqure() 111 testResize(inX, inX, Element.DataType.UNSIGNED_8, 3, 2.f, 2.f); in test_U8_3_SCALE20_20_inSqure() 114 testResize(inX, inX, Element.DataType.UNSIGNED_8, 2, 2.f, 2.f); in test_U8_2_SCALE20_20_inSqure() 117 testResize(inX, inX, Element.DataType.UNSIGNED_8, 1, 2.f, 2.f); in test_U8_1_SCALE20_20_inSqure() 121 testResize(inX, inX, Element.DataType.UNSIGNED_8, 4, 0.5f, 2.f); in test_U8_4_SCALE05_20_inSqure() 124 testResize(inX, inX, Element.DataType.UNSIGNED_8, 3, 0.5f, 2.f); in test_U8_3_SCALE05_20_inSqure() [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | FileSystemPermissionTest.java | 207 File f = new File("/dev/diag"); in testDevDiagSane() local 208 assertFalse(f.canRead()); in testDevDiagSane() 209 assertFalse(f.canWrite()); in testDevDiagSane() 210 assertFalse(f.canExecute()); in testDevDiagSane() 217 File f = new File("/proc/interrupts"); in testProcInterruptsNotReadable() local 218 assertFalse(f.canRead()); in testProcInterruptsNotReadable() 219 assertFalse(f.canWrite()); in testProcInterruptsNotReadable() 220 assertFalse(f.canExecute()); in testProcInterruptsNotReadable() 227 File f = new File("/proc/stat"); in testProcStatNotReadable() local 228 assertFalse(f.canRead()); in testProcStatNotReadable() [all …]
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | DirectoryTests.java | 30 final File f = new File("/data/misc/stats-active-metric/"); in testStatsActiveMetricDirectoryExists() local 31 assertTrue(f.exists()); in testStatsActiveMetricDirectoryExists() 32 assertFalse(f.isFile()); in testStatsActiveMetricDirectoryExists() 37 final File f = new File("/data/misc/stats-data/"); in testStatsDataDirectoryExists() local 38 assertTrue(f.exists()); in testStatsDataDirectoryExists() 39 assertFalse(f.isFile()); in testStatsDataDirectoryExists() 44 final File f = new File("/data/misc/stats-metadata/"); in testStatsMetadataDirectoryExists() local 45 assertTrue(f.exists()); in testStatsMetadataDirectoryExists() 46 assertFalse(f.isFile()); in testStatsMetadataDirectoryExists() 51 final File f = new File("/data/misc/stats-service/"); in testStatsServiceDirectoryExists() local [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ParamsTest.java | 36 private static final float MAX_DEFAULT_TOLERANCE = 1/24.f; 60 assertTrue(p.getTolerance() >= 0.f in testSyncParamsDefaults() 102 float lastValue = 2.f; /* some initial value to avoid compile error */ 103 for (float f : new float[] { 0.f, .1f, .9999f }) { 104 SyncParams q = p.setTolerance(f); // verify both initial set and update 108 assertEquals(f, p.getTolerance(), FLOAT_TOLERANCE); 110 lastValue = f; 115 for (float f : new float[] { -.0001f, 1.f }) { 117 p.setTolerance(f); 118 fail("set tolerance to " + f); [all …]
|
D | AudioSystemTest.java | 52 final float DELTA = 0.f; // float values must be exact in testBalance() 57 originalBalance <= 1.f && originalBalance >= -1.f); in testBalance() 61 final float[] GOOD_BALANCE_VALUES = {-1.f, -0.5f, 0.f, 0.5f, 1.f}; in testBalance() 74 final float[] BAD_BALANCE_VALUES = {-2.f, 2.f, // out of bounds in testBalance()
|
/cts/tools/utils/ |
D | rm_dup_holo_imgs.py | 47 for f in portrait: 48 if f in landscape and landscape[f] == portrait[f]: 49 subprocess.call(["rm", landDir + "/" + f]) 53 for f in os.listdir(dirName): 54 if f.endswith(".png"): 55 files[f] = getHash(open(dirName + "/" + f, 'rb')) 58 def getHash(f): argument 59 return hashlib.sha1(f.read()).hexdigest()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | CameraTest.java | 59 float[] f = new float[9]; in testMatrixPreCompare() local 60 m.getValues(f); in testMatrixPreCompare() 63 }, f, 0.0f); in testMatrixPreCompare() 75 float[] f = new float[9]; in testTranslate() local 76 m2.getValues(f); in testTranslate() 79 }, f, 0.0f); in testTranslate() 91 float[] f = new float[9]; in testRotateX() local 92 m2.getValues(f); in testRotateX() 95 }, f, 0.0017361111f); in testRotateX() 107 float[] f = new float[9]; in testRotateY() local [all …]
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/ |
D | check_not_modify_libs.sh | 18 for f in $* 20 echo "${f}" | grep -q "${BUILD_LIBS_SCRIPT}" && MODIFY_BUILD_LIBS_SCRIPT=1 21 echo "${f}" | grep -q "${APP_LIBS_ANDROID_MK}" && MODIFY_ANDROID_MK=1 23 echo "${f}" | grep -q "${NATIVE_MK_PATTERN}" && MK_LIST="${MK_LIST}\n ${f}" 25 echo "${f}" | grep -q "${MANIFEST_PATTERN}" && MANIFEST_LIST="${MANIFEST_LIST}\n ${f}" 27 echo "${f}" | grep -q "${JNI_PATTERN}" && MODIFY_JNI=1 28 echo "${f}" | grep -q "${LIB_SO_PATTERN}" && LIB_SO_LIST="${LIB_SO_LIST}\n ${f}"
|
/cts/apps/CameraITS/tests/scene1_2/ |
D | test_reprocess_noise_reduction.py | 74 pylab.plot(_NR_MODES_LIST, snrs[ch], f'-{color.lower()}o') 181 f'{nr_modes_reported}. Expected: {_NR_MODES_LIST}.') 185 raise AssertionError(f'FAST: {snrs[j][_NR_MODES["FAST"]]:.2f}, ' 186 f'OFF: {snrs[j][_NR_MODES["OFF"]]:.2f}, ' 187 f'TOL: {_SNR_TOL}') 191 raise AssertionError(f'HQ: {snrs[j][_NR_MODES["HQ"]]:.2f}, ' 192 f'FAST: {snrs[j][_NR_MODES["FAST"]]:.2f}, ' 193 f'TOL: {_SNR_TOL}') 197 raise AssertionError(f'HQ: {snrs[j][_NR_MODES["HQ"]]:.2f}, ' 198 f'OFF: {snrs[j][_NR_MODES["OFF"]]:.2f}') [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | AsyncUtils.java | 35 public static <T> T await(Future<T> f) { in await() argument 36 return await(f, DEFAULT_TIMEOUT_MS, MILLISECONDS); in await() 39 public static <T> T await(Future<T> f, long time, TimeUnit timeUnit) { in await() argument 41 return f.get(time, timeUnit); in await() 47 public static Throwable awaitFailure(Future<?> f) { in awaitFailure() argument 48 return awaitFailure(f, DEFAULT_TIMEOUT_MS, MILLISECONDS); in awaitFailure() 51 public static Throwable awaitFailure(Future<?> f, long time, TimeUnit timeUnit) { in awaitFailure() argument 52 return assertThrows(() -> await(f, time, timeUnit)); in awaitFailure() 55 public static <T> CancellationException awaitCancellation(Future<T> f) { in awaitCancellation() argument 56 return awaitCancellation(f, DEFAULT_TIMEOUT_MS, MILLISECONDS); in awaitCancellation() [all …]
|
/cts/tests/tests/security/res/raw/ |
D | openssl_heartbleed_test_cert.pem | 41 00:b7:85:fc:7d:7b:11:34:10:6a:24:a4:cc:8d:8f: 42 a0:80:69:20:1d:60:be:5b:08:26:9f:67:0a:6b:e7: 45 86:ce:6f:f2:28:9d:8a:e7:36:c4:70:a8:16:b0:18: 47 df:22:80:99:30:58:2c:61:85:02:e7:4f:f8:7a:db: 48 1e:bb:07:df:f6:99:db:95:de:71:dc:8e:34:3f:fa: 50 7f:dd:5f:7b:eb:7c:a1:39:a2:8b:43:2e:f4:f2:71: 51 ab:c0:3d:25:1f:08:a9:41:1b:8f:83:41:82:34:43: 53 32:4f:74:37:f3:0f:c8:11:77:fd:9e:82:36:04:fe: 54 c3:68:2a:23:5b:dc:d8:b2:1f:29:d9:f3:8f:55:0c: 55 1d:47:fd:8f:68:8c:ef:f7:c0:05:a9:70:39:cf:fb: [all …]
|
/cts/apps/CameraITS/tests/scene2_a/ |
D | test_faces.py | 42 raise AssertionError(f'Face top > bottom! t: {rect_t}, b: {rect_b}') 44 raise AssertionError(f'Face left > right! l: {rect_l}, r: {rect_r}') 47 raise AssertionError(f'Face l: {rect_l} outside of active W: 0,{aa_w}') 49 raise AssertionError(f'Face r: {rect_r} outside of active W: 0,{aa_w}') 51 raise AssertionError(f'Face t: {rect_t} outside active H: 0,{aa_h}') 53 raise AssertionError(f'Face b: {rect_b} outside active H: 0,{aa_h}') 64 raise AssertionError(f'Face l: {l}, r: {r}, left eye x: {l_eye_x}') 66 raise AssertionError(f'Face t: {t}, b: {b}, left eye y: {l_eye_y}') 68 raise AssertionError(f'Face l: {l}, r: {r}, right eye x: {r_eye_x}') 70 raise AssertionError(f'Face t: {t}, b: {b}, right eye y: {r_eye_y}') [all …]
|
/cts/tests/tests/tv/src/android/media/tv/tuner/cts/ |
D | TunerTest.java | 394 Filter f = mTuner.openFilter( in testAvSyncId() local 406 f.configure(config); in testAvSyncId() 407 int id = mTuner.getAvSyncHwId(f); in testAvSyncId() 415 Filter f = mTuner.openFilter( in testReadFilter() local 417 assertNotNull(f); in testReadFilter() 418 assertNotEquals(Tuner.INVALID_FILTER_ID, f.getId()); in testReadFilter() 420 assertNotEquals(Tuner.INVALID_FILTER_ID_LONG, f.getIdLong()); in testReadFilter() 422 assertEquals(Tuner.INVALID_FILTER_ID_LONG, f.getIdLong()); in testReadFilter() 438 f.configure(config); in testReadFilter() 439 f.setMonitorEventMask( in testReadFilter() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | AbiTest.java | 72 for (File f : files) { in checkElfFilesInDirectory() 73 if (f.isDirectory()) { in checkElfFilesInDirectory() 74 checkElfFilesInDirectory(f); in checkElfFilesInDirectory() 75 } else if (f.getName().endsWith(".so") || f.canExecute()) { in checkElfFilesInDirectory() 78 elf = ReadElf.read(f); in checkElfFilesInDirectory() 98 private static boolean isSymbolicLink(File f) throws Exception { in isSymbolicLink() argument 99 return !f.getAbsolutePath().equals(f.getCanonicalPath()); in isSymbolicLink()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | camera_response_fast.rsh | 14 // that f(0) = 0 and f(1) = 1. The function and its inverse is 17 // f(q) = ((e^b + 1) * q^a / (e^b * q^a + 1))^c 18 // f^-1(q) = (x^(1/c) / (e^b - e^b * x^(1/c) + 1))^(1/a) 27 static const float kDefaultA = 2.0f; 28 static const float kDefaultB = 4.0f; 29 static const float kDefaultC = 3.0f; 39 const float x1 = (exp_b + 1.0f) * pow_va; 40 const float x2 = exp_b * pow_va + 1.0f; 45 const float pow_vc = pow(v, 1.0f / kDefaultC); 46 const float x2 = exp(kDefaultB) * (1.0f - pow_vc) + 1.0f; [all …]
|