Home
last modified time | relevance | path

Searched refs:getDeclaredConstructor (Results 1 – 25 of 70) sorted by relevance

123

/external/robolectric-shadows/sandbox/src/test/java/org/robolectric/
DSandboxClassLoaderTest.java115 Constructor<?> ctor = clazz.getDeclaredConstructor(String.class); in shouldDelegateToHandlerForConstructors()
174 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in callingNormalMethodShouldInvokeClassHandler()
188 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in shouldGenerateClassSpecificDirectAccessMethod()
230 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in callingNormalMethodReturningIntegerShouldInvokeClassHandler()
243 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in callingMethodReturningDoubleShouldInvokeClassHandler()
254 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in callingNativeMethodShouldInvokeClassHandler()
265 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in directlyCallingNativeMethodShouldBeNoOp()
275 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in directlyCallingNativeMethodReturningPrimitiveShouldBeNoOp()
289 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in shouldHandleMethodsReturningBoolean()
303 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in shouldHandleMethodsReturningArray()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DCommonPoolTest.kt23 val fjpCtor = Try { fjpClass.getDeclaredConstructor( in testIsGoodCommonPool()
31 val dwtfCtor = Try { dwtfClass.getDeclaredConstructor() } ?: return in testIsGoodCommonPool()
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/params/
DParameterizedRunnerDelegateFactory.java40 .getDeclaredConstructor(Class.class, ParameterizedRunnerDelegateCommon.class) in createRunner()
93 parameterProvider = clazz.getDeclaredConstructor().newInstance(); in getParameters()
/external/javassist/src/main/javassist/util/proxy/
DSecurityActions.java131 static Constructor<?> getDeclaredConstructor(final Class<?> clazz,
136 return clazz.getDeclaredConstructor(types);
142 return clazz.getDeclaredConstructor(types);
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/internal/
DFastServiceLoader.kt79 baseClass.cast(clz.getDeclaredConstructor().newInstance()) in createInstanceOf()
107 return service.cast(clazz.getDeclaredConstructor().newInstance()) in getProviderInstance()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DMapFieldSchemas.java48 return (MapFieldSchema) clazz.getDeclaredConstructor().newInstance(); in loadSchemaForFullRuntime()
DNewInstanceSchemas.java48 return (NewInstanceSchema) clazz.getDeclaredConstructor().newInstance(); in loadSchemaForFullRuntime()
DExtensionSchemas.java40 return (ExtensionSchema) clazz.getDeclaredConstructor().newInstance(); in loadSchemaForFullRuntime()
/external/objenesis/main/src/main/java/org/objenesis/instantiator/basic/
DConstructorInstantiator.java40 constructor = type.getDeclaredConstructor((Class[]) null); in ConstructorInstantiator()
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/
DCheckedProviders.java80 return new ThrowingHandler(throwable.getDeclaredConstructor(), throwable.getName()); in forClass()
198 thrownType.getDeclaredConstructor(); in checkThrowable()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/model/
DGpuDelegateProxy.java39 Object instance = clazz.getDeclaredConstructor().newInstance(); in maybeNewInstance()
/external/javassist/src/test/
DTest.java52 InvalidStackMapFrame obj = (InvalidStackMapFrame)cc.getDeclaredConstructor().newInstance(); in main()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZipClassCoverageTest.java50 Constructor<ZipConstants> constructor = clazz.getDeclaredConstructor(); in testConstantConstructor()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DServiceProvidersTestUtil.java76 Constructor<?> ctor = klass.getDeclaredConstructor(); in invokeIteratorCallable()
/external/robolectric-shadows/shadowapi/src/main/java/org/robolectric/shadow/api/
DShadow.java13 .asSubclass(IShadow.class).getDeclaredConstructor().newInstance();
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/util/
DVersionUtil.java77 v = ((Versioned) vClass.getDeclaredConstructor().newInstance()).version(); in packageVersionFor()
/external/caliper/caliper/src/main/java/com/google/caliper/util/
DParsers.java73 final Constructor<T> constr = wrappedResultType.getDeclaredConstructor(String.class); in conventionalParser()
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DMockMakerMultiplexer.java47 mockMakers.add(mockMakerClass.getDeclaredConstructor().newInstance());
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowChoreographer.java42 Choreographer.class.getDeclaredConstructor(Looper.class); in makeThreadLocal()
DShadowParcelFileDescriptor.java48 ParcelFileDescriptor.class.getDeclaredConstructor(FileDescriptor.class); in open()
/external/javassist/src/test/testproxy/
DProxyFactoryPerformanceTest.java49 threads[i] = (Thread)cl.getDeclaredConstructor().newInstance(); in callCreateClass()
/external/guice/core/test/com/google/inject/
DRequireAtInjectOnConstructorsTest.java217 .toConstructor(ManyConstructors.class.getDeclaredConstructor()); in testRequireAtInjectStillAllowsToConstructorBindings()
/external/desugar/java/com/google/devtools/common/options/testing/
DConverterTester.java46 return converterClass.getDeclaredConstructor().newInstance(); in createConverter()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/src/
DHandlerDispatcher.kt89 constructor = Handler::class.java.getDeclaredConstructor(Looper::class.java, in createDispatcher()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/
DAnnotatedConstructor.java196 Constructor<?> ctor = clazz.getDeclaredConstructor(_serialization.args); in readResolve()

123