HomeSort by relevance Sort by last modified time
    Searched refs:Constructor (Results 101 - 125 of 239) sorted by null

1 2 3 45 6 7 8 910

  /external/javassist/src/test/test/javassist/proxy/
ProxySerializationTest.java 7 import java.lang.reflect.Constructor;
33 Constructor constructor = proxyClass.getConstructor(new Class[] {String.class}); local
34 TestClass proxy = (TestClass)constructor.newInstance(new Object[] {name});
60 Constructor constructor = proxyClass.getConstructor(new Class[] {String.class}); local
61 TestClass proxy = (TestClass)constructor.newInstance(new Object[] {name});
  /external/junit/src/org/junit/runners/model/
TestClass.java 6 import java.lang.reflect.Constructor;
30 * constructor executes, the class is scanned for annotations, which can be
38 "Test class can only have one constructor");
121 * Returns the only public constructor in the class, or throws an {@code
125 public Constructor<?> getOnlyConstructor() {
126 Constructor<?>[] constructors= fClass.getConstructors();
  /libcore/luni/src/test/java/tests/api/java/lang/reflect/
TypeVariableTest.java 20 import java.lang.reflect.Constructor;
64 Constructor<?> constructor = clazz.getDeclaredConstructor(); local
65 TypeVariable<?>[] typeParameters = constructor.getTypeParameters();
68 assertEquals(constructor, typeVariable.getGenericDeclaration());
115 Constructor<?> constructor = clazz.getDeclaredConstructor(); local
117 TypeVariable<?>[] typeParameters = constructor.getTypeParameters();
120 assertEquals(constructor, typeParameters[0].getGenericDeclaration());
123 assertEquals(constructor, typeParameters[1].getGenericDeclaration())
    [all...]
  /sdk/monkeyrunner/src/com/android/monkeyrunner/
MonkeyRunnerHelp.java 31 import java.lang.reflect.Constructor;
61 Set<Constructor<?>> constructors,
84 for (Constructor<?> c : clz.getConstructors()) {
188 Set<Constructor<?>> constructors = Sets.newTreeSet(MEMBER_SORTER);
247 Set<Constructor<?>> constructors = Sets.newTreeSet(MEMBER_SORTER);
262 for (Constructor<?> constructor : constructors) {
263 allClasses.add(constructor.getDeclaringClass());
  /dalvik/tests/068-classloader/src/
FancyLoader.java 21 import java.lang.reflect.Constructor;
85 Constructor ctor;
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
ConsoleTest.java 29 import java.lang.reflect.Constructor;
51 Constructor<Console> constructor = local
53 constructor.setAccessible(true);
54 console = constructor.newInstance(in, out);
  /external/apache-http/src/org/apache/commons/logging/
LogSource.java 20 import java.lang.reflect.Constructor;
69 /** Constructor for current log class */
70 static protected Constructor logImplctor = null;
145 // ------------------------------------------------------------ Constructor
159 * must implement {@link Log}, and provide a constructor that
181 * and provide a constructor that takes a single {@link String}
220 * have a public constructor that takes a single
  /external/junit/src/org/junit/experimental/theories/
ParameterSignature.java 7 import java.lang.reflect.Constructor;
19 public static List<ParameterSignature> signatures(Constructor<?> constructor) {
20 return signatures(constructor.getParameterTypes(), constructor
  /external/junit/src/org/junit/internal/runners/
TestClass.java 4 import java.lang.reflect.Constructor;
90 public Constructor<?> getConstructor() throws SecurityException, NoSuchMethodException {
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
FilterFactory.java 25 import java.lang.reflect.Constructor;
122 // Look for the correct constructor
123 Constructor filterConstructor = null;
128 + "' does not have a constructor of the form <init>(String name)!");
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);
  /libcore/dom/src/test/java/org/w3c/domts/
BatikTestDocumentBuilderFactory.java 15 import java.lang.reflect.Constructor;
88 Constructor domFactoryConstructor =
DOM4JTestDocumentBuilderFactory.java 25 import java.lang.reflect.Constructor;
49 * factory will be mutated in constructor and should be released
53 * after the constructor.
75 Constructor saxReaderConstructor = saxReaderClass.getConstructor(
  /packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/
SyncAdapterTestCase.java 33 import java.lang.reflect.Constructor;
96 Constructor<T> c;
  /packages/apps/Exchange/tests/src/com/android/exchange/adapter/
SyncAdapterTestCase.java 33 import java.lang.reflect.Constructor;
96 Constructor<T> c;
  /libcore/luni/src/main/java/java/lang/
Class.java 41 import java.lang.reflect.Constructor;
418 * Returns a {@code Constructor} object which represents the public
419 * constructor matching the specified parameter types.
422 * the parameter types of the requested constructor.
424 * @return the constructor described by {@code parameterTypes}.
426 * if the constructor can not be found.
430 public Constructor<T> getConstructor(Class<?>... parameterTypes) throws NoSuchMethodException {
431 return (Constructor) getConstructorOrMethod("<init>", false, true, parameterTypes);
435 * Returns a constructor or method with the specified name.
437 * @param name the method name, or "<init>" to return a constructor
    [all...]
  /external/javassist/sample/evolve/
VersionManager.java 68 Constructor[] constructors = clazz.getConstructors();
88 throw new CannotCreateException("no constructor matches");
  /frameworks/base/test-runner/src/android/test/
AndroidTestRunner.java 31 import java.lang.reflect.Constructor;
95 Constructor c = testClass.getConstructor();
101 Constructor c = testClass.getConstructor(String.class);
110 Constructor constructor, Object... args) {
112 TestCase testCase = (TestCase) constructor.newInstance(args);
120 runFailed("Illegal argument passed to constructor. Class: " + testClass.getName());
122 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/main/java/org/apache/harmony/luni/lang/reflect/
GenericSignatureParser.java 19 import java.lang.reflect.Constructor;
168 * Parses the generic signature of a constructor and creates the data
180 if(genericDecl instanceof Constructor) {
181 Constructor c = (Constructor) genericDecl;
  /external/clang/lib/Sema/
SemaInit.cpp 335 // Value-initialization requires a constructor call, so
336 // extend the initializer list to include the constructor
457 // Value-initialization requires a constructor call, so
458 // extend the initializer list to include the constructor
    [all...]
  /cts/tools/signature-tools/src/signature/converter/doclet/
DocletFactory.java 22 import java.lang.reflect.Constructor;
98 Constructor<Messager> c;
  /dalvik/tests/004-annotations/src/android/test/anno/
TestAnnotations.java 4 import java.lang.reflect.Constructor;
38 for (Constructor c: clazz.getDeclaredConstructors()) {
43 System.out.println(" constructor parameter annotations:");
  /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});
  /libcore/luni/src/test/java/libcore/java/lang/reflect/
AnnotationsTest.java 24 import java.lang.reflect.Constructor;
43 Constructor<Type> constructor = Type.class.getConstructor(); local
44 assertAnnotatedElement(constructor, AnnotationA.class, AnnotationC.class);

Completed in 890 milliseconds

1 2 3 45 6 7 8 910