HomeSort by relevance Sort by last modified time
    Searched refs:UTF_8 (Results 1 - 25 of 946) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/guava/guava-tests/test/com/google/common/io/
TestCharSource.java 19 import static com.google.common.base.Charsets.UTF_8;
35 this.byteSource = new TestByteSource(content.getBytes(UTF_8), options);
50 return new InputStreamReader(byteSource.openStream(), UTF_8);
TestReader.java 19 import static com.google.common.base.Charsets.UTF_8;
39 super(new InputStreamReader(checkNotNull(in), UTF_8));
TestWriter.java 19 import static com.google.common.base.Charsets.UTF_8;
38 super(new OutputStreamWriter(checkNotNull(out), UTF_8));
TestCharSink.java 19 import static com.google.common.base.Charsets.UTF_8;
40 return new String(byteSink.getBytes(), UTF_8);
56 return new FilterWriter(new OutputStreamWriter(byteSink.openStream(), UTF_8)) {
SourceSinkFactories.java 79 return new FileByteSinkFactory(initialString.getBytes(Charsets.UTF_8));
108 return factory.createSource(string.getBytes(Charsets.UTF_8))
109 .asCharSource(Charsets.UTF_8);
114 return new String(factory.getExpected(data.getBytes(Charsets.UTF_8)), Charsets.UTF_8);
129 return factory.createSink().asCharSink(Charsets.UTF_8);
134 return new String(factory.getSinkContents(), Charsets.UTF_8);
144 return new String(factoryExpectedForNothing, Charsets.UTF_8) + checkNotNull(data);
344 Writer writer = new OutputStreamWriter(new FileOutputStream(file), Charsets.UTF_8);
350 return Files.asCharSource(file, Charsets.UTF_8);
    [all...]
  /external/sl4a/Common/src/org/apache/commons/codec/
CharEncoding.java 124 public static final String UTF_8 = "UTF-8";
  /libcore/luni/src/test/java/libcore/libcore/net/http/
ResponseUtilsTest.java 26 assertEquals(StandardCharsets.UTF_8, responseCharset(null));
27 assertEquals(StandardCharsets.UTF_8, responseCharset("text/plain"));
28 assertEquals(StandardCharsets.UTF_8, responseCharset("text/plain;foo=bar;baz=bal"));
29 assertEquals(StandardCharsets.UTF_8, responseCharset("text/plain;charset="));
  /external/desugar/java/com/google/devtools/common/options/
UnquotedParamsFilePreProcessor.java 16 import static java.nio.charset.StandardCharsets.UTF_8;
38 return Files.readAllLines(paramsFile, UTF_8);
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowIoUtils.java 3 import static java.nio.charset.StandardCharsets.UTF_8;
17 return new String(Files.readAllBytes(Paths.get(absolutePath)), UTF_8);
  /external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
Charsets.java 27 * <p>Assuming you're free to choose, note that <b>{@link #UTF_8} is widely preferred</b>.
44 * {@link java.nio.charset.StandardCharsets#UTF_8} instead.
47 public static final Charset UTF_8 = Charset.forName("UTF-8");
  /external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
CharsetsTest.java 34 assertEquals(Charset.forName("UTF-8"), Charsets.UTF_8);
  /external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/fakes/
RoboCharsets.java 20 public static final Charset UTF_8 = Charset.forName("UTF-8");
  /libcore/benchmarks/src/benchmarks/regression/
CharsetUtf8Benchmark.java 55 new String(ASCII, StandardCharsets.UTF_8);
59 new String(BMP2, StandardCharsets.UTF_8);
63 new String(BMP3, StandardCharsets.UTF_8);
67 new String(SUPPLEMENTARY, StandardCharsets.UTF_8);
  /libcore/ojluni/src/main/java/java/nio/charset/
StandardCharsets.java 52 public static final Charset UTF_8 = Charset.forName("UTF-8");
  /external/conscrypt/openjdk/src/test/java/org/conscrypt/
SSLUtilsTest.java 19 import static org.conscrypt.TestUtils.UTF_8;
33 "0123456789abcdefghijklmnopqrstuvwxyz".getBytes(UTF_8);
49 SSLUtils.encodeProtocols(new String[] {new String(newValidProtocol(256), UTF_8)});
60 "protocol-1".getBytes(UTF_8),
61 "protocol-2".getBytes(UTF_8),
62 "protocol-3".getBytes(UTF_8),
82 "protocol-1".getBytes(UTF_8),
83 "protocol-2".getBytes(UTF_8),
84 "protocol-3".getBytes(UTF_8),
127 out[i] = new String(protocols[i], UTF_8);
    [all...]
  /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...]
  /libcore/luni/src/test/java/libcore/libcore/net/
UriCodecTest.java 172 assertEquals("", CODEC.encode("", StandardCharsets.UTF_8));
176 assertEquals("ab%2F$%C4%82%2512", CODEC.encode("ab/$\u0102%12", StandardCharsets.UTF_8));
182 CODEC.encode("ab/$\u0102%12 ", StandardCharsets.UTF_8));
192 withWhitespaceRetained.encode("ab/$\u0102%12 ", StandardCharsets.UTF_8));
204 assertEquals("ab%34%20", withPercentRetained.encode("ab%34 ", StandardCharsets.UTF_8));
237 CODEC.encode("ab/$\u0102%\u0840", StandardCharsets.UTF_8));
249 withSpaceRetained.encode("/ ", StandardCharsets.UTF_8));
290 StandardCharsets.UTF_8,
298 StandardCharsets.UTF_8,
  /external/protobuf/java/core/src/test/java/com/google/protobuf/
