/dalvik/dx/src/com/android/dx/cf/direct/ |
AttributeFactory.java | 82 ByteArray bytes = cf.getBytes(); 124 ByteArray bytes = cf.getBytes();
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
LineNumberInputStreamTest.java | 162 new ByteArrayInputStream(text.getBytes("UTF-8")), 4); 165 .getBytes("UTF-8")));
|
BufferedOutputStreamTest.java | 42 os.write(fileString.getBytes(), 0, 500); 52 os.write(fileString.getBytes(), 0, 500); 104 os.write(fileString.getBytes(), 0, 500); 133 os.write(fileString.getBytes(), 0, 500); 139 os.write(fileString.getBytes(), 500, 513); 151 bos.write("a".getBytes()); 152 bos.write("bcde".getBytes()); 157 bos.write("ab".getBytes()); 158 bos.write("cd".getBytes()); 672 byte[] buffer = "1234567890".getBytes(); [all...] |
FileWriterTest.java | 50 fos.write("Test String".getBytes()); 106 fos.write("Test String".getBytes()); 123 fos.write("Test String".getBytes()); 141 fos.write("Test String".getBytes()); 154 fos.write("Test String".getBytes());
|
/external/apache-http/src/org/apache/commons/codec/binary/ |
Hex.java | 168 return new String(encodeHex(array)).getBytes(); 184 byte[] byteArray = object instanceof String ? ((String) object).getBytes() : (byte[]) object;
|
/external/apache-http/src/org/apache/commons/codec/net/ |
RFC1522Codec.java | 77 byte [] rawdata = doEncoding(text.getBytes(charset)); 126 byte[] data = text.substring(from, to).getBytes(StringEncodings.US_ASCII);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
SubjectPublicKeyInfo.java | 107 ASN1InputStream aIn = new ASN1InputStream(keyData.getBytes()); 124 ASN1InputStream aIn = new ASN1InputStream(keyData.getBytes());
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
IsoTypeWriter.java | 80 if (language.getBytes().length != 3) { 85 bits += (language.getBytes()[i] - 0x60) << (2 - i) * 5;
|
/external/oauth/core/src/main/java/net/oauth/signature/ |
HMAC_SHA1.java | 69 byte[] keyBytes = keyString.getBytes(ENCODING); 76 byte[] text = baseString.getBytes(ENCODING);
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ASN1StringType.java | 47 byte[] bytes = ((String) out.content).getBytes(StandardCharsets.UTF_8); 112 byte[] bytes = ((String) out.content).getBytes(StandardCharsets.UTF_8);
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldOutputStreamTest.java | 50 private final byte[] shortByteArray = "Lorem ipsum...".getBytes(); 51 private final byte[] longByteArray = "Lorem ipsum dolor sit amet...".getBytes();
|
OldDataInputStreamTest.java | 63 os.write(fileString.getBytes()); 94 os.write(fileString.getBytes()); 124 os.write(fileString.getBytes()); 153 os.write(fileString.getBytes()); 182 os.write(fileString.getBytes());
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
CipherSymmetricKeyThread.java | 37 byte[] input = getData().getBytes(); 71 checkEncodedData(getData().getBytes(), decrypted);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapbMessageSms.java | 80 bodyFragments.add(tmpBody.getBytes("UTF-8")); 84 bodyFragments.add(encodeBinary(pdu.getData(),pdu.getScAddress()).getBytes("UTF-8"));
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
SimpleIcsWriter.java | 106 return Utility.fromUtf8(getBytes()); 112 public byte[] getBytes() {
|
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
SimpleIcsWriterTests.java | 38 * Test for {@link SimpleIcsWriter#writeTag}. It also covers {@link SimpleIcsWriter#getBytes()} 48 final String actual = Utility.fromUtf8(ics.getBytes()); 83 final byte[] bytes = ics.getBytes();
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
String2Test.java | 59 assertTrue("Failed to create string", new String(hw1.getBytes()) 80 assertTrue("Failed to create string", new String(hw1.getBytes(), 0, hw1 81 .getBytes().length).equals(hw1)); 349 * @tests java.lang.String#getBytes() 352 // Test for method byte [] java.lang.String.getBytes() 353 byte[] sbytes = hw1.getBytes(); 368 result = string.getBytes("8859_1"); 382 result = string.getBytes("UTF8"); 425 * @tests java.lang.String#getBytes(int, int, byte[], int) 429 // Test for method void java.lang.String.getBytes(int, int, byte [] [all...] |
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
InflaterTest.java | 771 byte[] input = inputString.getBytes("UTF-8"); 797 byte[] input = inputString.getBytes("UTF-8"); 864 defDict1.setDictionary(dictionary1.getBytes()); 865 defDict2.setDictionary(dictionary2.getBytes()); 867 defDictNo.setInput(inputString.getBytes()); 868 defDict1.setInput(inputString.getBytes()); 869 defDict2.setInput(inputString.getBytes()); 930 infl1.setDictionary(dictionary1.getBytes()); 939 infl2.setDictionary(dictionary2.getBytes()); 949 infl1.setDictionary(dictionary1.getBytes()); [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
PropertiesTest.java | 224 prop.load(new ByteArrayInputStream("=".getBytes())); 232 prop.load(new ByteArrayInputStream(" = ".getBytes())); 240 prop.load(new ByteArrayInputStream(" a= b".getBytes())); 248 prop.load(new ByteArrayInputStream(" a b".getBytes())); 257 .getBytes("ISO8859_1"))); 268 .getBytes("ISO8859_1"))); 328 prop.load(new ByteArrayInputStream("=".getBytes())); 332 prop.load(new ByteArrayInputStream(" = ".getBytes())); 336 prop.load(new ByteArrayInputStream(" a= b".getBytes())); 340 prop.load(new ByteArrayInputStream(" a b".getBytes())); [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
Signature2Test.java | 332 sig.update(MESSAGE.getBytes()); 351 byte[] bytes = MESSAGE.getBytes(); 356 sig2.update(MESSAGE.getBytes()); 367 byte[] bytes = MESSAGE.getBytes(); 402 sig.update(MESSAGE.getBytes()[0]); 437 sig.update(MESSAGE.getBytes()); 441 sig.update(MESSAGE.getBytes()); 451 sig.update(MESSAGE.getBytes()); 455 sig.update(MESSAGE.getBytes());
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/util/ |
PsdFile.java | 143 final byte[] mSignature = "8BPS".getBytes(); 186 final byte[] mSignature = "8BIM".getBytes(); 294 final byte[] mBlendSignature = "8BIM".getBytes(); 295 final byte[] mBlendMode = "norm".getBytes(); 309 final byte[] mLayerExtraSignature = "8BIM".getBytes(); 310 final byte[] mLayerExtraKey = "luni".getBytes(); 332 byte[] data = name.getBytes(); 335 mLayerExtraLength = 4 + mOriginalName.getBytes("UTF-16").length; 409 out.write(mOriginalName.getBytes("UTF-16"));
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
ExcludedProxyTest.java | 76 out2.write(posted2.getBytes()); 99 out.write(posted4.getBytes()); 127 os.write("GET / HTTP/1.0\r\n\r\n".getBytes()); 144 os.write("GET / HTTP/1.0\r\n\r\n".getBytes()); 178 out.write(posted.getBytes());
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
LoggingPrintStreamTest.java | 136 out.write(expected.getBytes("UTF-8")); 143 for (byte b : expected.getBytes()) { 152 out.write(expected.getBytes()); 159 byte[] bytes = expected.getBytes(); 175 out.write(toWrite.getBytes());
|
/frameworks/base/services/java/com/android/server/updates/ |
ConfigUpdateInstallReceiver.java | 125 byte[] derCert = Base64.decode(cert.getBytes(), Base64.DEFAULT); 220 signer.update(Long.toString(version).getBytes()); 221 signer.update(requiredPrevious.getBytes()); 222 return signer.verify(Base64.decode(signature.getBytes(), Base64.DEFAULT)); 259 writeUpdate(updateDir, updateVersion, Long.toString(version).getBytes());
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
Wap230WspContentTypeTest.java | 267 out.write(testType.getBytes("US-ASCII")); 283 out.write(testType.getBytes("US-ASCII")); 451 out.write(testType.getBytes("US-ASCII")); 476 out.write(testType.getBytes("US-ASCII")); 494 out.write(testType.getBytes("US-ASCII")); 537 out.write("wdstechnology.com".getBytes("US-ASCII")); 562 out.write("wdstechnology.com".getBytes("US-ASCII")); 587 out.write("wdstechnology.com".getBytes("US-ASCII")); 655 out.write("imapc".getBytes("US-ASCII")); 676 out.write("MYPARAM".getBytes("US-ASCII")) [all...] |