Home
last modified time | relevance | path

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

12345678910>>...15

/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
52 a1 = type.newInstance("https://mail.google.com/mail/u/0/?shva=1#inbox"); in setUp()
53 a2 = type.newInstance("https://mail.google.com/mail/u/0/?shva=1#inbox"); in setUp()
54 b1 = type.newInstance("http://developer.android.com/reference/java/net/URI.html"); in setUp()
55 b2 = type.newInstance("http://developer.android.com/reference/java/net/URI.html"); in setUp()
57 c1 = type.newInstance("http://developer.android.com/query?q=" + QUERY); in setUp()
59 …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.java151 return (XmlPullParser) parserClass.newInstance(); in getParserInstance()
175 return (XmlSerializer) serializerClass.newInstance(); in getSerializerInstance()
223 public static XmlPullParserFactory newInstance () throws XmlPullParserException { in newInstance() method in XmlPullParserFactory
233 public static XmlPullParserFactory newInstance (String unused, Class unused2) in newInstance() method in XmlPullParserFactory
235 return newInstance(); in newInstance()
/libcore/luni/src/main/java/javax/xml/datatype/
DFactoryFinder.java128 static Object newInstance( in newInstance() method in FactoryFinder
145 return spiClass.newInstance(); in newInstance()
175 return newInstance(systemProp, classLoader); in find()
199 return newInstance(factoryClassName, classLoader); in find()
219 return newInstance(fallbackClassName, classLoader); in find()
273 return newInstance(factoryClassName, cl); in findJarServiceProvider()
/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/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/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/dom/src/test/java/org/w3c/domts/level3/xpath/
DTestXalanAltConfig.java34 DocumentBuilderFactory jaxpFactory = DocumentBuilderFactory.newInstance(); in suite()
40 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
DTestXalan.java34 DocumentBuilderFactory jaxpFactory = DocumentBuilderFactory.newInstance(); in suite()
41 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
/libcore/luni/src/main/java/java/util/
DUnsafeArrayList.java32 this.array = (T[]) Array.newInstance(elementType, initialCapacity); in UnsafeArrayList()
38 T[] newArray = (T[]) Array.newInstance(elementType, size * 2); in add()
/libcore/dom/src/test/java/org/w3c/domts/level3/core/
DTestOracle.java51 .newInstance(); in suite()
58 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/level2/core/
DTestGNUJAXP.java37 loadClass("gnu.xml.dom.JAXPFactory").newInstance(); in suite()
44 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/level1/core/
DTestCrimson.java35 …tSystemClassLoader().loadClass("org.apache.crimson.jaxp.DocumentBuilderFactoryImpl").newInstance(); in suite()
41 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()
DTestGNUJAXP.java37 loadClass("gnu.xml.dom.JAXPFactory").newInstance(); in suite()
44 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()
/libcore/dom/src/test/java/org/w3c/domts/level3/ls/
DTestOracle.java54 .newInstance(); in suite()
61 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
/libcore/dom/src/test/java/org/w3c/domts/level2/events/
DTestXercesAltConfig.java35 …etSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance(); in suite()
41 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()

12345678910>>...15