/external/guava/guava-tests/test/com/google/common/base/ |
CharsetsTest.java | 28 * Unit test for {@link Charsets}. 37 assertEquals(Charset.forName("US-ASCII"), Charsets.US_ASCII); 42 assertEquals(Charset.forName("ISO-8859-1"), Charsets.ISO_8859_1); 46 assertEquals(Charset.forName("UTF-8"), Charsets.UTF_8); 51 assertEquals(Charset.forName("UTF-16BE"), Charsets.UTF_16BE); 56 assertEquals(Charset.forName("UTF-16LE"), Charsets.UTF_16LE); 61 assertEquals(Charset.forName("UTF-16"), Charsets.UTF_16); 66 byte[] b1 = "????".getBytes(Charsets.US_ASCII); 67 byte[] b2 = "????".getBytes(Charsets.US_ASCII); 68 byte[] b3 = "????".getBytes(Charsets.US_ASCII) [all...] |
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/ |
CharsetsTest.java | 27 * Sanity checks for {@link Charsets}. 34 Assert.assertEquals(Charset.defaultCharset(), Charsets.toCharset((String) null)); 35 Assert.assertEquals(Charset.defaultCharset(), Charsets.toCharset((Charset) null)); 36 Assert.assertEquals(Charset.defaultCharset(), Charsets.toCharset(Charset.defaultCharset())); 37 Assert.assertEquals(Charset.forName("UTF-8"), Charsets.toCharset(Charset.forName("UTF-8")));
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
Charsets.java | 30 * href="http://code.google.com/p/guava-libraries/wiki/StringsExplained#Charsets"> 31 * {@code Charsets}</a>. 37 public final class Charsets { 38 private Charsets() {} 51 * part of the set required to be supported by all Java platform implementations! Any Charsets
|
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/test/windows/ |
KlcParserTest.java | 7 import com.google.common.base.Charsets; 15 Charsets.UTF_8);
|
/external/guava/guava/src/com/google/common/base/ |
Charsets.java | 31 * href="http://code.google.com/p/guava-libraries/wiki/StringsExplained#Charsets"> 32 * {@code Charsets}</a>. 38 public final class Charsets { 39 private Charsets() {} 103 * part of the set required to be supported by all Java platform implementations! Any Charsets
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
ReadableBuffersByteBufferTest.java | 19 import static com.google.common.base.Charsets.UTF_8;
|
ReadableBuffersArrayTest.java | 19 import static com.google.common.base.Charsets.UTF_8;
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
CharsetsTest.java | 26 * Unit test for {@link Charsets}. 34 assertEquals(Charset.forName("UTF-8"), Charsets.UTF_8);
|
/external/guava/guava-tests/test/com/google/common/io/ |
SourceSinkFactories.java | 25 import com.google.common.base.Charsets; 79 return new FileByteSinkFactory(initialString.getBytes(Charsets.UTF_8)); 108 return factory.createSource(string.getBytes(Charsets.UTF_8)) 109 .asCharSource(Charsets.UTF_8); 114 return new String(factory.getExpected(data.getBytes(Charsets.UTF_8)), Charsets.UTF_8); 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) [all...] |
FilesTest.java | 23 import com.google.common.base.Charsets; 76 assertTrue(Arrays.equals(ASCII.getBytes(Charsets.US_ASCII), 78 assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), 80 assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), 91 assertTrue(Arrays.equals(ASCII.getBytes(Charsets.US_ASCII), bytes)); 106 assertTrue(Arrays.equals(ASCII.getBytes(Charsets.US_ASCII), bytes)); 121 assertTrue(Arrays.equals(ASCII.getBytes(Charsets.US_ASCII), bytes)); 136 assertTrue(Arrays.equals(ASCII.getBytes(Charsets.US_ASCII), bytes)); 167 assertEquals(ASCII, Files.toString(asciiFile, Charsets.US_ASCII)); 168 assertEquals(I18N, Files.toString(i18nFile, Charsets.UTF_8)) [all...] |
TestCharSource.java | 19 import static com.google.common.base.Charsets.UTF_8;
|
TestReader.java | 19 import static com.google.common.base.Charsets.UTF_8;
|
TestWriter.java | 19 import static com.google.common.base.Charsets.UTF_8;
|
ResourcesTest.java | 22 import com.google.common.base.Charsets; 58 assertEquals(I18N, Resources.toString(resource, Charsets.UTF_8)); 59 assertThat(Resources.toString(resource, Charsets.US_ASCII)) 73 Resources.readLines(resource, Charsets.UTF_8)); 92 List<String> result = Resources.readLines(resource, Charsets.US_ASCII, 162 String text = Resources.toString(url, Charsets.UTF_8);
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/ |
StringMarshaller.java | 19 import static com.google.common.base.Charsets.UTF_8;
|
/external/owasp/sanitizer/src/main/org/owasp/html/examples/ |
SlashdotPolicyExample.java | 41 import com.google.common.base.Charsets; 100 new InputStreamReader(System.in, Charsets.UTF_8));
|
/external/guava/guava-tests/test/com/google/common/hash/ |
MessageDigestHashFunctionTest.java | 19 import com.google.common.base.Charsets; 65 sha1.putString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8) 79 sha1.putString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8)
|
Murmur3Hash128Test.java | 21 import com.google.common.base.Charsets; 47 murmur3_128(0).hashString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8);
|
FunnelsTest.java | 23 import com.google.common.base.Charsets; 157 Funnels.stringFunnel(Charsets.US_ASCII), 158 SerializableTester.reserialize(Funnels.stringFunnel(Charsets.US_ASCII))); 167 .addEqualityGroup(Funnels.stringFunnel(Charsets.UTF_8)) 168 .addEqualityGroup(Funnels.stringFunnel(Charsets.US_ASCII))
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
HtmlLexerTest.java | 38 import com.google.common.base.Charsets; 49 Charsets.UTF_8); 56 Charsets.UTF_8);
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
Charsets.java | 25 * Charsets required of every implementation of the Java platform. 28 * charsets</a>: 54 * @see <a href="https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a> 58 public class Charsets { 97 * @see <a href="https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a> 110 * @see <a href="https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a> 124 * @see <a href="https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a> 137 * @see <a href="https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a> 150 * @see <a href="https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a> 163 * @see <a href="https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a [all...] |
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/ |
NettyReadableBufferTest.java | 19 import static com.google.common.base.Charsets.UTF_8;
|
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/ |
KeycodeMap.java | 9 import com.google.common.base.Charsets; 50 Charsets.UTF_8);
|
/external/opencensus-java/contrib/agent/src/integration-test/java/io/opencensus/contrib/agent/instrumentation/ |
UrlInstrumentationIT.java | 22 import com.google.common.base.Charsets; 66 assertThat(CharStreams.toString(new InputStreamReader((InputStream) content, Charsets.UTF_8)))
|
/external/opencensus-java/contrib/agent/src/test/java/io/opencensus/contrib/agent/ |
ResourcesTest.java | 22 import com.google.common.base.Charsets; 55 assertThat(Files.toString(file, Charsets.UTF_8)).isEqualTo("A resource!");
|