/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | LinearGradientTest.java | 51 Bitmap b; in testLinearGradient() local 57 b = drawLinearGradient(lg); in testLinearGradient() 60 assertEquals(b.getPixel(10, 10), b.getPixel(20, 10)); in testLinearGradient() 62 assertTrue(Color.blue(b.getPixel(10, 0)) > Color.blue(b.getPixel(10, 5))); in testLinearGradient() 63 assertTrue(Color.blue(b.getPixel(10, 5)) > Color.blue(b.getPixel(10, 10))); in testLinearGradient() 64 assertTrue(Color.green(b.getPixel(10, 0)) < Color.green(b.getPixel(10, 5))); in testLinearGradient() 65 assertTrue(Color.green(b.getPixel(10, 5)) < Color.green(b.getPixel(10, 10))); in testLinearGradient() 67 assertTrue(Color.green(b.getPixel(10, 15)) > Color.green(b.getPixel(10, 20))); in testLinearGradient() 68 assertTrue(Color.green(b.getPixel(10, 20)) > Color.green(b.getPixel(10, 25))); in testLinearGradient() 69 assertTrue(Color.red(b.getPixel(10, 15)) < Color.red(b.getPixel(10, 20))); in testLinearGradient() [all …]
|
D | BitmapFactoryTest.java | 110 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() 126 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start); in testDecodeResource2() local 127 assertNotNull(b); in testDecodeResource2() 129 assertEquals(START_HEIGHT * mTargetDensity / mDefaultDensity, b.getHeight(), 1.1); in testDecodeResource2() 130 assertEquals(START_WIDTH * mTargetDensity / mDefaultDensity, b.getWidth(), 1.1); in testDecodeResource2() 144 Bitmap b = BitmapFactory.decodeResourceStream(mRes, value, is, r, mOpt1); in testDecodeResourceStream() local 145 assertNotNull(b); in testDecodeResourceStream() [all …]
|
/cts/tools/vm-tests/src/dot/junit/opcodes/rsub_int_lit8/d/ |
D | T_rsub_int_lit8_1.java | 22 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 …]
|
D | T_rsub_int_lit8_2.java | 22 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/ |
D | T_rsub_int_1.java | 22 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 …]
|
D | T_rsub_int_2.java | 22 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/ |
D | T_rsub_int_lit8_1.java | 22 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 …]
|
D | T_rsub_int_lit8_2.java | 22 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/src/dot/junit/opcodes/rsub_int/d/ |
D | T_rsub_int_1.java | 22 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 …]
|
D | T_rsub_int_2.java | 22 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/ |
D | DexFileReader.java | 33 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 …]
|
D | DexBuffer.java | 28 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 …]
|
D | DexFileImpl.java | 73 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/renderscript/src/android/renderscript/cts/ |
D | TypeTest.java | 24 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 …]
|
/cts/tools/signature-tools/src/signature/io/html/ |
D | ClassByNameComparator.java | 26 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()
|
/cts/tools/vm-tests/src/dot/junit/opcodes/cmpg_float/d/ |
D | T_cmpg_float_1.java | 21 public int run(float a, float b) { in run() argument 22 if(a > b) in run() 24 if(a == b) in run()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpg_double/d/ |
D | T_cmpg_double_1.java | 21 public int run(double a, double b) { in run() argument 22 if(a > b) in run() 24 if(a == b) in run()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpg_float/d/ |
D | T_cmpg_float_1.java | 21 public int run(float a, float b) { in run() argument 22 if(a > b) in run() 24 if(a == b) in run()
|
/cts/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/ |
D | T_lcmp_2.java | 21 public int run(long a, long b) { in run() argument 22 if (a > b) return 1; in run() 23 if (a == b) return 0; in run()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmp_long/d/ |
D | T_cmp_long_1.java | 21 public int run(long a, long b) { in run() argument 22 if (a > b) return 1; in run() 23 if (a == b) return 0; in run()
|
/cts/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/ |
D | T_fcmpg_1.java | 21 public int run(float a, float b) { in run() argument 22 if(a > b) in run() 24 if(a == b) in run()
|
/cts/tools/vm-tests/src/dot/junit/opcodes/cmp_long/d/ |
D | T_cmp_long_1.java | 21 public int run(long a, long b) { in run() argument 22 if (a > b) return 1; in run() 23 if (a == b) return 0; in run()
|
/cts/tools/vm-tests/src/dot/junit/opcodes/cmpg_double/d/ |
D | T_cmpg_double_1.java | 21 public int run(double a, double b) { in run() argument 22 if(a > b) in run() 24 if(a == b) in run()
|
/cts/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/ |
D | T_dcmpl_1.java | 21 public int run(double a, double b) { in run() argument 22 if(a > b) in run() 24 if(a == b) in run()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpl_float/d/ |
D | T_cmpl_float_1.java | 21 public int run(float a, float b) { in run() argument 22 if(a > b) in run() 24 if(a == b) in run()
|