Home
last modified time | relevance | path

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

12345678910>>...28

/external/apache-commons-io/src/test/java/org/apache/commons/io/input/
DXmlStreamReaderTest.java55 private static final String UTF_8 = StandardCharsets.UTF_8.name(); field in XmlStreamReaderTest
219 …mReader reader = new XmlStreamReader(new URL("https://www.apache.org/").openConnection(), UTF_8)) { in testConstructorURLConnectionInput() argument
243 …InputStream is = new ByteArrayInputStream(ENCODING_ATTRIBUTE_XML.getBytes(StandardCharsets.UTF_8)); in testEncodingAttributeXML()
245 assertEquals(xmlReader.getEncoding(), UTF_8); in testEncodingAttributeXML() local
257 testHttpValid("application/xml", "UTF-8-bom", UTF_8, null); in testHttp()
258 testHttpValid("application/xml", "UTF-8-bom", UTF_8, UTF_8); in testHttp()
259 testHttpValid("application/xml;charset=UTF-8", "UTF-8-bom", UTF_8, null); in testHttp()
260 testHttpValid("application/xml;charset=\"UTF-8\"", "UTF-8-bom", UTF_8, null); in testHttp()
261 testHttpValid("application/xml;charset='UTF-8'", "UTF-8-bom", UTF_8, null); in testHttp()
262 testHttpValid("application/xml;charset=UTF-8", "UTF-8-bom", UTF_8, UTF_8); in testHttp()
[all …]
DReversedLinesFileReaderTestParamFile.java52 private static final String UTF_8 = StandardCharsets.UTF_8.name(); field in ReversedLinesFileReaderTestParamFile
59 try (Reader input = Files.newBufferedReader(sourcePath, StandardCharsets.UTF_8); in testDataIntegrityWithBufferedReader()
73 Arguments.of("test-file-utf8-cr-only.bin", UTF_8, null, false, true), in testDataIntegrityWithBufferedReader()
74 Arguments.of("test-file-utf8-win-linebr.bin", UTF_8, null, false, true, in testDataIntegrityWithBufferedReader()
75 Arguments.of("test-file-utf8-win-linebr.bin", UTF_8, 1, false, true), in testDataIntegrityWithBufferedReader()
76 Arguments.of("test-file-utf8-win-linebr.bin", UTF_8, 2, false, true), in testDataIntegrityWithBufferedReader()
77 Arguments.of("test-file-utf8-win-linebr.bin", UTF_8, 3, false, true), in testDataIntegrityWithBufferedReader()
78 Arguments.of("test-file-utf8-win-linebr.bin", UTF_8, 4, false, true), in testDataIntegrityWithBufferedReader()
79 Arguments.of("test-file-utf8.bin", UTF_8, null, false, true), in testDataIntegrityWithBufferedReader()
80 Arguments.of("test-file-utf8.bin", UTF_8, null, true, true), in testDataIntegrityWithBufferedReader()
DCharSequenceInputStreamTest.java40 private static final String UTF_8 = StandardCharsets.UTF_8.name(); field in CharSequenceInputStreamTest
177 testBufferedRead(TEST_STRING, UTF_8);
232 testIO_356(10, 10, 0, UTF_8);
237 testIO_356(10, 10, 1, UTF_8);
242 testIO_356(10, 10, 2, UTF_8);
247 testIO_356(10, 13, 0, UTF_8);
252 testIO_356(10, 13, 1, UTF_8);
257 testIO_356(10, 20, 0, UTF_8);
276 final Charset charset = StandardCharsets.UTF_8;
289 testBufferedRead(LARGE_TEST_STRING, UTF_8);
[all …]
DReaderInputStreamTest.java47 private static final String UTF_8 = StandardCharsets.UTF_8.name(); field in ReaderInputStreamTest
64 Arguments.of(UTF_8, "\u0391")); in charsetData()
73 final Charset charset = StandardCharsets.UTF_8; in testBufferSmallest()
81 …eption.class, () -> new ReaderInputStream(new StringReader("\uD800"), StandardCharsets.UTF_8, -1)); in testBufferTooSmall()
82 …ception.class, () -> new ReaderInputStream(new StringReader("\uD800"), StandardCharsets.UTF_8, 0)); in testBufferTooSmall()
83 …ception.class, () -> new ReaderInputStream(new StringReader("\uD800"), StandardCharsets.UTF_8, 1)); in testBufferTooSmall()
119 final Charset charset = StandardCharsets.UTF_8; in testCodingErrorAction()
161 testWithBufferedRead(LARGE_TEST_STRING, UTF_8); in testLargeUTF8WithBufferedRead()
166 testWithSingleByteRead(LARGE_TEST_STRING, UTF_8); in testLargeUTF8WithSingleByteRead()
202 testWithBufferedRead(TEST_STRING, UTF_8); in testUTF8WithBufferedRead()
[all …]
/external/guava/android/guava-tests/test/com/google/common/hash/
DMurmur3Hash32Test.java58 assertStringHash(0, "", Charsets.UTF_8); in testKnownEncodedStringInputs()
59 assertStringHash(0xcfbda5d1, "k", Charsets.UTF_8); in testKnownEncodedStringInputs()
60 assertStringHash(0xa167dbf3, "hell", Charsets.UTF_8); in testKnownEncodedStringInputs()
61 assertStringHash(0x248bfa47, "hello", Charsets.UTF_8); in testKnownEncodedStringInputs()
62 assertStringHash(0x3d41b97c, "http://www.google.com/", Charsets.UTF_8); in testKnownEncodedStringInputs()
63 assertStringHash(0x2e4ff723, "The quick brown fox jumps over the lazy dog", Charsets.UTF_8); in testKnownEncodedStringInputs()
64 assertStringHash(0xb5a4be05, "ABCDefGHI\u0799", Charsets.UTF_8); in testKnownEncodedStringInputs()
65 assertStringHash(0xfc5ba834, "毎月1日,毎週月曜日", Charsets.UTF_8); in testKnownEncodedStringInputs()
66 assertStringHash(0x8a5c3699, "surrogate pair: \uD83D\uDCB0", Charsets.UTF_8); in testKnownEncodedStringInputs()
108 murmur3_32().hashBytes("ABCDefGHI\u0799".getBytes(Charsets.UTF_8)), in testSimpleStringUtf8()
[all …]
DMacHashFunctionTest.java19 import static com.google.common.base.Charsets.UTF_8;
45 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacMD5");
47 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA1");
49 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA256");
51 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA512");
96 mac.update("hello".getBytes(UTF_8)); in testMultipleUpdates()
97 mac.update("world".getBytes(UTF_8)); in testMultipleUpdates()
103 .putString("hello", UTF_8) in testMultipleUpdates()
104 .putString("world", UTF_8) in testMultipleUpdates()
111 mac.update("hello".getBytes(UTF_8)); in testMultipleUpdatesDoFinal()
[all …]
/external/guava/guava-tests/test/com/google/common/hash/
DMurmur3Hash32Test.java58 assertStringHash(0, "", Charsets.UTF_8); in testKnownEncodedStringInputs()
59 assertStringHash(0xcfbda5d1, "k", Charsets.UTF_8); in testKnownEncodedStringInputs()
60 assertStringHash(0xa167dbf3, "hell", Charsets.UTF_8); in testKnownEncodedStringInputs()
61 assertStringHash(0x248bfa47, "hello", Charsets.UTF_8); in testKnownEncodedStringInputs()
62 assertStringHash(0x3d41b97c, "http://www.google.com/", Charsets.UTF_8); in testKnownEncodedStringInputs()
63 assertStringHash(0x2e4ff723, "The quick brown fox jumps over the lazy dog", Charsets.UTF_8); in testKnownEncodedStringInputs()
64 assertStringHash(0xb5a4be05, "ABCDefGHI\u0799", Charsets.UTF_8); in testKnownEncodedStringInputs()
65 assertStringHash(0xfc5ba834, "毎月1日,毎週月曜日", Charsets.UTF_8); in testKnownEncodedStringInputs()
66 assertStringHash(0x8a5c3699, "surrogate pair: \uD83D\uDCB0", Charsets.UTF_8); in testKnownEncodedStringInputs()
108 murmur3_32().hashBytes("ABCDefGHI\u0799".getBytes(Charsets.UTF_8)), in testSimpleStringUtf8()
[all …]
DMacHashFunctionTest.java19 import static com.google.common.base.Charsets.UTF_8;
45 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacMD5");
47 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA1");
49 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA256");
51 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA512");
96 mac.update("hello".getBytes(UTF_8)); in testMultipleUpdates()
97 mac.update("world".getBytes(UTF_8)); in testMultipleUpdates()
103 .putString("hello", UTF_8) in testMultipleUpdates()
104 .putString("world", UTF_8) in testMultipleUpdates()
111 mac.update("hello".getBytes(UTF_8)); in testMultipleUpdatesDoFinal()
[all …]
/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/
DMainTest.java21 import static java.nio.charset.StandardCharsets.UTF_8;
103 Files.write(path, "class Test {}\n".getBytes(UTF_8)); in preserveOriginalFile()
111 new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out, UTF_8)), true), in preserveOriginalFile()
112 new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.err, UTF_8)), true), in preserveOriginalFile()
133 String err = new String(ByteStreams.toByteArray(process.getErrorStream()), UTF_8); in testMain()
173 InputStream in = new ByteArrayInputStream(joiner.join(input).getBytes(UTF_8)); in javadoc()
178 new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.err, UTF_8)), true), in javadoc()
209 InputStream in = new ByteArrayInputStream(joiner.join(input).getBytes(UTF_8)); in imports()
214 new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.err, UTF_8)), true), in imports()
250 InputStream in = new ByteArrayInputStream(joiner.join(input).getBytes(UTF_8)); in optimizeImportsDoesNotLeaveEmptyLines()
[all …]
DDiagnosticTest.java18 import static java.nio.charset.StandardCharsets.UTF_8;
78 Files.write(path, input.getBytes(UTF_8)); in parseError()
96 Files.write(path, input.getBytes(UTF_8)); in lexError()
115 Files.write(pathOne, one.getBytes(UTF_8)); in oneFileParseError()
118 Files.write(pathTwo, two.getBytes(UTF_8)); in oneFileParseError()
137 Files.write(pathOne, one.getBytes(UTF_8)); in oneFileParseErrorReplace()
140 Files.write(pathTwo, two.getBytes(UTF_8)); in oneFileParseErrorReplace()
147 assertThat(Files.readAllLines(pathOne, UTF_8)).containsExactly("class One {}}"); in oneFileParseErrorReplace()
148 assertThat(Files.readAllLines(pathTwo, UTF_8)).containsExactly("class Two {}"); in oneFileParseErrorReplace()
157 Files.write(path, input.getBytes(UTF_8)); in parseError2()
[all …]
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/
DStreamMutationOpenerTest.java20 import static java.nio.charset.StandardCharsets.UTF_8;
71 out.write(content.getBytes(UTF_8)); in okIfFileDoesNotExist()
77 String actual = new String(storage.open(uri, opener), UTF_8); in okIfFileDoesNotExist()
94 out.write(content.getBytes(UTF_8)); in willFailToOverwriteDirectory()
111 String read = new String(ByteStreams.toByteArray(in), UTF_8); in canMutate()
112 out.write(Ascii.toUpperCase(read).getBytes(UTF_8)); in canMutate()
118 String actual = new String(storage.open(uri, opener), UTF_8); in canMutate()
133 String read = new String(ByteStreams.toByteArray(in), UTF_8); in canMutate_butNotCommit()
134 out.write(Ascii.toUpperCase(read).getBytes(UTF_8)); in canMutate_butNotCommit()
140 String actual = new String(storage.open(uri, opener), UTF_8); in canMutate_butNotCommit()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DSourceSinkFactories.java80 return new FileByteSinkFactory(initialString.getBytes(Charsets.UTF_8)); in appendingFileByteSinkFactory()
117 return new PathByteSinkFactory(initialString.getBytes(Charsets.UTF_8)); in appendingPathByteSinkFactory()
141 return factory.createSource(new String(data, Charsets.UTF_8)).asByteSource(Charsets.UTF_8); in asByteSourceFactory()
146 return factory.getExpected(new String(data, Charsets.UTF_8)).getBytes(Charsets.UTF_8); in asByteSourceFactory()
161 return factory.createSource(string.getBytes(Charsets.UTF_8)).asCharSource(Charsets.UTF_8);
166 return new String(factory.getExpected(data.getBytes(Charsets.UTF_8)), Charsets.UTF_8);
181 return factory.createSink().asCharSink(Charsets.UTF_8);
186 return new String(factory.getSinkContents(), Charsets.UTF_8);
196 return new String(factoryExpectedForNothing, Charsets.UTF_8) + checkNotNull(data);
394 Writer writer = new OutputStreamWriter(new FileOutputStream(file), Charsets.UTF_8);
[all …]
DFilesTest.java81 assertSame(byteSource, byteSource.asCharSource(Charsets.UTF_8).asByteSource(Charsets.UTF_8)); in testRoundTripSources()
88 assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.toByteArray(i18nFile))); in testToByteArray()
89 assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.asByteSource(i18nFile).read())); in testToByteArray()
114 assertEquals(I18N, Files.toString(i18nFile, Charsets.UTF_8)); in testToString()
157 Files.copy(i18nFile, Charsets.UTF_8, sb); in testCopyToAppendable()
165 assertEquals(I18N, Files.toString(temp, Charsets.UTF_8)); in testCopyFile()
172 Files.write(ASCII, temp1, Charsets.UTF_8); in testCopyEqualFiles()
178 assertEquals(ASCII, Files.toString(temp1, Charsets.UTF_8)); in testCopyEqualFiles()
183 Files.write(ASCII, temp, Charsets.UTF_8); in testCopySameFile()
189 assertEquals(ASCII, Files.toString(temp, Charsets.UTF_8)); in testCopySameFile()
[all …]
/external/guava/android/guava-tests/test/com/google/common/io/
DSourceSinkFactories.java77 return new FileByteSinkFactory(initialString.getBytes(Charsets.UTF_8)); in appendingFileByteSinkFactory()
106 return factory.createSource(new String(data, Charsets.UTF_8)).asByteSource(Charsets.UTF_8); in asByteSourceFactory()
111 return factory.getExpected(new String(data, Charsets.UTF_8)).getBytes(Charsets.UTF_8); in asByteSourceFactory()
126 return factory.createSource(string.getBytes(Charsets.UTF_8)).asCharSource(Charsets.UTF_8);
131 return new String(factory.getExpected(data.getBytes(Charsets.UTF_8)), Charsets.UTF_8);
146 return factory.createSink().asCharSink(Charsets.UTF_8);
151 return new String(factory.getSinkContents(), Charsets.UTF_8);
161 return new String(factoryExpectedForNothing, Charsets.UTF_8) + checkNotNull(data);
359 Writer writer = new OutputStreamWriter(new FileOutputStream(file), Charsets.UTF_8);
365 return Files.asCharSource(file, Charsets.UTF_8);
[all …]
DFilesTest.java81 assertSame(byteSource, byteSource.asCharSource(Charsets.UTF_8).asByteSource(Charsets.UTF_8)); in testRoundTripSources()
88 assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.toByteArray(i18nFile))); in testToByteArray()
89 assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.asByteSource(i18nFile).read())); in testToByteArray()
114 assertEquals(I18N, Files.toString(i18nFile, Charsets.UTF_8)); in testToString()
157 Files.copy(i18nFile, Charsets.UTF_8, sb); in testCopyToAppendable()
165 assertEquals(I18N, Files.toString(temp, Charsets.UTF_8)); in testCopyFile()
172 Files.write(ASCII, temp1, Charsets.UTF_8); in testCopyEqualFiles()
178 assertEquals(ASCII, Files.toString(temp1, Charsets.UTF_8)); in testCopyEqualFiles()
183 Files.write(ASCII, temp, Charsets.UTF_8); in testCopySameFile()
189 assertEquals(ASCII, Files.toString(temp, Charsets.UTF_8)); in testCopySameFile()
[all …]
/external/jazzer-api/driver/src/test/java/com/code_intelligence/jazzer/driver/
DFuzzTargetRunnerTest.java45 switch (new String(data, StandardCharsets.UTF_8)) { in fuzzerTestOneInput()
63 String errOutput = new String(recordedErr.toByteArray(), StandardCharsets.UTF_8); in fuzzerTearDown()
65 String outOutput = new String(recordedOut.toByteArray(), StandardCharsets.UTF_8); in fuzzerTearDown()
93 int result = FuzzTargetRunner.runOne("no crash".getBytes(StandardCharsets.UTF_8)); in main()
104 String errOutput = new String(recordedErr.toByteArray(), StandardCharsets.UTF_8); in main()
106 String outOutput = new String(recordedOut.toByteArray(), StandardCharsets.UTF_8); in main()
112 int result = FuzzTargetRunner.runOne("first finding".getBytes(StandardCharsets.UTF_8)); in main()
121 String errOutput = new String(recordedErr.toByteArray(), StandardCharsets.UTF_8); in main()
122 String outOutput = new String(recordedOut.toByteArray(), StandardCharsets.UTF_8); in main()
138 int result = FuzzTargetRunner.runOne("second finding".getBytes(StandardCharsets.UTF_8)); in main()
[all …]
/external/conscrypt/platform/src/main/java/org/conscrypt/
DCertBlocklistImpl.java19 import static java.nio.charset.StandardCharsets.UTF_8;
180 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8), in readPublicKeyBlockList()
183 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8), in readPublicKeyBlockList()
186 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8), in readPublicKeyBlockList()
189 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8), in readPublicKeyBlockList()
192 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8), in readPublicKeyBlockList()
195 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8), in readPublicKeyBlockList()
199 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8), in readPublicKeyBlockList()
202 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8), in readPublicKeyBlockList()
205 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8), in readPublicKeyBlockList()
[all …]
/external/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/
DCertBlocklistImpl.java20 import static java.nio.charset.StandardCharsets.UTF_8;
184 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8), in readPublicKeyBlockList()
187 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8), in readPublicKeyBlockList()
190 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8), in readPublicKeyBlockList()
193 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8), in readPublicKeyBlockList()
196 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8), in readPublicKeyBlockList()
199 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8), in readPublicKeyBlockList()
203 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8), in readPublicKeyBlockList()
206 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8), in readPublicKeyBlockList()
209 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8), in readPublicKeyBlockList()
[all …]
/external/downloader/src/test/java/com/google/android/downloader/
DProtoFileDownloadDestinationTest.java18 import static java.nio.charset.StandardCharsets.UTF_8;
64 Files.asCharSink(targetFile, UTF_8).write("Hello world"); in numExistingBytes_fileNonEmpty()
96 Files.asCharSink(targetFile, UTF_8).write("Hello world"); in metadata_fileNonEmpty()
124 CharSource.wrap(text).asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel)); in openByteChannel_fileEmpty()
127 assertThat(Files.asCharSource(targetFile, UTF_8).read()).isEqualTo(text); in openByteChannel_fileEmpty()
137 Files.asCharSink(targetFile, UTF_8).write(text1); in openByteChannel_fileNonEmpty()
143 CharSource.wrap(text2).asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel)); in openByteChannel_fileNonEmpty()
146 assertThat(Files.asCharSource(targetFile, UTF_8).read()).isEqualTo(text1 + text2); in openByteChannel_fileNonEmpty()
172 Files.asCharSink(targetFile, UTF_8).write("existing"); in clear_fileNonEmpty()
180 CharSource.wrap("swallowed").asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel1)); in clear_fileNonEmpty()
[all …]
DSimpleFileDownloadDestinationTest.java18 import static java.nio.charset.StandardCharsets.UTF_8;
64 Files.asCharSink(targetFile, UTF_8).write("Hello world"); in numExistingBytes_fileNonEmpty()
96 Files.asCharSink(targetFile, UTF_8).write("Hello world"); in metadata_fileNonEmpty()
124 CharSource.wrap(text).asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel)); in openByteChannel_fileEmpty()
127 assertThat(Files.asCharSource(targetFile, UTF_8).read()).isEqualTo(text); in openByteChannel_fileEmpty()
137 Files.asCharSink(targetFile, UTF_8).write(text1); in openByteChannel_fileNonEmpty()
143 CharSource.wrap(text2).asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel)); in openByteChannel_fileNonEmpty()
146 assertThat(Files.asCharSource(targetFile, UTF_8).read()).isEqualTo(text1 + text2); in openByteChannel_fileNonEmpty()
172 Files.asCharSink(targetFile, UTF_8).write("existing"); in clear_fileNonEmpty()
180 CharSource.wrap("swallowed").asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel1)); in clear_fileNonEmpty()
[all …]
/external/apache-commons-io/src/test/java/org/apache/commons/io/
DCharsetsTest.java57 assertEquals(StandardCharsets.UTF_8, Charsets.toCharset(StandardCharsets.UTF_8)); in testToCharset_String()
67 …assertEquals(StandardCharsets.UTF_8, Charsets.toCharset(StandardCharsets.UTF_8, Charset.defaultCha… in testToCharset_String_Charset()
68 assertEquals(StandardCharsets.UTF_8, Charsets.toCharset(StandardCharsets.UTF_8, null)); in testToCharset_String_Charset()
93 assertEquals("UTF-8", Charsets.UTF_8.name()); in testUtf8()
/external/android-key-attestation/server/src/test/java/com/google/android/attestation/
DParsedAttestationRecordTest.java19 import static java.nio.charset.StandardCharsets.UTF_8;
77 private static final byte[] EXPECTED_ATTESTATION_CHALLENGE = "abc".getBytes(UTF_8);
78 private static final byte[] EXPECTED_UNIQUE_ID = "".getBytes(UTF_8);
84 factory.generateCertificate(new ByteArrayInputStream(certStr.getBytes(UTF_8))); in getAttestationRecord()
111 teeEnforcedBuilder.attestationIdBrand = "free food".getBytes(UTF_8); in testCreateAndParseAttestationRecord()
118 /* attestationChallenge= */ "abc".getBytes(UTF_8), in testCreateAndParseAttestationRecord()
119 /* uniqueId= */ "foodplease".getBytes(UTF_8), in testCreateAndParseAttestationRecord()
123 .setAttestationIdBrand("free food".getBytes(UTF_8)).build()); in testCreateAndParseAttestationRecord()
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DSSLUtilsTest.java20 import static com.android.org.conscrypt.TestUtils.UTF_8;
39 "0123456789abcdefghijklmnopqrstuvwxyz".getBytes(UTF_8);
55 SSLUtils.encodeProtocols(new String[] {new String(newValidProtocol(256), UTF_8)}); in longProtocolShouldThrow()
66 "protocol-1".getBytes(UTF_8), in encodeProtocolsShouldSucceed()
67 "protocol-2".getBytes(UTF_8), in encodeProtocolsShouldSucceed()
68 "protocol-3".getBytes(UTF_8), in encodeProtocolsShouldSucceed()
88 "protocol-1".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
89 "protocol-2".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
90 "protocol-3".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
220 out[i] = new String(protocols[i], UTF_8); in toStrings()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DSSLUtilsTest.java19 import static org.conscrypt.TestUtils.UTF_8;
35 "0123456789abcdefghijklmnopqrstuvwxyz".getBytes(UTF_8);
51 SSLUtils.encodeProtocols(new String[] {new String(newValidProtocol(256), UTF_8)}); in longProtocolShouldThrow()
62 "protocol-1".getBytes(UTF_8), in encodeProtocolsShouldSucceed()
63 "protocol-2".getBytes(UTF_8), in encodeProtocolsShouldSucceed()
64 "protocol-3".getBytes(UTF_8), in encodeProtocolsShouldSucceed()
84 "protocol-1".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
85 "protocol-2".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
86 "protocol-3".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
216 out[i] = new String(protocols[i], UTF_8); in toStrings()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/test/java/com/google/android/exoplayer2/metadata/icy/
DIcyDecoderTest.java23 import static java.nio.charset.StandardCharsets.UTF_8;
41 byte[] icyContent = "StreamTitle='test title';StreamURL='test_url';".getBytes(UTF_8); in decode()
55 byte[] icyTitle = "StreamTitle='test title';".getBytes(UTF_8); in decode_respectsLimit()
56 byte[] icyUrl = "StreamURL='test_url';".getBytes(UTF_8); in decode_respectsLimit()
72 byte[] icyContent = "StreamTitle='test title';".getBytes(UTF_8); in decode_titleOnly()
87 .getBytes(UTF_8); in decode_extraTags()
100 byte[] icyContent = "StreamTitle='';StreamURL='test_url';".getBytes(UTF_8); in decode_emptyTitle()
113 byte[] icyContent = "StreamTitle='test; title';StreamURL='test_url';".getBytes(UTF_8); in decode_semiColonInTitle()
126 byte[] icyContent = "StreamTitle='test' title';StreamURL='test_url';".getBytes(UTF_8); in decode_quoteInTitle()
139 byte[] icyContent = "StreamTitle='test\r\ntitle';StreamURL='test_url';".getBytes(UTF_8); in decode_lineTerminatorInTitle()
[all …]

12345678910>>...28