Home
last modified time | relevance | path

Searched refs:UTF_16LE (Results 1 – 12 of 12) sorted by relevance

/external/guava/guava-tests/test/com/google/common/hash/
DAbstractByteHasherTest.java17 import static com.google.common.base.Charsets.UTF_16LE;
72 String s = new String(bytes, UTF_16LE); // so all random strings are valid in testString()
75 new TestHasher().putBytes(s.getBytes(UTF_16LE)).hash()); in testString()
78 new TestHasher().putString(s, UTF_16LE).hash()); in testString()
DAbstractStreamingHasherTest.java19 import static com.google.common.base.Charsets.UTF_16LE;
93 String s = new String(bytes, UTF_16LE); // so all random strings are valid in testString()
96 new Sink(4).putBytes(s.getBytes(UTF_16LE)).hash()); in testString()
99 new Sink(4).putString(s, UTF_16LE).hash()); in testString()
DHashTestUtils.java518 Charsets.UTF_16LE,
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DCharsets.java153 public static final Charset UTF_16LE = StandardCharsets.UTF_16LE; field in Charsets
DCharsetNames.java112 public static final String UTF_16LE = "UTF-16LE"; field in CharsetNames
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DStringUtils.java112 return StringUtils.getBytesUnchecked(string, CharEncoding.UTF_16LE); in getBytesUtf16Le()
261 return StringUtils.newString(bytes, CharEncoding.UTF_16LE); in newStringUtf16Le()
/external/guava/guava-tests/test/com/google/common/io/
DFilesTest.java175 Files.write(I18N, temp, Charsets.UTF_16LE); in testWriteString()
176 assertEquals(I18N, Files.toString(temp, Charsets.UTF_16LE)); in testWriteString()
194 Files.append(I18N, temp, Charsets.UTF_16LE); in testAppendString()
195 assertEquals(I18N, Files.toString(temp, Charsets.UTF_16LE)); in testAppendString()
196 Files.append(I18N, temp, Charsets.UTF_16LE); in testAppendString()
197 assertEquals(I18N + I18N, Files.toString(temp, Charsets.UTF_16LE)); in testAppendString()
198 Files.append(I18N, temp, Charsets.UTF_16LE); in testAppendString()
199 assertEquals(I18N + I18N + I18N, Files.toString(temp, Charsets.UTF_16LE)); in testAppendString()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResourceString.java19 import static java.nio.charset.StandardCharsets.UTF_16LE;
35 UTF16(UTF_16LE);
/external/sl4a/Common/src/org/apache/commons/codec/
DCharEncoding.java112 public static final String UTF_16LE = "UTF-16LE"; field in CharEncoding
/external/guava/guava/src/com/google/common/base/
DCharsets.java88 public static final Charset UTF_16LE = Charset.forName("UTF-16LE"); field in Charsets
/external/guava/guava-tests/test/com/google/common/base/
DCharsetsTest.java56 assertEquals(Charset.forName("UTF-16LE"), Charsets.UTF_16LE); in testUtf16le()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/
DSevenZFile.java792 … files[nextFile++].setName(new String(names, nextName, i-nextName, CharsetNames.UTF_16LE)); in readFilesInfo()
1197 private static final CharsetEncoder PASSWORD_ENCODER = StandardCharsets.UTF_16LE.newEncoder();