12 Commits

Author SHA1 Message Date
Anton Hansson
fde19f0a02 Don't specify sdk_version for stubs
The default specifies sdk_version correctly, so use
the inherited value to make it easier to make global
changes.

Bug: 144149403
Test: m
Change-Id: Ibc2a1af60f10dd5d270e502011a70e20e7ed934a
2020-04-08 16:21:32 +01:00
Anton Hansson
59292377d4 Revert "Add new class with APIs of varying visibility"
This reverts commit 7d6704e4b07283b893b8ae07f7e92ad46a7f4187.

The experiment has concluded, and we don't want these APIs in
the finalized R api.

Also update the newly-arrived module txt files.

Bug: 149108482
Test: m checkapi
Change-Id: I965111b9a8ad2d3e5849bd9dfdae9c00cc471ce6
2020-03-27 15:36:06 +00:00
Anton Hansson
2cc2287318 Make framework-sdkextensions stubs use the new defaults
Makes it convenient to change all stubs from a central place.

Bug: 149293194
Test: m framework-sdkextensions-stubs{public,system,module_libs_}api
Change-Id: I955ed9b61985f84a7a3a2d18127ddf0e00a73630
2020-03-24 19:51:54 +00:00
Anton Hansson
dc033c35c0 Add individual API tracking files for modules
This adds metalava api tracking generation to the module
stub rules, to make sure we know exactly what API a
particular module stub exports.

Bug: 147768409
Test: m update-api
Exempt-From-Owner-Approval: Approved in master
Change-Id: Iaf2ef5b5751eb208d119ddbc74481239366fe581
Merged-In: Iaf2ef5b5751eb208d119ddbc74481239366fe581
2020-03-18 11:03:12 +00:00
Automerger Merge Worker
729082ca25 Merge "Remove "ro." prefix from sdk extension props" am: 57c17a8136 am: aae4da8fd3 am: e6303aaa3c
Change-Id: I665c25032124610e764915169d06a1ef9950d659
2020-02-08 12:10:23 +00:00
Anton Hansson
df81225539 Remove "ro." prefix from sdk extension props
It needs to be reset during userspace reboot, so isn't
readonly.

Bug: 148668435
Test: presubmit
Change-Id: I3140221d431a1ce97007b5cf36f6d1bc4aa4f771
2020-02-07 19:05:58 +00:00
Anton Hansson
7d6704e4b0 Add new class with APIs of varying visibility
To be used to verify SDK updatability end-to-end.

Bug: 148945438
Test: run SdkExtensionsVerifier
Change-Id: I92e4082496890a1e809671c36bf016a2c52e12d2
2020-02-07 16:44:26 +00:00
Anton Hansson
89c77f53d2 Create all variants of stubs for sdkextensions
Add module_libs_api stubs for sdkextensions, and tweak the naming
of the existing targets to follow a better convention.

Bug: 147768409
Test: m
Change-Id: Ie3ae677aa0334a4263f0899929c9a9657caf7bc2
2020-02-03 15:23:08 +00:00
Anton Hansson
6b82bcc8f0 Add java_api_finder to sdkextensions java code
Used for testing coverage.

Bug: 143937446
Bug: 137191822
Test: m com.android.sdkext
Change-Id: I33e11680d56537cf69608f281374b29321d9db35
2020-01-16 15:36:24 +00:00
Jiyong Park
90247c8a1c Platform shouldn't directly link to jars in APEXes
The non-updatable part of the platform shouldn't directly link to the
boot jars in APEXes. Ensure this by

1) setting the visibility property for the boot jars so that they are
not visible to non-APEX modules and
2) setting the apex_available property so that the boot jars are only
built for the corresponding APEXes, but not for others.

Bug: b/146167933
Bug: b/146218515
Bug: b/147200698
Test: m
Change-Id: I251fabd773bc31f46d572d143c72dd9162f3f0a6
Merged-In: I251fabd773bc31f46d572d143c72dd9162f3f0a6
2020-01-10 15:15:24 +00:00
Anton Hansson
fc33dde932 Add test apex for sdkextensions
Because the tests build for 64-bit but run on 32-bit, this
requires adding a variant of derive_sdk that uses prefer32.

This apex has an SDK level of 45, which is verified in the
test. Also trigger the e2e test on changes to the apex.

Bug: 137191822
Bug: 143937446
Test: atest sdkextensions_e2e_test
Test: m
Change-Id: I88a75b4f438004ed9425e6629666cbbae1ab0882
Merged-In: I88a75b4f438004ed9425e6629666cbbae1ab0882
(cherry picked from commit 0d2e2a076804ac40e78728914e9928c62b76cd99)
2020-01-08 14:18:35 +00:00
Anton Hansson
87743c6d55 Rename sdkext module to sdkextensions
It's a better name.

Bug: 137191822
Test: presubmit
Change-Id: Icc39779d49bf31f911f9f72bd7610e84c5f49466
Merged-In: Icc39779d49bf31f911f9f72bd7610e84c5f49466
(cherry picked from commit 5b97269cffa587d1c1d73163a9cabb0cc8c7ec05)
2020-01-08 11:42:58 +00:00