Home
last modified time | relevance | path

Searched refs:classDescription (Results 1 – 11 of 11) sorted by relevance

/cts/tests/signature/lib/common/src/android/signature/cts/
DApiPresenceChecker.java46 public void checkSignatureCompliance(JDiffClassDescription classDescription) { in checkSignatureCompliance() argument
47 Class<?> runtimeClass = checkClassCompliance(classDescription); in checkSignatureCompliance()
49 checkFieldsCompliance(classDescription, runtimeClass); in checkSignatureCompliance()
50 checkConstructorCompliance(classDescription, runtimeClass); in checkSignatureCompliance()
51 checkMethodCompliance(classDescription, runtimeClass); in checkSignatureCompliance()
61 private Class<?> checkClassCompliance(JDiffClassDescription classDescription) { in checkClassCompliance() argument
64 .findRequiredClass(classDescription, classProvider); in checkClassCompliance()
67 resultObserver.notifyFailure(FailureType.missing(classDescription), in checkClassCompliance()
68 classDescription.getAbsoluteClassName(), in checkClassCompliance()
69 "Classloader is unable to find " + classDescription in checkClassCompliance()
[all …]
DApiComplianceChecker.java111 protected boolean checkClass(JDiffClassDescription classDescription, Class<?> runtimeClass) { in checkClass() argument
112 if (JDiffClassDescription.JDiffType.INTERFACE.equals(classDescription.getClassType())) { in checkClass()
114 interfaceChecker.queueForDeferredCheck(classDescription, runtimeClass); in checkClass()
118 if ((reason = checkClassModifiersCompliance(classDescription, runtimeClass)) != null) { in checkClass()
119 resultObserver.notifyFailure(FailureType.mismatch(classDescription), in checkClass()
120 classDescription.getAbsoluteClassName(), in checkClass()
122 classDescription.toSignatureString(), reason)); in checkClass()
126 if (!checkClassAnnotationCompliance(classDescription, runtimeClass)) { in checkClass()
127 resultObserver.notifyFailure(FailureType.mismatch(classDescription), in checkClass()
128 classDescription.getAbsoluteClassName(), "Annotation mismatch"); in checkClass()
[all …]
DInterfaceChecker.java110 JDiffClassDescription classDescription = entry.getValue(); in checkQueued() local
111 if (classDescription.isPreviousApi()) { in checkQueued()
119 List<Method> methods = checkInterfaceMethodCompliance(classDescription, runtimeClass); in checkQueued()
122 classDescription.getAbsoluteClassName(), "Interfaces cannot be modified: " in checkQueued()
123 + classDescription.getAbsoluteClassName() in checkQueued()
141 JDiffClassDescription classDescription, Class<?> runtimeClass) { in checkInterfaceMethodCompliance() argument
149 .filter(m -> !findMethod(classDescription, m)) in checkInterfaceMethodCompliance()
153 private boolean findMethod(JDiffClassDescription classDescription, Method method) { in findMethod() argument
154 for (JDiffClassDescription.JDiffMethod jdiffMethod : classDescription.getMethods()) { in findMethod()
159 for (String interfaceName : classDescription.getImplInterfaces()) { in findMethod()
[all …]
DAnnotationChecker.java119 protected boolean checkClass(JDiffClassDescription classDescription, Class<?> runtimeClass) { in checkClass() argument
126 protected void checkField(JDiffClassDescription classDescription, Class<?> runtimeClass, in checkField() argument
143 protected void checkConstructor(JDiffClassDescription classDescription, Class<?> runtimeClass, in checkConstructor() argument
164 protected void checkMethod(JDiffClassDescription classDescription, Class<?> runtimeClass, in checkMethod() argument
DReflectionHelper.java55 public static Class<?> findMatchingClass(JDiffClassDescription classDescription, in findMatchingClass() argument
59 String shortClassName = classDescription.getShortClassName(); in findMatchingClass()
61 String packageName = classDescription.getPackageName(); in findMatchingClass()
65 return searchForClass(classProvider, classDescription.getAbsoluteClassName(), in findMatchingClass()
637 static Class<?> findRequiredClass(JDiffClassDescription classDescription, in findRequiredClass() argument
640 return findMatchingClass(classDescription, classProvider); in findRequiredClass()
642 … LogHelper.loge("ClassNotFoundException for " + classDescription.getAbsoluteClassName(), e); in findRequiredClass()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DSignatureTest.java76 for (JDiffClassDescription classDescription : unexpectedClasses) { in testCannotAccessUnexpectedClasses()
77 Class<?> unexpectedClass = findUnexpectedClass(classDescription, mClassProvider); in testCannotAccessUnexpectedClasses()
81 classDescription.getAbsoluteClassName(), in testCannotAccessUnexpectedClasses()
143 private Class<?> findUnexpectedClass(JDiffClassDescription classDescription, in findUnexpectedClass() argument
146 return ReflectionHelper.findMatchingClass(classDescription, classProvider); in findUnexpectedClass()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DFailureHandlingTest.java51 public void checkSignatureCompliance(JDiffClassDescription classDescription) { in checkSignatureCompliance() argument
54 classDescription.getAbsoluteClassName(), "bad"); in checkSignatureCompliance()
58 classDescription.getAbsoluteClassName(), in checkSignatureCompliance()
DApiPresenceCheckerTest.java89 void checkSignatureCompliance(JDiffClassDescription classDescription, in checkSignatureCompliance() argument
92 checkSignatureCompliance(classDescription, resultObserver, in checkSignatureCompliance()
97 void checkSignatureCompliance(JDiffClassDescription classDescription, in checkSignatureCompliance() argument
100 checker -> checker.checkSignatureCompliance(classDescription), in checkSignatureCompliance()
/cts/tests/signature/intent-check/src/android/signature/cts/intent/
DIntentTest.java133 classDescription -> { in parse()
134 for (JDiffField diffField : classDescription.getFieldList()) { in parse()
/cts/tests/signature/lib/android/src/android/signature/cts/
DXmlApiParser.java406 JDiffClassDescription classDescription; in tryAdvance() local
408 classDescription = next(); in tryAdvance()
413 if (classDescription == null) { in tryAdvance()
416 action.accept(classDescription); in tryAdvance()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java1052 private void checkValidAnnotations(Description classDescription) {
1053 for (Method method : classDescription.getTestClass().getMethods()) {