Home
last modified time | relevance | path

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

12345678910>>...19

/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestGrouping.java51 SortedSet<Class<? extends TestCase>> testCaseClasses;
53 public static final Comparator<Class<? extends TestCase>> SORT_BY_SIMPLE_NAME
56 public static final Comparator<Class<? extends TestCase>> SORT_BY_FULLY_QUALIFIED_NAME
62 public TestGrouping(Comparator<Class<? extends TestCase>> comparator) { in TestGrouping()
63 testCaseClasses = new TreeSet<Class<? extends TestCase>>(comparator); in TestGrouping()
72 for (Class<? extends TestCase> testCase : testCaseClasses) { in getTests()
80 protected List<Method> getTestMethods(Class<? extends TestCase> testCaseClass) { in getTestMethods()
85 SortedSet<Class<? extends TestCase>> getTestCaseClasses() { in getTestCaseClasses()
117 List<Class<? extends TestCase>> addedClasses = testCaseClassesInPackage(packageName); in addPackagesRecursive()
152 private List<Class<? extends TestCase>> testCaseClassesInPackage(String packageName) { in testCaseClassesInPackage()
[all …]
DTestMethod.java34 private final Class<? extends TestCase> enclosingClass;
36 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { in TestMethod()
40 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { in TestMethod()
58 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation()
67 public Class<? extends TestCase> getEnclosingClass() { in getEnclosingClass()
77 private TestCase instantiateTest(Class testCaseClass, String testName) in instantiateTest()
85 Class[] params = constructor.getParameterTypes(); in instantiateTest()
102 private boolean singleStringConstructor(Class[] params) { in singleStringConstructor()
106 private boolean noargsConstructor(Class[] params) { in noargsConstructor()
/frameworks/base/core/java/android/hardware/camera2/utils/
DTypeReference.java97 public SpecializedTypeReference(Class<T> klass) { in SpecializedTypeReference()
122 public static <T> TypeReference<T> createSpecializedTypeReference(Class<T> klass) { in createSpecializedTypeReference()
158 public final Class<? super T> getRawType() { in getRawType()
159 return (Class<? super T>)getRawType(mType); in getRawType()
162 private static final Class<?> getRawType(Type type) { in getRawType()
167 if (type instanceof Class<?>) { in getRawType()
168 return (Class<?>)type; in getRawType()
170 return (Class<?>)(((ParameterizedType)type).getRawType()); in getRawType()
184 private static final Class<?> getRawType(Type[] types) { in getRawType()
190 Class<?> klass = getRawType(type); in getRawType()
[all …]
/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()
117 public static <T> boolean isPrimitiveClass(Class<T> klass) { in isPrimitiveClass()
153 public static <T> Class<T> wrapClassIfPrimitive(Class<T> klass) { in wrapClassIfPrimitive()
155 return (Class<T>)Byte.class; in wrapClassIfPrimitive()
157 return (Class<T>)Integer.class; in wrapClassIfPrimitive()
159 return (Class<T>)Float.class; in wrapClassIfPrimitive()
161 return (Class<T>)Long.class; in wrapClassIfPrimitive()
163 return (Class<T>)Double.class; in wrapClassIfPrimitive()
/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()
DPropertyValuesHolder.java73 Class mValueType;
92 private static Class[] FLOAT_VARIANTS = {float.class, Float.class, double.class, int.class,
94 private static Class[] INTEGER_VARIANTS = {int.class, Integer.class, float.class, double.class,
96 private static Class[] DOUBLE_VARIANTS = {double.class, Double.class, float.class, int.class,
102 private static final HashMap<Class, HashMap<String, Method>> sSetterPropertyMap =
103 new HashMap<Class, HashMap<String, Method>>();
104 private static final HashMap<Class, HashMap<String, Method>> sGetterPropertyMap =
105 new HashMap<Class, HashMap<String, Method>>();
695 private Method getPropertyFunction(Class targetClass, String prefix, Class valueType) { in getPropertyFunction()
699 Class args[] = null; in getPropertyFunction()
[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/support/v17/leanback/src/android/support/v17/leanback/widget/
DPresenter.java77 private Map<Class, Object> mFacets;
84 public final Object getFacet(Class<?> facetClass) { in getFacet()
96 public final void setFacet(Class<?> facetClass, Object facetImpl) { in setFacet()
98 mFacets = new HashMap<Class, Object>(); in setFacet()
116 private Map<Class, Object> mFacets;
195 public final Object getFacet(Class<?> facetClass) { in getFacet()
207 public final void setFacet(Class<?> facetClass, Object facetImpl) { in setFacet()
209 mFacets = new HashMap<Class, Object>(); in setFacet()
DClassPresenterSelector.java27 private final HashMap<Class<?>, Object> mClassMap = new HashMap<Class<?>, Object>();
35 public ClassPresenterSelector addClassPresenter(Class<?> cls, Presenter presenter) { in addClassPresenter()
50 public ClassPresenterSelector addClassPresenterSelector(Class<?> cls, in addClassPresenterSelector()
63 Class<?> cls = item.getClass(); in getPresenter()
/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/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/
DTestDelegates.java73 Class<?> originalClass = classLoader.loadClass(originalClassName); in loadAndCompareClasses()
74 Class<?> delegateClass = classLoader.loadClass(delegateClassName); in loadAndCompareClasses()
84 private void compare(Class<?> originalClass, Class<?> delegateClass) throws SecurityException { in compare()
99 Class<?>[] parameters = originalMethod.getParameterTypes(); in compare()
105 Class<?>[] newParameters = new Class<?>[parameters.length + 1]; in compare()
115 Class<?>[] newParameters = new Class<?>[parameters.length + 1]; in compare()
190 private String getMethodName(Method method, Class<?>[] parameters) { in getMethodName()
194 Class<?> theClass = parameters[j]; in getMethodName()
/frameworks/base/tools/layoutlib/bridge/src/android/animation/
DPropertyValuesHolder_Delegate.java54 private static Class[] FLOAT_VARIANTS = {float.class, Float.class, double.class, int.class,
56 private static Class[] INTEGER_VARIANTS = {int.class, Integer.class, float.class, double.class,
64 private static long registerMethod(Class<?> targetClass, String methodName, Class[] types, in registerMethod()
77 Class[] args = new Class[nArgs]; in registerMethod()
79 for (Class typeVariant : types) { in registerMethod()
117 /*package*/ static long nGetIntMethod(Class<?> targetClass, String methodName) { in nGetIntMethod()
122 /*package*/ static long nGetFloatMethod(Class<?> targetClass, String methodName) { in nGetFloatMethod()
127 /*package*/ static long nGetMultipleIntMethod(Class<?> targetClass, String methodName, in nGetMultipleIntMethod()
133 /*package*/ static long nGetMultipleFloatMethod(Class<?> targetClass, String methodName, in nGetMultipleFloatMethod()
/frameworks/base/test-runner/src/junit/runner/
DLoadingTestCollector.java24 Class testClass= classFromFile(classFileName); in isTestClass()
35 Class classFromFile(String classFileName) throws ClassNotFoundException { in classFromFile()
42 boolean isTestClass(Class testClass) { in isTestClass()
52 boolean hasSuiteMethod(Class testClass) { in hasSuiteMethod()
54 testClass.getMethod(BaseTestRunner.SUITE_METHODNAME, new Class[0]); in hasSuiteMethod()
61 boolean hasPublicConstructor(Class testClass) { in hasPublicConstructor()
/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/core/java/android/util/
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()
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()
/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/services/core/java/com/android/server/am/
DCoreSettingsObserver.java37 private static final Map<String, Class<?>> sSecureSettingToTypeMap = new HashMap<
38 String, Class<?>>();
39 private static final Map<String, Class<?>> sSystemSettingToTypeMap = new HashMap<
40 String, Class<?>>();
41 private static final Map<String, Class<?>> sGlobalSettingToTypeMap = new HashMap<
42 String, Class<?>>();
103 private void populateSettings(Bundle snapshot, Map<String, Class<?>> map) { in populateSettings()
105 for (Map.Entry<String, Class<?>> entry : map.entrySet()) { in populateSettings()
107 Class<?> type = entry.getValue(); in populateSettings()
/frameworks/base/core/java/android/view/inputmethod/
DInputConnectionInspector.java83 private static final Map<Class, Integer> sMissingMethodsMap = Collections.synchronizedMap(
103 public static int getMissingMethodFlagsInternal(@NonNull final Class clazz) { in getMissingMethodFlagsInternal()
134 private static boolean hasGetSelectedText(@NonNull final Class clazz) { in hasGetSelectedText()
143 private static boolean hasSetComposingRegion(@NonNull final Class clazz) { in hasSetComposingRegion()
152 private static boolean hasCommitCorrection(@NonNull final Class clazz) { in hasCommitCorrection()
161 private static boolean hasRequestCursorUpdate(@NonNull final Class clazz) { in hasRequestCursorUpdate()
170 private static boolean hasDeleteSurroundingTextInCodePoints(@NonNull final Class clazz) { in hasDeleteSurroundingTextInCodePoints()
180 private static boolean hasGetHandler(@NonNull final Class clazz) { in hasGetHandler()
189 private static boolean hasCloseConnection(@NonNull final Class clazz) { in hasCloseConnection()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/events/
DEventBus.java94 Class<? extends EventBus.Event> eventType;
96 EventHandlerMethod(Method method, Class<? extends EventBus.Event> eventType) { in EventHandlerMethod()
394 … private HashMap<Class<? extends Event>, ArrayList<EventHandler>> mEventTypeMap = new HashMap<>();
401 …private HashMap<Class<? extends Object>, ArrayList<EventHandlerMethod>> mSubscriberTypeMap = new H…
408 …private HashMap<String, Class<? extends InterprocessEvent>> mInterprocessEventNameMap = new HashMa…
524 Class<?> subscriberType = subscriber.getClass(); in unregister()
641Class<? extends InterprocessEvent> eventType = mInterprocessEventNameMap.get(intent.getAction()); in onReceive()
667 ArrayList<Class<?>> subsciberTypes = new ArrayList<>(mSubscriberTypeMap.keySet()); in dumpInternal()
668 Collections.sort(subsciberTypes, new Comparator<Class<?>>() { in dumpInternal()
670 public int compare(Class<?> o1, Class<?> o2) { in dumpInternal()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIApplication.java46 private final Class<?>[] SERVICES = new Class[] {
65 private final Class<?>[] SERVICES_PER_USER = new Class[] {
76 private final Map<Class<?>, Object> mComponents = new HashMap<>();
138 private void startServicesIfNeeded(Class<?>[] services) { in startServicesIfNeeded()
156 Class<?> cl = services[i]; in startServicesIfNeeded()
192 public <T> T getComponent(Class<T> interfaceType) { in getComponent()
/frameworks/base/test-runner/src/android/test/
DClassPathPackageInfo.java36 private final Set<Class<?>> topLevelClasses;
39 Set<String> subpackageNames, Set<Class<?>> topLevelClasses) { in ClassPathPackageInfo()
54 public Set<Class<?>> getTopLevelClassesRecursive() { in getTopLevelClassesRecursive()
55 Set<Class<?>> set = Sets.newHashSet(); in getTopLevelClassesRecursive()
60 private void addTopLevelClassesTo(Set<Class<?>> set) { in addTopLevelClassesTo()
DTestCaseUtil.java55 return getTests(test, flatten, new HashSet<Class<?>>()); in getTests()
59 Set<Class<?>> seen) { in getTests()
96 private static Test invokeSuiteMethodIfPossible(Class testClass, in invokeSuiteMethodIfPossible()
97 Set<Class<?>> seen) { in invokeSuiteMethodIfPossible()
100 BaseTestRunner.SUITE_METHODNAME, new Class[0]); in invokeSuiteMethodIfPossible()
156 public static TestSuite createTestSuite(Class<? extends Test> testClass) in createTestSuite()
160 new HashSet<Class<?>>()); in createTestSuite()
DAndroidTestRunner.java57 Class testClass = loadTestClass(testClassName); in setTestClassName()
72 private void setTest(Test test, Class<? extends Test> testClass) { in setTest()
92 private Class<? extends Test> loadTestClass(String testClassName) { in loadTestClass()
94 return (Class<? extends Test>) mContext.getClassLoader().loadClass(testClassName); in loadTestClass()
101 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod()
117 private TestCase newSingleTestMethod(Class testClass, String testMethodName, in newSingleTestMethod()
136 Class<? extends Test> testClass) { in shouldRunSingleTestMethod()
140 private Test getTest(Class clazz) { in getTest()
248 protected Class loadSuiteClass(String suiteClassName) throws ClassNotFoundException { in loadSuiteClass()

12345678910>>...19