Home
last modified time | relevance | path

Searched refs:JDiffClassDescription (Results 1 – 16 of 16) sorted by relevance

/cts/tests/signature/tests/src/android/signature/cts/tests/
DApiComplianceCheckerTest.java24 import android.signature.cts.JDiffClassDescription;
51 JDiffClassDescription clz = createClass(NormalClass.class.getSimpleName()); in testNormalClassCompliance()
59 JDiffClassDescription clz = new JDiffClassDescription( in testMissingClass()
61 clz.setType(JDiffClassDescription.JDiffType.CLASS); in testMissingClass()
68 JDiffClassDescription clz = createClass(NormalClass.class.getSimpleName()); in testSimpleConstructor()
69 JDiffClassDescription.JDiffConstructor constructor = in testSimpleConstructor()
70 new JDiffClassDescription.JDiffConstructor("NormalClass", Modifier.PUBLIC); in testSimpleConstructor()
78 JDiffClassDescription clz = createClass(NormalClass.class.getSimpleName()); in testOneArgConstructor()
79 JDiffClassDescription.JDiffConstructor constructor = in testOneArgConstructor()
80 new JDiffClassDescription.JDiffConstructor("NormalClass", Modifier.PRIVATE); in testOneArgConstructor()
[all …]
DAbstractApiCheckerTest.java22 import android.signature.cts.JDiffClassDescription;
47 protected static JDiffClassDescription createClass(String name) { in createClass()
48 JDiffClassDescription clz = new JDiffClassDescription( in createClass()
50 clz.setType(JDiffClassDescription.JDiffType.CLASS); in createClass()
55 protected static JDiffClassDescription createAbstractClass(String name) { in createAbstractClass()
56 JDiffClassDescription clz = new JDiffClassDescription( in createAbstractClass()
58 clz.setType(JDiffClassDescription.JDiffType.CLASS); in createAbstractClass()
63 void checkSignatureCompliance(JDiffClassDescription classDescription, in checkSignatureCompliance()
70 void checkSignatureCompliance(JDiffClassDescription classDescription, in checkSignatureCompliance()
87 protected JDiffClassDescription createInterface(String name) { in createInterface()
[all …]
DAnnotationCheckerTest.java22 import android.signature.cts.JDiffClassDescription;
44 private static void addConstructor(JDiffClassDescription clz, String... paramTypes) { in addConstructor()
45JDiffClassDescription.JDiffConstructor constructor = new JDiffClassDescription.JDiffConstructor( in addConstructor()
55 private static void addPublicVoidMethod(JDiffClassDescription clz, String name) { in addPublicVoidMethod()
59 private static void addPublicBooleanField(JDiffClassDescription clz, String name) { in addPublicBooleanField()
60 JDiffClassDescription.JDiffField field = new JDiffClassDescription.JDiffField( in addPublicBooleanField()
70 JDiffClassDescription clz = createClass("SystemApiClass"); in testExactApiMatch()
96 JDiffClassDescription clz = createClass("SystemApiClass"); in testDetectUnauthorizedConstructorApi()
126 JDiffClassDescription clz = createClass("SystemApiClass"); in testDetectUnauthorizedMethodApi()
156 JDiffClassDescription clz = createClass("SystemApiClass"); in testDetectUnauthorizedFieldApi()
[all …]
/cts/tests/signature/lib/common/src/android/signature/cts/
DAbstractApiChecker.java45 public void checkSignatureCompliance(JDiffClassDescription classDescription) { in checkSignatureCompliance()
60 private Class<?> checkClassCompliance(JDiffClassDescription classDescription) { in checkClassCompliance()
107 protected abstract boolean checkClass(JDiffClassDescription classDescription, in checkClass()
118 protected boolean allowMissingClass(JDiffClassDescription classDescription) { in allowMissingClass()
128 private void checkFieldsCompliance(JDiffClassDescription classDescription, in checkFieldsCompliance()
132 for (JDiffClassDescription.JDiffField field : classDescription.getFields()) { in checkFieldsCompliance()
178 protected abstract void checkField(JDiffClassDescription classDescription, in checkField()
180 JDiffClassDescription.JDiffField fieldDescription, Field field); in checkField()
190 private void checkConstructorCompliance(JDiffClassDescription classDescription, in checkConstructorCompliance()
193 for (JDiffClassDescription.JDiffConstructor con : classDescription.getConstructors()) { in checkConstructorCompliance()
[all …]
DInterfaceChecker.java69 private final Map<Class<?>, JDiffClassDescription> class2Description =
80 for (Map.Entry<Class<?>, JDiffClassDescription> entry : class2Description.entrySet()) { in checkQueued()
82 JDiffClassDescription classDescription = entry.getValue(); in checkQueued()
103 JDiffClassDescription classDescription, Class<?> runtimeClass) { in checkInterfaceMethodCompliance()
115 private boolean findMethod(JDiffClassDescription classDescription, Method method) { in findMethod()
117 for (JDiffClassDescription.JDiffMethod jdiffMethod : classDescription.getMethods()) { in findMethod()
130 JDiffClassDescription implInterface = class2Description.get(interfaceClass); in findMethod()
144 void queueForDeferredCheck(JDiffClassDescription classDescription, Class<?> runtimeClass) { in queueForDeferredCheck()
146 JDiffClassDescription existingDescription = class2Description.get(runtimeClass); in queueForDeferredCheck()
148 for (JDiffClassDescription.JDiffMethod method : classDescription.getMethods()) { in queueForDeferredCheck()
DApiComplianceChecker.java18 import android.signature.cts.JDiffClassDescription.JDiffField;
82 protected boolean checkClass(JDiffClassDescription classDescription, Class<?> runtimeClass) { in checkClass()
83 if (JDiffClassDescription.JDiffType.INTERFACE.equals(classDescription.getClassType())) { in checkClass()
130 private static String checkClassModifiersCompliance(JDiffClassDescription classDescription, in checkClassModifiersCompliance()
140 classDescription.getClassType() != JDiffClassDescription.JDiffType.INTERFACE && in checkClassModifiersCompliance()
184 private static boolean checkClassAnnotationCompliance(JDiffClassDescription classDescription, in checkClassAnnotationCompliance()
206 private static boolean checkClassExtendsCompliance(JDiffClassDescription classDescription, in checkClassExtendsCompliance()
232 private static boolean checkClassImplementsCompliance(JDiffClassDescription classDescription, in checkClassImplementsCompliance()
263 protected void checkField(JDiffClassDescription classDescription, Class<?> runtimeClass, in checkField()
431 protected void checkConstructor(JDiffClassDescription classDescription, Class<?> runtimeClass, in checkConstructor()
[all …]
DAnnotationChecker.java98 protected boolean allowMissingClass(JDiffClassDescription classDescription) { in allowMissingClass()
109 protected boolean checkClass(JDiffClassDescription classDescription, Class<?> runtimeClass) { in checkClass()
116 protected void checkField(JDiffClassDescription classDescription, Class<?> runtimeClass, in checkField()
117 JDiffClassDescription.JDiffField fieldDescription, Field field) { in checkField()
133 protected void checkConstructor(JDiffClassDescription classDescription, Class<?> runtimeClass, in checkConstructor()
134 JDiffClassDescription.JDiffConstructor ctorDescription, Constructor<?> ctor) { in checkConstructor()
154 protected void checkMethod(JDiffClassDescription classDescription, Class<?> runtimeClass, in checkMethod()
155 JDiffClassDescription.JDiffMethod methodDescription, Method method) { in checkMethod()
DFailureType.java25 static FailureType mismatch(JDiffClassDescription description) { in mismatch()
26 return JDiffClassDescription.JDiffType.INTERFACE.equals(description.getClassType()) in mismatch()
30 static FailureType missing(JDiffClassDescription description) { in missing()
31 return JDiffClassDescription.JDiffType.INTERFACE.equals(description.getClassType()) in missing()
DReflectionHelper.java18 import android.signature.cts.JDiffClassDescription.JDiffConstructor;
19 import android.signature.cts.JDiffClassDescription.JDiffMethod;
51 public static Class<?> findMatchingClass(JDiffClassDescription classDescription, in findMatchingClass()
559 static Class<?> findRequiredClass(JDiffClassDescription classDescription, in findRequiredClass()
DJDiffClassDescription.java28 public class JDiffClassDescription { class
58 public JDiffClassDescription(String pkg, String className) { in JDiffClassDescription() method in JDiffClassDescription
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DSignatureTest.java24 import android.signature.cts.JDiffClassDescription;
57 Set<JDiffClassDescription> unexpectedClasses = loadUnexpectedClasses(); in testSignature()
58 for (JDiffClassDescription classDescription : unexpectedClasses) { in testSignature()
89 private Class<?> findUnexpectedClass(JDiffClassDescription classDescription, in findUnexpectedClass()
98 private Set<JDiffClassDescription> loadUnexpectedClasses() { in loadUnexpectedClasses()
104 private static TreeSet<JDiffClassDescription> newSetOfClassDescriptions() { in newSetOfClassDescriptions()
105 return new TreeSet<>(Comparator.comparing(JDiffClassDescription::getAbsoluteClassName)); in newSetOfClassDescriptions()
DAbstractApiTest.java23 import android.signature.cts.JDiffClassDescription;
154 Stream<JDiffClassDescription> parseApiResourcesAsStream( in parseApiResourcesAsStream()
/cts/tests/signature/lib/android/src/android/signature/cts/
DXmlApiParser.java18 import android.signature.cts.JDiffClassDescription.JDiffConstructor;
19 import android.signature.cts.JDiffClassDescription.JDiffField;
20 import android.signature.cts.JDiffClassDescription.JDiffMethod;
138 JDiffClassDescription currentClass, XmlPullParser parser) { in loadFieldInfo()
251 XmlPullParser parser, JDiffClassDescription currentClass) { in loadConstructorInfo()
268 private static JDiffClassDescription loadClassInfo( in loadClassInfo()
271 JDiffClassDescription currentClass = new JDiffClassDescription(pkg, className); in loadClassInfo()
273 currentClass.setType(isInterface ? JDiffClassDescription.JDiffType.INTERFACE : in loadClassInfo()
274 JDiffClassDescription.JDiffType.CLASS); in loadClassInfo()
362 public Stream<JDiffClassDescription> parseAsStream(VirtualPath path) { in parseAsStream()
[all …]
DApiParser.java32 abstract Stream<JDiffClassDescription> parseAsStream(VirtualPath path); in parseAsStream()
DApiDocumentParser.java50 public Stream<JDiffClassDescription> parseAsStream(VirtualPath path) { in parseAsStream()
/cts/tests/signature/intent-check/src/android/signature/cts/intent/
DIntentTest.java21 import android.signature.cts.JDiffClassDescription.JDiffField;