/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/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
OpenSSLDSAPrivateKey.java | 44 dsaKeySpec.getP().toByteArray(), 45 dsaKeySpec.getQ().toByteArray(), 46 dsaKeySpec.getG().toByteArray(), 48 dsaKeySpec.getX().toByteArray())); 64 dsaParams.getP().toByteArray(), 65 dsaParams.getQ().toByteArray(), 66 dsaParams.getG().toByteArray(), 68 dsaPrivateKey.getX().toByteArray()));
|
OpenSSLDSAPublicKey.java | 44 dsaKeySpec.getP().toByteArray(), 45 dsaKeySpec.getQ().toByteArray(), 46 dsaKeySpec.getG().toByteArray(), 47 dsaKeySpec.getY().toByteArray(), 64 dsaParams.getP().toByteArray(), 65 dsaParams.getQ().toByteArray(), 66 dsaParams.getG().toByteArray(), 67 dsaPublicKey.getY().toByteArray(),
|
OpenSSLRSAPrivateCrtKey.java | 76 modulus.toByteArray(), 77 publicExponent == null ? null : publicExponent.toByteArray(), 78 privateExponent.toByteArray(), 79 primeP == null ? null : primeP.toByteArray(), 80 primeQ == null ? null : primeQ.toByteArray(), 81 primeExponentP == null ? null : primeExponentP.toByteArray(), 82 primeExponentQ == null ? null : primeExponentQ.toByteArray(), 83 crtCoefficient == null ? null : crtCoefficient.toByteArray())); 114 modulus.toByteArray(), 115 publicExponent == null ? null : publicExponent.toByteArray(), [all...] |
OpenSSLDSAKeyPairGenerator.java | 74 g = gInt.toByteArray(); 79 p = pInt.toByteArray(); 84 q = qInt.toByteArray();
|
/external/apache-harmony/math/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...] |
BigIntegerOperateBitsTest.java | 150 resBytes = result.toByteArray(); 168 resBytes = result.toByteArray(); 186 resBytes = result.toByteArray(); 204 resBytes = result.toByteArray(); 261 resBytes = result.toByteArray(); 279 resBytes = result.toByteArray(); 297 resBytes = result.toByteArray(); 315 resBytes = result.toByteArray(); 333 resBytes = result.toByteArray(); 351 resBytes = result.toByteArray(); [all...] |
BigIntegerSubtractTest.java | 45 resBytes = result.toByteArray(); 66 resBytes = result.toByteArray(); 88 resBytes = result.toByteArray(); 110 resBytes = result.toByteArray(); 131 resBytes = result.toByteArray(); 152 resBytes = result.toByteArray(); 174 resBytes = result.toByteArray(); 196 resBytes = result.toByteArray(); 217 resBytes = result.toByteArray(); 238 resBytes = result.toByteArray(); [all...] |
BigIntegerMultiplyTest.java | 44 resBytes = result.toByteArray(); 65 resBytes = result.toByteArray(); 87 resBytes = result.toByteArray(); 109 resBytes = result.toByteArray(); 132 resBytes = result.toByteArray(); 155 resBytes = result.toByteArray(); 175 resBytes = result.toByteArray(); 193 resBytes = result.toByteArray(); 211 resBytes = result.toByteArray(); 229 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();
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/ |
ASN1Encodable.java | 29 return bOut.toByteArray(); 50 return bOut.toByteArray();
|
DEROctetStringParser.java | 25 return new DEROctetString(stream.toByteArray());
|
/external/bouncycastle/src/main/java/org/bouncycastle/util/encoders/ |
Base64.java | 31 return bOut.toByteArray(); 82 return bOut.toByteArray(); 105 return bOut.toByteArray();
|
Hex.java | 43 return bOut.toByteArray(); 93 return bOut.toByteArray(); 115 return bOut.toByteArray();
|
/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) {
|
/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/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...] |
/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
SnepValidationClientTests.java | 61 byte[] responseBytes = client.get(msg).getNdefMessage().toByteArray(); 63 byte[] msgBytes = msg.toByteArray(); 82 Log.d(TAG, "Putting ndef message of size " + msg.toByteArray().length + "..."); 86 byte[] responseBytes = client.get(msg).getNdefMessage().toByteArray(); 88 byte[] msgBytes = msg.toByteArray(); 119 responseBytes = client.get(msgA).getNdefMessage().toByteArray(); 121 msgBytes = msgA.toByteArray(); 128 responseBytes = client.get(msgB).getNdefMessage().toByteArray(); 130 msgBytes = msgB.toByteArray(); 168 Log.d(TAG, "Putting ndef message of size " + msg.toByteArray().length + "...") [all...] |
/external/protobuf/java/src/test/java/com/google/protobuf/ |
CodedOutputStreamTest.java | 86 assertEqualBytes(data, rawOutput.toByteArray()); 98 assertEqualBytes(data, rawOutput.toByteArray()); 114 assertEqualBytes(data, rawOutput.toByteArray()); 123 assertEqualBytes(data, rawOutput.toByteArray()); 168 assertEqualBytes(data, rawOutput.toByteArray()); 176 assertEqualBytes(data, rawOutput.toByteArray()); 190 assertEqualBytes(data, rawOutput.toByteArray()); 198 assertEqualBytes(data, rawOutput.toByteArray()); 281 byte[] rawBytes = message.toByteArray(); 282 assertEqualBytes(TestUtil.getGoldenMessage().toByteArray(), rawBytes) [all...] |