Home
last modified time | relevance | path

Searched refs:UTF_8 (Results 1 – 25 of 28) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/io/
DCharStreamsTest.java19 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()); in testReadLines_fromReadable()
98 new InputStreamReader(new ByteArrayInputStream(bytes), Charsets.UTF_8)); in testReadLines_fromReadable()
DResourcesTest.java57 assertEquals(I18N, Resources.toString(resource, Charsets.UTF_8)); in testToString()
73 Resources.readLines(resource, Charsets.UTF_8)); in testReadLines()
DFilesSimplifyPathTest.java19 import static com.google.common.base.Charsets.UTF_8;
299 for (String line : Resources.readLines(url, UTF_8)) { in doExtensiveTest()
DByteStreamsTest.java530 "This is a line\r\nThis too\rand this\nand also this".getBytes(Charsets.UTF_8));
553 System.arraycopy("Kilroy was here".getBytes(Charsets.UTF_8), 0, data, 2, 15);
701 byte[] expected ="r\u00C9sum\u00C9".getBytes(Charsets.UTF_8);
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/
DBoundedByteStringTest.java59 LiteralByteString unicode = new LiteralByteString(testString.getBytes(UTF_8)); in testToString()
64 String roundTripString = chopped.toString(UTF_8); in testToString()
DLiteralByteStringTest.java53 protected static final String UTF_8 = "UTF-8"; field in LiteralByteStringTest
294 LiteralByteString unicode = new LiteralByteString(testString.getBytes(UTF_8)); in testToString()
295 String roundTripString = unicode.toString(UTF_8); in testToString()
DRopeByteStringSubstringTest.java89 String roundTripString = unicode.toString(UTF_8); in testToString()
DRopeByteStringTest.java107 String roundTripString = unicode.toString(UTF_8); in testToString()
/external/okhttp/src/test/java/com/squareup/okhttp/internal/
DFaultRecoveringOutputStreamTest.java27 import static com.squareup.okhttp.internal.Util.UTF_8;
148 recovering.write("abcdefghij".getBytes(UTF_8)); // 10 bytes. in recoverWithFullBuffer()
169 recovering.write("abcdefghijk".getBytes(UTF_8)); // 11 bytes. in noRecoveryWithOverfullBuffer()
196 receivedUtf8 += new String(buffer, offset, count, UTF_8); in write()
/external/okhttp/src/test/java/com/squareup/okhttp/
DRequestTest.java30 Request.Body body = Request.Body.create(contentType, "abc".getBytes(Util.UTF_8)); in string()
55 Request.Body body = Request.Body.create(contentType, "abc".getBytes(Util.UTF_8)); in byteArray()
DMediaTypeTest.java135 assertEquals("UTF-8", noCharset.charset(Util.UTF_8).name()); in testDefaultCharset()
139 assertEquals("ISO-8859-1", charset.charset(Util.UTF_8).name()); in testDefaultCharset()
/external/guava/guava/src/com/google/common/base/
DCharsets.java44 public static final Charset UTF_8 = Charset.forName("UTF-8"); field in Charsets
/external/guava/guava-tests/test/com/google/common/base/
DCharsetsTest.java38 assertEquals(Charset.forName("UTF-8"), Charsets.UTF_8); in testUtf8()
/external/apache-http/src/org/apache/http/protocol/
DHTTP.java74 public static final String UTF_8 = "UTF-8"; field in HTTP
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/
DSpdyConnectionTest.java31 import static com.squareup.okhttp.internal.Util.UTF_8;
366 out.write("square".getBytes(UTF_8));
371 out.write("round".getBytes(UTF_8));
412 out.write("square".getBytes(UTF_8));
500 out.write("square".getBytes(UTF_8));
524 peer.sendFrame().data(FLAG_FIN, 1, "square".getBytes(UTF_8));
703 stream1.getOutputStream().write("abc".getBytes(UTF_8));
705 stream2.getOutputStream().write("abc".getBytes(UTF_8));
710 stream1.getOutputStream().write("def".getBytes(UTF_8));
DHttpOverSpdyTest.java123 connection.getOutputStream().write("FGHIJ".getBytes(Util.UTF_8)); in post()
148 .setBody(gzip("ABCABCABC".getBytes(Util.UTF_8)))); in gzippedResponseBody()
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/metadata/
Did3_parser.js73 case Id3Parser.v2.ENCODING.UTF_8:
664 UTF_8: 3 property
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/
DFileCheckerCallable.java49 String text = StandardCharsets.UTF_8.decode(ByteBuffer.wrap(encoded)).toString(); in readScriptText()
/external/okhttp/src/test/java/com/squareup/okhttp/internal/tls/
DHostnameVerifierTest.java547 new ByteArrayInputStream(certificate.getBytes(Util.UTF_8))); in certificate()
/external/okhttp/src/main/java/com/squareup/okhttp/
DHttpResponseCache.java62 import static com.squareup.okhttp.internal.Util.UTF_8;
589 Writer writer = new BufferedWriter(new OutputStreamWriter(out, UTF_8)); in writeTo()
/external/okhttp/src/main/java/com/squareup/okhttp/internal/
DUtil.java50 public static final Charset UTF_8 = Charset.forName("UTF-8"); field in Util
DDiskLruCache.java661 return Util.readFully(new InputStreamReader(in, Util.UTF_8)); in inputStreamToString()
794 writer = new OutputStreamWriter(newOutputStream(index), Util.UTF_8); in set()
/external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
DSpdyReader.java70 + "sdchcharset=utf-8charset=iso-8859-1,utf-,*,enq=0.").getBytes(Util.UTF_8.name());
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src_bugzilla/org/eclipse/releng/services/bugzilla/
DUpdateBugStateTask.java35 private static final String UTF_8 = "UTF-8"; //$NON-NLS-1$ field in UpdateBugStateTask
561 elem = URLEncoder.encode(elem, UTF_8); in urlEncode()
/external/chromium_org/third_party/sqlite/src/src/
Dos_os2.c616 if( UniCreateUconvObject( UTF_8, &ucUtf8 ) != ULS_SUCCESS ) in initUconvObjects()

12