Searched refs:newInstance (Results 1 - 25 of 359) sorted by relevance

1234567891011>>

/libcore/benchmarks/src/benchmarks/regression/
H A DEqualsHashCodeBenchmark.java27 @Override Object newInstance(String text) throws Exception {
32 @Override Object newInstance(String text) throws Exception {
36 abstract Object newInstance(String text) throws Exception; method in class:EqualsHashCodeBenchmark.Type
47 a1 = type.newInstance("https://mail.google.com/mail/u/0/?shva=1#inbox");
48 a2 = type.newInstance("https://mail.google.com/mail/u/0/?shva=1#inbox");
49 b1 = type.newInstance("http://developer.android.com/reference/java/net/URI.html");
50 b2 = type.newInstance("http://developer.android.com/reference/java/net/URI.html");
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DOldAndroidArrayTest.java28 Object intArray = Array.newInstance(Integer.TYPE, 2);
54 intArray = Array.newInstance(Integer.TYPE, 0);
59 Object strArray = Array.newInstance(String.class, 2);
76 Object intIntIntArray = Array.newInstance(Integer.TYPE, dimensions);
94 Object strStrStrArray = Array.newInstance(String.class, dimensions);
117 strStrStrArray = Array.newInstance(String[].class, dimensions2);
/libcore/luni/src/main/java/java/nio/charset/
H A DCharsetICU.java23 return CharsetDecoderICU.newInstance(this, icuCanonicalName);
27 return CharsetEncoderICU.newInstance(this, icuCanonicalName);
/libcore/luni/src/main/java/javax/xml/transform/
H A DTransformerFactory.java74 public static TransformerFactory newInstance() method in class:TransformerFactory
78 return (TransformerFactory) Class.forName(className).newInstance();
91 public static TransformerFactory newInstance(String factoryClassName, ClassLoader classLoader) method in class:TransformerFactory
103 return (TransformerFactory) type.newInstance();
/libcore/luni/src/main/java/javax/xml/xpath/
H A DXPathFactory.java25 *<p>See {@link #newInstance(String uri)} for lookup mechanism.</p>
46 * <p>Protected constructor as {@link #newInstance()}, {@link #newInstance(String uri)}
47 * or {@link #newInstance(String uri, String factoryClassName, ClassLoader classLoader)}
60 * newInstance(DEFAULT_OBJECT_MODEL_URI)
67 public static final XPathFactory newInstance() { method in class:XPathFactory
69 return newInstance(DEFAULT_OBJECT_MODEL_URI);
73 "XPathFactory#newInstance() failed to create an XPathFactory for the default object model: "
133 public static final XPathFactory newInstance(final String uri) method in class:XPathFactory
140 "XPathFactory#newInstance(Strin
165 public static XPathFactory newInstance(String uri, String factoryClassName, method in class:XPathFactory
[all...]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyStoreBuilderTest.java87 * test for method newInstance(KeyStore, KeyStore.ProtectionParameter)
95 KeyStore.Builder.newInstance(null, null);
102 KeyStore.Builder.newInstance(null, protPass);
112 KeyStore.Builder.newInstance(ks, null);
125 KeyStore.Builder.newInstance(ks, pp[i]);
132 ksB = KeyStore.Builder.newInstance(ks, pp[i]);
136 ksB = KeyStore.Builder.newInstance(ks, pp[i]);
191 * Test for methods: <code>newInstance(String type, Provider provider, File
202 * ProtectionParameter which is used in newInstance(...)
219 KeyStore.Builder.newInstance(nul
[all...]
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
H A DTestCrimson.java35 ClassLoader.getSystemClassLoader().loadClass("org.apache.crimson.jaxp.DocumentBuilderFactoryImpl").newInstance();
41 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestCrimsonAltConfig.java35 ClassLoader.getSystemClassLoader().loadClass("org.apache.crimson.jaxp.DocumentBuilderFactoryImpl").newInstance();
41 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestGNUJAXP.java37 loadClass("gnu.xml.dom.JAXPFactory").newInstance();
44 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestGNUJAXPAltConfig.java36 loadClass("gnu.xml.dom.JAXPFactory").newInstance();
42 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestOracle.java36 loadClass("oracle.xml.jaxp.JXDocumentBuilderFactory").newInstance();
43 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestOracleAltConfig.java36 loadClass("oracle.xml.jaxp.JXDocumentBuilderFactory").newInstance();
42 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestXerces.java35 ClassLoader.getSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance();
42 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestXercesAltConfig.java35 ClassLoader.getSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance();
41 Object test = testConstructor.newInstance(new Object[] { factory });
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A DTestCrimson.java35 ClassLoader.getSystemClassLoader().loadClass("org.apache.crimson.jaxp.DocumentBuilderFactoryImpl").newInstance();
41 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestCrimsonAltConfig.java35 ClassLoader.getSystemClassLoader().loadClass("org.apache.crimson.jaxp.DocumentBuilderFactoryImpl").newInstance();
41 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestGNUJAXP.java37 loadClass("gnu.xml.dom.JAXPFactory").newInstance();
44 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestGNUJAXPAltConfig.java36 loadClass("gnu.xml.dom.JAXPFactory").newInstance();
42 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestOracle.java51 .newInstance();
58 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestOracleAltConfig.java50 .newInstance();
57 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestXerces.java35 ClassLoader.getSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance();
42 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestXercesAltConfig.java35 ClassLoader.getSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance();
41 Object test = testConstructor.newInstance(new Object[] { factory });
/libcore/dom/src/test/java/org/w3c/domts/level2/events/
H A DTestOracle.java51 .newInstance();
58 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestOracleAltConfig.java50 .newInstance();
57 Object test = testConstructor.newInstance(new Object[] { factory });
H A DTestXerces.java35 ClassLoader.getSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance();
42 Object test = testConstructor.newInstance(new Object[] { factory });

Completed in 581 milliseconds

1234567891011>>