/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 122 private void testByteSwappedBulkGet(ByteBuffer b) throws Exception { in testByteSwappedBulkGet() argument 123 for (int i = 0; i < b.limit(); ++i) { in testByteSwappedBulkGet() 124 b.put(i, (byte) i); in testByteSwappedBulkGet() 126 b.position(1); in testByteSwappedBulkGet() 129 b.order(ByteOrder.BIG_ENDIAN).asCharBuffer().get(chars, 1, 4); in testByteSwappedBulkGet() 131 b.order(ByteOrder.LITTLE_ENDIAN).asCharBuffer().get(chars, 1, 4); in testByteSwappedBulkGet() 135 b.order(ByteOrder.BIG_ENDIAN).asDoubleBuffer().get(doubles, 1, 1); in testByteSwappedBulkGet() 139 b.order(ByteOrder.LITTLE_ENDIAN).asDoubleBuffer().get(doubles, 1, 1); in testByteSwappedBulkGet() 145 b.order(ByteOrder.BIG_ENDIAN).asFloatBuffer().get(floats, 1, 2); in testByteSwappedBulkGet() 150 b.order(ByteOrder.LITTLE_ENDIAN).asFloatBuffer().get(floats, 1, 2); in testByteSwappedBulkGet() [all …]
|
D | OldAndroidNIOTest.java | 34 void checkBuffer(Buffer b) { in checkBuffer() argument 35 assertTrue(0 <= b.position()); in checkBuffer() 36 assertTrue(b.position() <= b.limit()); in checkBuffer() 37 assertTrue(b.limit() <= b.capacity()); in checkBuffer() 71 private void byteBufferTest(ByteBuffer b) { in byteBufferTest() argument 72 checkBuffer(b); in byteBufferTest() 75 b.order(ByteOrder.LITTLE_ENDIAN); in byteBufferTest() 76 ByteBuffer dupe = b.duplicate(); in byteBufferTest() 78 b.order(ByteOrder.BIG_ENDIAN); in byteBufferTest() 82 b.put(-1, (byte) 0); in byteBufferTest() [all …]
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigIntegerTest.java | 90 BigInteger b; in test_Constructor_ILjava_util_Random() local 92 b = new BigInteger(128, rand); in test_Constructor_ILjava_util_Random() 93 assertTrue(b.toString() + " " + b.bitLength(), b.bitLength() <= 128); in test_Constructor_ILjava_util_Random() 95 b = new BigInteger(16, rand); in test_Constructor_ILjava_util_Random() 96 assertTrue(b.toString() + " " + b.bitLength(), b.bitLength() <= 16); in test_Constructor_ILjava_util_Random() 98 b = new BigInteger(5, rand); in test_Constructor_ILjava_util_Random() 99 assertTrue(b.toString() + " " + b.bitLength(), b.bitLength() <= 5); in test_Constructor_ILjava_util_Random() 105 BigInteger b; in test_Constructor_IILjava_util_Random() local 107 b = new BigInteger(128, 100, rand); in test_Constructor_IILjava_util_Random() 108 assertEquals(b.toString(), 128, b.bitLength()); in test_Constructor_IILjava_util_Random() [all …]
|
D | OldBigDecimalArithmeticTest.java | 30 BigDecimal a, b, res; in testAddMathContextNonTrivial() local 34 b = new BigDecimal("100000000000000.009"); in testAddMathContextNonTrivial() 38 b.round(mc).toString()); in testAddMathContextNonTrivial() 40 a.round(mc).add(b.round(mc)).toString()); in testAddMathContextNonTrivial() 41 res = a.add(b, mc); in testAddMathContextNonTrivial() 46 b = new BigDecimal("1000000000000000090000000000.0000005"); in testAddMathContextNonTrivial() 47 res = a.add(b, mc); in testAddMathContextNonTrivial() 55 BigDecimal a, b, res; in testSubtractMathContextNonTrivial() local 59 b = new BigDecimal("10000000000000000.9"); in testSubtractMathContextNonTrivial() 61 a.round(mc).subtract(b.round(mc)).toString()); in testSubtractMathContextNonTrivial() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | Objects.java | 32 public static <T> int compare(T a, T b, Comparator<? super T> c) { in compare() argument 33 if (a == b) { in compare() 36 return c.compare(a, b); in compare() 45 public static boolean deepEquals(Object a, Object b) { in deepEquals() argument 46 if (a == null || b == null) { in deepEquals() 47 return a == b; in deepEquals() 48 } else if (a instanceof Object[] && b instanceof Object[]) { in deepEquals() 49 return Arrays.deepEquals((Object[]) a, (Object[]) b); in deepEquals() 50 } else if (a instanceof boolean[] && b instanceof boolean[]) { in deepEquals() 51 return Arrays.equals((boolean[]) a, (boolean[]) b); in deepEquals() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | LocaleTest.java | 235 Locale.Builder b = new Locale.Builder(); in test_Builder_setLanguage() local 238 b.setLanguage("EN"); in test_Builder_setLanguage() 239 assertEquals("en", b.build().getLanguage()); in test_Builder_setLanguage() 241 b = new Locale.Builder(); in test_Builder_setLanguage() 245 b.setLanguage("e"); in test_Builder_setLanguage() 252 b.setLanguage("engl"); in test_Builder_setLanguage() 259 b.setLanguage("தமிழ்"); in test_Builder_setLanguage() 265 b = new Locale.Builder(); in test_Builder_setLanguage() 266 b.setLanguage("en"); in test_Builder_setLanguage() 267 b.setLanguage(null); in test_Builder_setLanguage() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldAndroidPrintWriterTest.java | 48 PrintWriter b = new PrintWriter(ba); in testPrintWriter() local 50 b.print(true); in testPrintWriter() 51 b.print((char) 'A'); in testPrintWriter() 52 b.print("BCD".toCharArray()); in testPrintWriter() 53 b.print((double) 1.2); in testPrintWriter() 54 b.print((float) 3); in testPrintWriter() 55 b.print((int) 4); in testPrintWriter() 56 b.print((long) 5); in testPrintWriter() 58 b.println(); in testPrintWriter() 59 b.println(true); in testPrintWriter() [all …]
|
D | OldAndroidStreamTokenizerTest.java | 35 StreamTokenizer b = new StreamTokenizer(ba); in testStreamTokenizer() local 49 b.commentChar('u'); in testStreamTokenizer() 50 b.eolIsSignificant(true); in testStreamTokenizer() 51 b.lowerCaseMode(true); in testStreamTokenizer() 52 b.ordinaryChar('y'); in testStreamTokenizer() 53 b.slashStarComments(true); in testStreamTokenizer() 55 assertEquals(StreamTokenizer.TT_NUMBER, b.nextToken()); in testStreamTokenizer() 56 assertEquals(-3.8, b.nval); in testStreamTokenizer() 57 assertEquals("Token[n=-3.8], line 1", b.toString()); in testStreamTokenizer() 58 assertEquals(39, b.nextToken()); // ' in testStreamTokenizer() [all …]
|
D | OldInputStreamTest.java | 87 byte[] b = new byte[10]; in test_read$B() 95 is.read(b), 10); in test_read$B() 98 equal &= (b[i] == ref[i]); in test_read$B() 104 b = new byte[ref.length]; in test_read$B() 105 bytesRead = is.read(b); in test_read$B() 110 equal &= (b[i] == ref[i + 10]); in test_read$B() 116 bytesRead = is.read(b); in test_read$B() 121 byte[] b = new byte[10]; in test_read$BII_Exception() 126 bytesRead = is.read(b, -1, 5); in test_read$BII_Exception() 134 bytesRead = is.read(b, 5, -1); in test_read$BII_Exception() [all …]
|
D | OldStreamTokenizerTest.java | 56 StreamTokenizer b = new StreamTokenizer(ba); in test_basicStringTokenizerMethods() local 70 b.commentChar('u'); in test_basicStringTokenizerMethods() 71 b.eolIsSignificant(true); in test_basicStringTokenizerMethods() 72 b.lowerCaseMode(true); in test_basicStringTokenizerMethods() 73 b.ordinaryChar('y'); in test_basicStringTokenizerMethods() 74 b.slashStarComments(true); in test_basicStringTokenizerMethods() 76 Assert.assertTrue(b.nextToken() == StreamTokenizer.TT_NUMBER); in test_basicStringTokenizerMethods() 77 Assert.assertTrue(b.nval == -3.8); in test_basicStringTokenizerMethods() 78 Assert.assertTrue(b.toString().equals("Token[n=-3.8], line 1")); in test_basicStringTokenizerMethods() 79 Assert.assertTrue(b.nextToken() == 39); // ' in test_basicStringTokenizerMethods() [all …]
|
/libcore/luni/src/main/java/java/nio/ |
D | NIOAccess.java | 29 static long getBasePointer(Buffer b) { in getBasePointer() argument 30 long address = b.effectiveDirectAddress; in getBasePointer() 34 return address + (b.position << b._elementSizeShift); in getBasePointer() 41 static Object getBaseArray(Buffer b) { in getBaseArray() argument 42 return b.hasArray() ? b.array() : null; in getBaseArray() 52 static int getBaseArrayOffset(Buffer b) { in getBaseArrayOffset() argument 53 return b.hasArray() ? ((b.arrayOffset() + b.position) << b._elementSizeShift) : 0; in getBaseArrayOffset()
|
D | IoVec.java | 54 ByteBuffer b = byteBuffers[i + offset]; in init() local 56 b.checkWritable(); in init() 58 int remaining = b.remaining(); in init() 59 if (b.isDirect()) { in init() 60 ioBuffers[i] = b; in init() 61 offsets[i] = b.position(); in init() 63 ioBuffers[i] = NioUtils.unsafeArray(b); in init() 64 offsets[i] = NioUtils.unsafeArrayOffset(b) + b.position(); in init() 90 ByteBuffer b = byteBuffers[i + offset]; in didTransfer() local 92 b.position(b.limit()); in didTransfer() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | NullCipherTest.java | 101 byte [] b = {1, 2, 3, 4, 5}; in testUpdatebyteArray() 102 byte [] r = c.update(b); in testUpdatebyteArray() 103 assertEquals("different length", b.length, r.length); in testUpdatebyteArray() 104 assertTrue("different content", Arrays.equals(b, r)); in testUpdatebyteArray() 111 byte [] b = {1, 2, 3, 4, 5}; in testUpdatebyteArrayintint() 112 byte [] r = c.update(b, 0, 5); in testUpdatebyteArrayintint() 113 assertEquals("different length", b.length, r.length); in testUpdatebyteArrayintint() 114 assertTrue("different content", Arrays.equals(b, r)); in testUpdatebyteArrayintint() 116 r = c.update(b, 1, 3); in testUpdatebyteArrayintint() 119 assertEquals("different content", b[i + 1], r[i]); in testUpdatebyteArrayintint() [all …]
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | EllipticCurveTest.java | 46 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() local 49 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() 54 b = BigInteger.valueOf(23L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() 56 new EllipticCurve(f1, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() 62 b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() 65 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() 80 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02() local 85 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02() 92 b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02() 96 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldAttributesTest.java | 69 Attributes b = (Attributes) a.clone(); in test_hashCode() local 70 b.putValue("33", "Thirty three"); in test_hashCode() 71 assertNotSame(a.hashCode(), b.hashCode()); in test_hashCode() 72 b = (Attributes) a.clone(); in test_hashCode() 73 b.clear(); in test_hashCode() 74 assertNotSame(a.hashCode(), b.hashCode()); in test_hashCode() 78 Attributes b = new Attributes(); in test_putValueLjava_lang_StringLjava_lang_String() local 79 b.put(new Attributes.Name("1"), "one"); in test_putValueLjava_lang_StringLjava_lang_String() 80 b.putValue("2", "two"); in test_putValueLjava_lang_StringLjava_lang_String() 81 b.put(new Attributes.Name("3"), "three"); in test_putValueLjava_lang_StringLjava_lang_String() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
D | SHA1Impl.java | 76 int b = arrW[HASH_OFFSET +1]; in computeHash() local 100 ( ( b & c) | ((~b) & d) ) + in computeHash() 104 c = ( b<<30 ) | ( b>>>2 ) ; in computeHash() 105 b = a; in computeHash() 110 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0x6ED9EBA1) ; in computeHash() 113 c = ( b<<30 ) | ( b>>>2 ) ; in computeHash() 114 b = a; in computeHash() 119 temp = (( a<<5 ) | ( a>>>27 )) + ((b & c) | (b & d) | (c & d)) + in computeHash() 123 c = ( b<<30 ) | ( b>>>2 ) ; in computeHash() 124 b = a; in computeHash() [all …]
|
/libcore/luni/src/main/files/cacerts/ |
D | ea169617.0 | 49 80:54:29:55:63:24:ff:90:65:9b:10:75:7b:c3:6a: 53 42:81:0a:f9:6a:e3:83:00:a8:2b:2e:55:13:63:81: 54 ca:47:1c:7b:5c:16:57:7a:1b:83:60:04:3a:3e:65: 56 56:22:9b:8f:63:fd:4d:16:0b:b7:7b:77:8c:f9:25: 61 2b:c2:a5:eb:22:15:98:10:d8:8b:c5:04:9f:1d:8f: 62 60:e5:06:1b:9b:cf:b9:79:a0:3d:a2:23:3f:42:3f: 63 6b:fa:1c:03:7b:30:8d:ce:6c:c0:bf:e6:1b:5f:bf: 64 67:b8:84:19:d5:15:ef:7b:cb:90:36:31:62:c9:bc: 65 02:ab:46:5f:9b:fe:1a:68:94:34:3d:90:8e:ad:f6: 68 5b:85:32:16:76:33:e9:d8:a3:99:9d:05:00:aa:16: [all …]
|
D | 9339512a.0 | 55 74:cf:92:b8:04:40:ad:02:4b:31:ab:bc:8d:91:68: 56 d8:20:0e:1a:01:e2:1a:7b:4e:17:5d:e2:8a:b7:3f: 58 fc:fd:70:8f:0b:a0:67:be:01:a2:59:cf:71:e6:0f: 59 29:76:ff:b1:56:79:45:2b:1f:9e:7a:54:e8:a3:29: 60 35:68:a4:01:4f:0f:a4:2e:37:ef:1b:bf:e3:8f:10: 61 a8:72:ab:58:57:e7:54:86:c8:c9:f3:5b:da:2c:da: 67 14:65:94:37:4b:92:06:ef:04:d0:c8:9c:88:db:0b: 68 7b:81:af:b1:3d:2a:c4:65:3a:78:b6:ee:dc:80:b1: 69 d2:d3:99:9c:3a:ee:6b:5a:6b:b3:8d:b7:d5:ce:9c: 70 c2:be:a5:4b:2f:16:b1:9e:68:3b:06:6f:ae:7d:9f: [all …]
|
D | 03f2b8cf.0 | 36 50:70:6b:cd:d8:13:fc:1b:4e:3b:33:72:d2:11:48:8d 50 93:9b:38:f8:b7:5b:a9:fa:d8:71:c7:b4:bc:80:97: 51 8d:6c:4b:f1:50:d5:2a:29:aa:a8:19:7a:96:e6:95: 52 8e:74:ed:97:0a:57:75:f4:05:db:6d:0b:39:b9:01: 54 74:b7:11:8c:7b:8d:4f:ff:87:83:ae:ff:05:03:13: 58 08:b1:8a:34:e9:89:ac:db:9b:4e:e1:d9:e4:52:45: 59 8c:2e:14:1f:91:6b:19:1d:68:29:2c:56:c4:e2:1e: 60 13:57:64:f0:61:e3:b9:11:df:b0:e1:57:a0:1b:ad: 61 d7:5f:d1:af:db:2b:2d:3f:d0:68:8e:0f:ea:9f:0f: 62 8b:35:58:1b:13:1c:f4:de:35:a1:0a:5d:d6:ea:df: [all …]
|
D | 57692373.0 | 36 00:ef:3c:4d:40:3d:10:df:3b:53:00:e1:67:fe:94: 38 2b:20:9d:c6:f3:60:46:d8:c1:b2:d5:8c:31:d9:dc: 39 20:79:24:81:bf:35:32:fc:63:69:db:b1:2a:6b:ee: 42 1a:e2:d5:67:91:d0:82:10:d7:78:4b:4f:2b:42:39: 44 3a:33:2a:62:98:fb:00:9d:13:59:7f:6f:3b:72:aa: 45 ee:a6:0f:86:f9:05:61:ea:67:7f:0c:37:96:8b:e6: 48 80:f7:01:e7:2c:f6:96:2b:13:0d:79:2c:d9:c0:e4: 49 86:7b:4b:8c:0c:72:82:8a:fb:17:cd:00:6c:3a:13: 50 3c:b0:84:87:4b:16:7a:29:b2:4f:db:1d:d4:0b:f3: 51 66:37:bd:d8:f6:57:bb:5e:24:7a:b8:3c:8b:b9:fa: [all …]
|
D | 3d441de8.0 | 48 00:c5:59:e7:6f:75:aa:3e:4b:9c:b5:b8:ac:9e:0b: 50 3b:e1:00:48:6a:cf:da:e1:06:43:11:99:aa:14:25: 51 12:ad:22:e8:00:6d:43:c4:a9:b8:e5:1f:89:4b:67: 53 77:2b:ad:b0:37:aa:37:de:64:59:2a:46:57:e4:4b: 54 b9:f8:37:7c:d5:36:e7:80:c1:b6:f3:d4:67:9b:96: 55 e8:ce:d7:c6:0a:53:d0:6b:49:96:f3:a3:0b:05:77: 57 48:f8:4e:7b:03:07:04:fa:82:61:87:6e:f0:3b:c4: 58 a4:c7:d0:f5:74:3e:a5:5d:1a:08:f2:9b:25:d2:f6: 59 ac:04:26:3e:55:3a:62:28:a5:7b:b2:30:af:f8:37: 66 16:13:7d:0b:49:4a:f1:28:1b:20:74:6b:c5:3d:dd: [all …]
|
D | 67495436.0 | 30 60:01:97:b7:46:a7:ea:b4:b4:9a:d6:4b:2f:f7:90:fb 41 00:b2:bf:27:2c:fb:db:d8:5b:dd:78:7b:1b:9e:77: 43 71:38:33:62:e4:f3:71:66:79:b1:a9:65:a3:a5:8b: 44 d5:8f:60:2d:3f:42:cc:aa:6b:32:c0:23:cb:2c:41: 48 02:f8:1b:14:6b:42:df:6f:5f:ba:6b:82:a2:9d:5b: 49 e7:4a:bd:1e:01:72:db:4b:74:e8:3b:7f:7f:7d:1f: 50 04:b4:26:9b:e0:b4:5a:ac:47:3d:55:b8:d7:b0:26: 52 49:5c:9b:f6:7a:e9:7f:55:35:7e:96:6b:8d:93:93: 54 5a:dc:ce:74:86:a6:3e:6c:0b:53:ca:bd:92:ce:19: 55 06:72:e6:0c:5c:38:69:c7:04:d6:bc:6c:ce:5b:f6: [all …]
|
D | 12d55845.0 | 25 44:af:b0:80:d6:a3:27:ba:89:30:39:86:2e:f8:40:6b 37 82:ec:c7:d3:2c:6b:30:ca:5b:ec:d9:c3:7d:c7:40: 38 c1:18:14:8b:e0:e8:33:76:49:2a:e3:3f:21:49:93: 40 2a:d9:32:8f:8c:e5:f7:77:b0:12:7b:b5:95:c0:89: 43 65:df:b7:51:63:83:c8:e2:88:61:ea:4b:61:81:ec: 44 52:6b:b9:a2:e2:4b:1a:28:9f:48:a3:9e:0c:da:09: 45 8e:3e:17:2e:1e:dd:20:df:5b:c6:2a:8a:ab:2e:bd: 46 70:ad:c5:0b:1a:25:90:74:72:c5:7b:6a:ab:34:d6: 47 30:89:ff:e5:68:13:7b:54:0b:c8:d6:ae:ec:5a:9c: 50 eb:d5:9a:9b:8d:1d:ba:da:25:b9:c6:d8:df:c1:15: [all …]
|
/libcore/support/src/test/java/tests/resources/Package/ |
D | hyts_package.jar | ... java
package a.b.c
abstract a.b.c.package-info extends java.lang ... |
/libcore/luni/src/main/java/java/security/spec/ |
D | EllipticCurve.java | 35 private final BigInteger b; field in EllipticCurve 59 public EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed) { in EllipticCurve() argument 68 this.b = b; in EllipticCurve() 69 if (this.b == null) { in EllipticCurve() 87 if (this.b.signum() < 0 || this.b.compareTo(p) >= 0) { in EllipticCurve() 95 if (!(this.b.bitLength() <= fieldSizeInBits)) { in EllipticCurve() 114 public EllipticCurve(ECField field, BigInteger a, BigInteger b) { in EllipticCurve() argument 115 this(field, a, b, null); in EllipticCurve() 133 return b; in getB() 179 && this.b.equals(otherEc.b) in equals() [all …]
|