Home
last modified time | relevance | path

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

123456

/external/conscrypt/platform/src/main/java/org/conscrypt/
DCertBlacklist.java19 import static java.nio.charset.StandardCharsets.UTF_8;
179 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8), in readPublicKeyBlackList()
182 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8), in readPublicKeyBlackList()
185 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8), in readPublicKeyBlackList()
188 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8), in readPublicKeyBlackList()
191 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8), in readPublicKeyBlackList()
194 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8), in readPublicKeyBlackList()
198 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8), in readPublicKeyBlackList()
201 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8), in readPublicKeyBlackList()
204 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8), in readPublicKeyBlackList()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DSourceSinkFactories.java79 return new FileByteSinkFactory(initialString.getBytes(Charsets.UTF_8)); in appendingFileByteSinkFactory()
108 return factory.createSource(string.getBytes(Charsets.UTF_8)) in asCharSourceFactory()
109 .asCharSource(Charsets.UTF_8); in asCharSourceFactory()
114 return new String(factory.getExpected(data.getBytes(Charsets.UTF_8)), Charsets.UTF_8); in asCharSourceFactory()
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);
371 Writer writer = new OutputStreamWriter(new FileOutputStream(file), Charsets.UTF_8);
[all …]
DFilesTest.java78 assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), in testToByteArray()
80 assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), in testToByteArray()
168 assertEquals(I18N, Files.toString(i18nFile, Charsets.UTF_8)); in testToString()
212 Files.copy(i18nFile, Charsets.UTF_8, sb); in testCopyToAppendable()
220 assertEquals(I18N, Files.toString(temp, Charsets.UTF_8)); in testCopyFile()
227 Files.write(ASCII, temp1, Charsets.UTF_8); in testCopyEqualFiles()
233 assertEquals(ASCII, Files.toString(temp1, Charsets.UTF_8)); in testCopyEqualFiles()
238 Files.write(ASCII, temp, Charsets.UTF_8); in testCopySameFile()
244 assertEquals(ASCII, Files.toString(temp, Charsets.UTF_8)); in testCopySameFile()
249 Files.write(ASCII, temp1, Charsets.UTF_8); in testCopyIdenticalFiles()
[all …]
DTestCharSource.java19 import static com.google.common.base.Charsets.UTF_8;
35 this.byteSource = new TestByteSource(content.getBytes(UTF_8), options); in TestCharSource()
50 return new InputStreamReader(byteSource.openStream(), UTF_8); in openStream()
DTestCharSink.java19 import static com.google.common.base.Charsets.UTF_8;
40 return new String(byteSink.getBytes(), UTF_8); in getString()
56 return new FilterWriter(new OutputStreamWriter(byteSink.openStream(), UTF_8)) { in openStream()
DTestReader.java19 import static com.google.common.base.Charsets.UTF_8;
39 super(new InputStreamReader(checkNotNull(in), UTF_8)); in TestReader()
DTestWriter.java19 import static com.google.common.base.Charsets.UTF_8;
38 super(new OutputStreamWriter(checkNotNull(out), UTF_8)); in TestWriter()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DSSLUtilsTest.java19 import static org.conscrypt.TestUtils.UTF_8;
33 "0123456789abcdefghijklmnopqrstuvwxyz".getBytes(UTF_8);
49 SSLUtils.toLengthPrefixedList(new String(newValidProtocol(256), UTF_8)); in longProtocolShouldThrow()
60 "protocol-1".getBytes(UTF_8), in validProtocolsShouldSucceed()
61 "protocol-2".getBytes(UTF_8), in validProtocolsShouldSucceed()
62 "protocol-3".getBytes(UTF_8), in validProtocolsShouldSucceed()
105 out[i] = new String(protocols[i], UTF_8); in toStrings()
DMockSessionBuilder.java18 import static org.conscrypt.TestUtils.UTF_8;
75 byte[] id = this.id == null ? host.getBytes(UTF_8) : this.id; in build()
/external/caliper/caliper/src/test/java/com/google/caliper/bridge/
DLogMessageParserTest.java21 import static com.google.common.base.Charsets.UTF_8;
58 Resources.getResource(LogMessageParserTest.class, "jdk6-gc.txt"), UTF_8); in gcPatten_jdk6()
66 Resources.getResource(LogMessageParserTest.class, "jdk7-gc.txt"), UTF_8); in gcPatten_jdk7()
87 Resources.getResource(LogMessageParserTest.class, "jdk6-compilation.txt"), UTF_8); in jitPattern_jdk6()
95 Resources.getResource(LogMessageParserTest.class, "jdk7-compilation.txt"), UTF_8); in jitPattern_jdk7()
103 Resources.getResource(LogMessageParserTest.class, "jdk6-flags.txt"), UTF_8); in vmOptionPattern_jdk6()
111 Resources.getResource(LogMessageParserTest.class, "jdk7-flags.txt"), UTF_8); in vmOptionPattern_jdk7()
/external/guava/guava-tests/test/com/google/common/hash/
DCrc32cHashFunctionTest.java17 import static com.google.common.base.Charsets.UTF_8;
83 assertCrc(0x22620404, "The quick brown fox jumps over the lazy dog".getBytes(UTF_8)); in testSomeOtherKnownValues()
84 assertCrc(0xE3069283, "123456789".getBytes(UTF_8)); in testSomeOtherKnownValues()
85 assertCrc(0xf3dbd4fe, "1234567890".getBytes(UTF_8)); in testSomeOtherKnownValues()
86 assertCrc(0xBFE92A83, "23456789".getBytes(UTF_8)); in testSomeOtherKnownValues()
DSipHashFunctionTest.java17 import static com.google.common.base.Charsets.UTF_8;
165 assertEquals(expected, SIP_WITH_KEY.hashString(input, UTF_8).asLong()); in assertSip()
166 assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip()
167 assertEquals(expected, SIP_WITHOUT_KEY.hashString(input, UTF_8).asLong()); in assertSip()
168 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DResponseBody.java28 import static com.squareup.okhttp.internal.Util.UTF_8;
88 return contentType != null ? contentType.charset(UTF_8) : UTF_8; in charset()
100 Charset charset = Util.UTF_8; in create()
104 charset = Util.UTF_8; in create()
/external/brotli/java/org/brotli/dec/
DTransformTest.java28 byte[] input = "word".getBytes(StandardCharsets.UTF_8); in testTrimAll()
31 assertArrayEquals(output, "[]".getBytes(StandardCharsets.UTF_8)); in testTrimAll()
37 byte[] input = "qæप".getBytes(StandardCharsets.UTF_8); in testCapitalize()
40 assertArrayEquals(output, "[QÆय]".getBytes(StandardCharsets.UTF_8)); in testCapitalize()
/external/okhttp/okio/okio/src/test/java/okio/
DGzipSourceTest.java22 import static okio.Util.UTF_8;
55 gzipped.write("blubber".getBytes(UTF_8), 0, 7); in gunzip_withExtra()
64 gzipped.write("foo.txt".getBytes(UTF_8), 0, 7); in gunzip_withName()
74 gzipped.write("rubbish".getBytes(UTF_8), 0, 7); in gunzip_withComment()
89 gzipped.write("blubber".getBytes(UTF_8), 0, 7); in gunzip_withAll()
90 gzipped.write("foo.txt".getBytes(UTF_8), 0, 7); in gunzip_withAll()
92 gzipped.write("rubbish".getBytes(UTF_8), 0, 7); in gunzip_withAll()
DByteStringTest.java38 byte[] bytes = "Hello, World!".getBytes(Util.UTF_8); in ofCopyRange()
74 assertByteArraysEquals(byteString.toByteArray(), bronzeHorseman.getBytes(Util.UTF_8)); in utf8()
75 assertTrue(byteString.equals(ByteString.of(bronzeHorseman.getBytes(Util.UTF_8)))); in utf8()
104 InputStream in = new ByteArrayInputStream("abc".getBytes(Util.UTF_8)); in read()
111 InputStream in = new ByteArrayInputStream("ABC".getBytes(Util.UTF_8)); in readAndToLowercase()
131 InputStream in = new ByteArrayInputStream("abc".getBytes(Util.UTF_8)); in readAndToUppercase()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DBoundedByteStringTest.java64 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testToString()
69 String roundTripString = chopped.toString(UTF_8); in testToString()
77 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testCharsetToString()
82 String roundTripString = chopped.toString(Internal.UTF_8); in testCharsetToString()
DRopeByteStringTest.java112 String roundTripString = unicode.toString(UTF_8); in testToString()
138 String roundTripString = unicode.toString(Internal.UTF_8); in testCharsetToString()
152 ByteString.EMPTY.toString(Internal.UTF_8), ropeByteString.toString(Internal.UTF_8)); in testToString_returnsCanonicalEmptyString()
DLiteralByteStringTest.java57 protected static final String UTF_8 = "UTF-8"; field in LiteralByteStringTest
401 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testToString()
402 String roundTripString = unicode.toString(UTF_8); in testToString()
408 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testCharsetToString()
409 String roundTripString = unicode.toString(Internal.UTF_8); in testCharsetToString()
415 ByteString.EMPTY.toString(Internal.UTF_8), in testToString_returnsCanonicalEmptyString()
416 ByteString.wrap(new byte[]{}).toString(Internal.UTF_8)); in testToString_returnsCanonicalEmptyString()
/external/guava/guava-gwt/src-super/java/nio/charset/
DCharset.java29 private static final Charset UTF_8 = new Charset("UTF-8") {}; field in Charset
34 AVAILABLE_CHARSETS.put(UTF_8.name(), UTF_8); in UTF_8.name()
/external/libphonenumber/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java21 import static java.nio.charset.StandardCharsets.UTF_8;
80 phoneNumber = Streams.asString(in, UTF_8.name()); in doPost()
105 resp.setCharacterEncoding(UTF_8.name()); in doPost()
199 "?number=" + URLEncoder.encode(phoneNumber != null ? phoneNumber : "", UTF_8.name())); in getPermaLinkURL()
201 permaLink.append("&country=" + URLEncoder.encode(defaultCountry, UTF_8.name())); in getPermaLinkURL()
206 URLEncoder.encode(geocodingLocale.toLanguageTag(), UTF_8.name())); in getPermaLinkURL()
248 newIssueLink += URLEncoder.encode(issueTitle, UTF_8.name()) + "&body=" in getNewIssueLink()
249 + URLEncoder.encode(issueTemplate.toString(), UTF_8.name()); in getNewIssueLink()
/external/caliper/caliper/src/test/java/com/google/caliper/config/
DLoggingConfigLoaderTest.java17 import static com.google.common.base.Charsets.UTF_8;
81 assertEquals(UTF_8.name(), fileHandler.getEncoding()); in testLoadDefaultLogConfiguration()
87 assertTrue(Files.toString(logFile, UTF_8).contains("some message")); in testLoadDefaultLogConfiguration()
/external/guava/guava-tests/test/com/google/common/net/
DMediaTypeTest.java20 import static com.google.common.base.Charsets.UTF_8;
80 assertEquals(Optional.of(UTF_8), charset); in testConstants_charset()
230 MediaType.parse("text/plain").withCharset(UTF_8));
232 MediaType.parse("text/plain; charset=utf-16").withCharset(UTF_8));
337 assertEquals(Optional.of(UTF_8),
380 MediaType.create("text", "plain").withCharset(UTF_8),
411 .addEqualityGroup(MediaType.create("text", "plain").withCharset(UTF_8))
/external/guava/guava-gwt/test-super/com/google/common/net/super/com/google/common/net/
DMediaTypeTest.java19 import static com.google.common.base.Charsets.UTF_8;
170 MediaType.parse("text/plain").withCharset(UTF_8)); in testWithCharset()
172 MediaType.parse("text/plain; charset=utf-16").withCharset(UTF_8)); in testWithCharset()
277 assertEquals(Optional.of(UTF_8), in testGetCharset()
315 MediaType.create("text", "plain").withCharset(UTF_8), in testEquals()
/external/conscrypt/testing/src/main/java/libcore/javax/net/ssl/
DFakeSSLSession.java26 private static final Charset UTF_8 = Charset.forName("UTF-8"); field in FakeSSLSession
50 return host.getBytes(UTF_8); in getId()

123456