Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 170) sorted by relevance

1234567

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DMatrixTest.rs5 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 …]
DIntrinsicConvolve5x5.java77 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 …]
DImageProcessingTest.java212 float f[] = new float[9]; in testConvolve3x3() local
213 f[0] = 0.f; f[1] = -1.f; f[2] = 0.f; in testConvolve3x3()
214 f[3] = -1.f; f[4] = 5.f; f[5] = -1.f; in testConvolve3x3()
215 f[6] = 0.f; f[7] = -1.f; f[8] = 0.f; in testConvolve3x3()
217 mConvolve3x3.setCoefficients(f); in testConvolve3x3()
235 float f[] = new float[25]; in testConvolve5x5() local
236 f[0] = -1.f; f[1] = -3.f; f[2] = -4.f; f[3] = -3.f; f[4] = -1.f; in testConvolve5x5()
237 f[5] = -3.f; f[6] = 0.f; f[7] = 6.f; f[8] = 0.f; f[9] = -3.f; in testConvolve5x5()
238 f[10]= -4.f; f[11]= 6.f; f[12]= 20.f; f[13]= 6.f; f[14]= -4.f; in testConvolve5x5()
239 f[15]= -3.f; f[16]= 0.f; f[17]= 6.f; f[18]= 0.f; f[19]= -3.f; in testConvolve5x5()
[all …]
DIntrinsicResize.java101 testResize(inX, inX, Element.DataType.UNSIGNED_8, 4, 1.f, 1.f); in test_U8_4_SCALE10_10_inSqure()
105 testResize(inX, inX, Element.DataType.UNSIGNED_8, 3, 1.f, 1.f); in test_U8_3_SCALE10_10_inSqure()
109 testResize(inX, inX, Element.DataType.UNSIGNED_8, 2, 1.f, 1.f); in test_U8_2_SCALE10_10_inSqure()
113 testResize(inX, inX, Element.DataType.UNSIGNED_8, 1, 1.f, 1.f); in test_U8_1_SCALE10_10_inSqure()
118 testResize(inX, inX, Element.DataType.UNSIGNED_8, 4, 2.f, 2.f); in test_U8_4_SCALE20_20_inSqure()
122 testResize(inX, inX, Element.DataType.UNSIGNED_8, 3, 2.f, 2.f); in test_U8_3_SCALE20_20_inSqure()
126 testResize(inX, inX, Element.DataType.UNSIGNED_8, 2, 2.f, 2.f); in test_U8_2_SCALE20_20_inSqure()
130 testResize(inX, inX, Element.DataType.UNSIGNED_8, 1, 2.f, 2.f); in test_U8_1_SCALE20_20_inSqure()
135 testResize(inX, inX, Element.DataType.UNSIGNED_8, 4, 0.5f, 2.f); in test_U8_4_SCALE05_20_inSqure()
139 testResize(inX, inX, Element.DataType.UNSIGNED_8, 3, 0.5f, 2.f); in test_U8_3_SCALE05_20_inSqure()
[all …]
DIntrinsicConvolve3x3.java24 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()
DTarget.java189 Floaty f = new Floaty(a); in abs() local
190 f.mValue = Math.abs(a.mValue); in abs()
193 f.mMinValue = -a.mMaxValue; in abs()
194 f.mMaxValue = -a.mMinValue; in abs()
197 f.mMinValue = 0.f; in abs()
198 f.mMaxValue = Math.max(-a.mMinValue, a.mMaxValue); in abs()
200 return f; in abs()
209 double f = Math.sqrt(a.mValue); in sqrt() local
219 values = new double[]{f, 0., min, max}; in sqrt()
221 values = new double[]{f, min, max}; in sqrt()
[all …]
Dintrinsic_3dlut.rs29 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 …]
Dyuv.rs60 float4 yuv_U_values = {0.f, -0.392f * 0.003921569f, +2.02 * 0.003921569f, 0.f};
61 float4 yuv_V_values = {1.603f * 0.003921569f, -0.815f * 0.003921569f, 0.f, 0.f};
63 float4 color = (float)y * 0.003921569f;
64 float4 fU = ((float)u) - 128.f;
65 float4 fV = ((float)v) - 128.f;
69 color = clamp(color, 0.f, 1.f);
Dvector.rs4 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 …]
Dsample.rs18 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 …]
DScriptGroupTest.java120 float f[] = new float[9]; in testScriptGroupFieldConnection() local
121 f[0] = 0.f; f[1] = -1.f; f[2] = 0.f; in testScriptGroupFieldConnection()
122 f[3] = -1.f; f[4] = 5.f; f[5] = -1.f; in testScriptGroupFieldConnection()
123 f[6] = 0.f; f[7] = -1.f; f[8] = 0.f; in testScriptGroupFieldConnection()
125 mConvolve3x3.setCoefficients(f); in testScriptGroupFieldConnection()
163 float f[] = new float[9]; in testScriptGroupDisconnectedDAG() local
164 f[0] = 0.f; f[1] = -1.f; f[2] = 0.f; in testScriptGroupDisconnectedDAG()
165 f[3] = -1.f; f[4] = 5.f; f[5] = -1.f; in testScriptGroupDisconnectedDAG()
166 f[6] = 0.f; f[7] = -1.f; f[8] = 0.f; in testScriptGroupDisconnectedDAG()
168 mConvolve3x3.setCoefficients(f); in testScriptGroupDisconnectedDAG()
[all …]
Dintrinsic_resize.rs26 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 …]
Dprimitives.rs16 float floatTest = 1.99f;
43 _RS_ASSERT(floatTest == 2.99f);
103 _RS_ASSERT(avt->f2.x == 1.0f);
104 _RS_ASSERT(avt->f2.y == 2.0f);
105 _RS_ASSERT(avt->f3.x == 1.0f);
106 _RS_ASSERT(avt->f3.y == 2.0f);
107 _RS_ASSERT(avt->f3.z == 3.0f);
108 _RS_ASSERT(avt->f4.x == 1.0f);
109 _RS_ASSERT(avt->f4.y == 2.0f);
110 _RS_ASSERT(avt->f4.z == 3.0f);
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DCameraTest.java51 float[] f = new float[9]; in testTranslate() local
52 m2.getValues(f); in testTranslate()
53 assertEquals(0.22291021f, f[0]); in testTranslate()
54 assertEquals(0.0f, f[1]); in testTranslate()
55 assertEquals(2.2291021f, f[2]); in testTranslate()
56 assertEquals(0.0f, f[3]); in testTranslate()
57 assertEquals(0.22291021f, f[4]); in testTranslate()
58 assertEquals(-6.241486f, f[5]); in testTranslate()
59 assertEquals(0.0f, f[6]); in testTranslate()
60 assertEquals(0.0f, f[7]); in testTranslate()
[all …]
/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSResizeTest.java95 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 …]
DRSConvolveTest.java41 coeffs[3] = 1.f; in testConvolve3x3()
42 coeffs[4] = 1.f; in testConvolve3x3()
43 coeffs[5] = 1.f; in testConvolve3x3()
80 coeffs[3] = 1.f; in testConvolve5x5()
81 coeffs[4] = 1.f; in testConvolve5x5()
82 coeffs[5] = 1.f; in testConvolve5x5()
89 coeffs[12] = 1.f; in testConvolve5x5()
90 coeffs[13] = 1.f; in testConvolve5x5()
91 coeffs[14] = 1.f; in testConvolve5x5()
98 coeffs[21] = 1.f; in testConvolve5x5()
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java159 File f = new File("/dev/diag"); in testDevDiagSane() local
160 assertFalse(f.canRead()); in testDevDiagSane()
161 assertFalse(f.canWrite()); in testDevDiagSane()
162 assertFalse(f.canExecute()); in testDevDiagSane()
167 File f = new File("/dev/mem"); in testDevMemSane() local
168 assertFalse(f.exists()); in testDevMemSane()
173 File f = new File("/dev/kmem"); in testDevkmemSane() local
174 assertFalse(f.exists()); in testDevkmemSane()
179 File f = new File("/dev/port"); in testDevPortSane() local
180 assertFalse(f.canRead()); in testDevPortSane()
[all …]
/cts/tools/utils/
Drm_dup_holo_imgs.py47 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/media/src/android/media/cts/
DParamsTest.java34 private static final float MAX_DEFAULT_TOLERANCE = 1/24.f;
58 assertTrue(p.getTolerance() >= 0.f in testSyncParamsDefaults()
100 float lastValue = 2.f; /* some initial value to avoid compile error */
101 for (float f : new float[] { 0.f, .1f, .9999f }) {
102 SyncParams q = p.setTolerance(f); // verify both initial set and update
106 assertEquals(f, p.getTolerance(), FLOAT_TOLERANCE);
108 lastValue = f;
113 for (float f : new float[] { -.0001f, 1.f }) {
115 p.setTolerance(f);
116 fail("set tolerance to " + f);
[all …]
/cts/tests/tests/os/src/android/os/cts/
DAbiTest.java48 for (File f : files) { in checkElfFilesInDirectory()
49 if (f.isDirectory()) { in checkElfFilesInDirectory()
50 checkElfFilesInDirectory(f); in checkElfFilesInDirectory()
51 } else if (f.getName().endsWith(".so") || f.canExecute()) { in checkElfFilesInDirectory()
54 elf = ReadElf.read(f); in checkElfFilesInDirectory()
66 private static boolean isSymbolicLink(File f) throws Exception { in isSymbolicLink() argument
67 return !f.getAbsolutePath().equals(f.getCanonicalPath()); in isSymbolicLink()
/cts/suite/audio_quality/test/
DLogTest.cpp50 int64_t f = 5; in TEST_F() local
51 printf("printf %lld %lld %lld %lld %lld %lld\n", a, b, c, d, e, f); in TEST_F()
52 LOGD( "logd %lld %lld %lld %lld %lld %lld", a, b, c, d, e, f); in TEST_F()
53 LOGV( "logv %lld %lld %lld %lld %lld %lld", a, b, c, d, e, f); in TEST_F()
54 LOGI( "logi %lld %lld %lld %lld %lld %lld", a, b, c, d, e, f); in TEST_F()
55 LOGW( "logw %lld %lld %lld %lld %lld %lld", a, b, c, d, e, f); in TEST_F()
56 LOGE( "loge %lld %lld %lld %lld %lld %lld", a, b, c, d, e, f); in TEST_F()
/cts/tests/tests/security/res/raw/
Dopenssl_heartbleed_test_cert.pem41 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/uirendering/src/android/uirendering/cts/bitmapcomparers/
DThresholdDifferenceComparer.rs18 float l1 = (idealPixel.x * 0.21f) + (idealPixel.y * 0.72f) + (idealPixel.z * 0.07f);
19 float l2 = (givenPixel.x * 0.21f) + (givenPixel.y * 0.72f) + (givenPixel.z * 0.07f);
/cts/apps/CameraITS/tests/scene1/
Dtest_format_combos.py77 for f,fmt_combo in enumerate(fmt_combos):
81 successes.append((n,r,f,b))
82 print "==> Success[%02d]: R%d F%d B%d" % (n,r,f,b)
93 "%s_n%02d_r%d_f%d_b%d_c%d.jpg"%(NAME,n,r,f,b,c))
97 print "==> Failure[%02d]: R%d F%d B%d" % (n,r,f,b)
98 failures.append((n,r,f,b))
109 for (n,r,f,b) in failures:
110 print " %02d: R%d F%d B%d" % (n,r,f,b)
112 for (n,r,f,b) in successes:
113 print " %02d: R%d F%d B%d" % (n,r,f,b)
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/
Draw_converter.rs59 float invFracX = 1.f - fracX;
60 float invFracY = 1.f - fracY;
68 return (x <= 0.0031308f) ? x * 12.92f : 1.055f * pow(x, 0.4166667f) - 0.055f;
95 float3 sorted = clamp(rgb, 0.f, 1.f);
124 minmax = native_powr(minmax, 3.f) * toneMapCoeffs.x +
125 native_powr(minmax, 2.f) * toneMapCoeffs.y +
172 finalRGB.x = 0.f;
173 finalRGB.y = 0.f;
174 finalRGB.z = 0.f;
178 return clamp(finalRGB, 0.f, 1.f);
[all …]

1234567