/frameworks/base/test-runner/src/android/test/suitebuilder/ |
TestMethod.java | 28 * loading the class. 30 public class TestMethod { 34 private final Class<? extends TestCase> enclosingClass; 36 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { 40 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { 58 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { 67 public Class<? extends TestCase> getEnclosingClass() { 77 private TestCase instantiateTest(Class testCaseClass, String testName) 85 Class[] params = constructor.getParameterTypes(); 102 private boolean singleStringConstructor(Class[] params) [all...] |
/art/runtime/mirror/ |
art_field.cc | 32 GcRoot<Class> ArtField::java_lang_reflect_ArtField_; 34 void ArtField::SetClass(Class* java_lang_reflect_ArtField) { 37 java_lang_reflect_ArtField_ = GcRoot<Class>(java_lang_reflect_ArtField); 42 java_lang_reflect_ArtField_ = GcRoot<Class>(nullptr); 65 ArtField* ArtField::FindInstanceFieldWithOffset(mirror::Class* klass, uint32_t field_offset) { 76 // We did not find field in the class: look into superclass.
|
/external/guava/guava/src/com/google/common/eventbus/ |
AnnotatedHandlerFinder.java | 29 class AnnotatedHandlerFinder implements HandlerFindingStrategy { 38 public Multimap<Class<?>, EventHandler> findAllHandlers(Object listener) { 39 Multimap<Class<?>, EventHandler> methodsInListener = 41 Class clazz = listener.getClass(); 44 Subscribe annotation = method.getAnnotation(Subscribe.class); 47 Class<?>[] parameterTypes = method.getParameterTypes(); 54 Class<?> eventType = parameterTypes[0]; 95 return method.getAnnotation(AllowConcurrentEvents.class) != null;
|
EventBus.java | 103 * <p>This class is safe for concurrent use. 109 public class EventBus { 114 private final SetMultimap<Class<?>, EventHandler> handlersByType = 115 Multimaps.newSetMultimap(new ConcurrentHashMap<Class<?>, Collection<EventHandler>>(), 125 * this class, followed by the identifier provided at construction. 154 * A thread-safe cache for flattenHierarch(). The Class class is immutable. 156 private LoadingCache<Class<?>, Set<Class<?>>> flattenHierarchyCache = 159 .build(new CacheLoader<Class<?>, Set<Class<?>>>() [all...] |
/external/junit/src/org/junit/internal/builders/ |
AnnotatedBuilder.java | 11 public class AnnotatedBuilder extends RunnerBuilder { 12 private static final String CONSTRUCTOR_ERROR_FORMAT= "Custom runner class %s should have a public constructor with signature %s(Class testClass)"; 21 public Runner runnerForClass(Class<?> testClass) throws Exception { 22 RunWith annotation= testClass.getAnnotation(RunWith.class); 28 public Runner buildRunner(Class<? extends Runner> runnerClass, 29 Class<?> testClass) throws Exception { 31 return runnerClass.getConstructor(Class.class).newInstance( 35 return runnerClass.getConstructor(Class.class [all...] |
/external/mockito/src/org/mockito/internal/creation/jmock/ |
SearchingClassLoader.java | 15 public class SearchingClassLoader extends ClassLoader {
23 public static ClassLoader combineLoadersOf(Class<?>... classes) {
27 private static ClassLoader combineLoadersOf(Class<?> first, Class<?>... others) {
31 for (Class<?> c : others) {
36 // In an Eclipse plug-in, jMock itself will not be on the system class loader
37 // but in the class loader of the plug-in.
40 addIfNewElement(loaders, SearchingClassLoader.class.getClassLoader());
69 protected Class<?> findClass(String name) throws ClassNotFoundException {
|
/frameworks/base/test-runner/src/android/test/ |
ClassPathPackageInfo.java | 30 public class ClassPathPackageInfo { 35 private final Set<Class<?>> topLevelClasses; 38 Set<String> subpackageNames, Set<Class<?>> topLevelClasses) { 53 public Set<Class<?>> getTopLevelClassesRecursive() { 54 Set<Class<?>> set = Sets.newHashSet(); 59 private void addTopLevelClassesTo(Set<Class<?>> set) {
|
/libcore/luni/src/test/java/libcore/java/math/ |
RunCSVTestsStrict.java | 12 public class RunCSVTestsStrict extends CSVTest { 26 Class<StrictMath> mathClass = StrictMath.class; 27 Method m = mathClass.getMethod(func, new Class[] { Double.TYPE }); 45 Class<StrictMath> mathClass = StrictMath.class; 49 m = mathClass.getMethod(func, new Class[] { Double.TYPE, Integer.TYPE }); 52 m = mathClass.getMethod(func, new Class[] { Double.TYPE, Double.TYPE });
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
OldGenericTypesTest.java | 30 public class OldGenericTypesTest extends GenericReflectionTestsBase { 32 static class GenericType<T>{ 39 static class MultipleBoundedGenericTypes<T,S extends T>{ 43 static class SimpleInheritance <T> extends GenericType<T>{} 45 static class ConstructorGenericType<T>{ 49 static class InnerClassTest<T>{ 50 class InnerClass { 56 static class ExceptionTest<T extends Exception>{ 58 class InnerClass{ 66 Class<? extends ConstructorGenericType> clazz = ConstructorGenericType.class [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
ConstructorTest.java | 32 public class ConstructorTest extends junit.framework.TestCase { 45 @Retention(RetentionPolicy.CLASS) 55 static class ConstructorTestHelper extends Object { 87 static class GenericConstructorTestHelper<T, S extends T, E extends Exception> { 92 static class NoPublicConstructorTestHelper { 93 // This class has no public constructor. 98 // static class Outer { 100 // class Inner { 106 Constructor<ConstructorTestHelper> ctor1 = ConstructorTestHelper.class 107 .getConstructor(Object.class); [all...] |
/art/runtime/ |
common_throws.h | 25 class ArtField; 26 class ArtMethod; 27 class Class; 28 class Object; 30 class Signature; 31 class StringPiece; 32 class ThrowLocation; 50 void ThrowArrayStoreException(mirror::Class* element_class, mirror::Class* array_class [all...] |
verify_object-inl.h | 23 #include "mirror/class-inl.h" 38 mirror::Class* c = obj->GetClass<kVerifyNone>(); 49 inline bool VerifyClassClass(mirror::Class* c) { 54 mirror::Class* c_c = c->GetClass<kVerifyNone>();
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/support/ |
P.java | 22 public class P { 23 private Class c; 25 public void setClazz(Class c) { 33 private String findProp(Class cls, String key) { 40 if (ret == null && !cls.equals(Object.class) && !cls.isPrimitive()) {
|
/external/clang/test/Analysis/inlining/ |
InlineObjCInstanceMethod.h | 4 // are sub-classed with unknown class by not inlining them. 7 typedef struct objc_class *Class; 9 Class isa; 18 - (Class)class;
|
/external/clang/test/Sema/ |
nonnull.c | 6 } Class; 9 Class *object; 17 Class *obj;
|
/external/droiddriver/src/com/google/android/droiddriver/helpers/ |
D2ActivityInstrumentationTestCase2.java | 29 public abstract class D2ActivityInstrumentationTestCase2<T extends Activity> extends 31 protected D2ActivityInstrumentationTestCase2(Class<T> activityClass) { 37 * NullPointerException if your leaf-level test class declares static fields. 40 * exists on devices older than ICS. If your test class extends this class, it 49 protected void scrubClass(final Class<?> testCaseClass) throws IllegalAccessException { 52 final Class<?> fieldClass = field.getDeclaringClass();
|
/external/guava/guava/src/com/google/common/collect/ |
EnumBiMap.java | 39 public final class EnumBiMap<K extends Enum<K>, V extends Enum<V>> 41 private transient Class<K> keyType; 42 private transient Class<V> valueType; 52 create(Class<K> keyType, Class<V> valueType) { 73 private EnumBiMap(Class<K> keyType, Class<V> valueType) { 80 static <K extends Enum<K>> Class<K> inferKeyType(Map<K, ?> map) { 91 private static <V extends Enum<V>> Class<V> inferValueType(Map<?, V> map) { 100 public Class<K> keyType() [all...] |
/external/hamcrest/library/src/org/hamcrest/object/ |
IsEventFrom.java | 16 public class IsEventFrom extends TypeSafeMatcher<EventObject> { 17 private final Class eventClass; 20 public IsEventFrom(Class eventClass, Object source) { 46 public static Matcher<EventObject> eventFrom(Class<? extends EventObject> eventClass, Object source) { 57 return eventFrom(EventObject.class, source);
|
/external/javassist/src/main/javassist/util/proxy/ |
FactoryHelper.java | 31 * A helper class for implementing <code>ProxyFactory</code>. 32 * The users of <code>ProxyFactory</code> do not have to see this class. 36 public class FactoryHelper { 41 Class cl = Class.forName("java.lang.ClassLoader"); 45 new Class[] { String.class, byte[].class, 46 int.class, int.class }); [all...] |
/external/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/ |
is_pod.pass.cpp | 16 template <class T> 25 template <class T> 34 class Class 37 ~Class(); 44 test_is_not_pod<Class>();
|
is_signed.pass.cpp | 16 template <class T> 25 template <class T> 34 class Class 37 ~Class(); 44 test_is_not_signed<Class>();
|
is_unsigned.pass.cpp | 16 template <class T> 25 template <class T> 34 class Class 37 ~Class(); 44 test_is_not_unsigned<Class>();
|
/external/libcxx/test/utilities/meta/meta.unary.prop.query/ |
extent.pass.cpp | 16 template <class T, unsigned A> 25 template <class T, unsigned A> 34 class Class 37 ~Class(); 44 test_extent<Class, 0>();
|
/external/mockito/cglib-and-asm/src/org/mockito/cglib/beans/ |
BulkBean.java | 29 abstract public class BulkBean 32 (BulkBeanKey)KeyFactory.create(BulkBeanKey.class); 38 protected Class target; 40 protected Class[] types; 53 public Class[] getPropertyTypes() { 54 return (Class[])types.clone(); 65 public static BulkBean create(Class target, String[] getters, String[] setters, Class[] types) { 74 public static class Generator extends AbstractClassGenerator { 75 private static final Source SOURCE = new Source(BulkBean.class.getName()) [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/cglib/reflect/ |
FastMember.java | 20 abstract public class FastMember 32 abstract public Class[] getParameterTypes(); 33 abstract public Class[] getExceptionTypes(); 43 public Class getDeclaringClass() {
|