Home
last modified time | relevance | path

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

12345678910>>...20

/cts/tests/tests/graphics/src/android/graphics/cts/
DLinearGradientTest.java32 Bitmap b; in testLinearGradient() local
38 b = drawLinearGradient(lg); in testLinearGradient()
41 assertEquals(b.getPixel(10, 10), b.getPixel(20, 10)); in testLinearGradient()
43 assertTrue(Color.blue(b.getPixel(10, 0)) > Color.blue(b.getPixel(10, 5))); in testLinearGradient()
44 assertTrue(Color.blue(b.getPixel(10, 5)) > Color.blue(b.getPixel(10, 10))); in testLinearGradient()
45 assertTrue(Color.green(b.getPixel(10, 0)) < Color.green(b.getPixel(10, 5))); in testLinearGradient()
46 assertTrue(Color.green(b.getPixel(10, 5)) < Color.green(b.getPixel(10, 10))); in testLinearGradient()
48 assertTrue(Color.green(b.getPixel(10, 15)) > Color.green(b.getPixel(10, 20))); in testLinearGradient()
49 assertTrue(Color.green(b.getPixel(10, 20)) > Color.green(b.getPixel(10, 25))); in testLinearGradient()
50 assertTrue(Color.red(b.getPixel(10, 15)) < Color.red(b.getPixel(10, 20))); in testLinearGradient()
[all …]
DBitmapFactoryTest.java110 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start, in testDecodeResource1() local
112 assertNotNull(b); in testDecodeResource1()
114 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeResource1()
115 assertEquals(START_WIDTH, b.getWidth()); in testDecodeResource1()
121 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start); in testDecodeResource2() local
122 assertNotNull(b); in testDecodeResource2()
124 assertEquals(START_HEIGHT * mTargetDensity / mDefaultDensity, b.getHeight(), 1.1); in testDecodeResource2()
125 assertEquals(START_WIDTH * mTargetDensity / mDefaultDensity, b.getWidth(), 1.1); in testDecodeResource2()
132 Bitmap b = BitmapFactory.decodeResourceStream(mRes, value, is, r, mOpt1); in testDecodeResourceStream() local
133 assertNotNull(b); in testDecodeResourceStream()
[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/tools/dex-tools/src/dex/reader/
DDexFileReader.java33 private DexBuffer b; field in DexFileReader
69 this.b = buffer; in read()
101 return new DexFileImpl(b.createCopy(), stringPool, typeIds, in read()
108 b.readBytes(magic); in readMagic()
114 checksum = b.readUInt(); in readChecksum()
119 b.readBytes(signature); in readSignature()
124 fileSize = b.readUInt(); in readFileSize()
129 headerSize = b.readUInt(); in readHeaderSize()
134 endianTag = b.readUInt(); in readEndianTag()
140 size[attribute] = b.readUInt(); in readSize()
[all …]
DDexBuffer.java28 private ByteBuffer b; field in DexBuffer
62 b = buffer.asReadOnlyBuffer(); in initialize()
63 b.clear(); in initialize()
64 b.order(ByteOrder.LITTLE_ENDIAN); in initialize()
68 b.position(offset); in setPosition()
72 b.get(dst, 0, dst.length); in readBytes()
83 value = (b.get() & 0xFF); in readUleb128()
97 tmp = b.get() & 0xFF; in readInt()
110 tmp = b.get() & 0xFF; in readShort()
123 tmp = b.get() & 0xFF; in readChar()
[all …]
DDexFileImpl.java73 StringBuilder b = new StringBuilder(); in toString() local
74 b.append("StringPool:\n").append(Arrays.toString(stringPool)); in toString()
75 b.append("\nTypes:\n"); in toString()
77 b.append(stringPool[typeIds[i]] + "\n"); in toString()
79 b.append("\nProtos:\n").append(Arrays.toString(protoIdItems)); in toString()
80 b.append("\nFields:\n").append(Arrays.toString(fieldIdItems)); in toString()
81 b.append("\nMethods:\n").append(Arrays.toString(methodIdItems)); in toString()
82 b.append("\nClasses:\n").append(Arrays.toString(classDefItems)); in toString()
83 return b.toString(); in toString()
/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/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/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.rs8 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/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/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/suite/audio_quality/test/
DLogTest.cpp46 int64_t b = 1; 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:
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 …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyLineActivity.java331 for (int b = 0; b < mBands; b++) { in toString()
333 if (mPointsPerBand[b] > 0) { in toString()
334 percent = 100.0 * (double)mInBoundPointsPerBand[b] / mPointsPerBand[b]; in toString()
338 b, mAverageEnergyPerBand[b], in toString()
339 mInBoundPointsPerBand[b], in toString()
340 mPointsPerBand[b], in toString()
342 (testInBand(b) ? "OK" : "Not Optimal"))); in toString()
354 public boolean testInBand(int b) { in testInBand() argument
355 if (b >= 0 && b < mBands && mPointsPerBand[b] > 0) { in testInBand()
356 if ((double)mInBoundPointsPerBand[b] / mPointsPerBand[b] > in testInBand()
[all …]
DAudioFrequencySpeakerActivity.java349 for (int b = 0; b < mBands; b++) { in toString()
351 if (mPointsPerBand[b] > 0) { in toString()
352 percent = 100.0 * (double)mInBoundPointsPerBand[b] / mPointsPerBand[b]; in toString()
356 b, mAverageEnergyPerBand[b], in toString()
357 mInBoundPointsPerBand[b], in toString()
358 mPointsPerBand[b], in toString()
360 (testInBand(b) ? "OK" : "Not Optimal"))); in toString()
374 public boolean testInBand(int b) { in testInBand() argument
375 if (b >= 0 && b < mBands && mPointsPerBand[b] > 0) { in testInBand()
376 if ((double)mInBoundPointsPerBand[b] / mPointsPerBand[b] > in testInBand()
[all …]
DAudioFrequencyUnprocessedActivity.java331 for (int b = 0; b < mBands; b++) { in toString()
333 if (mPointsPerBand[b] > 0) { in toString()
334 percent = 100.0 * (double) mInBoundPointsPerBand[b] / mPointsPerBand[b]; in toString()
338 b, mAverageEnergyPerBand[b], in toString()
339 mInBoundPointsPerBand[b], in toString()
340 mPointsPerBand[b], in toString()
342 (testInBand(b) ? "OK" : "Not Optimal"))); in toString()
354 public boolean testInBand(int b) { in testInBand() argument
355 if (b >= 0 && b < mBands && mPointsPerBand[b] > 0) { in testInBand()
356 if ((double) mInBoundPointsPerBand[b] / mPointsPerBand[b] > in testInBand()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java67 public static double calcDifferenceMetric(Bitmap a, Bitmap b) { in calcDifferenceMetric() argument
68 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) { in calcDifferenceMetric()
70 a.getWidth() + "x" + a.getHeight() + ", b=" + b.getWidth() + "x" + in calcDifferenceMetric()
71 b.getHeight()); in calcDifferenceMetric()
78 b.getPixels(bPixels, /*offset*/0, /*stride*/b.getWidth(), /*x*/0, /*y*/0, b.getWidth(), in calcDifferenceMetric()
79 b.getHeight()); in calcDifferenceMetric()
/cts/tests/app/src/android/app/cts/
DTimePickerDialogTest.java71 Bundle b = tD.onSaveInstanceState(); in testSaveInstanceState() local
73 assertEquals(TARGET_HOUR, b.getInt(HOUR)); in testSaveInstanceState()
74 assertEquals(TARGET_MINUTE, b.getInt(MINUTE)); in testSaveInstanceState()
75 assertTrue(b.getBoolean(IS_24_HOUR)); in testSaveInstanceState()
82 b = tD.onSaveInstanceState(); in testSaveInstanceState()
84 assertEquals(TARGET_HOUR, b.getInt(HOUR)); in testSaveInstanceState()
85 assertEquals(minute, b.getInt(MINUTE)); in testSaveInstanceState()
86 assertFalse(b.getBoolean(IS_24_HOUR)); in testSaveInstanceState()
119 Bundle b = timePickerDialog.onSaveInstanceState(); in testUpdateTime() local
121 assertEquals(TARGET_HOUR, b.getInt(HOUR)); in testUpdateTime()
[all …]
/cts/apps/CameraITS/tests/scene1/
Dtest_format_combos.py78 for b,burst_len in enumerate(burst_lens):
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)

12345678910>>...20