HomeSort by relevance Sort by last modified time
    Searched refs:UTF_8 (Results 1 - 25 of 584) 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 125 public static final String UTF_8 = "UTF-8";
  /libcore/luni/src/test/java/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/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);
  /libcore/ojluni/src/main/java/java/nio/charset/
StandardCharsets.java 52 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...]
  /libcore/luni/src/test/java/libcore/net/
UriCodecTest.java 171 assertEquals("", CODEC.encode("", StandardCharsets.UTF_8));
175 assertEquals("ab%2F$%C4%82%2512", CODEC.encode("ab/$\u0102%12", StandardCharsets.UTF_8));
181 CODEC.encode("ab/$\u0102%12 ", StandardCharsets.UTF_8));
191 withWhitespaceRetained.encode("ab/$\u0102%12 ", StandardCharsets.UTF_8));
203 assertEquals("ab%34%20", withPercentRetained.encode("ab%34 ", StandardCharsets.UTF_8));
236 CODEC.encode("ab/$\u0102%\u0840", StandardCharsets.UTF_8));
248 withSpaceRetained.encode("/ ", StandardCharsets.UTF_8));
289 StandardCharsets.UTF_8,
297 StandardCharsets.UTF_8,
  /external/protobuf/java/src/test/java/com/google/protobuf/
BoundedByteStringTest.java 59 LiteralByteString unicode = new LiteralByteString(testString.getBytes(UTF_8));
64 String roundTripString = chopped.toString(UTF_8);
  /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));
SipHashFunctionTest.java 17 import static com.google.common.base.Charsets.UTF_8;
165 assertEquals(expected, SIP_WITH_KEY.hashString(input, UTF_8).asLong());
166 assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong());
167 assertEquals(expected, SIP_WITHOUT_KEY.hashString(input, UTF_8).asLong());
168 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putString(input, UTF_8).hash().asLong());
  /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);
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
OMAConstants.java 42 byte[] octets = s.getBytes(StandardCharsets.UTF_8);
43 byte[] prefix = String.format("%x:", octets.length).getBytes(StandardCharsets.UTF_8);
72 return new String(octets, StandardCharsets.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");
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
EmergencyNumberElement.java 22 mNumbers.add(Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8));
GenericStringElement.java 15 mText = Constants.getString(payload, payload.remaining(), StandardCharsets.UTF_8);
  /libcore/luni/src/test/java/android/system/
UnixSocketAddressTest.java 30 byte[] abstractNameBytes = path.getBytes(StandardCharsets.UTF_8);
45 byte[] abstractNameBytes = abstractName.getBytes(StandardCharsets.UTF_8);
  /external/okhttp/okio/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);
  /external/caliper/caliper/src/test/java/com/google/caliper/config/
LoggingConfigLoaderTest.java 17 import static com.google.common.base.Charsets.UTF_8;
81 assertEquals(UTF_8.name(), fileHandler.getEncoding());
87 assertTrue(Files.toString(logFile, UTF_8).contains("some message"));

Completed in 479 milliseconds

1 2 3 4 5 6 7 8 91011>>