Home
last modified time | relevance | path

Searched refs:newInstance (Results 1 – 25 of 419) 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/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/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/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamClassTest.java244 Method newInstance = getNewInstanceMethod(); in testBug28106822_target24() local
246 Object obj = newInstance.invoke(null, String.class, 0 /* ignored */); in testBug28106822_target24()
257 Method newInstance = getNewInstanceMethod(); in testBug28106822_target25() local
266 newInstance.invoke(null, String.class, 0 /* ignored */); in testBug28106822_target25()
281 Method newInstance = ObjectStreamClass.class.getDeclaredMethod("newInstance", in getNewInstanceMethod() local
283 newInstance.setAccessible(true); in getNewInstanceMethod()
284 return newInstance; in getNewInstanceMethod()
/libcore/ojluni/src/main/java/java/util/jar/
DPack200.java135 return (Packer) newInstance(PACK_PROVIDER); in newPacker()
162 return (Unpacker) newInstance(UNPACK_PROVIDER); in newUnpacker()
791 private synchronized static Object newInstance(String prop) { in newInstance() method in Pack200
809 return impl.newInstance(); in newInstance()
/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/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/support/src/test/java/tests/support/
DSupport_ClassLoader.java38 packageName + ".Support_ClassLoaderDalvik").newInstance(); in getInstance()
41 packageName + ".Support_ClassLoader$RefImpl").newInstance(); in getInstance()
/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/ojluni/src/test/javax/xml/jaxp/transform/
DXSLTExFuncTest.java109 TransformerFactory factory = TransformerFactory.newInstance(); in testExtFunc()
128 TransformerFactory factory = TransformerFactory.newInstance(); in testExtFuncNotAllowed()
150 TransformerFactory factory = TransformerFactory.newInstance(); in testEnableExtFunc()
188 TransformerFactory factory = TransformerFactory.newInstance(); in testTemplatesEnableExtFunc()
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
DTestXercesAltConfig.java35 …etSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance(); in suite()
41 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()
/libcore/dom/src/test/java/org/w3c/domts/level3/core/
DTestOracleAltConfig.java50 .newInstance(); in suite()
57 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
DTestXercesAltConfig.java46 .newInstance(); in suite()
53 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
DTestOracle.java51 .newInstance(); in suite()
58 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
/libcore/dom/src/test/java/org/w3c/domts/level2/events/
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()
DTestOracle.java54 .newInstance(); in suite()
61 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
DTestGNUJAXP.java37 loadClass("gnu.xml.dom.JAXPFactory").newInstance(); in suite()
44 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()

12345678910>>...17