/external/guava/guava-tests/test/com/google/common/base/ |
D | CharsetsTest.java | 37 assertEquals(Charset.forName("US-ASCII"), Charsets.US_ASCII); in testUsAscii() 66 byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 67 byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 68 byte[] b3 = "????".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 69 byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 70 byte[] b5 = "スューー".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
|
/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/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/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()
|
D | StringEncodings.java | 43 String US_ASCII = "US-ASCII"; field
|
D | QuotedPrintableCodec.java | 284 return new String(decode(pString.getBytes(StringEncodings.US_ASCII)), charset); in decode() 390 return new String(encode(pString.getBytes(charset)), StringEncodings.US_ASCII); in encode()
|
D | URLCodec.java | 231 return new String(encode(pString.getBytes(charset)), StringEncodings.US_ASCII); in encode() 275 return new String(decode(pString.getBytes(StringEncodings.US_ASCII)), charset); in decode()
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | FunnelsTest.java | 157 Funnels.stringFunnel(Charsets.US_ASCII), in testSerialization() 158 SerializableTester.reserialize(Funnels.stringFunnel(Charsets.US_ASCII))); in testSerialization() 168 .addEqualityGroup(Funnels.stringFunnel(Charsets.US_ASCII)) in testEquals()
|
D | HashCodeTest.java | 173 HashCode hash1 = Hashing.sha1().hashString("foo", Charsets.US_ASCII); in testRoundTripHashCodeUsingBaseEncoding() 206 HashCode hash1 = Hashing.sha1().hashString("foo", Charsets.US_ASCII); in testRoundTripHashCodeUsingFromString() 231 String string = Hashing.sha1().hashString("foo", Charsets.US_ASCII).toString().toUpperCase(); in testFromStringFailsWithUpperCaseString()
|
D | HashTestUtils.java | 515 Charsets.US_ASCII,
|
/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/guava/guava-tests/test/com/google/common/io/ |
D | FilesTest.java | 76 assertTrue(Arrays.equals(ASCII.getBytes(Charsets.US_ASCII), in testToByteArray() 91 assertTrue(Arrays.equals(ASCII.getBytes(Charsets.US_ASCII), bytes)); in testReadFile_withCorrectSize() 106 assertTrue(Arrays.equals(ASCII.getBytes(Charsets.US_ASCII), bytes)); in testReadFile_withSmallerSize() 121 assertTrue(Arrays.equals(ASCII.getBytes(Charsets.US_ASCII), bytes)); in testReadFile_withLargerSize() 136 assertTrue(Arrays.equals(ASCII.getBytes(Charsets.US_ASCII), bytes)); in testReadFile_withSizeZero() 167 assertEquals(ASCII, Files.toString(asciiFile, Charsets.US_ASCII)); in testToString() 169 assertThat(Files.toString(i18nFile, Charsets.US_ASCII)) in testToString() 297 BufferedReader r = Files.newReader(asciiFile, Charsets.US_ASCII); in testNewReader()
|
D | ResourcesTest.java | 59 assertThat(Resources.toString(resource, Charsets.US_ASCII)) in testToString() 92 List<String> result = Resources.readLines(resource, Charsets.US_ASCII, in testReadLines_withLineProcessor()
|
D | ByteSourceTest.java | 167 ByteSource byteSource = new TestByteSource("hamburger\n".getBytes(Charsets.US_ASCII)); in testHash()
|
/external/apache-http/src/org/apache/http/impl/io/ |
D | AbstractSessionOutputBuffer.java | 66 private String charset = HTTP.US_ASCII; 84 this.ascii = this.charset.equalsIgnoreCase(HTTP.US_ASCII) in init()
|
D | AbstractSessionInputBuffer.java | 67 private String charset = HTTP.US_ASCII; 89 this.ascii = this.charset.equalsIgnoreCase(HTTP.US_ASCII) in init()
|
/external/sl4a/Common/src/org/apache/commons/codec/ |
D | CharEncoding.java | 75 public static final String US_ASCII = "US-ASCII"; field in CharEncoding
|
/external/guava/guava/src/com/google/common/base/ |
D | Charsets.java | 49 public static final Charset US_ASCII = Charset.forName("US-ASCII"); field in Charsets
|
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/ |
D | Util.java | 28 static final Charset US_ASCII = Charset.forName("US-ASCII"); field in Util
|
D | DiskLruCache.java | 242 StrictLineReader reader = new StrictLineReader(new FileInputStream(journalFile), Util.US_ASCII); in readJournal() 274 new FileOutputStream(journalFile, true), Util.US_ASCII)); in readJournal() 353 new OutputStreamWriter(new FileOutputStream(journalFileTmp), Util.US_ASCII)); in rebuildJournal() 383 new OutputStreamWriter(new FileOutputStream(journalFile, true), Util.US_ASCII)); in rebuildJournal()
|
D | StrictLineReader.java | 93 if (!(charset.equals(Util.US_ASCII))) { in StrictLineReader()
|
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
D | OkUrlFactoryTest.java | 26 import static java.nio.charset.StandardCharsets.US_ASCII; 180 String actual = source.readString(US_ASCII); in assertResponseBody()
|