BoundedByteStringTest.java 64 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8));
69 String roundTripString = chopped.toString(UTF_8);
77 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8));
82 String roundTripString = chopped.toString(Internal.UTF_8);
  /frameworks/support/core/ktx/src/main/java/androidx/core/util/
AtomicFile.kt 61 fun AtomicFile.writeText(text: String, charset: Charset = Charsets.UTF_8) {
79 fun AtomicFile.readText(charset: Charset = Charsets.UTF_8): String {
  /external/conscrypt/platform/src/main/java/org/conscrypt/
CertBlacklist.java 19 import static java.nio.charset.StandardCharsets.UTF_8;
179 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8),
182 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8),
185 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8),
188 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8),
191 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8),
194 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8),
198 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8),
201 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8),
204 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8),
    [all...]
  /external/guava/guava-gwt/src-super/java/nio/charset/
Charset.java 29 private static final Charset UTF_8 = new Charset("UTF-8") {};
34 AVAILABLE_CHARSETS.put(UTF_8.name(), UTF_8);
  /external/guava/guava-tests/test/com/google/common/hash/
Crc32cHashFunctionTest.java 17 import static com.google.common.base.Charsets.UTF_8;
83 assertCrc(0x22620404, "The quick brown fox jumps over the lazy dog".getBytes(UTF_8));
84 assertCrc(0xE3069283, "123456789".getBytes(UTF_8));
85 assertCrc(0xf3dbd4fe, "1234567890".getBytes(UTF_8));
86 assertCrc(0xBFE92A83, "23456789".getBytes(UTF_8));
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
ResponseBody.java 28 import static com.squareup.okhttp.internal.Util.UTF_8;
88 return contentType != null ? contentType.charset(UTF_8) : UTF_8;
100 Charset charset = Util.UTF_8;
104 charset = Util.UTF_8;
  /external/caliper/caliper/src/test/java/com/google/caliper/bridge/
LogMessageParserTest.java 21 import static com.google.common.base.Charsets.UTF_8;
58 Resources.getResource(LogMessageParserTest.class, "jdk6-gc.txt"), UTF_8);
66 Resources.getResource(LogMessageParserTest.class, "jdk7-gc.txt"), UTF_8);
87 Resources.getResource(LogMessageParserTest.class, "jdk6-compilation.txt"), UTF_8);
95 Resources.getResource(LogMessageParserTest.class, "jdk7-compilation.txt"), UTF_8);
103 Resources.getResource(LogMessageParserTest.class, "jdk6-flags.txt"), UTF_8);
111 Resources.getResource(LogMessageParserTest.class, "jdk7-flags.txt"), UTF_8);
  /external/guava/guava/src/com/google/common/base/
Charsets.java 28 * <p>Assuming you're free to choose, note that <b>{@link #UTF_8} is widely preferred</b>.
65 * {@link java.nio.charset.StandardCharsets#UTF_8} instead.
68 public static final Charset UTF_8 = Charset.forName("UTF-8");

Completed in 591 milliseconds

1 2 3 4 5 6 7 8 91011>>