Home
last modified time | relevance | path

Searched refs:US_ASCII (Results 1 – 25 of 28) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/base/
DCharsetsTest.java37 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/
DMockResponse.java29 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()
DMockWebServer.java462 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/
DHTTP.java81 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/
DUConverterSharedData.java380 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/
DEncodingUtils.java140 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/
DRFC1522Codec.java83 buffer.append(new String(rawdata, StringEncodings.US_ASCII)); in encodeText()
131 byte[] data = text.substring(from, to).getBytes(StringEncodings.US_ASCII); in decodeText()
DStringEncodings.java43 String US_ASCII = "US-ASCII"; field
DQuotedPrintableCodec.java284 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()
DURLCodec.java231 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/
DFunnelsTest.java157 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()
DHashCodeTest.java173 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()
DHashTestUtils.java515 Charsets.US_ASCII,
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DStringUtils.java64 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/
DFilesTest.java76 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()
DResourcesTest.java59 assertThat(Resources.toString(resource, Charsets.US_ASCII)) in testToString()
92 List<String> result = Resources.readLines(resource, Charsets.US_ASCII, in testReadLines_withLineProcessor()
DByteSourceTest.java167 ByteSource byteSource = new TestByteSource("hamburger\n".getBytes(Charsets.US_ASCII)); in testHash()
/external/apache-http/src/org/apache/http/impl/io/
DAbstractSessionOutputBuffer.java66 private String charset = HTTP.US_ASCII;
84 this.ascii = this.charset.equalsIgnoreCase(HTTP.US_ASCII) in init()
DAbstractSessionInputBuffer.java67 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/
DCharEncoding.java75 public static final String US_ASCII = "US-ASCII"; field in CharEncoding
/external/guava/guava/src/com/google/common/base/
DCharsets.java49 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/
DUtil.java28 static final Charset US_ASCII = Charset.forName("US-ASCII"); field in Util
DDiskLruCache.java242 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()
DStrictLineReader.java93 if (!(charset.equals(Util.US_ASCII))) { in StrictLineReader()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DOkUrlFactoryTest.java26 import static java.nio.charset.StandardCharsets.US_ASCII;
180 String actual = source.readString(US_ASCII); in assertResponseBody()

12