/external/guava/android/guava-tests/test/com/google/common/base/ |
D | CharsetsTest.java | 35 assertEquals(Charset.forName("US-ASCII"), Charsets.US_ASCII); in testUsAscii() 64 byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 65 byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 66 byte[] b3 = "????".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 67 byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 68 byte[] b5 = "スューー".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | CharsetsTest.java | 35 assertEquals(Charset.forName("US-ASCII"), Charsets.US_ASCII); in testUsAscii() 64 byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 65 byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 66 byte[] b3 = "????".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 67 byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 68 byte[] b5 = "スューー".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | TransportFrameUtilTest.java | 19 import static com.google.common.base.Charsets.US_ASCII; 73 "plainstring".getBytes(US_ASCII), COMPLIANT_ASCII_STRING.getBytes(US_ASCII), in testToHttp2Headers() 74 "string-bin".getBytes(US_ASCII), in testToHttp2Headers() 75 base64Encode(NONCOMPLIANT_ASCII_STRING.getBytes(US_ASCII))}; in testToHttp2Headers() 103 String keyString = new String(key, US_ASCII); in assertContains() 114 return BaseEncoding.base64().encode(input).getBytes(US_ASCII); in base64Encode()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | TransportFrameUtil.java | 19 import static com.google.common.base.Charsets.US_ASCII; 38 Metadata.BINARY_HEADER_SUFFIX.getBytes(US_ASCII); 61 serializedHeaders[k + 1] = BaseEncoding.base64().encode(value).getBytes(US_ASCII); in toHttp2Headers() 72 String keyString = new String(key, US_ASCII); in toHttp2Headers() 101 http2Headers[i + 1] = BaseEncoding.base64().decode(new String(value, US_ASCII)); in toRawSerializedHeaders()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/ |
D | UTF8ZipFilesTest.java | 64 testFileRoundtrip(CharsetNames.US_ASCII, false, true); in testASCIIFileRoundtripExplicitUnicodeExtra() 88 testFileRoundtrip(CharsetNames.US_ASCII, false, false); in testASCIIFileRoundtripImplicitUnicodeExtra() 181 createTestFile(file, CharsetNames.US_ASCII, false, true); in testZipFileReadsUnicodeFields() 183 zi = new ZipArchiveInputStream(archive, CharsetNames.US_ASCII, true); in testZipFileReadsUnicodeFields() 202 createTestFile(file, CharsetNames.US_ASCII, false, true); in testZipArchiveInputStreamReadsUnicodeFields() 203 zf = new ZipFile(file, CharsetNames.US_ASCII, true); in testZipArchiveInputStreamReadsUnicodeFields() 288 zos.write("Hello, world!".getBytes(CharsetNames.US_ASCII)); in createTestFile() 305 zos.write("Give me your money!".getBytes(CharsetNames.US_ASCII)); in createTestFile() 323 zos.write("ascii".getBytes(CharsetNames.US_ASCII)); in createTestFile()
|
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
D | MockResponse.java | 29 import static java.nio.charset.StandardCharsets.US_ASCII; 195 bytesOut.write(Integer.toHexString(chunkSize).getBytes(US_ASCII)); in setChunkedBody() 196 bytesOut.write("\r\n".getBytes(US_ASCII)); in setChunkedBody() 198 bytesOut.write("\r\n".getBytes(US_ASCII)); in setChunkedBody() 201 bytesOut.write("0\r\n\r\n".getBytes(US_ASCII)); // last chunk + empty trailer + crlf in setChunkedBody()
|
D | MockWebServer.java | 462 out.write(("HTTP/1.1 100 Continue\r\n").getBytes(StandardCharsets.US_ASCII)); in readRequest() 463 out.write(("Content-Length: 0\r\n").getBytes(StandardCharsets.US_ASCII)); in readRequest() 464 out.write(("\r\n").getBytes(StandardCharsets.US_ASCII)); in readRequest() 509 out.write((response.getStatus() + "\r\n").getBytes(StandardCharsets.US_ASCII)); in writeResponse() 513 out.write((header + "\r\n").getBytes(StandardCharsets.US_ASCII)); in writeResponse() 515 out.write(("\r\n").getBytes(StandardCharsets.US_ASCII)); in writeResponse()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/ |
D | MetadataTest.java | 19 import static com.google.common.base.Charsets.US_ASCII; 63 private static final byte[] LANCE_BYTES = LANCE.getBytes(US_ASCII); 149 assertEquals("test-bin", new String(serialized[0], US_ASCII)); in testWriteParsed() 242 t = new Metadata("test".getBytes(US_ASCII), "ascii".getBytes(US_ASCII), in verifyToString() 243 "test-bin".getBytes(US_ASCII), "binary".getBytes(US_ASCII)); in verifyToString() 284 assertArrayEquals("if-modified-since".getBytes(US_ASCII), bytes[0]); in testKeyCaseHandling() 285 assertArrayEquals("plain string".getBytes(US_ASCII), bytes[1]); in testKeyCaseHandling()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
D | ArchiveUtils.java | 76 buffer1 = expected.getBytes(CharsetNames.US_ASCII); in matchAsciiBuffer() 104 return inputString.getBytes(CharsetNames.US_ASCII); in toAsciiBytes() 119 return new String(inputBytes, CharsetNames.US_ASCII); in toAsciiString() 136 return new String(inputBytes, offset, length, CharsetNames.US_ASCII); in toAsciiString()
|
D | Charsets.java | 113 public static final Charset US_ASCII = StandardCharsets.US_ASCII; field in Charsets
|
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/cert/ |
D | X509CRLTest.java | 119 StandardCharsets.US_ASCII))); in testCrl() 121 … new ByteArrayInputStream(REVOKED_CERT.getBytes(StandardCharsets.US_ASCII))); in testCrl() 123 new ByteArrayInputStream(CA_CERT.getBytes(StandardCharsets.US_ASCII))); in testCrl()
|
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/cert/ |
D | X509CRLTest.java | 115 StandardCharsets.US_ASCII))); in testCrl() 117 … new ByteArrayInputStream(REVOKED_CERT.getBytes(StandardCharsets.US_ASCII))); in testCrl() 119 new ByteArrayInputStream(CA_CERT.getBytes(StandardCharsets.US_ASCII))); in testCrl()
|
/external/apache-http/src/org/apache/http/protocol/ |
D | HTTP.java | 81 public static final String US_ASCII = "US-ASCII"; field in HTTP 87 public static final String DEFAULT_PROTOCOL_CHARSET = US_ASCII;
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | UConverterSharedData.java | 380 static final int US_ASCII = ISCII + 1; // 26 field in UConverterSharedData.UConverterType 381 static final int UTF7 = US_ASCII + 1; // 27
|
/external/apache-http/src/org/apache/http/util/ |
D | EncodingUtils.java | 140 return data.getBytes(HTTP.US_ASCII); in getAsciiBytes() 163 return new String(data, offset, length, HTTP.US_ASCII); in getAsciiString()
|
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/ |
D | ApplicationProtocolSelectorAdapterTest.java | 36 private static Charset US_ASCII = Charset.forName("US-ASCII"); field in ApplicationProtocolSelectorAdapterTest 90 return new String(PROTOCOL_BYTES, index + 1, len, US_ASCII); in getProtocolAt()
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | ApplicationProtocolSelectorAdapterTest.java | 32 private static Charset US_ASCII = Charset.forName("US-ASCII"); field in ApplicationProtocolSelectorAdapterTest 86 return new String(PROTOCOL_BYTES, index + 1, len, US_ASCII); in getProtocolAt()
|
/external/conscrypt/repackaged/platform/src/test/java/com/android/org/conscrypt/ct/ |
D | CTLogStoreImplTest.java | 75 .getBytes(StandardCharsets.US_ASCII))); 99 new ByteArrayInputStream(LOGS_SERIALIZED[0].getBytes(StandardCharsets.US_ASCII))); in test_loadLog() 110 new ByteArrayInputStream("randomgarbage".getBytes(StandardCharsets.US_ASCII))); in test_loadLog()
|
/external/conscrypt/platform/src/test/java/org/conscrypt/ct/ |
D | CTLogStoreImplTest.java | 71 "-----END PUBLIC KEY-----\n").getBytes(StandardCharsets.US_ASCII))); 95 new ByteArrayInputStream(LOGS_SERIALIZED[0].getBytes(StandardCharsets.US_ASCII))); in test_loadLog() 106 "randomgarbage".getBytes(StandardCharsets.US_ASCII))); in test_loadLog()
|
/external/apache-http/src/org/apache/commons/codec/net/ |
D | RFC1522Codec.java | 83 buffer.append(new String(rawdata, StringEncodings.US_ASCII)); in encodeText() 131 byte[] data = text.substring(from, to).getBytes(StringEncodings.US_ASCII); in decodeText()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/ |
D | Metadata.java | 19 import static com.google.common.base.Charsets.US_ASCII; 466 String headerName = new String(name(i), US_ASCII); in toString() 471 String headerValue = new String(value(i), US_ASCII); in toString() 637 this.nameBytes = this.name.getBytes(US_ASCII); in Key() 751 return marshaller.toAsciiString(value).getBytes(US_ASCII); in toBytes() 756 return marshaller.parseAsciiString(new String(serialized, US_ASCII)); in parseBytes()
|
/external/guava/android/guava-tests/test/com/google/common/hash/ |
D | FunnelsTest.java | 154 Funnels.stringFunnel(Charsets.US_ASCII), in testSerialization() 155 SerializableTester.reserialize(Funnels.stringFunnel(Charsets.US_ASCII))); in testSerialization() 165 .addEqualityGroup(Funnels.stringFunnel(Charsets.US_ASCII)) in testEquals()
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | FunnelsTest.java | 154 Funnels.stringFunnel(Charsets.US_ASCII), in testSerialization() 155 SerializableTester.reserialize(Funnels.stringFunnel(Charsets.US_ASCII))); in testSerialization() 165 .addEqualityGroup(Funnels.stringFunnel(Charsets.US_ASCII)) in testEquals()
|
/external/sl4a/Common/src/org/apache/commons/codec/binary/ |
D | StringUtils.java | 64 return StringUtils.getBytesUnchecked(string, CharEncoding.US_ASCII); in getBytesUsAscii() 219 return StringUtils.newString(bytes, CharEncoding.US_ASCII); in newStringUsAscii()
|
/external/grpc-grpc-java/services/src/test/java/io/grpc/services/ |
D | BinlogHelperTest.java | 83 private static final Charset US_ASCII = Charset.forName("US-ASCII"); field in BinlogHelperTest 104 .setKey(ByteString.copyFrom(KEY_A.name(), US_ASCII)) 105 .setValue(ByteString.copyFrom(DATA_A.getBytes(US_ASCII))) 110 .setKey(ByteString.copyFrom(KEY_B.name(), US_ASCII)) 111 .setValue(ByteString.copyFrom(DATA_B.getBytes(US_ASCII))) 116 .setKey(ByteString.copyFrom(KEY_C.name(), US_ASCII)) 117 .setValue(ByteString.copyFrom(DATA_C.getBytes(US_ASCII))) 497 = "this is a long message: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".getBytes(US_ASCII); in messageToProto() 514 = "this is a long message: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".getBytes(US_ASCII); in messageToProto_truncated() 534 .setData(ByteString.copyFrom(truncatedMessage.getBytes(US_ASCII))) in messageToProto_truncated() [all …]
|