Home
last modified time | relevance | path

Searched refs:Class (Results 1 – 25 of 544) sorted by relevance

12345678910>>...22

/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestGrouping.java49 private final SortedSet<Class<? extends TestCase>> testCaseClasses;
51 static final Comparator<Class<? extends TestCase>> SORT_BY_SIMPLE_NAME
54 static final Comparator<Class<? extends TestCase>> SORT_BY_FULLY_QUALIFIED_NAME
59 TestGrouping(Comparator<Class<? extends TestCase>> comparator, ClassLoader classLoader) { in TestGrouping()
60 testCaseClasses = new TreeSet<Class<? extends TestCase>>(comparator); in TestGrouping()
70 for (Class<? extends TestCase> testCase : testCaseClasses) { in getTests()
78 private List<Method> getTestMethods(Class<? extends TestCase> testCaseClass) { in getTestMethods()
110 List<Class<? extends TestCase>> addedClasses = testCaseClassesInPackage(packageName); in addPackagesRecursive()
131 private List<Class<? extends TestCase>> testCaseClassesInPackage(String packageName) { in testCaseClassesInPackage()
138 private List<Class<? extends TestCase>> selectTestClasses(Set<Class<?>> allClasses) { in selectTestClasses()
[all …]
DTestMethod.java38 private final Class<? extends TestCase> enclosingClass;
40 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { in TestMethod()
44 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { in TestMethod()
62 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation()
71 public Class<? extends TestCase> getEnclosingClass() { in getEnclosingClass()
81 private TestCase instantiateTest(Class testCaseClass, String testName) in instantiateTest()
89 Class[] params = constructor.getParameterTypes(); in instantiateTest()
106 private boolean singleStringConstructor(Class[] params) { in singleStringConstructor()
110 private boolean noargsConstructor(Class[] params) { in noargsConstructor()
/frameworks/base/core/java/android/hardware/camera2/utils/
DTypeReference.java101 public SpecializedTypeReference(Class<T> klass) { in SpecializedTypeReference()
126 public static <T> TypeReference<T> createSpecializedTypeReference(Class<T> klass) { in createSpecializedTypeReference()
163 public final Class<? super T> getRawType() { in getRawType()
164 return (Class<? super T>)getRawType(mType); in getRawType()
167 private static final Class<?> getRawType(Type type) { in getRawType()
172 if (type instanceof Class<?>) { in getRawType()
173 return (Class<?>)type; in getRawType()
175 return (Class<?>)(((ParameterizedType)type).getRawType()); in getRawType()
189 private static final Class<?> getRawType(Type[] types) { in getRawType()
195 Class<?> klass = getRawType(type); in getRawType()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DAnnotationValidations.java50 public static void validate(Class<UserIdInt> annotation, UserIdInt ignored, int value) { in validate()
57 public static void validate(Class<AppIdInt> annotation, AppIdInt ignored, int value) { in validate()
63 public static void validate(Class<IntRange> annotation, IntRange ignored, int value, in validate()
69 public static void validate(Class<IntRange> annotation, IntRange ignored, int value, in validate()
88 public static void validate(Class<IntRange> annotation, IntRange ignored, long value, in validate()
97 public static void validate(Class<IntRange> annotation, IntRange ignored, long value, in validate()
113 public static void validate(Class<FloatRange> annotation, FloatRange ignored, float value, in validate()
119 public static void validate(Class<FloatRange> annotation, FloatRange ignored, float value, in validate()
127 public static void validate(Class<NonNull> annotation, NonNull ignored, Object value) { in validate()
133 public static void validate(Class<Size> annotation, Size ignored, int value, in validate()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DContextComponentResolver.java35 private final Map<Class<?>, Provider<Activity>> mActivityCreators;
36 private final Map<Class<?>, Provider<Service>> mServiceCreators;
37 private final Map<Class<?>, Provider<RecentsImplementation>> mRecentsCreators;
38 private final Map<Class<?>, Provider<BroadcastReceiver>> mBroadcastReceiverCreators;
41 ContextComponentResolver(Map<Class<?>, Provider<Activity>> activityCreators, in ContextComponentResolver() argument
42 Map<Class<?>, Provider<Service>> serviceCreators, in ContextComponentResolver()
43 Map<Class<?>, Provider<RecentsImplementation>> recentsCreators, in ContextComponentResolver()
44 Map<Class<?>, Provider<BroadcastReceiver>> broadcastReceiverCreators) { in ContextComponentResolver()
83 private <T> T resolve(String className, Map<Class<?>, Provider<T>> creators) { in resolve() argument
85 Class<?> clazz = Class.forName(className); in resolve()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyTestUtils.java44 Class clazz = Class.forName(className); in createNewInstance()
46 Class<?>[] paramType = new Class[numParam]; in createNewInstance()
65 public static Object invokeStaticMethod(Class<?> clazz, String method, Object... params) { in invokeStaticMethod()
68 Class<?>[] paramType = new Class[numParam]; in invokeStaticMethod()
88 public static Object invokeStaticMethodThrowsException(Class<?> clazz, String method, in invokeStaticMethodThrowsException()
92 Class<?>[] paramType = new Class[numParam]; in invokeStaticMethodThrowsException()
112 public static Object invokeNonStaticMethod(Class<?> clazz, Object caller, String method, in invokeNonStaticMethod()
116 Class<?>[] paramType = new Class[numParam]; in invokeNonStaticMethod()
136 public static Object invokeNonStaticMethodThrowsException(Class<?> clazz, Object caller, in invokeNonStaticMethodThrowsException()
141 Class<?>[] paramType = new Class[numParam]; in invokeNonStaticMethodThrowsException()
/frameworks/base/core/java/android/hardware/camera2/marshal/
DMarshalHelpers.java86 public static <T> Class<T> checkPrimitiveClass(Class<T> klass) { in checkPrimitiveClass()
112 public static boolean isUnwrappedPrimitiveClass(Class<?> klass) { in isUnwrappedPrimitiveClass()
151 public static <T> boolean isPrimitiveClass(Class<T> klass) { in isPrimitiveClass()
187 public static <T> Class<T> wrapClassIfPrimitive(Class<T> klass) { in wrapClassIfPrimitive()
189 return (Class<T>)Byte.class; in wrapClassIfPrimitive()
191 return (Class<T>)Integer.class; in wrapClassIfPrimitive()
193 return (Class<T>)Float.class; in wrapClassIfPrimitive()
195 return (Class<T>)Long.class; in wrapClassIfPrimitive()
197 return (Class<T>)Double.class; in wrapClassIfPrimitive()
264 public static Class<?> getPrimitiveTypeClass(int nativeType) { in getPrimitiveTypeClass()
/frameworks/layoutlib/common/src/com/android/layoutlib/common/util/
DReflectionUtils.java35 @Nullable Class<?>... params) throws ReflectionException { in getMethod()
37 return getMethod(Class.forName(className), name, params); in getMethod()
44 public static Method getMethod(@NonNull Class<?> clazz, @NonNull String name, in getMethod()
45 @Nullable Class<?>... params) throws ReflectionException { in getMethod()
54 public static Method getAccessibleMethod(@NonNull Class<?> clazz, @NonNull String name, in getAccessibleMethod()
55 @Nullable Class<?>... params) throws ReflectionException { in getAccessibleMethod()
63 …public static Object getFieldValue(@NonNull Class<?> clazz, Object object, @NonNull String name) t… in getFieldValue()
91 Method m = getMethod(Class.forName(className), methodName); in invokeStatic()
103 Class superClass = object.getClass(); in isInstanceOf()
127 public static Class<?> getParentClass(Object object, String[] classNames) { in getParentClass()
[all …]
/frameworks/base/core/tests/coretests/src/android/ddm/
DDdmHandleViewDebugTest.java224 Class<?>[] argTypes = new Class<?>[1]; in deserializeMethodParameters_stringPayloadMissing_throws()
259 Class<?>[] argTypes = new Class<?>[1]; in deserializeMethodParameters_void_throws()
311 Class<?>[] argTypes = new Class<?>[1]; in deserializeMethodParameters_sizeExceedsBuffer_throws()
329 Class<?>[] argTypes = new Class<?>[1]; in deserializeMethodParameters_nonByteArrayType_throws()
341 expectDeserializedArguments(new Class[]{byte.class, boolean.class}, in deserializeMethodParameters_multipleParameters()
351 Class<?>[] argTypes = new Class<?>[1]; in deserializeMethodParameters_unknownType_throws()
360 Class<?>[] argTypes = new Class<?>[0]; in deserializeMethodParameters_noArgumentsEmptyPacket_isNoop()
367 Class<?>[] argTypes = new Class<?>[1]; in deserializeMethodParameters_withArgumentsEmptyPacket_throws()
372 private static void expectDeserializedArgument(Class<?> expectedType, Object expectedValue, in expectDeserializedArgument()
374 expectDeserializedArguments(new Class[]{expectedType}, new Object[]{expectedValue}, in expectDeserializedArgument()
[all …]
/frameworks/base/core/java/android/animation/
DTypeConverter.java26 private Class<T> mFromClass;
27 private Class<V> mToClass;
29 public TypeConverter(Class<T> fromClass, Class<V> toClass) { in TypeConverter()
39 Class<V> getTargetType() { in getTargetType()
46 Class<T> getSourceType() { in getSourceType()
/frameworks/base/startop/view_compiler/dex_builder_test/src/android/startop/test/
DDexBuilderTest.java47 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in return5()
55 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnInteger5()
63 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnParam()
72 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnStringLength()
80 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnIfZero()
89 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnIfNotZero()
98 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in backwardsBranch()
106 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnNull()
114 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in makeString()
122 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnStringIfZeroAB()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DVersionInfo.java29 private final ArrayMap<Class<?>, Version> mVersions = new ArrayMap<>();
30 private Class<?> mDefault;
40 public VersionInfo addClass(Class<?> cls) { in addClass()
49 private void addClass(Class<?> cls, boolean required) { in addClass()
78 final ArrayMap<Class<?>, Version> versions = new ArrayMap<>(mVersions); in checkVersion()
79 plugin.mVersions.forEach(new BiConsumer<Class<?>, Version>() { in checkVersion()
81 public void accept(Class<?> aClass, Version version) { in checkVersion()
97 versions.forEach(new BiConsumer<Class<?>, Version>() { in checkVersion()
99 public void accept(Class<?> aClass, Version version) { in checkVersion()
108 private Version createVersion(Class<?> cls) { in createVersion()
[all …]
/frameworks/base/core/jni/
DBindTest.cpp24 static Class *class_ReturnedObject = NULL;
38 getString(Class *clazz, MethodBlock *mb, uintptr_t *ostack) in getString()
45 getNullString(Class *clazz, MethodBlock *mb, uintptr_t *ostack) in getNullString()
52 getBooleanTrue(Class *clazz, MethodBlock *mb, uintptr_t *ostack) in getBooleanTrue()
59 getBooleanFalse(Class *clazz, MethodBlock *mb, uintptr_t *ostack) in getBooleanFalse()
66 nonvoidThrowsException (Class *clazz, MethodBlock *mb, uintptr_t *ostack) in nonvoidThrowsException()
80 setInstanceString (Class *clazz, MethodBlock *mb, uintptr_t *ostack) in setInstanceString()
91 setClassString (Class *clazz, MethodBlock *mb, uintptr_t *ostack) in setClassString()
102 makeStringFromThreeChars (Class *clazz, MethodBlock *mb, uintptr_t *ostack) in makeStringFromThreeChars()
121 makeReturnedObject (Class *clazz, MethodBlock *mb, uintptr_t *ostack) in makeReturnedObject()
[all …]
/frameworks/base/test-base/src/junit/framework/
DTestSuite.java51 static public Test createTest(Class<?> theClass, String name) { in createTest()
81 public static Constructor<?> getTestConstructor(Class<?> theClass) throws NoSuchMethodException { in getTestConstructor()
87 return theClass.getConstructor(new Class[0]); in getTestConstructor()
128 public TestSuite(final Class<?> theClass) {
132 private void addTestsFromTestCase(final Class<?> theClass) {
146 Class<?> superClass= theClass;
161 public TestSuite(Class<? extends TestCase> theClass, String name) {
177 public TestSuite (Class<?>... classes) {
178 for (Class<?> each : classes)
182 private Test testCaseForClass(Class<?> each) {
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dremote_method.h80 template <typename Class, typename T>
84 template <typename Class, typename Return, typename... Args>
85 class UnpackArguments<Class, Return(Args...)> {
88 using MethodType = Return (Class::*)(Message&, Args...);
90 UnpackArguments(Class& instance, MethodType method, Message& message,
104 Class& instance_;
178 template <typename RemoteMethodType, typename Class, typename... Args,
180 void DispatchRemoteMethod(Class& instance,
181 void (Class::*method)(Message&, Args...),
204 UnpackArguments<Class, Signature>(instance, method, message, arguments)
[all …]
/frameworks/base/packages/SystemUI/plugin_core/src/com/android/systemui/plugins/
DPluginManager.java32 <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<T> cls); in addPluginListener()
34 <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<T> cls, in addPluginListener()
37 Class<T> cls); in addPluginListener()
39 Class<T> cls, boolean allowMultiple); in addPluginListener()
43 <T> boolean dependsOn(Plugin p, Class<T> cls); in dependsOn()
46 public static <P> String getAction(Class<P> cls) { in getAction()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameType.java110 private final Class<?> mClass;
137 public static FrameType single(Class<?> clazz) { in single()
154 public static FrameType array(Class<?> clazz) { in array()
217 public Class<?> getContentClass() { in getContentClass()
338 Class<?> mergedClass = mergeClasses(writer.mClass, reader.mClass); in tryMergeObjectTypes()
360 private static String keyValueForType(int elemId, int dims, int hints, Class<?> clazz) { in keyValueForType()
364 private static String elementToString(int elemId, Class<?> clazz) { in elementToString()
389 private static Class<?> mergeClasses(Class<?> classA, Class<?> classB) { in mergeClasses()
408 private static FrameType fetchType(Class<?> clazz, int dimensions) { in fetchType()
413 int elementId, int dimensions, int accessHints, Class<?> clazz) { in fetchType()
[all …]
/frameworks/base/core/java/android/util/
DProperty.java31 private final Class<V> mType;
54 public static <T, V> Property<T, V> of(Class<T> hostType, Class<V> valueType, String name) { in of()
61 public Property(Class<V> type, String name) { in Property()
103 public Class<V> getType() { in getType()
DReflectiveProperty.java45 public ReflectiveProperty(Class<T> propertyHolder, Class<V> valueType, String name) { in ReflectiveProperty()
53 mGetter = propertyHolder.getMethod(getterName, (Class<?>[])null); in ReflectiveProperty()
58 mGetter = propertyHolder.getMethod(getterName, (Class<?>[])null); in ReflectiveProperty()
63 Class fieldType = mField.getType(); in ReflectiveProperty()
76 Class getterType = mGetter.getReturnType(); in ReflectiveProperty()
97 private boolean typesMatch(Class<V> valueType, Class getterType) { in typesMatch()
/frameworks/base/core/java/com/android/server/
DLocalServices.java35 private static final ArrayMap<Class<?>, Object> sLocalServiceObjects =
36 new ArrayMap<Class<?>, Object>();
45 public static <T> T getService(Class<T> type) { in getService()
54 public static <T> void addService(Class<T> type, T service) { in addService()
67 public static <T> void removeServiceForTest(Class<T> type) { in removeServiceForTest()
/frameworks/base/test-runner/src/junit/runner/
DStandardTestSuiteLoader.java14 public Class load(String suiteClassName) throws ClassNotFoundException { in load()
15 return Class.forName(suiteClassName); in load()
20 public Class reload(Class aClass) throws ClassNotFoundException { in reload()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/
DTestDelegates.java75 Class<?> originalClass = classLoader.loadClass(originalClassName); in loadAndCompareClasses()
76 Class<?> delegateClass = classLoader.loadClass(delegateClassName); in loadAndCompareClasses()
86 private void compare(Class<?> originalClass, Class<?> delegateClass) throws SecurityException { in compare()
101 Class<?>[] parameters = originalMethod.getParameterTypes(); in compare()
107 Class<?>[] newParameters = new Class<?>[parameters.length + 1]; in compare()
117 Class<?>[] newParameters = new Class<?>[parameters.length + 1]; in compare()
197 private String getMethodName(Method method, Class<?>[] parameters) { in getMethodName()
201 Class<?> theClass = parameters[j]; in getMethodName()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableEnum.java49 private final Class<T> mClass;
55 mClass = (Class<T>)typeReference.getRawType(); in MarshalerEnum()
109 if (managedType.getType() instanceof Class<?>) { in isTypeMappingSupported()
110 Class<?> typeClass = (Class<?>)managedType.getType(); in isTypeMappingSupported()
137 private static final HashMap<Class<? extends Enum>, int[]> sEnumValues =
138 new HashMap<Class<? extends Enum>, int[]>();
148 public static <T extends Enum<T>> void registerEnumValues(Class<T> enumType, int[] values) { in registerEnumValues()
190 private static <T extends Enum<T>> T getEnumFromValue(Class<T> enumType, int value) { in getEnumFromValue()
/frameworks/base/tests/testables/src/android/testing/
DLayoutInflaterBuilder.java42 private Set<Class> mDisallowedClasses;
81 public LayoutInflaterBuilder replace(@NonNull Class from, @NonNull Class to) { in replace()
93 public LayoutInflaterBuilder replace(@NonNull String tag, @NonNull Class to) { in replace()
109 public LayoutInflaterBuilder disallow(@NonNull Class disallowedClass) { in disallow()
112 mDisallowedClasses = new ArraySet<Class>(); in disallow()
167 public boolean onLoadClass(Class clazz) { in setFilterIfNeeded()
/frameworks/base/tools/preload-check/device/src/com/android/preload/check/
DUtil.java37 Class<?> klass = Class.class;
48 Class<?> vmClassLoaderClass = Class.forName("java.lang.VMClassLoader"); in getBootDexFiles()
90 public static boolean isInitialized(Class<?> klass) throws Exception { in isInitialized()
110 Class<?> klass = Class.forName(className, /* initialize */ false, loader); in assertInitializedState()

12345678910>>...22