/libcore/luni/src/test/java/libcore/java/io/ |
InputStreamReaderTest.java | 34 pos.write("hello".getBytes("UTF-8"));
|
OldAndroidBufferedOutputStreamTest.java | 33 a.write(str.getBytes(), 0, 26);
|
OldAndroidDataOutputStreamTest.java | 34 a.write(str.getBytes(), 0, 26);
|
OldAndroidPushbackInputStreamTest.java | 30 ByteArrayInputStream aa = new ByteArrayInputStream(str.getBytes()); 31 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes()); 32 ByteArrayInputStream ca = new ByteArrayInputStream(str.getBytes()); 36 a.unread("push".getBytes());
|
OldByteArrayOutputStreamTest.java | 53 bos.write(fileString.getBytes(), 0, fileString.length()); 99 bos.write(fileString.getBytes(), 0, 10);
|
/external/objenesis/tck/test/org/objenesis/tck/ |
CandidateLoaderTest.java | 56 candidateLoader.loadFrom(new ByteArrayInputStream(input.getBytes())); 70 candidateLoader.loadFrom(new ByteArrayInputStream(input.getBytes()));
|
/libcore/benchmarks/src/benchmarks/regression/ |
CharsetBenchmark.java | 67 string.getBytes(name); 81 return s.getBytes("US-ASCII");
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
ChannelsTest.java | 30 Pipe.SourceChannel sourceChannel = createNonBlockingChannel("abc".getBytes("UTF-8")); 43 Pipe.SourceChannel sourceChannel = createNonBlockingChannel("abc".getBytes("UTF-8"));
|
FileChannelTest.java | 68 fc.write(ByteBuffer.wrap("abcdABCD".getBytes("US-ASCII"))); 90 buffers[0].put("abcd".getBytes("US-ASCII")).flip(); 91 buffers[1].put("ABCD".getBytes("US-ASCII")).flip(); 103 fc.write(ByteBuffer.wrap("hello".getBytes("US-ASCII"))); 108 fc.write(ByteBuffer.wrap(" world".getBytes("US-ASCII")));
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
CipherPBEThread.java | 38 byte[] input = getData().getBytes(); 58 checkEncodedData(getData().getBytes(), decrypted);
|
CipherWrapThread.java | 44 checkEncodedData(key.getFormat().getBytes(), decrypted.getFormat().getBytes());
|
/libcore/luni/src/test/java/tests/security/cert/ |
PKIXBuilderParametersTest.java | 240 .getBytes()); 243 .getBytes()); 271 .getBytes()); 274 .getBytes()); 299 .getBytes()); 302 .getBytes()); 342 .getBytes()); 345 .getBytes());
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
CertificateTest.java | [all...] |
/libcore/support/src/test/java/tests/security/ |
SignatureHelper.java | 58 signature.update(plainData.getBytes()); 77 signature.update(plainData.getBytes());
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
IOUtils.java | 268 * This is the same as {@link String#getBytes()}.
274 * @deprecated Use {@link String#getBytes()}
277 return input.getBytes();
594 byte[] bytes = input.getBytes();
612 byte[] bytes = encoding != null ? input.getBytes(encoding) : input.getBytes();
706 * {@link String#getBytes()}.
718 output.write(new String(data).getBytes());
730 * {@link String#getBytes(String)}.
746 output.write(new String(data).getBytes(encoding)); [all...] |
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/module/ |
LoginModuleUtilsTest.java | 38 .getBytes()); 43 in = new ByteArrayInputStream(password_file_content.getBytes()); 48 in = new ByteArrayInputStream(password_file_content.getBytes()); 53 in = new ByteArrayInputStream(password_file_content.getBytes()); 58 in = new ByteArrayInputStream(password_file_content.getBytes());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
DERBitString.java | 72 static protected byte[] getBytes(int bitString) 164 this.data = getBytes(value); 176 public byte[] getBytes() 216 byte[] bytes = new byte[getBytes().length + 1]; 219 System.arraycopy(getBytes(), 0, bytes, 1, bytes.length - 1);
|
/external/javassist/src/main/javassist/tools/web/ |
Webserver.java | 360 out.write("HTTP/1.0 200 OK".getBytes()); 362 out.write("Content-Length: ".getBytes()); 363 out.write(Long.toString(dataLength).getBytes()); 366 out.write("Content-Type: application/octet-stream".getBytes()); 368 out.write("Content-Type: text/html".getBytes()); 370 out.write("Content-Type: image/gif".getBytes()); 372 out.write("Content-Type: image/jpg".getBytes()); 374 out.write("Content-Type: text/plain".getBytes()); 384 out.write("HTTP/1.0 400 Bad Request".getBytes()); 387 out.write("<H1>Bad Request</H1>".getBytes()); [all...] |
/packages/apps/Browser/src/com/android/browser/homepages/ |
RequestHandler.java | 96 return TextUtils.htmlEncode(s).getBytes();
136 stream.write("data:image/png;base64,".getBytes());
172 stream.write(f.getName().getBytes());
175 stream.write(("file://" + f.getAbsolutePath()).getBytes());
178 stream.write((f.isDirectory() ? "dir" : "file").getBytes());
182 stream.write(readableFileSize(f.length()).getBytes());
189 stream.write(date.getBytes());
193 stream.write("alt".getBytes());
249 mOutput.write(str.getBytes());
253 mOutput.write(str.getBytes(), offset, count); [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
CameraTest.java | 115 shadowCamera.invokePreviewCallback("foobar".getBytes()); 118 assertThat(callback.data, equalTo("foobar".getBytes())); 128 shadowCamera.invokePreviewCallback("foobar".getBytes()); 131 assertThat(callback.data, equalTo("foobar".getBytes())); 141 shadowCamera.invokePreviewCallback("foobar".getBytes()); 144 assertThat(callback.data, equalTo("foobar".getBytes())); 156 shadowCamera.invokePreviewCallback("foobar".getBytes()); 163 shadowCamera.invokePreviewCallback("foobar".getBytes()); 170 shadowCamera.invokePreviewCallback("foobar".getBytes());
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
ByteArrayInputStreamTest.java | 35 InputStream bis = new ByteArrayInputStream(fileString.getBytes()); 45 byte[] zz = fileString.getBytes(); 166 is = new ByteArrayInputStream(fileString.getBytes());
|
/external/nist-sip/java/gov/nist/javax/sip/ |
Utils.java | 73 signature = toHexString(Integer.toString(Math.abs( rand.nextInt() % 1000 )).getBytes()); 139 byte cid[] = digester.digest(date.getBytes()); 175 byte bid[] = digester.digest(Long.toString(num).getBytes());
|
/external/smack/src/org/xbill/DNS/ |
GPOSRecord.java | 52 this.longitude = Double.toString(longitude).getBytes(); 53 this.latitude = Double.toString(latitude).getBytes(); 54 this.altitude = Double.toString(altitude).getBytes();
|
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/ |
SendReq.java | 35 setContentType("application/vnd.wap.multipart.related".getBytes()); 36 setFrom(new EncodedStringValue(PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes())); 47 return transactionId.getBytes();
|
/packages/apps/Mms/src/com/android/mms/util/ |
ImageCacheService.java | 96 return getBytes(path + "+" + type); 122 return crc64Long(getBytes(in)); 146 public static byte[] getBytes(String in) {
|