Home
last modified time | relevance | path

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

12345678910>>...18

/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.java111 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start, in testDecodeResource1() local
113 assertNotNull(b); in testDecodeResource1()
115 assertEquals(START_HEIGHT, b.getHeight()); in testDecodeResource1()
116 assertEquals(START_WIDTH, b.getWidth()); in testDecodeResource1()
122 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start); in testDecodeResource2() local
123 assertNotNull(b); in testDecodeResource2()
125 assertEquals(START_HEIGHT * mTargetDensity / mDefaultDensity, b.getHeight(), 1.1); in testDecodeResource2()
126 assertEquals(START_WIDTH * mTargetDensity / mDefaultDensity, b.getWidth(), 1.1); in testDecodeResource2()
133 Bitmap b = BitmapFactory.decodeResourceStream(mRes, value, is, r, mOpt1); in testDecodeResourceStream() local
134 assertNotNull(b); in testDecodeResourceStream()
[all …]
/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/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/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.java80 Floaty new32(float a, float b) { in new32() argument
81 return new Floaty(32, new double [] { a, b }); in new32()
84 Floaty new32(float a, float b, float c) { in new32() argument
85 return new Floaty(32, new double [] { a, b, c }); in new32()
88 Floaty new32(float a, float b, float c, float d) { in new32() argument
89 return new Floaty(32, new double [] { a, b, c, d }); in new32()
92 Floaty new32(float a, float b, float c, float d, float e) { in new32() argument
93 return new Floaty(32, new double [] { a, b, c, d, e }); in new32()
105 Floaty new64(double a, double b) { in new64() argument
106 return new Floaty(64, new double [] { a, b }); in new64()
[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/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/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/tests/tests/hardware/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/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyLineActivity.java317 for (int b = 0; b < mBands; b++) { in toString()
319 if (mPointsPerBand[b] > 0) { in toString()
320 percent = 100.0 * (double)mInBoundPointsPerBand[b] / mPointsPerBand[b]; in toString()
324 b, mAverageEnergyPerBand[b], in toString()
325 mInBoundPointsPerBand[b], in toString()
326 mPointsPerBand[b], in toString()
328 (testInBand(b) ? "OK" : "FAILED"))); in toString()
340 public boolean testInBand(int b) { in testInBand() argument
341 if (b >= 0 && b < mBands && mPointsPerBand[b] > 0) { in testInBand()
342 if ((double)mInBoundPointsPerBand[b] / mPointsPerBand[b] > in testInBand()
[all …]
DAudioFrequencySpeakerActivity.java359 for (int b = 0; b < mBands; b++) { in toString()
361 if (mPointsPerBand[b] > 0) { in toString()
362 percent = 100.0 * (double)mInBoundPointsPerBand[b] / mPointsPerBand[b]; in toString()
366 b, mAverageEnergyPerBand[b], in toString()
367 mInBoundPointsPerBand[b], in toString()
368 mPointsPerBand[b], in toString()
370 (testInBand(b) ? "OK" : "FAILED"))); in toString()
384 public boolean testInBand(int b) { in testInBand() argument
385 if (b >= 0 && b < mBands && mPointsPerBand[b] > 0) { in testInBand()
386 if ((double)mInBoundPointsPerBand[b] / mPointsPerBand[b] > in testInBand()
[all …]
DAudioFrequencyMicActivity.java457 for (int b = 0; b < mBands; b++) { in toString()
459 if (mPointsPerBand[b] > 0) { in toString()
460 percent = 100.0 * (double) mInBoundPointsPerBand[b] / mPointsPerBand[b]; in toString()
464 b, mAverageEnergyPerBand[b], in toString()
465 mInBoundPointsPerBand[b], in toString()
466 mPointsPerBand[b], in toString()
468 (testInBand(b) ? "OK" : "FAILED"))); in toString()
482 public boolean testInBand(int b) { in testInBand() argument
483 if (b >= 0 && b < mBands && mPointsPerBand[b] > 0) { in testInBand()
484 if ((double) mInBoundPointsPerBand[b] / mPointsPerBand[b] > in testInBand()
[all …]
/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/tests/tests/app/src/android/app/cts/
DTimePickerDialogTest.java69 Bundle b = tD.onSaveInstanceState(); in testSaveInstanceState() local
71 assertEquals(TARGET_HOUR, b.getInt(HOUR)); in testSaveInstanceState()
72 assertEquals(TARGET_MINUTE, b.getInt(MINUTE)); in testSaveInstanceState()
73 assertTrue(b.getBoolean(IS_24_HOUR)); in testSaveInstanceState()
80 b = tD.onSaveInstanceState(); in testSaveInstanceState()
82 assertEquals(TARGET_HOUR, b.getInt(HOUR)); in testSaveInstanceState()
83 assertEquals(minute, b.getInt(MINUTE)); in testSaveInstanceState()
84 assertFalse(b.getBoolean(IS_24_HOUR)); in testSaveInstanceState()
117 Bundle b = timePickerDialog.onSaveInstanceState(); in testUpdateTime() local
119 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)
/cts/tools/signature-tools/src/signature/io/html/
DClassByNameComparator.java26 public int compare(IClassDefinitionDelta a, IClassDefinitionDelta b) { in compare() argument
27 assert a.getType() == b.getType(); in compare()
29 return a.getFrom().getName().compareTo(b.getFrom().getName()); in compare()
31 return a.getTo().getName().compareTo(b.getTo().getName()); in compare()

12345678910>>...18