/libcore/luni/src/main/java/java/text/ |
CollationKey.java | 111 public abstract byte[] toByteArray();
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldCollationKeyTest.java | 28 // Test for method byte [] java.text.CollationKey.toByteArray() 32 byte[] bytes = key1.toByteArray(); 52 // bytes = collator.getCollationKey("1234567").toByteArray(); 55 byte[] bytes1 = collator.getCollationKey("12").toByteArray(); 56 byte[] bytes2 = collator.getCollationKey("123").toByteArray(); 57 byte[] bytes3 = collator.getCollationKey("124").toByteArray(); 58 byte[] bytes4 = collator.getCollationKey("1245").toByteArray(); 59 byte[] bytes5 = collator.getCollationKey("1245").toByteArray();
|
/libcore/luni/src/test/java/libcore/java/io/ |
DataOutputStreamTest.java | 32 assertEquals("[01, 00]", toHexString(bytes.toByteArray())); 42 assertEquals("[ff, 00, 01, 81, 34]", toHexString(bytes.toByteArray())); 48 assertEquals("[30, 34, 31]", toHexString(bytes.toByteArray())); 55 assertEquals("[00, 30, 12, 34]", toHexString(bytes.toByteArray())); 61 assertEquals("[00, 30, 12, 34, 00, 31]", toHexString(bytes.toByteArray())); 66 assertEquals("[01, 23, 45, 67, 89, ab, cd, ef]", toHexString(bytes.toByteArray())); 71 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray())); 76 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray())); 81 assertEquals("[01, 23, 45, 67, 89, ab, cd, ef]", toHexString(bytes.toByteArray())); 87 assertEquals("[45, 67]", toHexString(bytes.toByteArray())); [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
OpenSSLDSAPrivateKey.java | 49 dsaKeySpec.getP().toByteArray(), 50 dsaKeySpec.getQ().toByteArray(), 51 dsaKeySpec.getG().toByteArray(), 53 dsaKeySpec.getX().toByteArray())); 69 dsaParams.getP().toByteArray(), 70 dsaParams.getQ().toByteArray(), 71 dsaParams.getG().toByteArray(), 73 dsaPrivateKey.getX().toByteArray())); 214 p.toByteArray(), 215 q.toByteArray(), [all...] |
OpenSSLDSAPublicKey.java | 49 dsaKeySpec.getP().toByteArray(), 50 dsaKeySpec.getQ().toByteArray(), 51 dsaKeySpec.getG().toByteArray(), 52 dsaKeySpec.getY().toByteArray(), 69 dsaParams.getP().toByteArray(), 70 dsaParams.getQ().toByteArray(), 71 dsaParams.getG().toByteArray(), 72 dsaPublicKey.getY().toByteArray(), 174 p.toByteArray(), 175 q.toByteArray(), [all...] |
OpenSSLRSAPrivateCrtKey.java | 82 modulus.toByteArray(), 83 publicExponent == null ? null : publicExponent.toByteArray(), 84 privateExponent.toByteArray(), 85 primeP == null ? null : primeP.toByteArray(), 86 primeQ == null ? null : primeQ.toByteArray(), 87 primeExponentP == null ? null : primeExponentP.toByteArray(), 88 primeExponentQ == null ? null : primeExponentQ.toByteArray(), 89 crtCoefficient == null ? null : crtCoefficient.toByteArray())); 120 modulus.toByteArray(), 121 publicExponent == null ? null : publicExponent.toByteArray(), [all...] |
OpenSSLRSAPublicKey.java | 51 spec.getModulus().toByteArray(), 52 spec.getPublicExponent().toByteArray(), 67 rsaPublicKey.getModulus().toByteArray(), 68 rsaPublicKey.getPublicExponent().toByteArray(), 174 modulus.toByteArray(), 175 publicExponent.toByteArray(),
|
OpenSSLDSAKeyPairGenerator.java | 74 g = gInt.toByteArray(); 79 p = pInt.toByteArray(); 84 q = qInt.toByteArray();
|
OpenSSLECGroupContext.java | 59 final long ctx = NativeCrypto.EC_GROUP_new_curve(type, p.toByteArray(), a.toByteArray(), 60 b.toByteArray()); 74 x.toByteArray(), y.toByteArray()); 76 NativeCrypto.EC_GROUP_set_generator(ctx, generator.getContext(), n.toByteArray(), 77 h.toByteArray());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
ASN1InputStream.java | 140 return new DERApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); 169 return new LazyEncodedSequence(defIn.toByteArray()); 390 return defIn.toByteArray(); 435 return new ASN1GeneralizedTime(defIn.toByteArray()); 437 return new DERGeneralString(defIn.toByteArray()); 439 return new DERIA5String(defIn.toByteArray()); 441 return new ASN1Integer(defIn.toByteArray()); 445 return new DERNumericString(defIn.toByteArray()); 449 return new DEROctetString(defIn.toByteArray()); 451 return new DERPrintableString(defIn.toByteArray()); [all...] |
DEROctetStringParser.java | 25 return new DEROctetString(stream.toByteArray());
|
ASN1Object.java | 23 return bOut.toByteArray(); 44 return bOut.toByteArray(); 53 return bOut.toByteArray();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
BigIntegerConstructorsTest.java | 55 resBytes = aNumber.toByteArray(); 71 resBytes = aNumber.toByteArray(); 87 resBytes = aNumber.toByteArray(); 103 resBytes = aNumber.toByteArray(); 119 resBytes = aNumber.toByteArray(); 135 resBytes = aNumber.toByteArray(); 151 resBytes = aNumber.toByteArray(); 167 resBytes = aNumber.toByteArray(); 182 resBytes = aNumber.toByteArray(); 229 resBytes = aNumber.toByteArray(); [all...] |
BigIntegerAddTest.java | 44 resBytes = result.toByteArray(); 64 resBytes = result.toByteArray(); 86 resBytes = result.toByteArray(); 108 resBytes = result.toByteArray(); 130 resBytes = result.toByteArray(); 152 resBytes = result.toByteArray(); 173 resBytes = result.toByteArray(); 192 resBytes = result.toByteArray(); 213 resBytes = result.toByteArray(); 234 resBytes = result.toByteArray(); [all...] |
BigIntegerDivideTest.java | 76 resBytes = result.toByteArray(); 96 resBytes = result.toByteArray(); 117 resBytes = result.toByteArray(); 138 resBytes = result.toByteArray(); 158 resBytes = result.toByteArray(); 178 resBytes = result.toByteArray(); 198 resBytes = result.toByteArray(); 218 resBytes = result.toByteArray(); 238 resBytes = result.toByteArray(); 256 resBytes = result.toByteArray(); [all...] |
BigIntegerAndTest.java | 44 resBytes = result.toByteArray(); 64 resBytes = result.toByteArray(); 84 resBytes = result.toByteArray(); 104 resBytes = result.toByteArray(); 124 resBytes = result.toByteArray(); 166 resBytes = result.toByteArray(); 186 resBytes = result.toByteArray(); 206 resBytes = result.toByteArray(); 226 resBytes = result.toByteArray(); 246 resBytes = result.toByteArray(); [all...] |
BigIntegerOrTest.java | 44 resBytes = result.toByteArray(); 64 resBytes = result.toByteArray(); 84 resBytes = result.toByteArray(); 104 resBytes = result.toByteArray(); 124 resBytes = result.toByteArray(); 144 resBytes = result.toByteArray(); 164 resBytes = result.toByteArray(); 184 resBytes = result.toByteArray(); 204 resBytes = result.toByteArray(); 224 resBytes = result.toByteArray(); [all...] |
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
CipherOutputStreamTest.java | 60 byte[] result = tos.toByteArray(); 78 byte[] result = tos.toByteArray(); 94 byte[] result = tos.toByteArray(); 111 byte[] result = tos.toByteArray(); 152 byte[] result = tos.toByteArray(); 168 byte[] result = tos.toByteArray();
|
/packages/apps/Exchange/tests/src/com/android/exchange/eas/ |
EasProvisionTests.java | 60 final byte[] expectedBytes = expectedResult.toByteArray(); 67 assertTrue(Arrays.equals(generatedResult.toByteArray(), expectedBytes)); 91 final byte[] expectedBytes = expectedResult.toByteArray(); 98 assertTrue(Arrays.equals(generatedResult.toByteArray(), expectedBytes)); 119 final byte[] expectedBytes = expectedResult.toByteArray(); 126 assertTrue(Arrays.equals(generatedResult.toByteArray(), expectedBytes)); 151 final byte[] expectedBytes = expectedResult.toByteArray(); 158 assertTrue(Arrays.equals(generatedResult.toByteArray(), expectedBytes));
|
/external/protobuf/java/src/main/java/com/google/protobuf/micro/ |
MessageMicro.java | 74 public byte[] toByteArray() { 76 toByteArray(result, 0, result.length); 89 public void toByteArray(byte [] data, int offset, int length) {
|
/external/protobuf/java/src/main/java/com/google/protobuf/nano/ |
MessageNano.java | 73 public static final byte[] toByteArray(MessageNano msg) { 75 toByteArray(msg, result, 0, result.length); 88 public static final void toByteArray(MessageNano msg, byte [] data, int offset, int length) {
|
/external/smack/src/org/xbill/DNS/utils/ |
base16.java | 37 return new String(os.toByteArray()); 53 byte [] in = bs.toByteArray(); 70 return bs.toByteArray();
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
SnepMessenger.java | 45 byte[] buffer = msg.toByteArray(); 113 mSocket.send(SnepMessage.getMessage(fieldReject).toByteArray()); 120 mSocket.send(SnepMessage.getMessage(fieldReject).toByteArray()); 144 mSocket.send(SnepMessage.getMessage(fieldContinue).toByteArray()); 156 mSocket.send(SnepMessage.getMessage(fieldReject).toByteArray()); 170 mSocket.send(SnepMessage.getMessage(fieldReject).toByteArray()); 180 return SnepMessage.fromByteArray(buffer.toByteArray());
|
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
CodedOutputStreamTest.java | 87 assertEqualBytes(data, rawOutput.toByteArray()); 99 assertEqualBytes(data, rawOutput.toByteArray()); 115 assertEqualBytes(data, rawOutput.toByteArray()); 124 assertEqualBytes(data, rawOutput.toByteArray()); 169 assertEqualBytes(data, rawOutput.toByteArray()); 177 assertEqualBytes(data, rawOutput.toByteArray()); 191 assertEqualBytes(data, rawOutput.toByteArray()); 199 assertEqualBytes(data, rawOutput.toByteArray()); 282 byte[] rawBytes = message.toByteArray(); 283 assertEqualBytes(TestUtil.getGoldenMessage().toByteArray(), rawBytes) [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
PrintStreamTest.java | 207 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); 223 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); 236 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); 251 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); 266 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); 281 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); 295 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); 308 bis = new ByteArrayInputStream(bos1.toByteArray()); 321 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); 334 bis = new ByteArrayInputStream(bos1.toByteArray()); [all...] |