Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 850) sorted by relevance

12345678910>>...34

/cts/tests/tests/graphics/src/android/graphics/cts/
DANativeWindowTest.java224 private void matrixMultiply(float[] result, float[] a, float[] b, float[] tmp) { in matrixMultiply() argument
225 tmp[ 0] = a[ 0]*b[ 0] + a[ 4]*b[ 1] + a[ 8]*b[ 2] + a[12]*b[ 3]; in matrixMultiply()
226 tmp[ 1] = a[ 1]*b[ 0] + a[ 5]*b[ 1] + a[ 9]*b[ 2] + a[13]*b[ 3]; in matrixMultiply()
227 tmp[ 2] = a[ 2]*b[ 0] + a[ 6]*b[ 1] + a[10]*b[ 2] + a[14]*b[ 3]; in matrixMultiply()
228 tmp[ 3] = a[ 3]*b[ 0] + a[ 7]*b[ 1] + a[11]*b[ 2] + a[15]*b[ 3]; in matrixMultiply()
230 tmp[ 4] = a[ 0]*b[ 4] + a[ 4]*b[ 5] + a[ 8]*b[ 6] + a[12]*b[ 7]; in matrixMultiply()
231 tmp[ 5] = a[ 1]*b[ 4] + a[ 5]*b[ 5] + a[ 9]*b[ 6] + a[13]*b[ 7]; in matrixMultiply()
232 tmp[ 6] = a[ 2]*b[ 4] + a[ 6]*b[ 5] + a[10]*b[ 6] + a[14]*b[ 7]; in matrixMultiply()
233 tmp[ 7] = a[ 3]*b[ 4] + a[ 7]*b[ 5] + a[11]*b[ 6] + a[15]*b[ 7]; in matrixMultiply()
235 tmp[ 8] = a[ 0]*b[ 8] + a[ 4]*b[ 9] + a[ 8]*b[10] + a[12]*b[11]; in matrixMultiply()
[all …]
DLinearGradientTest.java47 Bitmap b; in testLinearGradient() local
53 b = drawLinearGradient(lg, Config.ARGB_8888); in testLinearGradient()
56 assertEquals(b.getPixel(10, 10), b.getPixel(20, 10)); in testLinearGradient()
58 assertTrue(Color.blue(b.getPixel(10, 0)) > Color.blue(b.getPixel(10, 5))); in testLinearGradient()
59 assertTrue(Color.blue(b.getPixel(10, 5)) > Color.blue(b.getPixel(10, 10))); in testLinearGradient()
60 assertTrue(Color.green(b.getPixel(10, 0)) < Color.green(b.getPixel(10, 5))); in testLinearGradient()
61 assertTrue(Color.green(b.getPixel(10, 5)) < Color.green(b.getPixel(10, 10))); in testLinearGradient()
63 assertTrue(Color.green(b.getPixel(10, 15)) > Color.green(b.getPixel(10, 20))); in testLinearGradient()
64 assertTrue(Color.green(b.getPixel(10, 20)) > Color.green(b.getPixel(10, 25))); in testLinearGradient()
65 assertTrue(Color.red(b.getPixel(10, 15)) < Color.red(b.getPixel(10, 20))); in testLinearGradient()
[all …]
DBitmapColorSpaceTest.java93 Bitmap b = Bitmap.createBitmap(32, 32, config, false, requested); in createWithColorSpace() local
94 ColorSpace cs = b.getColorSpace(); in createWithColorSpace()
106 Bitmap b = Bitmap.createBitmap(32, 32, config, false, requested); in createWithColorSpace() local
107 ColorSpace cs = b.getColorSpace(); in createWithColorSpace()
122 Bitmap b = Bitmap.createBitmap(32, 32, config, false, requested); in createWithColorSpace() local
123 ColorSpace cs = b.getColorSpace(); in createWithColorSpace()
220 Bitmap b = BitmapFactory.decodeResource(mResources, R.drawable.robot); in sRGB() local
221 ColorSpace cs = b.getColorSpace(); in sRGB()
225 b = Bitmap.createBitmap(b, 0, 0, b.getWidth() / 2, b.getHeight() / 2); in sRGB()
226 cs = b.getColorSpace(); in sRGB()
[all …]
DTypefaceCustomFallbackBuilderTest.java51 FontFamily.Builder b = null; in createFullFamilyTypeface() local
56 if (b == null) { in createFullFamilyTypeface()
57 b = new FontFamily.Builder(new Font.Builder(am, in createFullFamilyTypeface()
60 b.addFont(new Font.Builder(am, in createFullFamilyTypeface()
64 return new Typeface.CustomFallbackBuilder(b.build()).build(); in createFullFamilyTypeface()
136 FontFamily.Builder b = null; in testFamily_selectStyleByBuilder() local
141 if (b == null) { in testFamily_selectStyleByBuilder()
142 b = new FontFamily.Builder(new Font.Builder(am, in testFamily_selectStyleByBuilder()
145 b.addFont(new Font.Builder(am, in testFamily_selectStyleByBuilder()
149 final Typeface typeface = new Typeface.CustomFallbackBuilder(b.build()) in testFamily_selectStyleByBuilder()
[all …]
/cts/tests/tests/media/libmediandkjni/
Dmd5_utils.cpp160 /*register*/ UWORD32 a, b, c, d; in MD5Transform() local
163 b = buf[1]; in MD5Transform()
167 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in MD5Transform()
168 MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); in MD5Transform()
169 MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); in MD5Transform()
170 MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); in MD5Transform()
171 MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); in MD5Transform()
172 MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12); in MD5Transform()
173 MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17); in MD5Transform()
174 MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22); in MD5Transform()
[all …]
/cts/tests/tests/uirendering/jni/
DNativeTestHelpers.h34 #define ASSERT_EQ(a, b) \ argument
35 ASSERT((a) == (b), "assert failed on (" #a " == " #b ") at " __FILE__ ":%d", __LINE__)
36 #define ASSERT_NE(a, b) \ argument
37 ASSERT((a) != (b), "assert failed on (" #a " != " #b ") at " __FILE__ ":%d", __LINE__)
38 #define ASSERT_GT(a, b) \ argument
39 ASSERT((a) > (b), "assert failed on (" #a " > " #b ") at " __FILE__ ":%d", __LINE__)
40 #define ASSERT_GE(a, b) \ argument
41 ASSERT((a) >= (b), "assert failed on (" #a " >= " #b ") at " __FILE__ ":%d", __LINE__)
42 #define ASSERT_LT(a, b) \ argument
43 ASSERT((a) < (b), "assert failed on (" #a " < " #b ") at " __FILE__ ":%d", __LINE__)
[all …]
/cts/tests/tests/graphics/jni/
DNativeTestHelpers.h32 #define ASSERT_EQ(a, b) \ argument
33 ASSERT((a) == (b), "assert failed on (" #a " == " #b ") at " __FILE__ ":%d", __LINE__)
34 #define ASSERT_NE(a, b) \ argument
35 ASSERT((a) != (b), "assert failed on (" #a " != " #b ") at " __FILE__ ":%d", __LINE__)
36 #define ASSERT_GT(a, b) \ argument
37 ASSERT((a) > (b), "assert failed on (" #a " > " #b ") at " __FILE__ ":%d", __LINE__)
38 #define ASSERT_GE(a, b) \ argument
39 ASSERT((a) >= (b), "assert failed on (" #a " >= " #b ") at " __FILE__ ":%d", __LINE__)
40 #define ASSERT_LT(a, b) \ argument
41 ASSERT((a) < (b), "assert failed on (" #a " < " #b ") at " __FILE__ ":%d", __LINE__)
[all …]
/cts/tests/tests/rscpp/librscpptest/
Drs_jni_type.cpp39 Type::Builder b(mRS, e); in testTypeBuilderHelper() local
46 b.setMipmaps(useMips); in testTypeBuilderHelper()
47 b.setFaces(useFaces); in testTypeBuilderHelper()
50 b.setX(x); in testTypeBuilderHelper()
51 b.setY(y); in testTypeBuilderHelper()
52 result &= (b.create() != nullptr); in testTypeBuilderHelper()
113 Type::Builder b(mRS, Element::F32(mRS)); in Java_android_cts_rscpp_RSTypeTest_testGetCount() local
119 b.setFaces(useFaces); in Java_android_cts_rscpp_RSTypeTest_testGetCount()
120 b.setX(x); in Java_android_cts_rscpp_RSTypeTest_testGetCount()
121 b.setY(y); in Java_android_cts_rscpp_RSTypeTest_testGetCount()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DTypeTest.java24 void testBuilderSizes(Type.Builder b, int min, int max) { in testBuilderSizes() argument
27 b.setX(x).setY(y); in testBuilderSizes()
28 b.create(); in testBuilderSizes()
34 Type.Builder b = new Type.Builder(mRS, e); in testTypeBuilderHelper() local
41 b.setMipmaps(useMips); in testTypeBuilderHelper()
42 b.setFaces(useFaces); in testTypeBuilderHelper()
43 testBuilderSizes(b, 1, 8); in testTypeBuilderHelper()
85 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testGetCount() local
91 b.setFaces(useFaces); in testGetCount()
92 b.setX(x).setY(y); in testGetCount()
[all …]
DTarget.java117 Floaty newFloaty(double a, double b) { in newFloaty() argument
118 return new Floaty(mFloatSize, new double [] { a, b }); in newFloaty()
121 Floaty newFloaty(double a, double b, double c) { in newFloaty() argument
122 return new Floaty(mFloatSize, new double [] { a, b, c }); in newFloaty()
125 Floaty newFloaty(double a, double b, double c, double d) { in newFloaty() argument
126 return new Floaty(mFloatSize, new double [] { a, b, c, d }); in newFloaty()
129 Floaty newFloaty(double a, double b, double c, double d, double e) { in newFloaty() argument
130 return new Floaty(mFloatSize, new double [] { a, b, c, d, e }); in newFloaty()
142 Floaty new32(float a, float b) { in new32() argument
143 return new Floaty(32, new double [] { a, b }); in new32()
[all …]
Dfloat16_arithmetic.rscript8 half b = rsGetElementAt_half(gInput, y);
9 return a + b;
14 half b = rsGetElementAt_half(gInput, y);
15 return a - b;
20 half b = rsGetElementAt_half(gInput, y);
21 return a * b;
26 half b = rsGetElementAt_half(gInput, y);
27 return a / b;
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int_lit8/d/
DT_rsub_int_lit8_1.java22 int b = 4; in run() local
23 return b-a; in run()
27 int b = 60; in run1() local
28 return b-a; in run1()
32 int b = 20; in run2() local
33 return b-a; in run2()
37 int b = -25; in run3() local
38 return b-a; in run3()
42 int b = -70; in run4() local
43 return b-a; in run4()
[all …]
DT_rsub_int_lit8_2.java22 int b = 123; in run() local
23 return b-a; in run()
27 int b = -123; in run1() local
28 return b-a; in run1()
32 int b = 0; in run2() local
33 return b-a; in run2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int/d/
DT_rsub_int_1.java22 int b = 4; in run() local
23 return b-a; in run()
27 int b = 60; in run1() local
28 return b-a; in run1()
32 int b = 20; in run2() local
33 return b-a; in run2()
37 int b = -25; in run3() local
38 return b-a; in run3()
42 int b = -70; in run4() local
43 return b-a; in run4()
[all …]
DT_rsub_int_2.java22 int b = 255; in run() local
23 return b-a; in run()
27 int b = -32768; in run1() local
28 return b-a; in run1()
32 int b = 0; in run2() local
33 return b-a; in run2()
/cts/tests/sensor/jni/
DnativeTestHelper.h35 #define ASSERT_EQ(a, b) \ argument
36 ASSERT((a) == (b), "assert failed on (" #a " == " #b ") at " __FILE__ ":%d", __LINE__)
37 #define ASSERT_NE(a, b) \ argument
38 ASSERT((a) != (b), "assert failed on (" #a " != " #b ") at " __FILE__ ":%d", __LINE__)
39 #define ASSERT_GT(a, b) \ argument
40 ASSERT((a) > (b), "assert failed on (" #a " > " #b ") at " __FILE__ ":%d", __LINE__)
41 #define ASSERT_GE(a, b) \ argument
42 ASSERT((a) >= (b), "assert failed on (" #a " >= " #b ") at " __FILE__ ":%d", __LINE__)
43 #define ASSERT_LT(a, b) \ argument
44 ASSERT((a) < (b), "assert failed on (" #a " < " #b ") at " __FILE__ ":%d", __LINE__)
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DColorBufferTest.java47 float b = 0.0f; in test_RGBA_1001() local
49 final float[] vertexColors = getVertexColors(r, g, b, a); in test_RGBA_1001()
51 float[] expectedColor = {r, g, b, a}; in test_RGBA_1001()
65 float b = 0.0f; in test_RGBA_1101() local
67 final float[] vertexColors = getVertexColors(r, g, b, a); in test_RGBA_1101()
68 float[] expectedColor = {r, g, b, a}; in test_RGBA_1101()
83 float b = 1.0f; in test_RGBA_1111() local
85 final float[] vertexColors = getVertexColors(r, g, b, a); in test_RGBA_1111()
87 float[] expectedColor = {r, g, b, a}; in test_RGBA_1111()
102 float b = 0.0f; in test_RGBA_0101() local
[all …]
DNativeColorBufferTest.java42 float b = 0.0f; in test_RGBA_1001() local
44 final float[] vertexColors = getVertexColors(r, g, b, a); in test_RGBA_1001()
46 float[] expectedColor = {r, g, b, a}; in test_RGBA_1001()
60 float b = 0.0f; in test_RGBA_1101() local
62 final float[] vertexColors = getVertexColors(r, g, b, a); in test_RGBA_1101()
63 float[] expectedColor = {r, g, b, a}; in test_RGBA_1101()
78 float b = 1.0f; in test_RGBA_1111() local
80 final float[] vertexColors = getVertexColors(r, g, b, a); in test_RGBA_1111()
82 float[] expectedColor = {r, g, b, a}; in test_RGBA_1111()
97 float b = 0.0f; in test_RGBA_0101() local
[all …]
/cts/tests/tests/telephony/current/EmbmsMiddlewareTestApp/src/android/telephony/cts/embmstestapp/
DCtsDownloadService.java154 Bundle b = new Bundle();
155 b.putString(METHOD_NAME, METHOD_INITIALIZE);
156 b.putInt(ARGUMENT_SUBSCRIPTION_ID, subscriptionId);
157 mReceivedCalls.add(b);
192 Bundle b = new Bundle();
193 b.putString(METHOD_NAME, METHOD_REQUEST_UPDATE_FILE_SERVICES);
194 b.putInt(ARGUMENT_SUBSCRIPTION_ID, subscriptionId);
195 b.putStringArrayList(ARGUMENT_SERVICE_CLASSES, new ArrayList<>(serviceClasses));
196 mReceivedCalls.add(b);
229 Bundle b = new Bundle();
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DDspWindow.java102 private static boolean fillTriangular(DspBufferDouble b, int overlap) { in fillTriangular() argument
103 int size = b.getSize(); in fillTriangular()
114 b.mData[i] = value; in fillTriangular()
120 b.mData[i] = 1.0; in fillTriangular()
127 b.mData[i] = value; in fillTriangular()
133 private static boolean fillHamming(DspBufferDouble b, int overlap) { in fillHamming() argument
134 int size = b.getSize(); in fillHamming()
147 b.mData[i] = value; in fillHamming()
153 b.mData[i] = 1.0; in fillHamming()
162 b.mData[i] = value; in fillHamming()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyLineActivity.java307 for (int b = 0; b < mBands; b++) { in toString()
309 if (mPointsPerBand[b] > 0) { in toString()
310 percent = 100.0 * (double)mInBoundPointsPerBand[b] / mPointsPerBand[b]; in toString()
314 b, mAverageEnergyPerBand[b], in toString()
315 mInBoundPointsPerBand[b], in toString()
316 mPointsPerBand[b], in toString()
318 (testInBand(b) ? "OK" : "Not Optimal"))); in toString()
330 public boolean testInBand(int b) { in testInBand() argument
331 if (b >= 0 && b < mBands && mPointsPerBand[b] > 0) { in testInBand()
332 if ((double)mInBoundPointsPerBand[b] / mPointsPerBand[b] > in testInBand()
[all …]
DAudioFrequencySpeakerActivity.java335 for (int b = 0; b < mBands; b++) { in toString()
337 if (mPointsPerBand[b] > 0) { in toString()
338 percent = 100.0 * (double)mInBoundPointsPerBand[b] / mPointsPerBand[b]; in toString()
342 b, mAverageEnergyPerBand[b], in toString()
343 mInBoundPointsPerBand[b], in toString()
344 mPointsPerBand[b], in toString()
346 (testInBand(b) ? "OK" : "Not Optimal"))); in toString()
360 public boolean testInBand(int b) { in testInBand() argument
361 if (b >= 0 && b < mBands && mPointsPerBand[b] > 0) { in testInBand()
362 if ((double)mInBoundPointsPerBand[b] / mPointsPerBand[b] > in testInBand()
[all …]
/cts/tests/framework/base/windowmanager/
DOWNERS2 # Bug template url: https://b.corp.google.com/issues/new?component=316275&template=1018192 = per-fi…
4 # Bug template url: https://b.corp.google.com/issues/new?component=943781&template=1502790 = per-fi…
6 # Bug template url: https://b.corp.google.com/issues/new?component=339570&template=1037597 = per-fi…
8 # Bug template url: https://b.corp.google.com/issues/new?component=928594&template=1490782 = per-fi…
10 # Bug template url: https://b.corp.google.com/issues/new?component=316245&template=1018194 = per-fi…
12 # Bug template url: https://b.corp.google.com/issues/new?component=316020&template=1018174 = per-fi…
14 # Bug template url: https://b.corp.google.com/issues/new?component=316280&template=1018196 = per-fi…
16 # Bug template url: https://b.corp.google.com/issues/new?component=316251&template=1018197 = per-fi…
18 # Bug template url: https://b.corp.google.com/issues/new?component=928697&template=1490890 = per-fi…
20 # Bug template url: https://b.corp.google.com/issues/new?component=970984&template=1516678 = per-fi…
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DServiceWorkerWebSettingsTest.java87 for (boolean b : new boolean[]{false, true}) { in testAllowContentAccess()
88 mSettings.setAllowContentAccess(b); in testAllowContentAccess()
89 assertEquals(b, mSettings.getAllowContentAccess()); in testAllowContentAccess()
104 for (boolean b : new boolean[]{false, true}) { in testAllowFileAccess()
105 mSettings.setAllowFileAccess(b); in testAllowFileAccess()
106 assertEquals(b, mSettings.getAllowFileAccess()); in testAllowFileAccess()
125 for (boolean b : new boolean[]{false, true}) { in testBlockNetworkLoads()
126 mSettings.setBlockNetworkLoads(b); in testBlockNetworkLoads()
127 assertEquals(b, mSettings.getBlockNetworkLoads()); in testBlockNetworkLoads()
/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:
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:
54 c3:68:2a:23:5b:dc:d8:b2:1f:29:d9:f3:8f:55:0c:
57 65:c1:31:ba:a9:09:e8:b8:8d:a2:4b:99:40:f2:98:
69 7b:71:e1:4c:ac:bf:08:e3:08:72:e6:fd:8c:db:bd:84:01:ac:
71 0a:12:ef:4d:55:d5:71:88:8e:10:24:e8:79:46:09:bb:7b:8f:
73 70:0a:9a:b5:c9:3b:48:12:13:0b:a6:ed:08:6d:5b:0d:7e:f2:
74 13:fc:87:a6:7c:60:10:a9:60:63:64:1c:84:8d:4a:13:5b:60:
[all …]

12345678910>>...34