/libcore/ojluni/src/main/java/java/nio/charset/ |
D | Charset.java | 333 private static void cache(String charsetName, Charset cs) { in cache() argument 348 cache2.put(charsetName, cs); in cache() 351 cache1 = new AbstractMap.SimpleImmutableEntry<>(charsetName, cs); in cache() 405 private static Charset lookupViaProviders(final String charsetName) { in lookupViaProviders() argument 430 Charset cs = cp.charsetForName(charsetName); in lookupViaProviders() 486 private static Charset lookup(String charsetName) { 487 if (charsetName == null) 492 if (cached != null && charsetName.equals(cached.getKey())) 494 return lookup2(charsetName); 497 private static Charset lookup2(String charsetName) { [all …]
|
D | UnsupportedCharsetException.java | 50 private String charsetName; field in UnsupportedCharsetException 58 public UnsupportedCharsetException(String charsetName) { in UnsupportedCharsetException() argument 59 super(String.valueOf(charsetName)); in UnsupportedCharsetException() 60 this.charsetName = charsetName; in UnsupportedCharsetException() 69 return charsetName; in getCharsetName()
|
D | IllegalCharsetNameException.java | 50 private String charsetName; field in IllegalCharsetNameException 58 public IllegalCharsetNameException(String charsetName) { in IllegalCharsetNameException() argument 59 super(String.valueOf(charsetName)); in IllegalCharsetNameException() 60 this.charsetName = charsetName; in IllegalCharsetNameException() 69 return charsetName; in getCharsetName()
|
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/ |
D | Charset.java | 46 private static void cache(java.lang.String charsetName, java.nio.charset.Charset cs) { in cache() argument 54 private static java.nio.charset.Charset lookupViaProviders(java.lang.String charsetName) { in lookupViaProviders() argument 58 private static java.nio.charset.Charset lookup(java.lang.String charsetName) { in lookup() argument 62 private static java.nio.charset.Charset lookup2(java.lang.String charsetName) { in lookup2() argument 66 public static boolean isSupported(java.lang.String charsetName) { in isSupported() argument 70 public static java.nio.charset.Charset forName(java.lang.String charsetName) { in forName() argument 74 public static java.nio.charset.Charset forNameUEE(java.lang.String charsetName) in forNameUEE() argument
|
/libcore/ojluni/src/main/java/java/io/ |
D | InputStreamReader.java | 94 public InputStreamReader(InputStream in, String charsetName) in InputStreamReader() argument 98 if (charsetName == null) in InputStreamReader() 100 sd = StreamDecoder.forInputStreamReader(in, this, charsetName); in InputStreamReader()
|
D | OutputStreamWriter.java | 93 public OutputStreamWriter(OutputStream out, String charsetName) in OutputStreamWriter() argument 97 if (charsetName == null) in OutputStreamWriter() 99 se = StreamEncoder.forOutputStreamWriter(out, this, charsetName); in OutputStreamWriter()
|
D | ByteArrayOutputStream.java | 275 public synchronized String toString(String charsetName) in toString() argument 278 return new String(buf, 0, count, charsetName); in toString()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CharsetForNameBenchmark.java | 37 private String charsetName; field in CharsetForNameBenchmark 41 Charset.forName(charsetName); in timeCharsetForName()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | SettableCharsetProvider.java | 50 public Charset charsetForName(String charsetName) { in charsetForName() argument 52 return delegate.charsetForName(charsetName); in charsetForName()
|
D | OldCharset_AbstractTest.java | 38 static String charsetName; field in OldCharset_AbstractTest 66 charset = charset.forName(charsetName); in setUp() 78 assertEquals("Name of charset must match!", charsetName, charset.name()); in test_nameMatch() 85 charsetName, charset.name(), getClass().getName()); in test_dumpEncodableChars() 112 charsetName, charset.name(), getClass().getName()); in test_dumpEncoded()
|
D | OldCharset_SingleByte_windows_1250.java | 21 charsetName = "windows-1250"; in setUp()
|
D | OldCharset_SingleByte_windows_1251.java | 21 charsetName = "windows-1251"; in setUp()
|
D | OldCharset_SingleByte_ISO_8859_11.java | 24 charsetName = "x-iso-8859-11"; in setUp()
|
D | OldCharset_SingleByte_ISO_8859_7.java | 21 charsetName = "ISO-8859-7"; in setUp()
|
D | OldCharset_SingleByte_KOI8_R.java | 21 charsetName = "KOI8-R"; in setUp()
|
D | OldCharset_SingleByte_ISO_8859_6.java | 21 charsetName = "ISO-8859-6"; in setUp()
|
D | OldCharset_SingleByte_ISO_8859_4.java | 21 charsetName = "ISO-8859-4"; in setUp()
|
D | OldCharset_SingleByte_ISO_8859_9.java | 21 charsetName = "ISO-8859-9"; in setUp()
|
D | OldCharset_SingleByte_x_IBM874.java | 24 charsetName = "TIS-620"; // ICU name "TIS-620", wanted Android name "CP874" in setUp()
|
D | OldCharset_SingleByte_windows_1255.java | 21 charsetName = "windows-1255"; in setUp()
|
D | OldCharset_SingleByte_ISO_8859_13.java | 21 charsetName = "ISO-8859-13"; in setUp()
|
D | OldCharset_SingleByte_ISO_8859_2.java | 21 charsetName = "ISO-8859-2"; in setUp()
|
D | OldCharset_SingleByte_ISO_8859_8.java | 21 charsetName = "ISO-8859-8"; in setUp()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetTest.java | 47 for (String charsetName : Charset.availableCharsets().keySet()) { in test_allAvailableCharsets() 48 Charset cs = Charset.forName(charsetName); in test_allAvailableCharsets() 866 public Charset charsetForName(String charsetName) { in charsetForName() argument 867 if (Charset.isSupported(charsetName)) { in charsetForName() 868 return Charset.forName(charsetName); in charsetForName() 876 public Charset charsetForName(String charsetName) { in charsetForName() argument 877 if ("MockCharset00".equalsIgnoreCase(charsetName) || in charsetForName() 878 "MockCharset01".equalsIgnoreCase(charsetName) || in charsetForName() 879 "MockCharset02".equalsIgnoreCase(charsetName)) { in charsetForName() 881 } else if ("MockCharset10".equalsIgnoreCase(charsetName) || in charsetForName() [all …]
|
/libcore/libart/src/main/java/java/lang/ |
D | StringFactory.java | 74 …ring newStringFromBytes(byte[] data, int offset, int byteCount, String charsetName) throws Unsuppo… in newStringFromBytes() argument 75 return newStringFromBytes(data, offset, byteCount, Charset.forNameUEE(charsetName)); in newStringFromBytes() 78 …public static String newStringFromBytes(byte[] data, String charsetName) throws UnsupportedEncodin… in newStringFromBytes() argument 79 return newStringFromBytes(data, 0, data.length, Charset.forNameUEE(charsetName)); in newStringFromBytes()
|