/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 | 34 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/testing/androidtestlib/src/com/android/test/runner/ |
D | TestLoader.java | 37 private List<Class<?>> mLoadedClasses = new LinkedList<Class<?>>(); 60 public Class<?> loadClass(String className) { in loadClass() 61 Class<?> loadedClass = doLoadClass(className); in loadClass() 68 private Class<?> doLoadClass(String className) { in doLoadClass() 70 return Class.forName(className); in doLoadClass() 91 public Class<?> loadIfTest(String className) { in loadIfTest() 92 Class<?> loadedClass = doLoadClass(className); in loadIfTest() 111 public List<Class<?>> getLoadedClasses() { in getLoadedClasses() 129 private boolean isTestClass(Class<?> loadedClass) { in isTestClass()
|
D | TestRequestBuilder.java | 70 private final Class<? extends Annotation> mAnnotationClass; 72 AnnotationInclusionFilter(Class<? extends Annotation> annotation) { in AnnotationInclusionFilter() 114 private final Class<? extends Annotation> mAnnotationClass; 116 AnnotationExclusionFilter(Class<? extends Annotation> annotation) { in AnnotationExclusionFilter() 125 final Class<?> testClass = description.getTestClass(); in shouldRun() 169 Class<?> clazz = mTestLoader.loadClass(testClassName); in addTestMethod() 241 Class<? extends Annotation> annotationClass = loadAnnotationClass(annotation); in addAnnotationInclusionFilter() 253 Class<? extends Annotation> annotationClass = loadAnnotationClass(notAnnotation); in addAnnotationExclusionFilter() 280 mTestLoader.getLoadedClasses().toArray(new Class[0])); in build() 296 Computer computer, Class<?>... classes) { in classes() [all …]
|
/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/core/java/android/animation/ |
D | PropertyValuesHolder.java | 70 Class mValueType; 89 private static Class[] FLOAT_VARIANTS = {float.class, Float.class, double.class, int.class, 91 private static Class[] INTEGER_VARIANTS = {int.class, Integer.class, float.class, double.class, 93 private static Class[] DOUBLE_VARIANTS = {double.class, Double.class, float.class, int.class, 99 private static final HashMap<Class, HashMap<String, Method>> sSetterPropertyMap = 100 new HashMap<Class, HashMap<String, Method>>(); 101 private static final HashMap<Class, HashMap<String, Method>> sGetterPropertyMap = 102 new HashMap<Class, HashMap<String, Method>>(); 378 private Method getPropertyFunction(Class targetClass, String prefix, Class valueType) { in getPropertyFunction() 382 Class args[] = null; in getPropertyFunction() [all …]
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/ |
D | TestDelegates.java | 71 Class<?> originalClass = classLoader.loadClass(originalClassName); in loadAndCompareClasses() 72 Class<?> delegateClass = classLoader.loadClass(delegateClassName); in loadAndCompareClasses() 82 private void compare(Class<?> originalClass, Class<?> delegateClass) throws SecurityException { in compare() 97 Class<?>[] parameters = originalMethod.getParameterTypes(); in compare() 103 Class<?>[] newParameters = new Class<?>[parameters.length + 1]; in compare() 113 Class<?>[] newParameters = new Class<?>[parameters.length + 1]; in compare() 175 private String getMethodName(Method method, Class<?>[] parameters) { in getMethodName() 179 Class<?> theClass = parameters[j]; in getMethodName()
|
/frameworks/base/test-runner/src/junit/runner/ |
D | LoadingTestCollector.java | 25 Class testClass= classFromFile(classFileName); in isTestClass() 36 Class classFromFile(String classFileName) throws ClassNotFoundException { in classFromFile() 43 boolean isTestClass(Class testClass) { in isTestClass() 53 boolean hasSuiteMethod(Class testClass) { in hasSuiteMethod() 55 testClass.getMethod(BaseTestRunner.SUITE_METHODNAME, new Class[0]); in hasSuiteMethod() 62 boolean hasPublicConstructor(Class testClass) { in hasPublicConstructor()
|
D | ReloadingTestSuiteLoader.java | 9 public Class load(String suiteClassName) throws ClassNotFoundException { in load() 13 public Class reload(Class aClass) throws ClassNotFoundException { in reload()
|
/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 …]
|
D | FilterFactory.java | 89 Class<? extends Filter> filterClass = getFilterClass(className); in createFilterByClassName() 96 public Filter createFilterByClass(Class<? extends Filter> filterClass, in createFilterByClass() 122 private Class<? extends Filter> getFilterClass(String name) { in getFilterClass() 123 Class<?> filterClass = null; in getFilterClass() 140 Class<? extends Filter> result = null; in getFilterClass()
|
/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/testing/androidtestlib/src/com/android/test/runner/junit3/ |
D | AndroidJUnit3Builder.java | 43 public Runner runnerForClass(Class<?> testClass) throws Throwable { in runnerForClass() 56 boolean isJUnit3TestCase(Class<?> testClass) { in isJUnit3TestCase() 60 boolean isAndroidTestCase(Class<?> testClass) { in isAndroidTestCase() 64 boolean isInstrumentationTestCase(Class<?> testClass) { in isInstrumentationTestCase() 68 boolean isBundleTest(Class<?> testClass) { in isBundleTest()
|
/frameworks/base/test-runner/src/android/test/ |
D | ClassPathPackageInfo.java | 35 private final Set<Class<?>> topLevelClasses; 38 Set<String> subpackageNames, Set<Class<?>> topLevelClasses) { in ClassPathPackageInfo() 53 public Set<Class<?>> getTopLevelClassesRecursive() { in getTopLevelClassesRecursive() 54 Set<Class<?>> set = Sets.newHashSet(); in getTopLevelClassesRecursive() 59 private void addTopLevelClassesTo(Set<Class<?>> set) { in addTopLevelClassesTo()
|
D | TestCaseUtil.java | 54 return getTests(test, flatten, new HashSet<Class<?>>()); in getTests() 58 Set<Class<?>> seen) { in getTests() 95 private static Test invokeSuiteMethodIfPossible(Class testClass, in invokeSuiteMethodIfPossible() 96 Set<Class<?>> seen) { in invokeSuiteMethodIfPossible() 99 BaseTestRunner.SUITE_METHODNAME, new Class[0]); in invokeSuiteMethodIfPossible() 155 public static TestSuite createTestSuite(Class<? extends Test> testClass) in createTestSuite() 159 new HashSet<Class<?>>()); in createTestSuite()
|
D | AndroidTestRunner.java | 50 Class testClass = loadTestClass(testClassName); in setTestClassName() 65 private void setTest(Test test, Class<? extends Test> testClass) { in setTest() 85 private Class<? extends Test> loadTestClass(String testClassName) { in loadTestClass() 87 return (Class<? extends Test>) mContext.getClassLoader().loadClass(testClassName); in loadTestClass() 94 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod() 110 private TestCase newSingleTestMethod(Class testClass, String testMethodName, in newSingleTestMethod() 129 Class<? extends Test> testClass) { in shouldRunSingleTestMethod() 133 private Test getTest(Class clazz) { in getTest() 241 protected Class loadSuiteClass(String suiteClassName) throws ClassNotFoundException { in loadSuiteClass()
|
D | ActivityInstrumentationTestCase2.java | 49 Class<T> mActivityClass; 63 public ActivityInstrumentationTestCase2(String pkg, Class<T> activityClass) { in ActivityInstrumentationTestCase2() 73 public ActivityInstrumentationTestCase2(Class<T> activityClass) { in ActivityInstrumentationTestCase2() 185 Method method = getClass().getMethod(getName(), (Class[]) null); in runTest()
|
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
D | DelegateClassAdapterTest.java | 75 Class<ClassWithNative> clazz1 = (Class<ClassWithNative>) cl1.loadClass(NATIVE_CLASS_NAME); in testNoOp() 103 Class<?> clazz2 = loadClass(NATIVE_CLASS_NAME); in testNoOp() 173 Class<?> clazz2 = loadClass(NATIVE_CLASS_NAME); in testDelegateNative() 231 Class<?> outerClazz2 = loadClass(OUTER_CLASS_NAME); in testDelegateInner() 260 Class<?> innerClazz2 = loadClass(INNER_CLASS_NAME); in testDelegateInner() 262 new Class<?>[] { outerClazz2 }); in testDelegateInner() 317 protected Class<?> findClass(String name) throws ClassNotFoundException { in findClass() 347 new Class<?>[] { int.class, long.class } ); in callGet() 359 new Class<?>[] { int.class, long.class } ); in callGet_Original() 370 Method m = instance.getClass().getDeclaredMethod(methodName, (Class<?>[])null); in callMethod() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/ |
D | ObjectFormat.java | 29 public static MutableFrameFormat fromClass(Class clazz, int count, int target) { in fromClass() 40 public static MutableFrameFormat fromClass(Class clazz, int target) { in fromClass() 56 private static int bytesPerSampleForClass(Class clazz, int target) { in bytesPerSampleForClass() 76 private static Class getBoxedClass(Class type) { in getBoxedClass()
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraMetadataNative.java | 177 private static Class<?> getExpectedType(int nativeType) { in getExpectedType() 198 private static <T> int packSingleNative(T value, ByteBuffer buffer, Class<T> type, in packSingleNative() 244 private static <T> int packSingle(T value, ByteBuffer buffer, Class<T> type, int nativeType, in packSingle() 252 size = packEnum((Enum)value, buffer, (Class<Enum>)type, nativeType, sizeOnly); in packSingle() 262 private static <T extends Enum<T>> int packEnum(T value, ByteBuffer buffer, Class<T> type, in packEnum() 270 private static <T> int packClass(T value, ByteBuffer buffer, Class<T> type, int nativeType, in packClass() 281 private static <T> int packArray(T value, ByteBuffer buffer, Class<T> type, int nativeType, in packArray() 288 Class<Object> componentType = (Class<Object>)type.getComponentType(); in packArray() 298 private static <T> T unpackSingleNative(ByteBuffer buffer, Class<T> type, int nativeType) { in unpackSingleNative() 343 private static <T> T unpackSingle(ByteBuffer buffer, Class<T> type, int nativeType) { in unpackSingle() [all …]
|
/frameworks/support/v4/ics/android/support/v4/text/ |
D | ICUCompatIcs.java | 33 final Class<?> clazz = Class.forName("libcore.icu.ICU"); 36 new Class[]{ String.class }); 38 new Class[]{ String.class });
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SystemUIService.java | 35 private final Class<?>[] SERVICES = new Class[] { 51 HashMap<Class<?>, Object> components = new HashMap<Class<?>, Object>(); in onCreate() 54 Class<?> cl = SERVICES[i]; in onCreate()
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewFactory.java | 83 Class<WebViewFactoryProvider> providerClass; in getProvider() 114 private static Class<WebViewFactoryProvider> getFactoryClass() throws ClassNotFoundException { in getFactoryClass() 115 return (Class<WebViewFactoryProvider>) Class.forName(CHROMIUM_WEBVIEW_FACTORY); in getFactoryClass()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbInterface.java | 48 public UsbInterface(int id, int Class, int subClass, int protocol, in UsbInterface() argument 51 mClass = Class; in UsbInterface() 124 int Class = in.readInt(); 128 return new UsbInterface(id, Class, subClass, protocol, endpoints);
|