summaryrefslogtreecommitdiff
path: root/ojluni/annotations/hiddenapi/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
* Merge "Revert "Derestrict nativeFillInStackTrace.""Treehugger Robot2020-11-091-1/+1
|\
| * Revert "Derestrict nativeFillInStackTrace."Alex Light2020-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | This reverts commit 7c89e0527067b038aac7d27773e506456da6d777. Reason for revert: No longer used by Test988 Bug: 172412309 Bug: 172376773 Change-Id: Ice4167c6de56639614258faa76011f638d2e7fd4
* | Merge "Revert "Remove API restriction on a Thread constructor.""Treehugger Robot2020-11-061-1/+1
|\ \ | |/ |/|
| * Revert "Remove API restriction on a Thread constructor."Alex Light2020-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | This reverts commit acac1531ecb23f5a72fda42d2c8e2a3b15a3875b. Reason for revert: Removed JVMTI cts use Bug: 172313193 Bug: 172263916 Change-Id: Ic1b33908f4a2a903a994e924847e36e85badf19b
* | Derestrict nativeFillInStackTrace.Mathew Inwood2020-11-041-1/+1
| | | | | | | | | | | | | | | | It's used by ART test JvmtiHostTest988. Bug: 172412309 Fixes: 172376773 Change-Id: Id076bdeab294b28e63ffa8c6569123cf92d24a88
* | Merge "Remove API restriction on a Thread constructor."Treehugger Robot2020-11-031-1/+1
|\|
| * Remove API restriction on a Thread constructor.Mathew Inwood2020-11-031-1/+1
| | | | | | | | | | | | | | | | | | Signature: Ljava/lang/Thread;-><init>(Ljava/lang/ThreadGroup;Ljava/lang/String;IZ)V Bug: 172313193 Bug: 172263916 Change-Id: Icdd5da9eed12483ae4774506633103b565a5161c
* | Derestrict some APIs used by tests.Mathew Inwood2020-11-032-2/+2
|/ | | | | | | | | | | Ljava/time/Duration;->toSeconds()Ljava/math/BigDecimal; Ljava/util/Random;->seedUniquifier()J Used by art.Test993.runBCPMethodTests. Bug: 172313849 Bug: 172263916 Change-Id: Ifc1978a50a7718c7d21d64d01214df2f3042004c
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-2961-126/+126
| | | | | | | | | | 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
* Inclusive Language Fixit: Replace dummy with fakePaul Duffin2020-07-281-1/+1
| | | | | | Bug: 162205877 Test: m java Change-Id: I294a033305448533d101349dc41bd216ce2ec63f
* Change j.l.r.Field to use ArtField index instead of dexFileIndexAlex Light2020-02-111-5/+1
| | | | | | | | | | | | | | Using the dexFileIndex to determine the ArtField a java.lang.reflect.Field object points to requires us to use a dex-cache and to update all existing Field objects if this index changes (for example due to class redefinition). This could be rather slow. This replaces the dex-file index with the index into the declaring class's SFields/IFields arrays where the specified ArtMethod is stored. Bug: 149236640 Test: ./test.py --host Change-Id: I3598909a770aff317011091f33707773f3928c56
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-11122-124/+124
| | | | | | | | | | | | | | | 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-219-9/+9
| | | | | | | | | | | 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
* Merge "Document public alternatives to greylisted APIs" am: 9057a3dff0Andrei-Valentin Onea2019-06-184-5/+16
|\ | | | | | | | | | | am: 27695e515c Change-Id: Ica61c0a1d27966893d99de4a4963b182bfe036e3
| * Document public alternatives to greylisted APIsAndrei Onea2019-06-184-5/+16
| | | | | | | | | | | | | | | | | | Add known public alternatives or recommendations for greylisted APIs in libcore. Bug: 135171386 Test: m Change-Id: I9351f2ab4c15649a5ed0e25deda1f6d9769342a4
* | Thread.uncaughtExceptionPreHandler: temporarily graylist.Tobias Thierer2019-05-211-0/+1
|/ | | | | | | | | | | | | | | | Blacklisting uncaughtExceptionPreHandler in Android Pie broke a major third party app's use case. While it's too late for Pie, this CL moves the field back to the greylist for Android Q to reduce impact for that app. We still plan to blacklist this field again in a future version of Android after we've had a chance to consider whether that app's use case should be addressed by a public API. Bug: 133227292 Test: Treehugger Change-Id: I21f5bf16ed34178ae06b63e41adf84285ce8d39f
* Merge "Remove @UnsupportedAppUsage from whitelist methods"David Brazdil2019-02-023-2791/+0
|\
| * Remove @UnsupportedAppUsage from whitelist methodsDavid Brazdil2019-02-013-2791/+0
| | | | | | | | | | | | | | | | | | These were incorrectly labelled non-public. Remove their @UnsupportedAppUsage annotation. Bug: 122551864 Test: m appcompat (fails on annotation clash) Change-Id: I5149a005c3d5518fdc1dc0f7cadc597c9926d5ec
* | Add HashMap.EntryIterator.next() to greylistPaul Duffin2019-01-281-0/+1
|/ | | | | | Bug: 122551864 Test: make checkbuild Change-Id: I25ef26f886a6ed7b5ddc0028bbb742f5b27cbdcd
* Pass the Java caller's location to Runtime.nativeLoad.Nicolas Geoffray2019-01-181-3/+5
| | | | | | | | | Will be used to find the linker namespace to use. bug: 122874359 Test: m, gtest, run-test, CtsJdwpTests Change-Id: I65572f31c86545d027ff03626a42c7fd4dca6f64
* 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
* Remove unnecessary constants and improve JavaDocPaul Duffin2018-12-138-8/+16
| | | | | | | | Extracted VERSION_CODES as dalvik.system.VersionCodes for general use. Bug: 119748646 Test: make checkbuild Change-Id: I67a3ec8ebaf84096ae34ba79e18b11c242ba9811
* Blacklist primitive wrapper class value fields for Q and abovePaul Duffin2018-11-308-8/+32
| | | | | | | | | | Each primitive wrapper class provides an accessor method for retrieving the value field, e.g. byteValue(), intValue() etc. so direct access to the field is not required. Bug: 118738172 Test: make checkbuild - blacklist by target SDK is not supported yet. Change-Id: I7fc2e19c7b533e892b876635dd8add3e1a811ee6
* Add stubs for remaining libcore classes in hiddenapiPaul Duffin2018-11-287-0/+710
| | | | | | | | | | | | | | Additional libcore classes and methods have been added to the hiddenapi since the last time stubs were added. This change adds stubs and annotations for them all. 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: Ie860cc92a029b21d8ac0e75245a3b6d4de63199f
* Add stubs for hiddenapiPaul Duffin2018-10-31118-0/+40995
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