/external/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/ |
D | CertBlacklistImpl.java | 20 import static java.nio.charset.StandardCharsets.UTF_8; 180 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8), in readPublicKeyBlackList() 183 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8), in readPublicKeyBlackList() 186 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8), in readPublicKeyBlackList() 189 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8), in readPublicKeyBlackList() 192 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8), in readPublicKeyBlackList() 195 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8), in readPublicKeyBlackList() 199 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8), in readPublicKeyBlackList() 202 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8), in readPublicKeyBlackList() 205 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8), in readPublicKeyBlackList() [all …]
|
/external/conscrypt/platform/src/main/java/org/conscrypt/ |
D | CertBlacklistImpl.java | 19 import static java.nio.charset.StandardCharsets.UTF_8; 176 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8), in readPublicKeyBlackList() 179 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8), in readPublicKeyBlackList() 182 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8), in readPublicKeyBlackList() 185 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8), in readPublicKeyBlackList() 188 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8), in readPublicKeyBlackList() 191 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8), in readPublicKeyBlackList() 195 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8), in readPublicKeyBlackList() 198 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8), in readPublicKeyBlackList() 201 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8), in readPublicKeyBlackList() [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | SourceSinkFactories.java | 79 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 …]
|
D | FilesTest.java | 78 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 …]
|
D | TestCharSource.java | 19 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()
|
D | TestCharSink.java | 19 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()
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | SSLUtilsTest.java | 19 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() 193 out[i] = new String(protocols[i], UTF_8); in toStrings()
|
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/ |
D | SSLUtilsTest.java | 20 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() 197 out[i] = new String(protocols[i], UTF_8); in toStrings()
|
/external/turbine/javatests/com/google/turbine/main/ |
D | MainTest.java | 22 import static java.nio.charset.StandardCharsets.UTF_8; 59 jos.write("class Test { public static final String CONST = \"ONE\"; }".getBytes(UTF_8)); in sourceJarClash() 64 jos.write("class Test { public static final String CONST = \"TWO\"; }".getBytes(UTF_8)); in sourceJarClash() 83 MoreFiles.asCharSink(src, UTF_8).write("@Deprecated package test;"); in packageInfo() 104 jos.write("@Deprecated package test;".getBytes(UTF_8)); in packageInfoSrcjar() 143 jos.write("module foo {}".getBytes(UTF_8)); in moduleInfos() 145 jos.write("module bar {}".getBytes(UTF_8)); in moduleInfos() 149 MoreFiles.asCharSink(src, UTF_8).write("module baz {}"); in moduleInfos() 171 MoreFiles.asCharSink(src, UTF_8).write("class Foo {}"); in testManifest() 200 MoreFiles.asCharSink(src, UTF_8).write("package java.lang; public class Object {}"); in emptyBootClassPath() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowContextTest.java | 5 import static java.nio.charset.StandardCharsets.UTF_8; 96 fos.write("test".getBytes(UTF_8)); in shouldWriteToCacheDir() 112 fos.write("test".getBytes(UTF_8)); in shouldWriteToExternalCacheDir() 158 try (Writer fileWriter = Files.newBufferedWriter(file.toPath(), UTF_8)) { in openFileInput_shouldReturnAFileInputStream() argument 165 assertThat(bytes).isEqualTo(fileContents.getBytes(UTF_8)); in openFileInput_shouldReturnAFileInputStream() 179 fileOutputStream.write(fileContents.getBytes(UTF_8)); in openFileOutput_shouldReturnAFileOutputStream() 184 assertThat(new String(readBuffer, UTF_8)).isEqualTo(fileContents); in openFileOutput_shouldReturnAFileOutputStream() 200 fileOutputStream.write(initialFileContents.getBytes(UTF_8)); in openFileOutput_shouldAppendData() 203 fileOutputStream.write(appendedFileContents.getBytes(UTF_8)); in openFileOutput_shouldAppendData() 208 assertThat(new String(readBuffer, UTF_8)).isEqualTo(finalFileContents); in openFileOutput_shouldAppendData() [all …]
|
D | ShadowDropBoxManagerTest.java | 4 import static java.nio.charset.StandardCharsets.UTF_8; 24 private static final byte[] DATA = "HELLO WORLD".getBytes(UTF_8); 50 assertThat(new BufferedReader(new InputStreamReader(entry.getInputStream(), UTF_8)).readLine()) in dataExpected() 52 assertThat(entry.getText(100)).isEqualTo(new String(DATA, UTF_8)); in dataExpected() 84 assertThat(entry.getText(100)).isEqualTo(new String(DATA, UTF_8)); in dataExpectedWithSort()
|
D | ShadowCameraTest.java | 4 import static java.nio.charset.StandardCharsets.UTF_8; 118 shadowCamera.invokePreviewCallback("foobar".getBytes(UTF_8)); in testSetPreviewCallbacks() 121 assertThat(callback.data).isEqualTo("foobar".getBytes(UTF_8)); in testSetPreviewCallbacks() 131 shadowCamera.invokePreviewCallback("foobar".getBytes(UTF_8)); in testSetOneShotPreviewCallbacks() 134 assertThat(callback.data).isEqualTo("foobar".getBytes(UTF_8)); in testSetOneShotPreviewCallbacks() 144 shadowCamera.invokePreviewCallback("foobar".getBytes(UTF_8)); in testPreviewCallbacksWithBuffers() 147 assertThat(callback.data).isEqualTo("foobar".getBytes(UTF_8)); in testPreviewCallbacksWithBuffers() 159 shadowCamera.invokePreviewCallback("foobar".getBytes(UTF_8)); in testClearPreviewCallback() 166 shadowCamera.invokePreviewCallback("foobar".getBytes(UTF_8)); in testClearPreviewCallback() 173 shadowCamera.invokePreviewCallback("foobar".getBytes(UTF_8)); in testClearPreviewCallback()
|
/external/caliper/caliper/src/test/java/com/google/caliper/bridge/ |
D | LogMessageParserTest.java | 21 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/ |
D | 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)); 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()
|
D | SipHashFunctionTest.java | 17 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/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | ResponseBody.java | 29 import static com.android.okhttp.internal.Util.UTF_8; 92 return contentType != null ? contentType.charset(UTF_8) : UTF_8; in charset() 104 Charset charset = Util.UTF_8; in create() 108 charset = Util.UTF_8; in create()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | ResponseBody.java | 28 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/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | TsiTest.java | 21 import static java.nio.charset.StandardCharsets.UTF_8; 68 private static final int EXAMPLE_MESSAGE1_LEN = EXAMPLE_MESSAGE1.getBytes(UTF_8).length; 69 private static final int EXAMPLE_MESSAGE2_LEN = EXAMPLE_MESSAGE2.getBytes(UTF_8).length; 126 ByteBuf plaintextBuffer = Unpooled.wrappedBuffer(message.getBytes(UTF_8)); in sendMessage() 150 ByteBuf plaintextRecvd = getDirectBuffer(message.getBytes(UTF_8).length, ref); in sendMessage() 155 assertThat(plaintextRecvd).isEqualTo(Unpooled.wrappedBuffer(message.getBytes(UTF_8))); in sendMessage() 179 EXAMPLE_MESSAGE1.getBytes(UTF_8).length in pingPongExactFrameSizeTest() 260 ByteBuf plaintextBuffer = Unpooled.wrappedBuffer(message.getBytes(UTF_8)); in corruptedCounterTest() 301 ByteBuf plaintextBuffer = Unpooled.wrappedBuffer(message.getBytes(UTF_8)); in corruptedCiphertextTest() 340 ByteBuf plaintextBuffer = Unpooled.wrappedBuffer(message.getBytes(UTF_8)); in corruptedTagTest() [all …]
|
/external/turbine/javatests/com/google/turbine/zip/ |
D | ZipTest.java | 20 import static java.nio.charset.StandardCharsets.UTF_8; 70 byte[] bytes = name.getBytes(UTF_8); in compression() 83 byte[] bytes = name.getBytes(UTF_8); in testEntries() 133 byte[] bytes = name.getBytes(UTF_8); in attributes() 147 createEntry(zos, "hello", "world".getBytes(UTF_8)); in zipFileCommentsAreSupported() 159 createEntry(zos, "hello", "world".getBytes(UTF_8)); in malformedComment() 162 Files.write(path, "trailing garbage".getBytes(UTF_8), StandardOpenOption.APPEND); in malformedComment()
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | GzipSourceTest.java | 22 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()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | CompositeReadableBufferTest.java | 19 import static com.google.common.base.Charsets.UTF_8; 56 composite.addBuffer(ReadableBuffers.wrap(EXPECTED_VALUE.getBytes(UTF_8))); in singleBufferShouldSucceed() 114 assertEquals(EXPECTED_VALUE, new String(bytes, UTF_8)); in readByteArrayShouldSucceed() 135 assertEquals(EXPECTED_VALUE, new String(byteBuffer.array(), UTF_8)); in readByteBufferShouldSucceed() 153 assertEquals(EXPECTED_VALUE, new String(bos.toByteArray(), UTF_8)); in readStreamShouldSucceed() 174 composite.addBuffer(ReadableBuffers.wrap(part.getBytes(UTF_8))); in splitAndAdd()
|
D | ReadableBuffersArrayTest.java | 19 import static com.google.common.base.Charsets.UTF_8; 35 byte[] array = msg.getBytes(UTF_8); in bufferShouldExposeArray() 48 return ReadableBuffers.wrap(msg.getBytes(UTF_8), 0, msg.length()); in buffer()
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | BoundedByteStringTest.java | 64 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()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/ |
D | StringMarshaller.java | 19 import static com.google.common.base.Charsets.UTF_8; 32 return new ByteArrayInputStream(value.getBytes(UTF_8)); in stream() 38 return new String(ByteStreams.toByteArray(stream), UTF_8); in parse()
|
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/ |
D | NettyTestUtil.java | 19 import static io.netty.util.CharsetUtil.UTF_8; 36 return new String(bytes, UTF_8); in toString() 42 dos.write(message.getBytes(UTF_8)); in messageFrame()
|