/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | ApiPresenceChecker.java | 46 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 …]
|
D | ApiComplianceChecker.java | 111 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 …]
|
D | InterfaceChecker.java | 110 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 …]
|
D | AnnotationChecker.java | 119 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
|
D | ReflectionHelper.java | 55 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/ |
D | SignatureTest.java | 76 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/ |
D | FailureHandlingTest.java | 51 public void checkSignatureCompliance(JDiffClassDescription classDescription) { in checkSignatureCompliance() argument 54 classDescription.getAbsoluteClassName(), "bad"); in checkSignatureCompliance() 58 classDescription.getAbsoluteClassName(), in checkSignatureCompliance()
|
D | ApiPresenceCheckerTest.java | 89 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/ |
D | IntentTest.java | 133 classDescription -> { in parse() 134 for (JDiffField diffField : classDescription.getFieldList()) { in parse()
|
/cts/tests/signature/lib/android/src/android/signature/cts/ |
D | XmlApiParser.java | 406 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/ |
D | DeviceState.java | 1052 private void checkValidAnnotations(Description classDescription) { 1053 for (Method method : classDescription.getTestClass().getMethods()) {
|