summaryrefslogtreecommitdiff
path: root/test-base/hiddenapi/src/android
Commit message (Collapse)AuthorAgeFilesLines
* Remove AndroidTestCase from UnsupportedAppUsageJiyong Park2020-06-091-46/+0
| | | | | | | | | | I8ea5421723a4a40d580956e5ceb51be70253f0eb has made the two APIs in the class public (though as deprecated). We don't need to put them into the greylist, which would make the hiddenapi tool uncomfortable. Bug: 157007292 Test: m on qemu_trusty_arm64 Change-Id: Ibde3f44244fbe0e2c5da596eef05da57a6ee474a
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-092-2/+2
| | | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23 Merged-In: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23
* Switch android.test and junit classes to use UnsupportedAppUsagePaul Duffin2019-03-012-0/+85
The UnsupportedAppUsage annotations could not be added directly to the java files in src/ as they have to be built against the current api which does not include the annotation. Instead this uses the same technique as used for libcore/ojluni files and adds the annotations to stub files (in hiddenapi/src) which are built as part of the android.test.base-hiddenapi target. That target is added to a special whitelist in build/soong/java/config/config.go which causes the hiddenapi information to be extracted from the target. Also, updates the preupload check to prevent anymore entries being added to the config/hiddenapi-greylist.txt for android.test or junit classes. Bug: 73711752 Test: m cts-hiddenapi_flags-csv and check that it contained the correct entries even though they had been removed from config/hiddenapi-greylist.txt Change-Id: Ifaf15d2751f54cb03f8402b866a0ee4da7acc4d2