Home
last modified time | relevance | path

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

/cts/tests/signature/tests/src/android/signature/cts/tests/
DApiComplianceCheckerTest.java25 import android.signature.cts.JDiffClassDescription;
66 JDiffClassDescription clz = createClass(NormalClass.class.getSimpleName()); in testNormalClassCompliance()
74 JDiffClassDescription clz = new JDiffClassDescription( in testMissingClass()
76 clz.setType(JDiffClassDescription.JDiffType.CLASS); in testMissingClass()
83 JDiffClassDescription clz = createClass(NormalClass.class.getSimpleName()); in testSimpleConstructor()
84 JDiffClassDescription.JDiffConstructor constructor = ctor("NormalClass", Modifier.PUBLIC); in testSimpleConstructor()
92 JDiffClassDescription clz = createClass(NormalClass.class.getSimpleName()); in testOneArgConstructor()
93 JDiffClassDescription.JDiffConstructor constructor = ctor("NormalClass", Modifier.PRIVATE); in testOneArgConstructor()
102 JDiffClassDescription clz = createClass(NormalClass.class.getSimpleName()); in testConstructorThrowsException()
103JDiffClassDescription.JDiffConstructor constructor = ctor("NormalClass", Modifier.PROTECTED); in testConstructorThrowsException()
[all …]
DApiPresenceCheckerTest.java22 import android.signature.cts.JDiffClassDescription;
52 protected static JDiffClassDescription createClass(String name) { in createClass()
53 JDiffClassDescription clz = new JDiffClassDescription( in createClass()
55 clz.setType(JDiffClassDescription.JDiffType.CLASS); in createClass()
60 protected static JDiffClassDescription createAbstractClass(String name) { in createAbstractClass()
61 JDiffClassDescription clz = new JDiffClassDescription( in createAbstractClass()
63 clz.setType(JDiffClassDescription.JDiffType.CLASS); in createAbstractClass()
68 protected static void addConstructor(JDiffClassDescription clz, String... paramTypes) { in addConstructor()
69 JDiffClassDescription.JDiffConstructor constructor = in addConstructor()
70 new JDiffClassDescription.JDiffConstructor(clz.getShortClassName(), Modifier.PUBLIC); in addConstructor()
[all …]
DAnnotationCheckerTest.java22 import android.signature.cts.JDiffClassDescription;
62 JDiffClassDescription clz = createClass("SystemApiClass"); in testExactApiMatch()
87 JDiffClassDescription clz = createClass("SystemApiClass"); in testDetectUnauthorizedConstructorApi()
98 JDiffClassDescription clz = createClass("PublicApiClass"); in testDetectUnauthorizedConstructorApi()
117 JDiffClassDescription clz = createClass("SystemApiClass"); in testDetectUnauthorizedMethodApi()
128 JDiffClassDescription clz = createClass("PublicApiClass"); in testDetectUnauthorizedMethodApi()
145 JDiffClassDescription clz = createClass("SystemApiClass"); in testDetectUnauthorizedFieldApi()
156 JDiffClassDescription clz = createClass("PublicApiClass"); in testDetectUnauthorizedFieldApi()
173 JDiffClassDescription clz = createClass("SystemApiClass"); in testDetectUnauthorizedClassApi()
184 JDiffClassDescription clz = createClass("PublicApiClass"); in testDetectUnauthorizedClassApi()
[all …]
DFailureHandlingTest.java21 import android.signature.cts.JDiffClassDescription;
51 public void checkSignatureCompliance(JDiffClassDescription classDescription) { in checkSignatureCompliance()
78 JDiffClassDescription description = createClass("fake"); in testNoFailures_DetectsFailures()
106 JDiffClassDescription description = createClass("fake"); in testExpectFailure_DetectsTooManyFailures()
DExpectedFailuresFilterAnnotationCheckerTest.java23 import android.signature.cts.JDiffClassDescription;
60 JDiffClassDescription clz = createClass("SystemApiClass"); in testIgnoreExpectedFailures_TestPasses()
82 JDiffClassDescription clz = createClass("SystemApiClass"); in testIgnoreExpectedFailures_TestStillFails()
/cts/tests/signature/lib/common/src/android/signature/cts/
DApiPresenceChecker.java46 public void checkSignatureCompliance(JDiffClassDescription classDescription) { in checkSignatureCompliance()
61 private Class<?> checkClassCompliance(JDiffClassDescription classDescription) { in checkClassCompliance()
99 protected boolean checkClass(JDiffClassDescription classDescription, in checkClass()
111 private void checkFieldsCompliance(JDiffClassDescription classDescription, in checkFieldsCompliance()
115 for (JDiffClassDescription.JDiffField field : classDescription.getFields()) { in checkFieldsCompliance()
170 protected void checkField(JDiffClassDescription classDescription, in checkField()
172 JDiffClassDescription.JDiffField fieldDescription, Field field) { in checkField()
183 private void checkConstructorCompliance(JDiffClassDescription classDescription, in checkConstructorCompliance()
186 for (JDiffClassDescription.JDiffConstructor con : classDescription.getConstructors()) { in checkConstructorCompliance()
214 protected void checkConstructor(JDiffClassDescription classDescription, in checkConstructor()
[all …]
DInterfaceChecker.java97 private final Map<Class<?>, JDiffClassDescription> class2Description =
108 for (Map.Entry<Class<?>, JDiffClassDescription> entry : class2Description.entrySet()) { in checkQueued()
110 JDiffClassDescription classDescription = entry.getValue(); in checkQueued()
141 JDiffClassDescription classDescription, Class<?> runtimeClass) { in checkInterfaceMethodCompliance()
153 private boolean findMethod(JDiffClassDescription classDescription, Method method) { in findMethod()
154 for (JDiffClassDescription.JDiffMethod jdiffMethod : classDescription.getMethods()) { in findMethod()
167 JDiffClassDescription implInterface = class2Description.get(interfaceClass); in findMethod()
181 void queueForDeferredCheck(JDiffClassDescription classDescription, Class<?> runtimeClass) { in queueForDeferredCheck()
182 JDiffClassDescription existingDescription = class2Description.get(runtimeClass); in queueForDeferredCheck()
184 for (JDiffClassDescription.JDiffMethod method : classDescription.getMethods()) { in queueForDeferredCheck()
DFailureType.java26 static FailureType mismatch(JDiffClassDescription description) { in mismatch()
27 return JDiffClassDescription.JDiffType.INTERFACE.equals(description.getClassType()) in mismatch()
31 static FailureType missing(JDiffClassDescription description) { in missing()
32 return JDiffClassDescription.JDiffType.INTERFACE.equals(description.getClassType()) in missing()
DApiComplianceChecker.java18 import android.signature.cts.JDiffClassDescription.JDiffField;
111 protected boolean checkClass(JDiffClassDescription classDescription, Class<?> runtimeClass) { in checkClass()
112 if (JDiffClassDescription.JDiffType.INTERFACE.equals(classDescription.getClassType())) { in checkClass()
185 JDiffClassDescription classDescription) { in classIsNotInstantiableOrExtensibleInPreviousApi()
245 private static String checkClassModifiersCompliance(JDiffClassDescription classDescription, in checkClassModifiersCompliance()
252 if (classDescription.getClassType() == JDiffClassDescription.JDiffType.INTERFACE) { in checkClassModifiersCompliance()
310 private static boolean checkClassAnnotationCompliance(JDiffClassDescription classDescription, in checkClassAnnotationCompliance()
332 private static boolean checkClassExtendsCompliance(JDiffClassDescription classDescription, in checkClassExtendsCompliance()
358 private static boolean checkClassImplementsCompliance(JDiffClassDescription classDescription, in checkClassImplementsCompliance()
389 protected void checkField(JDiffClassDescription classDescription, Class<?> runtimeClass, in checkField()
[all …]
DAnnotationChecker.java119 protected boolean checkClass(JDiffClassDescription classDescription, Class<?> runtimeClass) { in checkClass()
126 protected void checkField(JDiffClassDescription classDescription, Class<?> runtimeClass, in checkField()
127 JDiffClassDescription.JDiffField fieldDescription, Field field) { in checkField()
143 protected void checkConstructor(JDiffClassDescription classDescription, Class<?> runtimeClass, in checkConstructor()
144 JDiffClassDescription.JDiffConstructor ctorDescription, Constructor<?> ctor) { in checkConstructor()
164 protected void checkMethod(JDiffClassDescription classDescription, Class<?> runtimeClass, in checkMethod()
165 JDiffClassDescription.JDiffMethod methodDescription, Method method) { in checkMethod()
DJDiffClassDescription.java28 public class JDiffClassDescription { class
59 public JDiffClassDescription(String pkg, String className) { in JDiffClassDescription() method in JDiffClassDescription
66 public JDiffClassDescription setPreviousApiFlag(boolean isPreviousApi) { in setPreviousApiFlag()
DReflectionHelper.java18 import android.signature.cts.JDiffClassDescription.JDiffConstructor;
19 import android.signature.cts.JDiffClassDescription.JDiffMethod;
55 public static Class<?> findMatchingClass(JDiffClassDescription classDescription, in findMatchingClass()
291 static boolean matches(JDiffClassDescription.JDiffMethod jDiffMethod, in matches()
637 static Class<?> findRequiredClass(JDiffClassDescription classDescription, in findRequiredClass()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DSignatureTest.java24 import android.signature.cts.JDiffClassDescription;
52 private static final Supplier<Set<JDiffClassDescription>> UNEXPECTED_CLASSES =
75 Set<JDiffClassDescription> unexpectedClasses = UNEXPECTED_CLASSES.get(); in testCannotAccessUnexpectedClasses()
76 for (JDiffClassDescription classDescription : unexpectedClasses) { in testCannotAccessUnexpectedClasses()
104 Set<JDiffClassDescription> unexpectedClasses = UNEXPECTED_CLASSES.get(); in testRuntimeCompatibilityWithCurrentApi()
130 Set<JDiffClassDescription> unexpectedClasses = UNEXPECTED_CLASSES.get(); in testRuntimeCompatibilityWithPreviousApis()
143 private Class<?> findUnexpectedClass(JDiffClassDescription classDescription, in findUnexpectedClass()
152 private static Set<JDiffClassDescription> loadUnexpectedClasses() { in loadUnexpectedClasses()
159 private static TreeSet<JDiffClassDescription> newSetOfClassDescriptions() { in newSetOfClassDescriptions()
160 return new TreeSet<>(Comparator.comparing(JDiffClassDescription::getAbsoluteClassName)); in newSetOfClassDescriptions()
[all …]
DAbstractApiTest.java26 import android.signature.cts.JDiffClassDescription;
239 Stream<JDiffClassDescription> 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/api-check/system-annotation/src/java/android/signature/cts/api/
DAnnotationTest.java22 import android.signature.cts.JDiffClassDescription;
55 private Predicate<? super JDiffClassDescription> androidAutoClassesFilter() { in androidAutoClassesFilter()
/cts/tests/signature/api-check/shared-libs-api/src/android/signature/cts/api/
DSignatureMultiLibsTest.java24 import android.signature.cts.JDiffClassDescription;
164 private Stream<JDiffClassDescription> parseActiveSharedLibraryApis( in parseActiveSharedLibraryApis()
/cts/tests/signature/intent-check/src/android/signature/cts/intent/
DIntentTest.java21 import android.signature.cts.JDiffClassDescription.JDiffField;