/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 | 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 …]
|
D | intrinsic_resize.rscript | 26 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3 27 + x * (3.f * (p1 - p2) + p3 - p0))); 31 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3 32 + x * (3.f * (p1 - p2) + p3 - p0))); 36 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3 37 + x * (3.f * (p1 - p2) + p3 - p0))); 41 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3 42 + x * (3.f * (p1 - p2) + p3 - p0))); 46 float xf = (x + 0.5f) * scaleX - 0.5f; 47 float yf = (y + 0.5f) * scaleY - 0.5f; [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 | ScriptGroupTest.java | 133 float f[] = new float[9]; in testScriptGroupFieldConnection() local 134 f[0] = 0.f; f[1] = -1.f; f[2] = 0.f; in testScriptGroupFieldConnection() 135 f[3] = -1.f; f[4] = 5.f; f[5] = -1.f; in testScriptGroupFieldConnection() 136 f[6] = 0.f; f[7] = -1.f; f[8] = 0.f; in testScriptGroupFieldConnection() 138 mConvolve3x3.setCoefficients(f); in testScriptGroupFieldConnection() 181 float f[] = new float[9]; in testScriptGroupDisconnectedDAG() local 182 f[0] = 0.f; f[1] = -1.f; f[2] = 0.f; in testScriptGroupDisconnectedDAG() 183 f[3] = -1.f; f[4] = 5.f; f[5] = -1.f; in testScriptGroupDisconnectedDAG() 184 f[6] = 0.f; f[7] = -1.f; f[8] = 0.f; in testScriptGroupDisconnectedDAG() 186 mConvolve3x3.setCoefficients(f); in testScriptGroupDisconnectedDAG() [all …]
|
D | intrinsic_3dlut.rscript | 29 gCoordMul = (float4)(1.f / 255.f) * convert_float4(gDims - 1); 36 float4 f = baseCoord - convert_float4(coord1); 47 float4 yz00 = mix(v000, v100, f.x); 48 float4 yz10 = mix(v010, v110, f.x); 49 float4 yz01 = mix(v001, v101, f.x); 50 float4 yz11 = mix(v011, v111, f.x); 52 float4 z0 = mix(yz00, yz10, f.y); 53 float4 z1 = mix(yz01, yz11, f.y); 55 float4 v = mix(z0, z1, f.z); 57 v = clamp(v, 0.f, 255.f); [all …]
|
D | sample.rscript | 18 float allowedDelta = 10.0f; 70 float4 fLOD04 = fLOD0*0.6f + fLOD1*0.4f; 71 float4 fLOD06 = fLOD0*0.4f + fLOD1*0.6f; 92 float lod = 0.4f; 95 lod = 0.6f; 99 lod = 0.0f; 103 lod = 1.0f; 107 lod = 2.0f; 111 lod = 3.0f; 115 lod = 4.0f; [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/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 | VolumeShaperTest.java | 73 .setCurve(new float[] { 0.f, 1.f } /* times */, 74 new float[] { 0.f, 0.f } /* volumes */) 82 .setCurve(new float[] { 0.f, 1.f } /* times */, 83 new float[] { 1.f, 0.2f } /* volumes */) 113 .setCurve(new float[] { 0.f, 1.f } /* times */, 114 new float[] { -80.f, 0.f } /* volumes */) 122 .setCurve(new float[] { 0.f, 1.f } /* times */, 123 new float[] { 0.f, 1.f } /* volumes */) 142 .setCurve(new float[] { 0.f, 0.3f, 0.7f, 1.f } /* times */, 143 new float[] { 0.f, 0.5f, 0.5f, 1.f } /* volumes */) [all …]
|
/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.0f); in testRotateX() 107 float[] f = new float[9]; in testRotateY() local [all …]
|
/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/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/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | camera_response.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; 47 const float x1 = (exp_b + 1.0f) * pow_va; 48 const float x2 = exp_b * pow_va + 1.0f; 54 const float pow_vc = pow(v, 1.0f / camera_response->c); 55 const float x2 = exp(camera_response->b) * (1.0f - pow_vc) + 1.0f; [all …]
|
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 …]
|
/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()
|