/libcore/luni/src/main/java/java/net/ |
InetUnixAddress.java | 32 this(path.getBytes(StandardCharsets.UTF_8)); 46 return "InetUnixAddress[" + new String(ipaddress, StandardCharsets.UTF_8) + "]";
|
URLEncoder.java | 50 return ENCODER.encode(s, StandardCharsets.UTF_8);
|
/libcore/luni/src/main/java/java/nio/charset/ |
StandardCharsets.java | 40 public static final Charset UTF_8 = Charset.forName("UTF-8");
|
/frameworks/base/core/tests/coretests/src/android/os/ |
FileBridgeTest.java | 90 client.write("meow".getBytes(StandardCharsets.UTF_8)); 92 assertContents("meow".getBytes(StandardCharsets.UTF_8)); 97 client.write("cake".getBytes(StandardCharsets.UTF_8)); 100 assertContents("cake".getBytes(StandardCharsets.UTF_8)); 105 client.write("meow".getBytes(StandardCharsets.UTF_8)); 107 client.write("cake".getBytes(StandardCharsets.UTF_8)); 109 assertContents("meowcake".getBytes(StandardCharsets.UTF_8)); 121 client.write("meow".getBytes(StandardCharsets.UTF_8)); 124 client.write("cake".getBytes(StandardCharsets.UTF_8)); 128 assertContents("meow".getBytes(StandardCharsets.UTF_8)); [all...] |
/external/guava/guava/src/com/google/common/base/ |
Charsets.java | 44 public static final Charset UTF_8 = Charset.forName("UTF-8");
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ASN1StringType.java | 42 return new String(in.buffer, in.contentOffset, in.length, StandardCharsets.UTF_8); 47 byte[] bytes = ((String) out.content).getBytes(StandardCharsets.UTF_8); 112 byte[] bytes = ((String) out.content).getBytes(StandardCharsets.UTF_8);
|
ASN1GeneralizedTime.java | 102 out.content = (temp + "Z").getBytes(StandardCharsets.UTF_8);
|
/external/guava/guava-tests/test/com/google/common/base/ |
CharsetsTest.java | 38 assertEquals(Charset.forName("UTF-8"), Charsets.UTF_8);
|
/external/okhttp/okio/src/test/java/okio/ |
GzipSourceTest.java | 22 import static okio.Util.UTF_8; 55 gzipped.write("blubber".getBytes(UTF_8), 0, 7); 64 gzipped.write("foo.txt".getBytes(UTF_8), 0, 7); 74 gzipped.write("rubbish".getBytes(UTF_8), 0, 7); 89 gzipped.write("blubber".getBytes(UTF_8), 0, 7); 90 gzipped.write("foo.txt".getBytes(UTF_8), 0, 7); 92 gzipped.write("rubbish".getBytes(UTF_8), 0, 7);
|
OkioTest.java | 24 import static okio.Util.UTF_8; 45 ("a" + repeat('b', Segment.SIZE * 2) + "c").getBytes(UTF_8));
|
ByteStringTest.java | 61 assertByteArraysEquals(byteString.toByteArray(), bronzeHorseman.getBytes(Util.UTF_8)); 62 assertTrue(byteString.equals(ByteString.of(bronzeHorseman.getBytes(Util.UTF_8)))); 73 InputStream in = new ByteArrayInputStream("abc".getBytes(Util.UTF_8)); 80 InputStream in = new ByteArrayInputStream("ABC".getBytes(Util.UTF_8));
|
/external/guava/guava-tests/test/com/google/common/io/ |
CharStreamsTest.java | 19 import static com.google.common.base.Charsets.UTF_8; 50 = CharStreams.newReaderSupplier(ByteStreamsTest.BROKEN_READ, UTF_8); 53 = CharStreams.newWriterSupplier(ByteStreamsTest.BROKEN_WRITE, UTF_8); 56 = CharStreams.newReaderSupplier(ByteStreamsTest.BROKEN_CLOSE_INPUT, UTF_8); 59 = CharStreams.newWriterSupplier(ByteStreamsTest.BROKEN_CLOSE_OUTPUT, UTF_8); 62 = CharStreams.newReaderSupplier(ByteStreamsTest.BROKEN_GET_INPUT, UTF_8); 65 = CharStreams.newWriterSupplier(ByteStreamsTest.BROKEN_GET_OUTPUT, UTF_8); 96 byte[] bytes = "a\nb\nc".getBytes(Charsets.UTF_8.name()); 98 new InputStreamReader(new ByteArrayInputStream(bytes), Charsets.UTF_8));
|
ResourcesTest.java | 57 assertEquals(I18N, Resources.toString(resource, Charsets.UTF_8)); 73 Resources.readLines(resource, Charsets.UTF_8));
|
/frameworks/multidex/library/test/src/android/support/multidex/ |
ZipEntryReader.java | 32 static final Charset UTF_8 = Charset.forName("UTF-8"); 83 String name = new String(nameBytes, 0, nameBytes.length, UTF_8); 98 entry.setComment(new String(commentBytes, 0, commentBytes.length, UTF_8));
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
CharacterSets.java | 43 public static final int UTF_8 = 0x6A; 49 * If the encoding of given data is unsupported, use UTF_8 to decode it. 51 public static final int DEFAULT_CHARSET = UTF_8; 69 UTF_8,
|
/external/apache-http/src/org/apache/http/protocol/ |
HTTP.java | 79 public static final String UTF_8 = "UTF-8";
|
/external/okhttp/okio/src/main/java/okio/ |
Util.java | 22 public static final Charset UTF_8 = Charset.forName("UTF-8");
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
Charsets.java | 46 public static final Charset UTF_8 = Charset.forName("UTF-8"); 75 return UTF_8.encode(cb).array();
|
/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/systrace/ |
SystraceOutputParser.java | 139 Files.toString(new File(assetsFolder, "script.js"), Charsets.UTF_8)); 148 Files.toString(new File(assetsFolder, "style.css"), Charsets.UTF_8)); 164 return Files.toString(new File(assetsFolder, htmlFileName), Charsets.UTF_8);
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
RequestTest.java | 30 Request.Body body = Request.Body.create(contentType, "abc".getBytes(Util.UTF_8)); 55 Request.Body body = Request.Body.create(contentType, "abc".getBytes(Util.UTF_8));
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
HtmlLexerTest.java | 49 Charsets.UTF_8); 56 Charsets.UTF_8);
|
/frameworks/base/core/java/android/util/ |
Xml.java | 132 UTF_8("UTF-8"), 149 return Encoding.UTF_8;
|
/development/tools/rmtypedefs/test/com/android/tools/rmtypedefs/ |
RmTypeDefsTest.java | 19 import static com.google.common.base.Charsets.UTF_8; 108 Files.write(testClass, srcFile1, Charsets.UTF_8); 114 Files.write(intdef, srcFile2, Charsets.UTF_8); 193 String symbol = new String(contents, i, length, UTF_8);
|
/external/owasp/sanitizer/src/main/org/owasp/html/examples/ |
SlashdotPolicyExample.java | 100 new InputStreamReader(System.in, Charsets.UTF_8));
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
BluetoothMasRequestGetMessage.java | 49 oap.add(OAP_TAGID_CHARSET, CharsetType.UTF_8.equals(charset) ? CHARSET_UTF8
|