/frameworks/base/test-runner/src/android/test/ |
AndroidTestRunner.java | 32 import java.lang.reflect.Constructor; 96 Constructor c = testClass.getConstructor(); 102 Constructor c = testClass.getConstructor(String.class); 111 Constructor constructor, Object... args) { 113 TestCase testCase = (TestCase) constructor.newInstance(args); 121 runFailed("Illegal argument passed to constructor. Class: " + testClass.getName()); 123 runFailed("Constructor thew an exception. Class: " + testClass.getName());
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
TestGrouping.java | 27 import java.lang.reflect.Constructor; 227 // from Constructor<T>[] to Constructor<?>[] 228 Constructor<? extends TestCase>[] constructors 229 = (Constructor<? extends TestCase>[]) aClass.getConstructors(); 230 for (Constructor<? extends TestCase> constructor : constructors) { 231 if (Modifier.isPublic(constructor.getModifiers())) { 232 java.lang.Class[] parameterTypes = constructor.getParameterTypes(); 240 "TestCase class %s is missing a public constructor with no parameters " [all...] |
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
ClassLoaderReflectionTest.java | 19 import java.lang.reflect.Constructor; 108 Constructor<?> constructor = fClass.getDeclaredConstructors()[0]; local 109 Type[] parameters = constructor.getGenericParameterTypes(); 132 Constructor<?> c1 = A.class.getDeclaredConstructor(); 133 Constructor<?> c2 = aClass.getDeclaredConstructor();
|
OldGenericTypesTest.java | 19 import java.lang.reflect.Constructor; 68 Constructor<?> constructor = clazz.getDeclaredConstructor(Object.class); local 69 Type[] genericParameterTypes = constructor.getGenericParameterTypes(); 192 //constructor 193 Constructor<?>[] declaredConstructors = innerClazz.getDeclaredConstructors(); 195 Constructor<?> declaredConstructor = declaredConstructors[0];
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/reflection/ |
ReflectionClassDef.java | 47 import java.lang.reflect.Constructor; 175 new Function<Constructor, Method>() { 176 @Nullable @Override public Method apply(@Nullable Constructor input) { 226 new Function<Constructor, Method>() { 227 @Nullable @Override public Method apply(@Nullable Constructor input) {
|
/external/mockito/cglib-and-asm/src/org/mockito/cglib/core/ |
ReflectUtils.java | 95 } else if (member instanceof Constructor) { 96 return TypeUtils.getTypes(((Constructor)member).getExceptionTypes()); 105 } else if (member instanceof Constructor) { 106 Type[] types = TypeUtils.getTypes(((Constructor)member).getParameterTypes()); 115 public static Constructor findConstructor(String desc) { 119 public static Constructor findConstructor(String desc, ClassLoader loader) { 224 public static Object newInstance(final Constructor cstruct, final Object[] args) { 243 public static Constructor getConstructor(Class type, Class[] parameterTypes) { 245 Constructor constructor = type.getDeclaredConstructor(parameterTypes) local [all...] |
/external/chromium_org/v8/src/ |
apinatives.js | 30 var Constructor = %GetTemplateField(data, kApiConstructorOffset); 33 var result = typeof Constructor === 'undefined' ? 34 {} : new (Instantiate(Constructor))();
|
/cts/tools/signature-tools/src/signature/converter/doclet/ |
DocletFactory.java | 22 import java.lang.reflect.Constructor;
98 Constructor<Messager> c;
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
Range.idl | 23 Constructor,
|
/external/mockito/cglib-and-asm/src/org/mockito/cglib/reflect/ |
FastClass.java | 18 import java.lang.reflect.Constructor; 31 throw new Error("Using the FastClass empty constructor--please report to the cglib-devel mailing list"); 103 public FastConstructor getConstructor(Constructor constructor) { 104 return new FastConstructor(this, constructor); 159 * Return the index of the matching constructor. The index may be used 163 * @return the constructor index, or <code>-1</code> if none is found. 178 * Create a new instance using the specified constructor index and arguments. 180 * @param index the constructor index 181 * @param args the arguments passed to the constructor [all...] |
/external/mockito/src/org/mockito/internal/creation/jmock/ |
ClassImposterizer.java | 16 import java.lang.reflect.Constructor;
34 //have a constructor in this class that tries to instantiate ObjenesisStd and if it fails then show decent exception that dependency is missing
79 for (Constructor<?> constructor : mockedType.getDeclaredConstructors()) {
80 constructor.setAccessible(accessible);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/bytecode/ |
RobolectricInternals.java | 5 import java.lang.reflect.Constructor; 28 Constructor<T> defaultConstructor = clazz.getDeclaredConstructor();
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
SyncRunner.java | 23 import java.lang.reflect.Constructor; 44 // TODO: Provide factory based constructor? 55 Constructor schedulerConstructor = schedulerClass.getConstructor(FilterGraph.class); 58 throw new RuntimeException("Scheduler does not have constructor <init>(FilterGraph)!", e); 62 throw new RuntimeException("Cannot access Scheduler constructor!", e); 64 throw new RuntimeException("Scheduler constructor threw an exception", e);
|
/frameworks/base/services/core/java/com/android/server/ |
SystemServiceManager.java | 22 import java.lang.reflect.Constructor; 88 Constructor<T> constructor = serviceClass.getConstructor(Context.class); local 89 service = constructor.newInstance(mContext); 95 + ": service must have a public constructor with a Context argument", ex); 98 + ": service must have a public constructor with a Context argument", ex); 101 + ": service constructor threw an exception", ex);
|
/libcore/luni/src/main/java/javax/security/cert/ |
X509Certificate.java | 22 import java.lang.reflect.Constructor; 48 private static Constructor constructor; field in class:X509Certificate 53 constructor = cl.getConstructor(new Class[] {InputStream.class}); 79 if (constructor != null) { 82 constructor.newInstance(new Object[] {inStream});
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
LocaleSpanCompatUtils.java | 25 import java.lang.reflect.Constructor; 44 private static final Constructor<?> LOCALE_SPAN_CONSTRUCTOR;
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
NullPointerTester.java | 34 import java.lang.reflect.Constructor; 115 * Ignore a member (constructor or method) in testAllXxx methods. Returns 124 * Runs {@link #testConstructor} on every public constructor in class {@code 128 for (Constructor<?> constructor : c.getDeclaredConstructors()) { 129 if (isPublic(constructor) && !isStatic(constructor) 130 && !isIgnored(constructor)) { 131 testConstructor(constructor); 181 public void testConstructor(Constructor<?> ctor) throws Exception [all...] |
/external/nist-sip/java/javax/sip/ |
SipFactory.java | 3 import java.lang.reflect.Constructor;
|
/frameworks/base/core/java/android/transition/ |
TransitionInflater.java | 35 import java.lang.reflect.Constructor; 50 private final static ArrayMap<String, Constructor> sConstructors = 51 new ArrayMap<String, Constructor>(); 204 Constructor constructor = sConstructors.get(className); local 205 if (constructor == null) { 209 constructor = c.getConstructor(sConstructorSignature); 210 sConstructors.put(className, constructor); 214 return constructor.newInstance(mContext, attrs);
|
/external/chromium_org/third_party/leveldatabase/src/table/ |
table_test.cc | 141 class Constructor { 143 explicit Constructor(const Comparator* cmp) : data_(STLLessThan(cmp)) { } 144 virtual ~Constructor() { } 181 class BlockConstructor: public Constructor { 184 : Constructor(cmp), 221 class TableConstructor: public Constructor { 224 : Constructor(cmp), 316 class MemTableConstructor: public Constructor { 319 : Constructor(cmp), 349 class DBConstructor: public Constructor { [all...] |
/external/junit/src/junit/framework/ |
TestSuite.java | 5 import java.lang.reflect.Constructor; 27 * TestSuite constructor. 33 * <p>This constructor creates a suite with all the methods 52 Constructor<?> constructor; local 54 constructor= getTestConstructor(theClass); 56 return warning("Class "+theClass.getName()+" has no public constructor TestCase(String name) or TestCase()"); 60 if (constructor.getParameterTypes().length == 0) { 61 test= constructor.newInstance(new Object[0]); 65 test= constructor.newInstance(new Object[]{name}) [all...] |
/external/smack/src/org/jivesoftware/smack/ |
SASLAuthentication.java | 32 import java.lang.reflect.Constructor;
232 Constructor<? extends SASLMechanism> constructor = mechanismClass.getConstructor(SASLAuthentication.class);
local 233 currentMechanism = constructor.newInstance(this);
314 Constructor<? extends SASLMechanism> constructor = mechanismClass.getConstructor(SASLAuthentication.class);
local 315 currentMechanism = constructor.newInstance(this);
|
/libcore/dom/src/test/java/org/w3c/domts/ |
XercesHTML2DocumentBuilderFactory.java | 15 import java.lang.reflect.Constructor; 39 private Constructor htmlBuilderConstructor; 122 Constructor htmlBuilderConstructor,
|
XercesHTMLDocumentBuilderFactory.java | 15 import java.lang.reflect.Constructor; 39 private Constructor htmlBuilderConstructor; 122 Constructor htmlBuilderConstructor,
|
/libcore/libart/src/main/java/java/lang/reflect/ |
AbstractMethod.java | 116 * Returns the class that declares this constructor or method. 132 * Returns the name of the method or constructor represented by this 201 * Returns the constructor's signature in non-printable form. This is called 205 * @return The constructor's signature. 226 * Returns generic information associated with this method/constructor member. 238 Constructor<?> c = (Constructor<?>) this; 256 * Helper for Method and Constructor for toGenericString 278 if (this instanceof Constructor) { 279 // append constructor nam [all...] |