Home
last modified time | relevance | path

Searched refs:newInstance (Results 1 – 25 of 401) sorted by relevance

12345678910>>...17

/libcore/benchmarks/src/benchmarks/regression/
DEqualsHashCodeBenchmark.java27 @Override Object newInstance(String text) throws Exception { in URI() method
32 @Override Object newInstance(String text) throws Exception { in URL() method
36 abstract Object newInstance(String text) throws Exception; in newInstance() method in EqualsHashCodeBenchmark.Type
53 a1 = type.newInstance("https://mail.google.com/mail/u/0/?shva=1#inbox"); in setUp()
54 a2 = type.newInstance("https://mail.google.com/mail/u/0/?shva=1#inbox"); in setUp()
55 b1 = type.newInstance("http://developer.android.com/reference/java/net/URI.html"); in setUp()
56 b2 = type.newInstance("http://developer.android.com/reference/java/net/URI.html"); in setUp()
58 c1 = type.newInstance("http://developer.android.com/query?q=" + QUERY); in setUp()
60 …c2 = type.newInstance("http://developer.android.com/query?q=" + QUERY.substring(0, QUERY.length() … in setUp()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStoreBuilderTest.java95 KeyStore.Builder.newInstance(null, null); in testNewInstanceKeyStoreProtectionParameter()
102 KeyStore.Builder.newInstance(null, protPass); in testNewInstanceKeyStoreProtectionParameter()
112 KeyStore.Builder.newInstance(ks, null); in testNewInstanceKeyStoreProtectionParameter()
125 KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter()
132 ksB = KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter()
136 ksB = KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter()
219 KeyStore.Builder.newInstance(null, defaultProvider, fl, protPass); in testNewInstanceStringProviderFileProtectionParameter()
224 KeyStore.Builder.newInstance(KeyStore.getDefaultType(), defaultProvider, null, in testNewInstanceStringProviderFileProtectionParameter()
231 .newInstance(KeyStore.getDefaultType(), defaultProvider, fl, null); in testNewInstanceStringProviderFileProtectionParameter()
237 .newInstance(KeyStore.getDefaultType(), defaultProvider, fl, myPP); in testNewInstanceStringProviderFileProtectionParameter()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DOldAndroidArrayTest.java28 Object intArray = Array.newInstance(Integer.TYPE, 2); in testSingleInt()
54 intArray = Array.newInstance(Integer.TYPE, 0); in testSingleInt()
59 Object strArray = Array.newInstance(String.class, 2); in testSingle()
76 Object intIntIntArray = Array.newInstance(Integer.TYPE, dimensions); in testMultiInt()
94 Object strStrStrArray = Array.newInstance(String.class, dimensions); in testMulti()
117 strStrStrArray = Array.newInstance(String[].class, dimensions2); in testMulti()
/libcore/luni/src/main/java/javax/xml/transform/
DTransformerFactory.java74 public static TransformerFactory newInstance() in newInstance() method in TransformerFactory
78 return (TransformerFactory) Class.forName(className).newInstance(); in newInstance()
91 public static TransformerFactory newInstance(String factoryClassName, ClassLoader classLoader) in newInstance() method in TransformerFactory
103 return (TransformerFactory) type.newInstance(); in newInstance()
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactory.java67 public static final XPathFactory newInstance() { in newInstance() method in XPathFactory
69 return newInstance(DEFAULT_OBJECT_MODEL_URI); in newInstance()
133 public static final XPathFactory newInstance(final String uri) in newInstance() method in XPathFactory
165 public static XPathFactory newInstance(String uri, String factoryClassName, in newInstance() method in XPathFactory
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlPullParserFactory.java148 return (XmlPullParser) parserClass.newInstance(); in getParserInstance()
172 return (XmlSerializer) serializerClass.newInstance(); in getSerializerInstance()
220 public static XmlPullParserFactory newInstance () throws XmlPullParserException { in newInstance() method in XmlPullParserFactory
230 public static XmlPullParserFactory newInstance (String unused, Class unused2) in newInstance() method in XmlPullParserFactory
232 return newInstance(); in newInstance()
/libcore/luni/src/main/java/javax/xml/datatype/
DFactoryFinder.java147 static Object newInstance( in newInstance() method in FactoryFinder
164 return spiClass.newInstance(); in newInstance()
194 return newInstance(systemProp, classLoader); in find()
203 return newInstance(factoryClassName, classLoader); in find()
223 return newInstance(fallbackClassName, classLoader); in find()
277 return newInstance(factoryClassName, cl); in findJarServiceProvider()
/libcore/ojluni/src/main/java/java/util/jar/
DPack200.java134 return (Packer) newInstance(PACK_PROVIDER); in newPacker()
160 return (Unpacker) newInstance(UNPACK_PROVIDER); in newUnpacker()
732 private synchronized static Object newInstance(String prop) { in newInstance() method in Pack200
750 return impl.newInstance(); in newInstance()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetICU.java23 return CharsetDecoderICU.newInstance(this, icuCanonicalName); in newDecoder()
27 return CharsetEncoderICU.newInstance(this, icuCanonicalName); in newEncoder()
/libcore/luni/src/main/java/javax/xml/parsers/
DSAXParserFactory.java64 public static SAXParserFactory newInstance() { in newInstance() method in SAXParserFactory
76 public static SAXParserFactory newInstance(String factoryClassName, in newInstance() method in SAXParserFactory
88 return (SAXParserFactory) type.newInstance(); in newInstance()
DDocumentBuilderFactory.java52 public static DocumentBuilderFactory newInstance() { in newInstance() method in DocumentBuilderFactory
64 public static DocumentBuilderFactory newInstance(String factoryClassName, in newInstance() method in DocumentBuilderFactory
76 return (DocumentBuilderFactory) type.newInstance(); in newInstance()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DKeyStoreBuilderParametersTest.java38 Builder builder = Builder.newInstance(testKeyStore.keyStore, in test_init_Builder()
57 Builder builder1 = Builder.newInstance(testKeyStore1.keyStore, in test_init_List()
59 Builder builder2 = Builder.newInstance(testKeyStore2.keyStore, in test_init_List()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DNewInstance.java41 static Object newInstance (ClassLoader classLoader, String className) in newInstance() method in NewInstance
51 return driverClass.newInstance(); in newInstance()
/libcore/dom/src/test/java/org/w3c/domts/level3/xpath/
DTestXalan.java34 DocumentBuilderFactory jaxpFactory = DocumentBuilderFactory.newInstance(); in suite()
41 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
DTestXalanAltConfig.java34 DocumentBuilderFactory jaxpFactory = DocumentBuilderFactory.newInstance(); in suite()
40 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
DTestXerces.java35 …etSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance(); in suite()
42 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
DTestXercesAltConfig.java35 …etSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance(); in suite()
41 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
DTestCrimson.java35 …tSystemClassLoader().loadClass("org.apache.crimson.jaxp.DocumentBuilderFactoryImpl").newInstance(); in suite()
41 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
/libcore/dom/src/test/java/org/w3c/domts/level3/core/
DTestXerces.java46 .newInstance(); in suite()
53 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
DTestXercesAltConfig.java46 .newInstance(); in suite()
53 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
DTestCrimson.java35 …tSystemClassLoader().loadClass("org.apache.crimson.jaxp.DocumentBuilderFactoryImpl").newInstance(); in suite()
41 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
DTestGNUJAXPAltConfig.java36 loadClass("gnu.xml.dom.JAXPFactory").newInstance(); in suite()
42 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
DTestOracleAltConfig.java36 loadClass("oracle.xml.jaxp.JXDocumentBuilderFactory").newInstance(); in suite()
42 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
DTestXerces.java35 …etSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance(); in suite()
42 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
/libcore/dom/src/test/java/org/w3c/domts/level3/ls/
DTestXerces.java42 …etSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance(); in suite()
49 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()

12345678910>>...17