Home
last modified time | relevance | path

Searched refs:constructor (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DReflectionInflater.java91 Constructor<? extends T> constructor = in createItem() local
95 if (constructor == null) { in createItem()
100 constructor = clazz.getConstructor(CONSTRUCTOR_SIGNATURE); in createItem()
101 constructor.setAccessible(true); in createItem()
102 sConstructorMap.put(tagName, constructor); in createItem()
107 final T item = constructor.newInstance(mTempConstructorArgs); in createItem()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawableInflater.java196 Constructor<? extends Drawable> constructor; in inflateFromClass() local
198 constructor = CONSTRUCTOR_MAP.get(className); in inflateFromClass()
199 if (constructor == null) { in inflateFromClass()
202 constructor = clazz.getConstructor(); in inflateFromClass()
203 CONSTRUCTOR_MAP.put(className, constructor); in inflateFromClass()
206 return constructor.newInstance(); in inflateFromClass()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestMethod.java88 for (Constructor constructor : constructors) { in instantiateTest()
89 Class[] params = constructor.getParameterTypes(); in instantiateTest()
91 TestCase test = ((Constructor<? extends TestCase>) constructor).newInstance(); in instantiateTest()
97 return ((Constructor<? extends TestCase>) constructor) in instantiateTest()
DTestGrouping.java204 for (Constructor<? extends TestCase> constructor : constructors) { in hasValidConstructor()
205 if (Modifier.isPublic(constructor.getModifiers())) { in hasValidConstructor()
206 java.lang.Class[] parameterTypes = constructor.getParameterTypes(); in hasValidConstructor()
/frameworks/base/core/java/android/preference/
DGenericInflater.java370 Constructor constructor = (Constructor) sConstructorMap.get(name); in createItem() local
373 if (null == constructor) { in createItem()
378 constructor = clazz.getConstructor(mConstructorSignature); in createItem()
379 constructor.setAccessible(true); in createItem()
380 sConstructorMap.put(name, constructor); in createItem()
385 return (T) constructor.newInstance(args); in createItem()
402 + constructor.getClass().getName()); in createItem()
/frameworks/support/v7/preference/src/android/support/v7/preference/
DPreferenceInflater.java214 Constructor constructor = CONSTRUCTOR_MAP.get(name); in createItem() local
217 if (constructor == null) { in createItem()
244 constructor = clazz.getConstructor(CONSTRUCTOR_SIGNATURE); in createItem()
245 constructor.setAccessible(true); in createItem()
246 CONSTRUCTOR_MAP.put(name, constructor); in createItem()
251 return (Preference) constructor.newInstance(args); in createItem()
/frameworks/base/legacy-test/src/junit/framework/
DTestSuite.java52 Constructor<?> constructor; in createTest() local
54 constructor= getTestConstructor(theClass); in createTest()
60 if (constructor.getParameterTypes().length == 0) { in createTest()
61 test= constructor.newInstance(new Object[0]); in createTest()
65 test= constructor.newInstance(new Object[]{name}); in createTest()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAppCompatViewInflater.java214 Constructor<? extends View> constructor = sConstructorMap.get(name); in createView() local
217 if (constructor == null) { in createView()
222 constructor = clazz.getConstructor(sConstructorSignature); in createView()
223 sConstructorMap.put(name, constructor); in createView()
225 constructor.setAccessible(true); in createView()
226 return constructor.newInstance(mConstructorArgs); in createView()
/frameworks/support/transition/src/android/support/transition/
DTransitionInflater.java200 Constructor constructor = CONSTRUCTORS.get(className); in createCustom() local
201 if (constructor == null) { in createCustom()
206 constructor = c.getConstructor(CONSTRUCTOR_SIGNATURE); in createCustom()
207 constructor.setAccessible(true); in createCustom()
208 CONSTRUCTORS.put(className, constructor); in createCustom()
212 return constructor.newInstance(mContext, attrs); in createCustom()
/frameworks/base/core/java/android/view/
DLayoutInflater.java557 private final boolean verifyClassLoader(Constructor<? extends View> constructor) { in verifyClassLoader() argument
558 final ClassLoader constructorLoader = constructor.getDeclaringClass().getClassLoader(); in verifyClassLoader()
594 Constructor<? extends View> constructor = sConstructorMap.get(name); in createView() local
595 if (constructor != null && !verifyClassLoader(constructor)) { in createView()
596 constructor = null; in createView()
604 if (constructor == null) { in createView()
615 constructor = clazz.getConstructor(mConstructorSignature); in createView()
616 constructor.setAccessible(true); in createView()
617 sConstructorMap.put(name, constructor); in createView()
647 final View view = constructor.newInstance(args); in createView()
/frameworks/base/core/java/android/transition/
DTransitionInflater.java208 Constructor constructor = sConstructors.get(className); in createCustom() local
209 if (constructor == null) { in createCustom()
213 constructor = c.getConstructor(sConstructorSignature); in createCustom()
214 constructor.setAccessible(true); in createCustom()
215 sConstructors.put(className, constructor); in createCustom()
218 return constructor.newInstance(mContext, attrs); in createCustom()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyTestUtils.java50 Constructor constructor = clazz.getDeclaredConstructor(paramType); in createNewInstance() local
51 constructor.setAccessible(true); in createNewInstance()
53 return constructor.newInstance(params); in createNewInstance()
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
DMainActivityTest.java56 Constructor constructor = clazz.getConstructor(ByteArrayOutputStream.class); in createEncoder() local
57 return constructor.newInstance(baos); in createEncoder()
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/constructor/
DPublicConstructorTest.java17 package android.test.suitebuilder.examples.constructor;
DProtectedConstructorTest.java17 package android.test.suitebuilder.examples.constructor;
DNoPublicConstructorTest.java17 package android.test.suitebuilder.examples.constructor;
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVCardVerifier.java245 final VCardEntryConstructor constructor = new VCardEntryConstructor(mVCardType); in verifyWithInputStream() local
246 constructor.addEntryHandler(mContentValuesVerifier); in verifyWithInputStream()
247 parser.addInterpreter(constructor); in verifyWithInputStream()
/frameworks/ml/nn/runtime/test/specs/
Dgenerate_test.sh36 echo // Generated model constructor
Dgenerate_vts_test.sh33 echo // Generated model constructor
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvInputHal.cpp68 jmethodID constructor; member
80 jmethodID constructor; member
463 gTvInputHardwareInfoBuilderClassInfo.constructor); in onDeviceAvailable()
620 gTvStreamConfigBuilderClassInfo.constructor); in nativeGetStreamConfigs()
699 gTvStreamConfigBuilderClassInfo.constructor, in register_android_server_tv_TvInputHal()
733 gTvInputHardwareInfoBuilderClassInfo.constructor, in register_android_server_tv_TvInputHal()
/frameworks/base/test-runner/src/android/test/
DAndroidTestRunner.java116 Constructor constructor, Object... args) { in newSingleTestMethod() argument
118 TestCase testCase = (TestCase) constructor.newInstance(args); in newSingleTestMethod()
/frameworks/base/core/java/android/text/format/
DFormatter.java211 Constructor<MeasureUnit> constructor = MeasureUnit.class in createPetaByte() local
213 constructor.setAccessible(true); in createPetaByte()
214 return constructor.newInstance("digital", "petabyte"); in createPetaByte()
/frameworks/base/media/mca/filterfw/jni/
Djni_util.h168 jmethodID constructor = env->GetMethodID( in CreateJavaObject() local
172 jobject result = env->NewObject(cls, constructor, JNI_NULL); in CreateJavaObject()
/frameworks/base/services/core/java/com/android/server/
DSystemServiceManager.java95 Constructor<T> constructor = serviceClass.getConstructor(Context.class); in startService() local
96 service = constructor.newInstance(mContext); in startService()
/frameworks/support/v7/appcompat/src/android/support/v7/view/
DSupportMenuInflater.java548 Constructor<?> constructor = clazz.getConstructor(constructorSignature); in newInstance() local
549 constructor.setAccessible(true); in newInstance()
550 return (T) constructor.newInstance(arguments); in newInstance()

12