/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestGrouping.java | 51 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 …]
|
D | TestMethod.java | 38 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/ |
D | TypeReference.java | 97 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/ |
D | TelephonyTestUtils.java | 44 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/ |
D | MarshalHelpers.java | 86 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/packages/SystemUI/src/com/android/systemui/plugins/ |
D | PluginManager.java | 28 <T extends Plugin> T getOneShotPlugin(Class<T> cls); in getOneShotPlugin() 29 <T extends Plugin> T getOneShotPlugin(String action, Class<?> cls); in getOneShotPlugin() 31 <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<?> cls); in addPluginListener() 32 <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<?> cls, in addPluginListener() 35 Class<?> cls); in addPluginListener() 37 Class cls, boolean allowMultiple); in addPluginListener() 41 <T> boolean dependsOn(Plugin p, Class<T> cls); in dependsOn() 43 static <P> String getAction(Class<P> cls) { in getAction()
|
D | VersionInfo.java | 27 private final ArrayMap<Class<?>, Version> mVersions = new ArrayMap<>(); 28 private Class<?> mDefault; 38 public VersionInfo addClass(Class<?> cls) { in addClass() 47 private void addClass(Class<?> cls, boolean required) { in addClass() 76 ArrayMap<Class<?>, Version> versions = new ArrayMap<>(mVersions); in checkVersion() 99 private Version createVersion(Class<?> cls) { in createVersion() 107 public <T> boolean hasClass(Class<T> cls) { in hasClass() 119 public InvalidVersionException(Class<?> cls, boolean tooNew, int expected, int actual) { in InvalidVersionException()
|
/frameworks/base/core/java/android/animation/ |
D | TypeConverter.java | 26 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/core/jni/ |
D | BindTest.cpp | 24 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/legacy-test/src/junit/framework/ |
D | TestSuite.java | 51 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/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | Presenter.java | 77 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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/ |
D | FakePluginManager.java | 34 Class cls, boolean allowMultiple) { in addPluginListener() 39 public <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<?> cls) { in addPluginListener() 44 public <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<?> cls, in addPluginListener() 51 Class<?> cls) { in addPluginListener() 61 public <T> boolean dependsOn(Plugin p, Class<T> cls) { in dependsOn() 66 public <T extends Plugin> T getOneShotPlugin(Class<T> cls) { in getOneShotPlugin() 71 public <T extends Plugin> T getOneShotPlugin(String action, Class<?> cls) { in getOneShotPlugin()
|
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
D | remote_method.h | 80 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/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/ |
D | TestDelegates.java | 73 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/ |
D | PropertyValuesHolder_Delegate.java | 54 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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | FrameType.java | 110 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/services/core/java/com/android/server/am/ |
D | CoreSettingsObserver.java | 41 static final Map<String, Class<?>> sSecureSettingToTypeMap = new HashMap< 42 String, Class<?>>(); 44 static final Map<String, Class<?>> sSystemSettingToTypeMap = new HashMap< 45 String, Class<?>>(); 47 static final Map<String, Class<?>> sGlobalSettingToTypeMap = new HashMap< 48 String, Class<?>>(); 111 void populateSettings(Bundle snapshot, Map<String, Class<?>> map) { in populateSettings() 113 for (Map.Entry<String, Class<?>> entry : map.entrySet()) { in populateSettings() 126 Class<?> type = entry.getValue(); in populateSettings()
|
/frameworks/base/core/java/android/util/ |
D | Property.java | 31 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()
|
D | ReflectiveProperty.java | 45 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/ |
D | LocalServices.java | 35 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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | ReflectionUtils.java | 31 public static Method getMethod(@NonNull Class<?> clazz, @NonNull String name, in getMethod() 32 @Nullable Class<?>... params) throws ReflectionException { in getMethod() 41 public static Method getAccessibleMethod(@NonNull Class<?> clazz, @NonNull String name, in getAccessibleMethod() 42 @Nullable Class<?>... params) throws ReflectionException { in getAccessibleMethod() 66 Class superClass = object.getClass(); in isInstanceOf() 91 public static Class<?> getClassInstance(@NonNull Object object, @NonNull String className) { in getClassInstance() 92 Class<?> superClass = object.getClass(); in getClassInstance()
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryableEnum.java | 49 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/test-runner/src/junit/runner/ |
D | StandardTestSuiteLoader.java | 14 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/base/tests/testables/src/android/testing/ |
D | LayoutInflaterBuilder.java | 42 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/core/java/android/view/inputmethod/ |
D | InputConnectionInspector.java | 91 private static final Map<Class, Integer> sMissingMethodsMap = Collections.synchronizedMap( 111 public static int getMissingMethodFlagsInternal(@NonNull final Class clazz) { in getMissingMethodFlagsInternal() 145 private static boolean hasGetSelectedText(@NonNull final Class clazz) { in hasGetSelectedText() 154 private static boolean hasSetComposingRegion(@NonNull final Class clazz) { in hasSetComposingRegion() 163 private static boolean hasCommitCorrection(@NonNull final Class clazz) { in hasCommitCorrection() 172 private static boolean hasRequestCursorUpdate(@NonNull final Class clazz) { in hasRequestCursorUpdate() 181 private static boolean hasDeleteSurroundingTextInCodePoints(@NonNull final Class clazz) { in hasDeleteSurroundingTextInCodePoints() 191 private static boolean hasGetHandler(@NonNull final Class clazz) { in hasGetHandler() 200 private static boolean hasCloseConnection(@NonNull final Class clazz) { in hasCloseConnection() 209 private static boolean hasCommitContent(@NonNull final Class clazz) { in hasCommitContent()
|