summaryrefslogtreecommitdiff
path: root/ojluni/src/main/java
Commit message (Collapse)AuthorAgeFilesLines
* libcore: Add hooks for Dynamite module support in GmsCompatDanny Lin2022-03-151-0/+20
| | | | | | | | | | | | | These hooks are necessary for GmsCompat to support Google Play Services' dynamic module system (Dynamite) without weakening the SELinux sandbox to allow other apps to open module APKs from /data/user_de/0/com.google.android.gms/app_chimera/m. To minimize changes in libcore, each hook is a simple interface method call that delegates the actual hook code to GmsCompat in frameworks/base. Change-Id: I49c7c2b2fe8b356137dbc90955a7b63684253457
* Correcting technotes and platform documentation linksSorin Basca2021-07-2975-173/+173
| | | | | | | | | | | | | | | | | | | | | | | Correcting all the links of the form `{@docRoot}/../(platform|technote)` from the ojluni Java documenation. The links were automatically rewritten before javadoc compilation, however after merging the Change I1bebc40e4de78eccf92b055ee24beff76511a25a the rewriting stopped working. Until a fix that avoids changing the documentation in the sources is available, this should be used to avoid having broken links on the documentation pages. (cherry picked from commit 8b115484682149f0427e2190323d90a0dd8cddd7) Bug: 188966706 Test: m docs Test: link inspection Merged-in: I2cdd175793d51e42886e0b1eb31528afb2093b25 Change-Id: I2cdd175793d51e42886e0b1eb31528afb2093b25
* Revert an unnecessary patch in java.text.CollationElementIteratorVictor Chang2021-07-011-2/+1
| | | | | | | | | | | | | | | | | | | The patch is unnecessary because NULLORDER is constant and inlineable. from the public Android SDK, as shown in api/current.txt, we can't change the value anyway. So assigning the value from ICU4J CollationElementIterator seems unnecessary. The goal here is actually to remove the static initialization block in legacy.art.module.platform.api.stubs, and thus the stub will be identical to art.module.public.api.stubs.module_lib (cherry picked from commit d785f16fd2adcb4f6ad5c6cb782f8b71b2a90136) Bug: 192446466 Test: Verified that the class file size are identical. diff <(unzip -l out/soong/.intermediates/libcore/mmodules/core_platform_api/legacy.art.module.platform.api.stubs/android_common/turbine-combined/legacy.art.module.platform.api.stubs.jar) <( unzip -l out/soong/.intermediates/libcore/art.module.public.api.stubs.module_lib/android_common/turbine-combined/art.module.public.api.stubs.module_lib.jar) Merged-In: I2902963704ddcb6d8c1583dc5165f2e4da1a9e3c Change-Id: Ie94e00233b4e99b34a5975f8ff662e21bb4667e6
* Remove @CorePlatformApi usage from the ojluni/ sourcesVictor Chang2021-06-233-8/+0
| | | | | | | | | | | | The APIs have been annotated in the *.annoated.java in annotations/mmodule. Bug: 157639992 Test: m droid Test: Verified no change in the generated files in mmodules/core_platform_api/api Merged-In: Ibee1fb7d8d085871ac2f2c3390d72701b2361bd0 Change-Id: Ibee1fb7d8d085871ac2f2c3390d72701b2361bd0 (cherry picked from commit 87aa314212a5d08e6dc3a6208ff745535451dc60)
* Use the renamed ExtendedTimeZoneNames.matchName method - part 2Victor Chang2021-05-061-2/+1
| | | | | | Bug: 183477238 Test: treehugger Change-Id: Iee7faa3582574ee6ea3a965bcb2c83f637b93401
* Use the renamed ExtendedTimeZoneNames.matchName methodVictor Chang2021-05-041-6/+6
| | | | | | Bug: 183477238 Test: treehugger Change-Id: Ic5e7b4b4262fcfc04a00cfa744aaf33243354e67
* Merge "Add MODULE target for java.lang.Deprecated."Nikita Iashchenko2021-04-231-3/+1
|\
| * Add MODULE target for java.lang.Deprecated.Nikita Iashchenko2021-03-031-3/+1
| | | | | | | | | | | | | | | | | | ElementType.MODULE field was introduced in https://r.android.com/1596572. This CL adds MODULE target for java.lang.Deprecated and removes previously added change marker. Test: m update-api Change-Id: I4de5691350c3769d97b311ef9606eb3a2fb040c0
* | Mark stable and document javax.net.ssl.HttpsURLConnectionNikita Iashchenko2021-04-201-4/+5
| | | | | | | | | | | | | | | | | | | | | | Also remove incorrectly used CorePlatformApi annotation from ojluni sources and add corresponding stub file. Bug: 154796679 Test: m update-api t: m update-api Change-Id: I7ad42af915661dd6302ccdee9bfc4cdcf6acb052
* | Mark stable and document java.util.LinkedHashMapNikita Iashchenko2021-04-201-0/+3
| | | | | | | | | | | | Bug: 154796679 Test: m update-api Change-Id: Ie42bcac742e028c7c9d479f98e25605661b7a211
* | Mark stable and document java.text.DateFormatNikita Iashchenko2021-04-201-3/+11
| | | | | | | | | | | | Bug: 154796679 Test: m update-api Change-Id: I268152a73a98fc59ea392430c341f789db9702ef
* | Mark stable java.net.InetAddressNikita Iashchenko2021-04-201-3/+0
| | | | | | | | | | | | | | | | Use annotated files instead of marking table ojluni sources directly. Bug: 154796679 Test: m update-api Change-Id: Ifa4fdf523b3de62632791e14a2b28d44482b747d
* | Mark stable and document java.lang.ThreadNikita Iashchenko2021-04-201-1/+10
| | | | | | | | | | | | Bug: 154796679 Test: m update-api Change-Id: I3f535e89f297b4d4456610ebbc0d8f5db27d35e4
* | Mark stable sun.misc.Cleaner APIsNikita Iashchenko2021-04-141-1/+0
| | | | | | | | | | | | Bug: 154796679 Test: m stable.art.module.platform.api.stubs.source-update-current-api Change-Id: I31e1123965f232a22d87674612f83ec577accdde
* | Merge changes I19629f18,Ida9b1065,Ic72aba4f,Ia728b7dc,Ib4e217b4, ...Nikita Iashchenko2021-04-127-59/+46
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Mark stable dalvik.system.BaseDexClassLoader Mark stable sun.security.jca.Providers APIs Use annotated stubs for sun.misc.Unsafe Mark stable and document Inet{4,6}Address constants Mark stable and document getters exposing FileDescriptor Add API docs and mark stable java.nio.*
| * | Mark stable sun.security.jca.Providers APIsNikita Iashchenko2021-03-311-2/+8
| | | | | | | | | | | | | | | | | | | | | Bug: 154796679 Test: m stable.art.module.platform.api.stubs.source-update-current-api Test: m update-api Change-Id: Ida9b1065a1a6c172f8a862e1fe2d55085c56398b
| * | Use annotated stubs for sun.misc.UnsafeNikita Iashchenko2021-03-311-52/+0
| | | | | | | | | | | | | | | | | | Bug: 154796679 Test: m stable.art.module.platform.api.stubs.source-update-current-api Change-Id: Ic72aba4f3abfcdabdbec7b52ece8c0c927aaea71
| * | Mark stable and document Inet{4,6}Address constantsNikita Iashchenko2021-03-312-5/+26
| | | | | | | | | | | | | | | | | | Bug: 154796679 Test: m stable.art.module.platform.api.stubs.source-update-current-api Change-Id: Ia728b7dcc200925c6679c9d80019954be6e386f8
| * | Mark stable and document getters exposing FileDescriptorNikita Iashchenko2021-03-313-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Classes exposing their FileDescriptor as stable API: * java.net.DatagramSocket * java.net.Socket * java.net.SocketImpl Bug: 154796679 Test: m stable.art.module.platform.api.stubs.source-update-current-api Change-Id: Ib4e217b43c3d74a701cdd65c72d9b447ca05ff64
* | | Merge "Revert "Return anonymized MAC for apps targeting SDK < 30""Bram Bonné2021-04-091-36/+13
|\ \ \ | |/ / |/| |
| * | Revert "Return anonymized MAC for apps targeting SDK < 30"Bram Bonné2021-04-081-36/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert "Reland: Soft-enable MAC address restrictions with allowlist." Revert "Updates CTS tests for MAC address restrictions." Revert submission 1528409-mac-softrestrict Reason for revert: App compatibility Reverted Changes: I74a50b990:Return anonymized MAC for apps targeting SDK < 30 I8738f7912:Reland: Soft-enable MAC address restrictions with ... Id13670747:Updates CTS tests for MAC address restrictions. Change-Id: Id28ba57c95f6e5426e62d6c7385ac81c21bbd922
* | | Use annotated stubs for ZipEntry and CompletableFutureNikita Iashchenko2021-03-312-6/+0
| | | | | | | | | | | | | | | | | | Bug: 154796679 Test: m stable.art.module.platform.api.stubs.source-update-current-api Change-Id: I15d4a9b1dd297ee71fc578f11ad29643adb084f3
* | | Use annotated stubs for sun.security.pkcs.*Nikita Iashchenko2021-03-313-20/+6
| | | | | | | | | | | | | | | | | | Bug: 154796679 Test: m stable.art.module.platform.api.stubs.source-update-current-api Change-Id: I7eb393f3c0b64245cbba7cab73712c6953a65186
* | | Mark java.net.InetAddress APIs as stablepaulhu2021-03-121-2/+5
| | | | | | | | | | | | | | | | | | Bug: 181756157 Test: m update-api, build pass Change-Id: I9af42310abd58338895ec174f1d0f0bd24764036
* | | Merge "Revert "Mark java.net.InetAddress APIs as stable""Paul Hu2021-03-121-5/+2
|\ \ \
| * | | Revert "Mark java.net.InetAddress APIs as stable"Paul Hu2021-03-121-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 04e114c50c2c1766c9404cae79abd547163dfeb3. Reason for revert: Build break on aosp-master-with-phones branch Change-Id: Iaac12c4b53cd8a02d851b8ea562cd4bfcab01a5f
* | | | Merge "Mark java.net.InetAddress APIs as stable"Paul Hu2021-03-121-2/+5
|\| | |
| * | | Mark java.net.InetAddress APIs as stablepaulhu2021-03-091-2/+5
| | |/ | |/| | | | | | | | | | | | | Bug: 181756157 Test: m update-api Change-Id: I08ef9537d813699b69af9f527d7caa0947acce88
* | | Merge "Mark stable CompletableFuture and ZipEntry"Nikita Iashchenko2021-03-112-1/+8
|\ \ \
| * | | Mark stable CompletableFuture and ZipEntryNikita Iashchenko2021-03-092-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 154796679 Test: m update-api Change-Id: I11f9f859aa245745034994b25c6f4e802fb690aa
* | | | Mark sun.misc.Unsafe APIs as stableNikita Iashchenko2021-03-091-31/+95
|/ / / | | | | | | | | | | | | | | | | | | | | | Bug: 154796679 Test: m stable.art.module.platform.api.stubs.source-update-current-api m legacy.art.module.platform.api.stubs.source-update-current-api Test: m update-api Change-Id: Ia2a208cb822c9a5d698550563a45ba28e4f6d93f
* | | Mark sun.security.pkcs.* APIs as stableNikita Iashchenko2021-03-094-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Marked as stable: * sun.security.pkcs.SignerInfo * sun.security.pkcs.ParsingException * sun.security.pkcs.PKCS7 Bug: 154796679 Test: m stable.art.module.platform.api.stubs.source-update-current-api Test: m update-api Change-Id: Iaa98d62abde1c41f9c728a27c62aaa71c9daef82
* | | Mark sun.security.{util,x509} as stable APIsNikita Iashchenko2021-03-092-1/+8
|/ / | | | | | | | | | | | | | | | | | | | | Marked as stable: * sun.security.x509.AlgorithmId * sun.security.util.ObjectIdentifier Bug: 154796679 Test: m stable.art.module.platform.api.stubs.source-update-current-api Test: m update-api Change-Id: I270c4dffe890c2cde3da0108d4b22154b63e2132
* | Merge "Update java.util.List to 11+28"Nikita Iashchenko2021-03-032-125/+321
|\ \
| * | Update java.util.List to 11+28Nikita Iashchenko2021-03-022-125/+321
| | | | | | | | | | | | | | | | | | Bug: 160356973 Test: treehugger Change-Id: I5ed9ec74ed8a84a9eb7636c308e2fa6c4e77957b
* | | Import java/lang/annotation/* from 11+28Nikita Iashchenko2021-03-029-61/+87
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main reason for this change is to introduce MODULE enum value in java.lang.annotation.ElementType. This change also introduces javadoc updates for all classes under java.lang.annotation package. Removed serialization test asserting AnnotationTypeMismatchException is not serializable. Before this change AnnotationTypeMismatchException had non-tranisent field of type Method, after it the field became transient so there's no need in that test at all. Bug: 178106411 Test: m droid atest libcore.java.lang.annotation.AnnotationTypeMismatchExceptionTest manually ensure MODULE is available Change-Id: I4895531c87530ff2783ef51b0686cb6a4b0dba65
* | Merge changes from topic "NumericShaperTest"Treehugger Robot2021-02-251-0/+8
|\ \ | | | | | | | | | | | | | | | * changes: Android patch: Add tests for NumericShaper Import test for NumericShaper from 8u121-b13
| * | Android patch: Add tests for NumericShaperVictor Chang2021-02-251-0/+8
| | | | | | | | | | | | | | | | | | Bug: 119393918 Test: atest CtsLibcoreOjTestCases:test.java.awt Change-Id: I7d4d31238de61d1bd99425746110f19fbc53ddd8
* | | Merge "Update javadoc and deprecate java.lang.ref.Reference#isEnqued()"Nikita Iashchenko2021-02-251-6/+29
|\ \ \
| * | | Update javadoc and deprecate java.lang.ref.Reference#isEnqued()Nikita Iashchenko2021-02-241-6/+29
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 175135575 Test: m update-api && m droid Change-Id: Iaf4eae82d92d5ec99d5b85589742a6290e9b3158
* | | | Merge "Unhide some methods in java.util.concurrent.CompletableFuture"Nikita Iashchenko2021-02-231-13/+0
|\ \ \ \
| * | | | Unhide some methods in java.util.concurrent.CompletableFutureNikita Iashchenko2021-02-191-13/+0
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Methods are stable and haven't been changed since 9 to 15: * completeAsync(Supplier<? extends T>, Executor) * completeAsync(Supplier<? extends T>) * completeOnTimeout(T, long, TimeUnit) * completedStage(U) * copy() * defaultExecutor() * delayedExecutor(long, TimeUnit, Executor) * delayedExecutor(long, TimeUnit) * failedFuture(Throwable) * failedStage(Throwable) * minimalCompletionStage() * newIncompleteFuture() * orTimeout(long, TimeUnit) Bug: 179233422 Test: m update-api && m droid Change-Id: I824fe64a2ba40e15a8732ba4571a5d81f488e19f
* | / / Fix @deprecated javadoc tags inside {@code} blocks.Nikita Iashchenko2021-02-231-2/+2
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Metalava incorrectly interpreted "@deprecated" javadoc tags inside {@code} blocks and added @Deprecated annotation to class when it shouldn't. The fix is to use the HTML escape sequence for "@" character inside {@code} blocks. Bug: 180965011 Test: m art.module.public.api.stubs.source-update-current-api Change-Id: I54f6de861528c6f611598dd34a4480d9302979cb
* | | Merge "Add API docs for sun.security.pkcs.SecurityInfo"Treehugger Robot2021-02-101-6/+12
|\ \ \
| * | | Add API docs for sun.security.pkcs.SecurityInfoNikita Iashchenko2021-02-101-6/+12
| |/ / | | | | | | | | | | | | | | | Bug: 124232146 Test: m update-api Change-Id: I2507e9e04010206c537b04ef0cb330574a380eda
* | | Merge "Add API docs for sun.misc.Unsafe"Nikita Iashchenko2021-02-101-47/+280
|\ \ \
| * | | Add API docs for sun.misc.UnsafeNikita Iashchenko2021-02-101-47/+280
| |/ / | | | | | | | | | | | | | | | Bug: 124232146 Test: m update-api Change-Id: I8bed60f653941dbf8b7e6666b7045bae2158a69a
* | | Merge "Improve the documentation about the flags not supported in the ↵Treehugger Robot2021-02-101-5/+8
|\ \ \ | | | | | | | | | | | | Pattern class"
| * | | Improve the documentation about the flags not supported in the Pattern classVictor Chang2021-02-101-5/+8
| |/ / | | | | | | | | | | | | | | | Bug: 127922377 Test: Treehugger Change-Id: I0b0911fc223f66515b3f03207d1538b39c1e54c9
* | | Merge "Use 2 new IntraCoreApi provided by ExtendedTimeZone and ↵Treehugger Robot2021-02-102-302/+20
|\ \ \ | | | | | | | | | | | | ExtendedTimeZoneNames"