/external/robolectric-shadows/sandbox/src/test/java/org/robolectric/ |
SandboxClassLoaderTest.java | 19 import static org.robolectric.util.ReflectionHelpers.newInstance; 107 Object instance = defaultCtor.newInstance(); 118 Object instance = ctor.newInstance("new one"); 174 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); 188 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); 230 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); 243 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); 254 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); 265 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); 275 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); [all...] |
/art/test/146-bad-interface/src-art/ |
Main.java | 32 Object o = c.newInstance();
|
/art/test/435-new-instance/src/ |
Main.java | 24 $opt$NewInstance("newInstanceInterface", InstantiationError.class.getCanonicalName()); 26 $opt$NewInstance("newInstanceClass", InstantiationError.class.getCanonicalName()); 28 $opt$NewInstance("newInstancePrivateClass", IllegalAccessError.class.getCanonicalName()); 30 $opt$NewInstance("newInstanceUnknownClass", NoClassDefFoundError.class.getCanonicalName()); 33 private static void $opt$NewInstance(String method, String errorName) throws Throwable { 35 Class<?> c = Class.forName("NewInstance"); 37 m.invoke(c.newInstance());
|
/art/test/594-invoke-super/src/ |
Main.java | 70 m.invoke(z.newInstance());
|
/art/test/636-wrong-static-access/src/ |
Main.java | 31 ClassLoader loader = (ClassLoader) constructor.newInstance(
|
/art/test/656-checker-simd-opt/src/ |
Main.java | 73 Array.newInstance(int.class, 1).getClass(), 74 Array.newInstance(int.class, 1).getClass(), 86 Array.newInstance(int.class, 1).getClass(), 87 Array.newInstance(int.class, 1).getClass(),
|
/art/test/661-classloader-allocator/src/ |
Main.java | 52 ClassLoader loader = (ClassLoader) constructor.newInstance(
|
/art/test/998-redefine-use-after-free/src/ |
Main.java | 34 return (ClassLoader)ctor.newInstance(location + "/" + TEST_NAME + "-ex.jar",
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
ServReqAllTestCase01.java | 30 * WifiP2pServiceRequest.newInstance(WifiP2pServiceInfo.SERVICE_TYPE_ALL). 47 reqList.add(WifiP2pServiceRequest.newInstance(
|
ServReqDnsPtrTestCase.java | 45 reqList.add(WifiP2pDnsSdServiceRequest.newInstance("_ipp._tcp"));
|
ServReqDnsTxtTestCase.java | 45 reqList.add(WifiP2pDnsSdServiceRequest.newInstance("MyPrinter",
|
ServReqRemoveRequestTestCase.java | 44 WifiP2pUpnpServiceRequest.newInstance(); 46 WifiP2pUpnpServiceRequest.newInstance("ssdp:all"); 48 WifiP2pDnsSdServiceRequest.newInstance(); 50 WifiP2pDnsSdServiceRequest.newInstance("_ipp._tcp");
|
ServReqUpnpAllTestCase.java | 45 reqList.add(WifiP2pUpnpServiceRequest.newInstance("ssdp:all"));
|
ServReqUpnpRootDeviceTestCase.java | 45 reqList.add(WifiP2pUpnpServiceRequest.newInstance("upnp:rootdevice"));
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapRegionDecoderTest.java | 153 BitmapRegionDecoder.newInstance(is, false); 173 .newInstance(imageData, 0, imageData.length, false); 191 BitmapRegionDecoder.newInstance(filepath, false); 196 BitmapRegionDecoder.newInstance(fd, false); 217 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1, false); 245 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1, false); 277 .newInstance(imageData, 0, imageData.length, false); 305 BitmapRegionDecoder.newInstance(filepath, false); 316 decoder = BitmapRegionDecoder.newInstance(fd1, false); 334 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is, false) [all...] |
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
MainInteractionSessionService.java | 39 return (VoiceInteractionSession) constructor.newInstance(this);
|
/development/samples/BusinessCard/src/com/example/android/businesscard/ |
ContactAccessor.java | 68 sInstance = clazz.newInstance();
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/ |
SourceDebugExtensionDebuggee.java | 41 SourceDebugExtensionMockClass.class.getConstructor().newInstance();
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/ |
Debuggee.java | 75 debuggee = debuggeeClass.newInstance();
|
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
ResultProcessorCreator.java | 39 resultProcessor = constructor.newInstance();
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
ServerSessionContext.java | 61 NativeSslSession session = NativeSslSession.newInstance(this, data, null, -1);
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
ServerSessionContext.java | 63 NativeSslSession session = NativeSslSession.newInstance(this, data, null, -1);
|
/external/guice/core/src/com/google/inject/internal/ |
DefaultConstructionProxyFactory.java | 87 public T newInstance(Object... arguments) throws InvocationTargetException { 89 return (T) fc.newInstance(index, arguments); 124 public T newInstance(Object... arguments) throws InvocationTargetException { 126 return constructor.newInstance(arguments);
|
/external/junit-params/src/main/java/junitparams/converters/ |
ParamAnnotation.java | 25 converter = getParam(annotation).converter().newInstance();
|
/external/junit-params/src/main/java/junitparams/internal/parameters/ |
ParametersFromCustomProvider.java | 32 return providerClass.newInstance();
|