/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/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/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/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);
|
ByteSinkTester.java | 23 import com.google.common.base.Charsets; 58 byte[] bytes = string.getBytes(Charsets.UTF_8);
|
TestCharSink.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);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/systrace/ |
SystraceOutputParser.java | 19 import com.google.common.base.Charsets; 139 Files.toString(new File(assetsFolder, "script.js"), Charsets.UTF_8)); 148 Files.toString(new File(assetsFolder, "style.css"), Charsets.UTF_8)); 164 return Files.toString(new File(assetsFolder, htmlFileName), Charsets.UTF_8);
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
Charsets.java | 23 * Defines the same class as the java.nio.charset.Charsets which was added in 30 * platform/libcore/luni/src/main/java/java/nio/charset/Charsets 32 public final class Charsets { 131 private Charsets() {
|
/external/caliper/caliper/src/main/java/com/google/caliper/config/ |
LoggingConfigLoader.java | 25 import com.google.common.base.Charsets; 98 fileHandler.setEncoding(Charsets.UTF_8.name());
|
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
TrialOutputFactoryService.java | 23 import com.google.common.base.Charsets; 91 Charsets.UTF_8))));
|
OutputFileDumper.java | 28 import com.google.common.base.Charsets; 101 new JsonWriter(new OutputStreamWriter(new FileOutputStream(workFile), Charsets.UTF_8));
|
/external/smali/baksmali/src/test/java/org/jf/baksmali/ |
AnalysisTest.java | 34 import com.google.common.base.Charsets; 123 return Resources.toString(url, Charsets.UTF_8);
|
/external/vogar/src/vogar/ |
Md5Cache.java | 19 import com.google.common.base.Charsets; 83 digester.update(string.getBytes(Charsets.UTF_8));
|
/development/tools/rmtypedefs/test/com/android/tools/rmtypedefs/ |
RmTypeDefsTest.java | 3 import com.google.common.base.Charsets; 19 import static com.google.common.base.Charsets.UTF_8; 108 Files.write(testClass, srcFile1, Charsets.UTF_8); 114 Files.write(intdef, srcFile2, Charsets.UTF_8);
|