skip annotation check for fields in android.R$styleable

The class is a runtime class but doesn't contribute to the API surface
because it is annotated with @doconly (by aapt2). This confuses the
annotation checker because the runtime class and fields in it are
clearly annotated with @SystemApi, but they are not found in the API
signatures list.

So far, this problem hasn't been revealed because the access to the
runtime class was rejected due to the hidden api check. The annotatation
checker didn't even know the existence of the class.

However, as we are disabling the hidden api check for the signature
tests, the checker can access the runtime class and the problem got
revealed. Fixing the problem by skipping the check for the styleable
class.

Bug: 171459260
Test: atest CtsSystemApiAnnotationTestCases
Change-Id: I95c97dcf337c8617c75386f35ac82fa2a7c676b5
3 files changed