/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | Character_UnicodeBlockTest.java | 850 … assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.forName("BASIC_LATIN")); in test_forNameLjava_lang_String() 851 … assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.forName("Basic Latin")); in test_forNameLjava_lang_String() 852 … assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.forName("BasicLatin")); in test_forNameLjava_lang_String() 853 …assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.forName("LATIN_1_SU… in test_forNameLjava_lang_String() 854 …assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.forName("Latin-1 Su… in test_forNameLjava_lang_String() 855 …assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.forName("Latin-1Sup… in test_forNameLjava_lang_String() 856 …assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.forName("LATIN_EXTEND… in test_forNameLjava_lang_String() 857 …assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.forName("Latin Extend… in test_forNameLjava_lang_String() 858 …assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.forName("LatinExtende… in test_forNameLjava_lang_String() 859 …assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_B, Character.UnicodeBlock.forName("LATIN_EXTEND… in test_forNameLjava_lang_String() [all …]
|
D | ClassTest.java | 98 Object.class, Class.forName("java.lang.Object")); in test_forNameLjava_lang_String() 100 Object[][].class, Class.forName("[[Ljava.lang.Object;")); in test_forNameLjava_lang_String() 103 int[].class, Class.forName("[I")); in test_forNameLjava_lang_String() 106 Class.forName("int"); in test_forNameLjava_lang_String() 112 Class.forName("byte"); in test_forNameLjava_lang_String() 117 Class.forName("char"); in test_forNameLjava_lang_String() 123 Class.forName("void"); in test_forNameLjava_lang_String() 129 Class.forName("short"); in test_forNameLjava_lang_String() 134 Class.forName("long"); in test_forNameLjava_lang_String() 140 Class.forName("boolean"); in test_forNameLjava_lang_String() [all …]
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | StandardCharsets.java | 52 public static final Charset US_ASCII = Charset.forName("US-ASCII"); 58 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); 63 public static final Charset UTF_8 = Charset.forName("UTF-8"); 68 public static final Charset UTF_16BE = Charset.forName("UTF-16BE"); 73 public static final Charset UTF_16LE = Charset.forName("UTF-16LE"); 79 public static final Charset UTF_16 = Charset.forName("UTF-16");
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetTest.java | 48 Charset cs = Charset.forName(charsetName); in test_allAvailableCharsets() 83 Charset cs = Charset.forName(name); in test_isRegistered() 91 Charset cs = Charset.forName(name); in test_isRegistered() 98 assertNotNull(Charset.forName("ISO-8859-1")); in test_guaranteedCharsetsAvailable() 99 assertNotNull(Charset.forName("US-ASCII")); in test_guaranteedCharsetsAvailable() 100 assertNotNull(Charset.forName("UTF-16")); in test_guaranteedCharsetsAvailable() 101 assertNotNull(Charset.forName("UTF-16BE")); in test_guaranteedCharsetsAvailable() 102 assertNotNull(Charset.forName("UTF-16LE")); in test_guaranteedCharsetsAvailable() 103 assertNotNull(Charset.forName("UTF-8")); in test_guaranteedCharsetsAvailable() 129 assertEquals("EUC-JP", Charset.forName("EUC-JP").name()); in test_have_canonical_EUC_JP() [all …]
|
D | CharsetEncoder2Test.java | 40 Charset cs = Charset.forName("UTF-8"); //$NON-NLS-1$ in test_ConstructorLjava_nio_charset_CharsetFF() 48 Charset cs = Charset.forName("ISO8859-1"); //$NON-NLS-1$ in test_ConstructorLjava_nio_charset_CharsetFF() 132 return Charset.forName("UTF-8").newDecoder(); in newDecoder() 158 Charset utf8 = Charset.forName("utf-8"); in test_EncodeLjava_nio_CharBufferLjava_nio_ByteBufferB() 203 Charset.forName("UTF-8").encode(CharBuffer.wrap(s)); in testUtf8Encoding()
|
D | CharsetDecoder2Test.java | 44 Charset cs = Charset.forName("UTF-8"); //$NON-NLS-1$ in test_ConstructorLjava_nio_charset_CharsetFF() 91 CharsetDecoder decoder2 = Charset.forName("UTF-16").newDecoder(); in test_decode() 184 Charset cs = Charset.forName("UTF-8"); in testDecodeLjava_nio_ByteBuffer_ReplaceOverflow() 250 CharsetDecoder decoder = Charset.forName("UTF-8").newDecoder(); in testInvalidDecoding()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | CharacterTest.java | 144 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.forName("basic latin")); in test_UnicodeBlock_forName() 145 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.forName("BaSiC LaTiN")); in test_UnicodeBlock_forName() 146 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.forName("BasicLatin")); in test_UnicodeBlock_forName() 147 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.forName("BASIC_LATIN")); in test_UnicodeBlock_forName() 148 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.forName("basic_LATIN")); in test_UnicodeBlock_forName() 150 …assertEquals(Character.UnicodeBlock.HANGUL_JAMO_EXTENDED_B, Character.UnicodeBlock.forName("HANGUL… in test_UnicodeBlock_forName() 151 …assertEquals(Character.UnicodeBlock.HANGUL_JAMO_EXTENDED_B, Character.UnicodeBlock.forName("HANGUL… in test_UnicodeBlock_forName() 155 Character.UnicodeBlock.forName(null); in test_UnicodeBlock_forName() 160 Character.UnicodeBlock.forName("this unicode block does not exist"); in test_UnicodeBlock_forName() 166 assertEquals(Character.UnicodeBlock.GREEK, Character.UnicodeBlock.forName("Greek")); in test_UnicodeBlock_forName() [all …]
|
D | UnicodeScriptTest.java | 34 UnicodeScript.forName("NON EXISTING SCRIPT NAME"); in forName_shouldThrowIllegalArgumentException_whenNameIsUnknown() 44 UnicodeScript.forName(null); in forName_shouldThrowNPE_whenNullIsPassed() 54 assertEquals(unicodeScript, UnicodeScript.forName(unicodeScript.name())); in forName_shouldAcceptAllEnumValues()
|
D | OldClassTest.java | 263 Class<?> clazz = Class.forName(classes[i].getName(), true, pcl); in test_forNameLjava_lang_StringLbooleanLClassLoader() 266 clazz = Class.forName(classes[i].getName(), false, pcl); in test_forNameLjava_lang_StringLbooleanLClassLoader() 274 Class<?> clazz = Class.forName(systemClasses[i].getName(), true, in test_forNameLjava_lang_StringLbooleanLClassLoader() 278 clazz = Class.forName(systemClasses[i].getName(), false, in test_forNameLjava_lang_StringLbooleanLClassLoader() 284 Class.forName(null, true, pcl); in test_forNameLjava_lang_StringLbooleanLClassLoader() 291 Class.forName("NotExistClass", true, pcl); in test_forNameLjava_lang_StringLbooleanLClassLoader() 298 Class.forName("String", false, pcl); in test_forNameLjava_lang_StringLbooleanLClassLoader() 305 Class.forName("libcore.java.lang.NonexistentClass", false, pcl); in test_forNameLjava_lang_StringLbooleanLClassLoader() 324 Class.forName(classNameLinkageError, true, loader); in test_forNameLjava_lang_StringLbooleanLClassLoader_AndroidOnly() 336 Class.forName(classNameInitError2, in test_forNameLjava_lang_StringLbooleanLClassLoader_AndroidOnly() [all …]
|
/libcore/ojluni/src/test/java/nio/charset/Charset/ |
D | Contains.java | 48 Charset us_ascii = Charset.forName("US-ASCII"); in main() 49 Charset iso_8859_1 = Charset.forName("ISO-8859-1"); in main() 50 Charset iso_8859_15 = Charset.forName("ISO-8859-15"); in main() 51 Charset utf_8 = Charset.forName("UTF-8"); in main() 52 Charset utf_16be = Charset.forName("UTF-16BE"); in main() 53 Charset cp1252 = Charset.forName("CP1252"); in main() 103 ck(Charset.forName(utfName), in checkUTF() 104 Charset.forName(csName), in checkUTF()
|
D | EncDec.java | 39 bb.put(Charset.forName("ISO-8859-15").encode(s)).flip(); in main() 40 String t = Charset.forName("UTF-8").decode(bb).toString(); in main()
|
D | IllegalCharsetName.java | 49 Charset.forName(illegalNames[i]); in main() 70 Charset.forName(alias); in checkAliases()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | OldAndroidClassTest.java | 35 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testNewInstance() 42 Class.forName("this.class.DoesNotExist"); in testForName() 50 Class.forName(packageName + ".ClassWithPrivateConstructor").newInstance(); in testNewInstancePrivateConstructor() 57 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetDeclaredMethod() 63 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetDeclaredMethodWithArgs() 73 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetDeclaredMethodPrivate() 79 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetSuperclass() 80 Class objectClass = Class.forName("java.lang.Object"); in testGetSuperclass() 85 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testIsAssignableFrom() 86 Class objectClass = Class.forName("java.lang.Object"); in testIsAssignableFrom() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | InputStreamReaderTest.java | 183 Charset cs = Charset.forName("utf-8"); in test_close() 184 assertEquals(cs, Charset.forName(reader.getEncoding())); in test_close() 241 assertEquals(Charset.forName(reader2.getEncoding()), Charset in test_ConstructorLjava_io_InputStreamLjava_lang_String() 242 .forName("utf-8")); in test_ConstructorLjava_io_InputStreamLjava_lang_String() 245 assertEquals(Charset.forName(reader2.getEncoding()), Charset in test_ConstructorLjava_io_InputStreamLjava_lang_String() 246 .forName("utf-8")); in test_ConstructorLjava_io_InputStreamLjava_lang_String() 256 Charset cs = Charset.forName("utf-8"); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_Charset() 270 assertEquals(Charset.forName(reader2.getEncoding()), cs); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_Charset() 280 CharsetDecoder decoder = Charset.forName("utf-8").newDecoder(); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_CharsetDecoder() 294 assertEquals(Charset.forName(reader2.getEncoding()), decoder.charset()); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_CharsetDecoder() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | CharsetDecoderTest.java | 31 CharsetDecoder d = Charset.forName("UTF-16").newDecoder(); in test_replaceWith() 41 CharsetDecoder decoder = Charset.forName("UTF-16").newDecoder(); in test_ByteArray_decode_no_offset() 55 CharsetDecoder decoder = Charset.forName("UTF-16").newDecoder(); in test_ByteArray_decode_with_offset() 71 CharsetDecoder decoder = Charset.forName("UTF-16").newDecoder(); in test_ByteArray_decode_with_offset_using_facade_method() 87 CharsetEncoder encoder = Charset.forName(charsetName).newEncoder(); in encode() 96 CharsetDecoder decoder = Charset.forName("UTF-8").newDecoder(); in testUtf8BytesSplitAcrossMultipleWrites() 114 CharsetDecoder decoder = Charset.forName("UTF-8").newDecoder(); in testBufferWithNonZeroOffset()
|
D | CharsetTest.java | 24 Charset cs = Charset.forName("UTF8"); in test_nonstandardCharsetName() 30 assertNotNull(Charset.forName("UTF8")); in test_nonstandardCharsetName() 44 Charset cs = Charset.forName(name); in run()
|
D | OldCharsetEncoderDecoderBufferTest.java | 38 CharsetDecoder decoder = Charset.forName("UTF-8").newDecoder(); in testDecoderOutputBuffer() 70 CharsetDecoder decoder = Charset.forName("UTF-8").newDecoder(); in testDecoderInputBuffer() 96 CharsetEncoder encoder = Charset.forName("UTF-8").newEncoder(); in testEncoderOutputBuffer() 128 CharsetEncoder encoder = Charset.forName("UTF-8").newEncoder(); in testEncoderInputBuffer()
|
D | CharsetEncoderTest.java | 32 Charset ascii = Charset.forName("US-ASCII"); in test_replaceWith() 43 byte[] result = Charset.forName(charset).newEncoder().replacement(); in assertReplacementBytesForEncoder() 69 Charset cs = Charset.forName("UTF-32BE"); in testSurrogatePairAllAtOnce() 83 Charset cs = Charset.forName("UTF-32BE"); in testMalformedSurrogatePair() 118 Charset cs = Charset.forName("UTF-32BE"); in testCharsetEncoderSplitSurrogates() 144 Charset cs = Charset.forName("UTF-32BE"); in testFlushWithoutEndOfInput()
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
D | ThreadLocalCoders.java | 61 Object forName(Object name) { in forName() method in ThreadLocalCoders.Cache 98 return Charset.forName((String)name).newDecoder(); 107 CharsetDecoder cd = (CharsetDecoder)decoderCache.forName(name); in decoderFor() 122 return Charset.forName((String)name).newEncoder(); 131 CharsetEncoder ce = (CharsetEncoder)encoderCache.forName(name); in encoderFor()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | SortingHelper.java | 601 Class.forName("java.util.DualPivotQuicksort") 605 Class.forName("java.util.DualPivotQuicksort") 609 Class.forName("java.util.DualPivotQuicksort") 613 Class.forName("java.util.DualPivotQuicksort") 617 Class.forName("java.util.DualPivotQuicksort") 621 Class.forName("java.util.DualPivotQuicksort") 625 Class.forName("java.util.DualPivotQuicksort") 629 Class<?> sorterClass = Class.forName("java.util.DualPivotQuicksort$Sorter"); 631 Class.forName("java.util.DualPivotQuicksort") 635 Class.forName("java.util.DualPivotQuicksort") [all …]
|
/libcore/luni/src/main/java/libcore/icu/ |
D | DateIntervalFormat.java | 98 Class<?> cls = Class.forName("android.text.format.DateIntervalFormat"); in getFrameworksDateIntervaFormatMethod() 110 Class<?> cls = Class.forName("android.text.format.DateUtils"); in getDateUtilsMethod() 111 Method m = cls.getMethod("formatDateRange", Class.forName("android.content.Context"), in getDateUtilsMethod()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldOutputStreamWriterTest.java | 75 Charset.forName(writer.getEncoding())); in test_ConstructorLjava_io_OutputStream() 118 Charset.forName("8859_1"), in test_ConstructorLjava_io_OutputStreamLjava_lang_String() 119 Charset.forName(osw.getEncoding())); in test_ConstructorLjava_io_OutputStreamLjava_lang_String() 126 Charset cs = Charset.forName("ascii"); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_Charset() 144 cs, Charset.forName(writer.getEncoding())); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_Charset() 152 Charset cs = Charset.forName("ascii"); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_CharsetEncoder() 171 cs, Charset.forName(writer.getEncoding())); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_CharsetEncoder() 330 Charset.forName("utf-8"), in test_getEncoding() 331 Charset.forName(writer.getEncoding())); in test_getEncoding()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ClassLoader.java | 37 factory = (Support_ClassLoader)Class.forName( in getInstance() 40 factory = (Support_ClassLoader)Class.forName( in getInstance()
|
/libcore/luni/src/test/java/tests/support/ |
D | Support_SQL.java | 51 InputStream in = Class.forName("tests.support.Support_SQL") in loadDriver() 64 Class.forName("SQLite.JDBCDriver").newInstance(); in loadDriver() 69 Class.forName(sqlDriver).newInstance(); in loadDriver()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | ChannelsTest.java | 366 Channels.newReader(rbChannel, Charset.forName(BAD_CODE_SET) in testnewReaderCharsetError() 379 Channels.newWriter(wbChannel, Charset.forName(BAD_CODE_SET) in testnewWriterCharsetError() 400 testReader = Channels.newReader(null, Charset.forName(CODE_SET).newDecoder(), -1); in testNewReaderReadableByteChannelString_InputNull() 414 testReader = Channels.newReader(rbChannel, Charset.forName(CODE_SET).newDecoder(), -1); in testNewReaderReadableByteChannelString_InputNull() 437 testReader = Channels.newReader(null, Charset.forName(CODE_SET).newDecoder(), 0); in testNewReaderReadableByteChannelString_internalBufferZero() 450 testReader = Channels.newReader(rbChannel, Charset.forName(CODE_SET).newDecoder(), -1); in testNewReaderReadableByteChannelString_internalBufferZero() 470 Reader testReader = Channels.newReader(rbChannel, Charset.forName( in testNewReaderReadableByteChannelString() 509 … Writer testWriter = Channels.newWriter(null, Charset.forName(CODE_SET).newEncoder(), -1); in testNewWriterWritableByteChannelString_internalBufZero() 530 Writer testWriter = Channels.newWriter(wbChannel, Charset.forName( in testNewWriterWritableByteChannelString_InputNull() 553 Writer testWriter_s = Channels.newWriter(wbChannel, Charset.forName( in testNewWriterWritableByteChannelString()
|