summaryrefslogtreecommitdiff
path: root/ojluni/annotations/hiddenapi/java/net/InetAddress.java
Commit message (Collapse)AuthorAgeFilesLines
* Bypass alternative API check in hidden API processingPaul Duffin2021-05-101-2/+2
| | | | | | | | | | | | | | | | | Using @link in the publicAlternatives property of the UnsupportedAppUsage annotation caused the hidden API processing to check that it references a member of the public API. That breaks hidden API modularization as the alternatives are not in the API provided by ART and the other APIs are not usable here. This change temporarily switches from @link to @code to bypass that check for these references to allow progress to be made on the hidden API modularization work. Bug: 187693462 Bug: 179354495 Test: m droid Change-Id: I8828c0d9db57bd8630730c9bd69b8b30afdf8d61
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-291-3/+3
| | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Change-Id: I783f0af90f462f6b38396f6939a2f080a5292801
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-111-1/+1
| | | | | | | | | | | | | | | 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
* Move dalvik.system.VersionCodes to dalvik.annotation.compatPaul Duffin2019-10-211-1/+1
| | | | | | | | | | | 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
* Document public alternatives to greylisted APIsAndrei Onea2019-06-181-2/+8
| | | | | | | | | Add known public alternatives or recommendations for greylisted APIs in libcore. Bug: 135171386 Test: m Change-Id: I9351f2ab4c15649a5ed0e25deda1f6d9769342a4
* Blacklist InetAddress.parseNumericAddress for QPaul Duffin2018-12-171-2/+6
| | | | | | | | | | | | A replacement API has been provided in Q so this does not need to be accessible for apps that target Q and above. Replacement API is: android.net.InetAddresses.parseNumericAddress(String) Bug: 78686891 Test: make checkbuild - blacklist by target SDK is not supported yet. Change-Id: Iac6f5196771559de868656eee3bdc8ba233da04b
* Add stubs for hiddenapiPaul Duffin2018-10-311-0/+294
Adds stubs for ojluni 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: Icfe773e00ba1f96a379b705f26ef631ec34fee5e