summaryrefslogtreecommitdiff
path: root/ojluni/annotations/hiddenapi/sun/misc/Unsafe.java
AgeCommit message (Collapse)Author
2019-12-11Use new UnsupportedAppUsage annotation.Artur Satayev
New annotation is tools/platform-compat/annotation/src/java/android/compat/annotation/UnsupportedAppUsage.java. Existing annotations in libcore/ and frameworks/ will be deleted after the migration: - libcore/dalvik/src/main/java/dalvik/annotation/compat/UnsupportedAppUsage.java - frameworks/base/core/java/android/annotation/UnsupportedAppUsage.java 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 Exempt-From-Owner-Approval: +2 by owner, by vote lost on latest patch. Change-Id: Ib5b7baa399cdc38da1d3ca622ba0ba26936b1b2d
2019-10-21Move dalvik.system.VersionCodes to dalvik.annotation.compatPaul Duffin
Avoids splitting packages that are part of java.base. Removes patch_module: "java.base" that was used to work around this issue. Bug: 143057012 Test: m checkbuild Change-Id: Iad65343fd3fde55f2d3b0e68c4bbcd51377d85d9
2019-02-07Move some methods back to max-sdk-o greylist.Mathew Inwood
These members were erroneously moved to the greylist in commit b59c36f (in frameworks/base), but were on the dark grey list in P (now known as the max-sdk-o greylist). Move them back as we should not be making API less restrictive in new letter releases. Bug: 123987101 Test: m Change-Id: I3e6092e67c60f5dc15c0e1b60c9dfa9a49849042
2018-11-01Add stubs for sun... classes for hiddenapiPaul Duffin
Adds stubs for ojluni/src/main/java/sun classes some of whose hidden members are used by applications. Each such member is annotated with the UnsupportedAppUsage annotation. The stubs are built as part of the core-oj-hiddenapi target from which the build will extract information about the hidden class members that are used by applications. This was tested by making and then manually checking that the generated out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the same (after sorting) before and after this change. Test: see above Bug: 117818301 Change-Id: Ieef82c0f7a9951b7ba22af92b19038d424e4d8b8