/libcore/benchmarks/src/benchmarks/regression/ |
D | EqualsHashCodeBenchmark.java | 27 @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/ |
D | KeyStoreBuilderTest.java | 95 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/ |
D | OldAndroidArrayTest.java | 28 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/ |
D | XPathFactory.java | 67 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/ |
D | TransformerFactory.java | 74 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/ |
D | XmlPullParserFactory.java | 148 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/ |
D | FactoryFinder.java | 147 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/ |
D | ObjectStreamClassTest.java | 244 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/ |
D | Pack200.java | 135 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/ |
D | SAXParserFactory.java | 64 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()
|
D | DocumentBuilderFactory.java | 52 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/ |
D | NewInstance.java | 41 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/ |
D | Support_ClassLoader.java | 38 packageName + ".Support_ClassLoaderDalvik").newInstance(); in getInstance() 41 packageName + ".Support_ClassLoader$RefImpl").newInstance(); in getInstance()
|
/libcore/dom/src/test/java/org/w3c/domts/level3/xpath/ |
D | TestXalan.java | 34 DocumentBuilderFactory jaxpFactory = DocumentBuilderFactory.newInstance(); in suite() 41 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
|
D | TestXalanAltConfig.java | 34 DocumentBuilderFactory jaxpFactory = DocumentBuilderFactory.newInstance(); in suite() 40 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
|
/libcore/ojluni/src/test/javax/xml/jaxp/transform/ |
D | XSLTExFuncTest.java | 109 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/ |
D | TestXercesAltConfig.java | 35 …etSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance(); in suite() 41 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
|
D | TestOracleAltConfig.java | 36 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/ |
D | TestOracleAltConfig.java | 50 .newInstance(); in suite() 57 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
|
D | TestXercesAltConfig.java | 46 .newInstance(); in suite() 53 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
|
D | TestOracle.java | 51 .newInstance(); in suite() 58 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
|
/libcore/dom/src/test/java/org/w3c/domts/level2/events/ |
D | TestXerces.java | 35 …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/ |
D | TestXerces.java | 42 …etSystemClassLoader().loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl").newInstance(); in suite() 49 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
|
D | TestOracle.java | 54 .newInstance(); in suite() 61 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
D | TestGNUJAXP.java | 37 loadClass("gnu.xml.dom.JAXPFactory").newInstance(); in suite() 44 Object test = testConstructor.newInstance(new Object[] { factory }); in suite()
|