Home
last modified time | relevance | path

Searched refs:forName (Results 1 – 25 of 142) sorted by relevance

123456

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DCharacter_UnicodeBlockTest.java539 … assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.forName("BASIC_LATIN")); in test_forNameLjava_lang_String()
540 … assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.forName("Basic Latin")); in test_forNameLjava_lang_String()
541 … assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.forName("BasicLatin")); in test_forNameLjava_lang_String()
542 …assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.forName("LATIN_1_SU… in test_forNameLjava_lang_String()
543 …assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.forName("Latin-1 Su… in test_forNameLjava_lang_String()
544 …assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.forName("Latin-1Sup… in test_forNameLjava_lang_String()
545 …assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.forName("LATIN_EXTEND… in test_forNameLjava_lang_String()
546 …assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.forName("Latin Extend… in test_forNameLjava_lang_String()
547 …assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.forName("LatinExtende… in test_forNameLjava_lang_String()
548 …assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_B, Character.UnicodeBlock.forName("LATIN_EXTEND… in test_forNameLjava_lang_String()
[all …]
DClassTest.java98 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/
DStandardCharsets.java44 public static final Charset US_ASCII = Charset.forName("US-ASCII");
48 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
52 public static final Charset UTF_8 = Charset.forName("UTF-8");
56 public static final Charset UTF_16BE = Charset.forName("UTF-16BE");
60 public static final Charset UTF_16LE = Charset.forName("UTF-16LE");
65 public static final Charset UTF_16 = Charset.forName("UTF-16");
/libcore/luni/src/test/java/libcore/java/lang/
DCharacterTest.java144 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 …]
DUnicodeScriptTest.java34 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()
DOldClassTest.java260 Class<?> clazz = Class.forName(classes[i].getName(), true, pcl); in test_forNameLjava_lang_StringLbooleanLClassLoader()
263 clazz = Class.forName(classes[i].getName(), false, pcl); in test_forNameLjava_lang_StringLbooleanLClassLoader()
271 Class<?> clazz = Class.forName(systemClasses[i].getName(), true, in test_forNameLjava_lang_StringLbooleanLClassLoader()
275 clazz = Class.forName(systemClasses[i].getName(), false, in test_forNameLjava_lang_StringLbooleanLClassLoader()
281 Class.forName(null, true, pcl); in test_forNameLjava_lang_StringLbooleanLClassLoader()
288 Class.forName("NotExistClass", true, pcl); in test_forNameLjava_lang_StringLbooleanLClassLoader()
295 Class.forName("String", false, pcl); in test_forNameLjava_lang_StringLbooleanLClassLoader()
302 Class.forName("libcore.java.lang.NonexistentClass", false, pcl); in test_forNameLjava_lang_StringLbooleanLClassLoader()
321 Class.forName(classNameLinkageError, true, loader); in test_forNameLjava_lang_StringLbooleanLClassLoader_AndroidOnly()
333 Class.forName(classNameInitError2, in test_forNameLjava_lang_StringLbooleanLClassLoader_AndroidOnly()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DOldAndroidClassTest.java32 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testNewInstance()
39 Class.forName("this.class.DoesNotExist"); in testForName()
47 Class.forName(packageName + ".ClassWithPrivateConstructor").newInstance(); in testNewInstancePrivateConstructor()
54 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetDeclaredMethod()
60 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetDeclaredMethodWithArgs()
70 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetDeclaredMethodPrivate()
76 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testGetSuperclass()
77 Class objectClass = Class.forName("java.lang.Object"); in testGetSuperclass()
82 Class helloClass = Class.forName(OldAndroidClassTest.class.getName()); in testIsAssignableFrom()
83 Class objectClass = Class.forName("java.lang.Object"); in testIsAssignableFrom()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DInputStreamReaderTest.java183 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 …]
DOutputStreamWriterTest.java342 assertEquals(Charset.forName("ascii"), Charset.forName(writer2 in testOutputStreamWriterOutputStreamString()
351 Charset cs = Charset.forName("ascii"); in testOutputStreamWriterOutputStreamCharset()
365 assertEquals(cs, Charset.forName(writer2.getEncoding())); in testOutputStreamWriterOutputStreamCharset()
374 Charset cs = Charset.forName("ascii"); in testOutputStreamWriterOutputStreamCharsetEncoder()
389 assertEquals(cs, Charset.forName(writer2.getEncoding())); in testOutputStreamWriterOutputStreamCharsetEncoder()
394 Charset cs = Charset.forName("utf-8"); in testGetEncoding()
395 assertEquals(cs, Charset.forName(writer.getEncoding())); in testGetEncoding()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DCharsetDecoderTest.java31 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()
DCharsetTest.java24 Charset cs = Charset.forName("UTF8"); in test_nonstandardCharsetName()
30 assertNotNull(Charset.forName("UTF8")); in test_nonstandardCharsetName()
44 Charset cs = Charset.forName(name); in run()
DOldCharsetEncoderDecoderBufferTest.java38 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()
DCharsetEncoderTest.java32 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/
DThreadLocalCoders.java61 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetEncoder2Test.java40 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()
DCharsetDecoder2Test.java44 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/support/src/test/java/tests/support/
DSupport_ClassLoader.java37 factory = (Support_ClassLoader)Class.forName( in getInstance()
40 factory = (Support_ClassLoader)Class.forName( in getInstance()
/libcore/luni/src/test/java/libcore/java/io/
DOldOutputStreamWriterTest.java75 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/luni/src/test/java/tests/support/
DSupport_SQL.java51 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/luni/src/main/java/javax/xml/transform/
DTransformerFactory.java78 return (TransformerFactory) Class.forName(className).newInstance(); in newInstance()
102 : Class.forName(factoryClassName); in newInstance()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DChannelsTest.java366 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()
/libcore/ojluni/src/main/java/sun/misc/
DSharedSecrets.java144 Class.forName("java.io.FileDescriptor"); in getJavaIOFileDescriptorAccess()
/libcore/benchmarks/src/benchmarks/regression/
DCharsetForNameBenchmark.java41 Charset.forName(charsetName); in timeCharsetForName()
/libcore/test-rules/src/main/java/libcore/junit/util/
DResourceLeakageDetector.java59 Class.forName("dalvik.system.CloseGuard");
63 Class<?> closeGuardSupportClass = Class.forName(
/libcore/ojluni/src/main/java/javax/net/ssl/
DHttpsURLConnection.java202 Class.forName(OK_HOSTNAME_VERIFIER_CLASS)
341 .forName(OK_HOSTNAME_VERIFIER_CLASS) in getStrictHostnameVerifier()

123456