Commit Graph

21875 Commits

Author SHA1 Message Date
Treehugger Robot f1d26b7d78 Merge "Simplify package by using LoadHook instead of mutators" am: 00789cc58b am: c11d79fe52
Change-Id: I6e6a45b00b8f3cbc8967d2474958ae555adf8dc1
2020-05-06 02:53:57 +00:00
Treehugger Robot c11d79fe52 Merge "Simplify package by using LoadHook instead of mutators" am: 00789cc58b
Change-Id: I897cbf1ab00fbb37b9545ffb9395e55b8e137482
2020-05-06 02:43:36 +00:00
Treehugger Robot 00789cc58b Merge "Simplify package by using LoadHook instead of mutators" 2020-05-06 02:28:38 +00:00
Ramy Medhat 7aee9d536d Merge "Add support for the remote execution of metalava actions." am: a1ffd53fe4 am: aacf301e75
Change-Id: I0457d9fd9a931a3b5c0f78b2565feaef60f686ec
2020-05-05 22:16:03 +00:00
Ramy Medhat aacf301e75 Merge "Add support for the remote execution of metalava actions." am: a1ffd53fe4
Change-Id: I6ced680c921be0291b9f8ba76814ff2d6001944a
2020-05-05 22:06:30 +00:00
Ramy Medhat a1ffd53fe4 Merge "Add support for the remote execution of metalava actions." 2020-05-05 21:53:26 +00:00
Chris Gross c81742d9f7 Merge "Allow bootjars in system_ext." am: 7097b0580c am: d82aae1f16
Change-Id: I3f0ce5311c84781799c9edf32e7f8f36993f3701
2020-05-05 21:33:58 +00:00
Chris Gross d82aae1f16 Merge "Allow bootjars in system_ext." am: 7097b0580c
Change-Id: I30c69ed439912603223285d75cfeb6e84690b133
2020-05-05 21:15:42 +00:00
Chris Gross 7097b0580c Merge "Allow bootjars in system_ext." 2020-05-05 21:12:39 +00:00
Yabin Cui b830eae4d2 [automerger skipped] Merge "Switch to clang-r383902 (11.0.1)." into rvc-dev am: d62f376a36 -s ours
am skip reason: Change-Id I0ed740e51b6b39c58842a58eabcf3cdf404e73fa with SHA-1 8ec05ff5f6 is in history

Change-Id: I80269040417341c4b75c1100213cfcb09663efac
2020-05-05 21:04:42 +00:00
Yabin Cui d62f376a36 Merge "Switch to clang-r383902 (11.0.1)." into rvc-dev 2020-05-05 20:36:16 +00:00
Paul Duffin cdfcec98bb Simplify package by using LoadHook instead of mutators
This was not previously possible due to LoadHooks being run after the
module was registered.

Bug: 155462403
Test: m nothing
Change-Id: Ia8383b9d1272bb12c8a83948753a0e4b0d98a650
2020-05-05 20:47:04 +01:00
Treehugger Robot 6b96218953 Merge "Improve error messages when output file is invalid" am: 39298b3598 am: e075b52ecc
Change-Id: I7ea9c4183460c45bcb45ed2eb9ff061f56ca7fb3
2020-05-05 17:43:49 +00:00
Artur Satayev 2234c2cd20 [automerger skipped] Export depsInfo into android package. am: 334b51730a -s ours
am skip reason: Change-Id If0ee967d37425540e69b4ce9304229d9f2cd86bd with SHA-1 872a144dca is in history

Change-Id: I0678ef508bbd49c28ea657600303f05a59274adf
2020-05-05 17:37:43 +00:00
Treehugger Robot e075b52ecc Merge "Improve error messages when output file is invalid" am: 39298b3598
Change-Id: Ie43c3694dc0397727609220fc48183321401621b
2020-05-05 17:27:11 +00:00
Matthew Maurer 96a98eefa2 Merge "Switch rustc to 1.43.0" am: e7fe2527f6 am: 5b40899324
Change-Id: Ifd47eeaa0ad5a522f3ffc10003abe6b6ec0fad62
2020-05-05 17:12:17 +00:00
Treehugger Robot 39298b3598 Merge "Improve error messages when output file is invalid" 2020-05-05 17:11:39 +00:00
Matthew Maurer 5b40899324 Merge "Switch rustc to 1.43.0" am: e7fe2527f6
Change-Id: Ia5cbc505a8602d55a699aa6d9f60e0598e35b9b6
2020-05-05 16:57:16 +00:00
Matthew Maurer e7fe2527f6 Merge "Switch rustc to 1.43.0" 2020-05-05 16:43:47 +00:00
Alexander Smundak ec3022d182 Merge "Canonicalize saved paths, Kythe cannot handle symlinks" am: bd1f870df3 am: 312653b417
Change-Id: I263d0c1bd41bdc6547aa3b4b9f8b8f2ed4a040ba
2020-05-05 16:19:31 +00:00
Artur Satayev 334b51730a Export depsInfo into android package.
Move depsInfo into android for easier sharing with APK code.

Bug: 149622332
Test: m, diff'ing outputs for conscrypt module.
Change-Id: If0ee967d37425540e69b4ce9304229d9f2cd86bd
Merged-In: If0ee967d37425540e69b4ce9304229d9f2cd86bd
Exempt-From-Owner-Approval: cp from aosp
(cherry picked from commit 872a144dca)
2020-05-05 16:19:07 +00:00
Alexander Smundak 312653b417 Merge "Canonicalize saved paths, Kythe cannot handle symlinks" am: bd1f870df3
Change-Id: Ic274bf1c2369c96f3a3fb98c5c40d49d8a76adb4
2020-05-05 16:06:48 +00:00
Alexander Smundak bd1f870df3 Merge "Canonicalize saved paths, Kythe cannot handle symlinks" 2020-05-05 15:54:46 +00:00
Anton Hansson 834ba367c6 [automerger skipped] Merge "Disable "check last" for test api" am: a1910e8488 am: 7425fd91f0 -s ours
am skip reason: Change-Id Ib3f671493f1d230116bec51b884e8072643b10d4 with SHA-1 5ff28e50b8 is in history

Change-Id: I169552f232ad8ad02a0d472474661cee445741aa
2020-05-05 15:49:52 +00:00
Paul Duffin 910e564c08 Merge "Document preArch mutators" am: d0666441b5 am: 300c238638
Change-Id: Ib65a5f8e15812637a68aa6c5e2802ce5e8713f6c
2020-05-05 15:49:45 +00:00
Anton Hansson 7425fd91f0 Merge "Disable "check last" for test api" am: a1910e8488
Change-Id: I2028cec3f3bbd61bbc98c8256e3ab0ef8bf2c536
2020-05-05 15:44:37 +00:00
Anton Hansson a1910e8488 Merge "Disable "check last" for test api" 2020-05-05 15:42:53 +00:00
Paul Duffin 300c238638 Merge "Document preArch mutators" am: d0666441b5
Change-Id: I6fc9b7879edde9b6ba62f979bd13ad01fa4220cd
2020-05-05 15:37:10 +00:00
Paul Duffin d0666441b5 Merge "Document preArch mutators" 2020-05-05 15:24:16 +00:00
Anton Hansson 6478ac17fc Disable "check last" for test api
@TestApi does not have stability requirements, so we shouldn't be
checking its compatibility with the last released version.

This CL removes the expectation that a test-removed.txt is checked in
for each module during finalization.

Bug: 155197156
Test: m (with SDK 30 imported)
Change-Id: Ib3f671493f1d230116bec51b884e8072643b10d4
Merged-In: Ib3f671493f1d230116bec51b884e8072643b10d4
(cherry picked from commit 6bf8e415a50826a378cc58aba87854f52c9f1d32)
2020-05-05 14:52:49 +01:00
Anton Hansson bcc7618f2b [automerger skipped] Merge "Make prebuilt_sdk support module-lib and system-server" am: fb6d57e134 am: 0b0dbf3973 -s ours
am skip reason: Change-Id Idbded6b633315034e669e9c5dd2bd30725d5c76b with SHA-1 0fd1de5f0b is in history

Change-Id: I5c0a6cb6d020e1d41b1775854e55b6fa82eb1752
2020-05-05 13:37:38 +00:00
Anton Hansson 0b0dbf3973 Merge "Make prebuilt_sdk support module-lib and system-server" am: fb6d57e134
Change-Id: Icb10efc4addf7f64b7d80123f32ec3ffc6931fae
2020-05-05 13:25:40 +00:00
satayev 49ad72d4ef Merge changes Ie6568cb8,Ibd521c96 am: 292e7c0721 am: a07f9df5d7
Change-Id: I4dcd1f47b080a71a97db0b10c1ebfc45b8d59bdb
2020-05-05 13:14:14 +00:00
Paul Duffin 712993cf0c Improve error messages when output file is invalid
Bug: 155720025
Test: m nothing
Change-Id: I01eebaad58c5a6950e4419d0a8bf80bd02fed543
2020-05-05 14:12:22 +01:00
Anton Hansson fb6d57e134 Merge "Make prebuilt_sdk support module-lib and system-server" 2020-05-05 13:12:10 +00:00
satayev a07f9df5d7 Merge changes Ie6568cb8,Ibd521c96 am: 292e7c0721
Change-Id: Id5f6fc01db73bc8a64db98a8bef5c8edc7813568
2020-05-05 13:00:26 +00:00
satayev 292e7c0721 Merge changes Ie6568cb8,Ibd521c96
* changes:
  Introduce min_sdk_version to deps info.
  Introduce flat deps info list.
2020-05-05 12:47:48 +00:00
Paul Duffin 96c5b271c0 [automerger skipped] Merge changes I101fa6b0,Ic1a9bb1e into rvc-dev am: 5d5804a81f -s ours
am skip reason: Change-Id I101fa6b03d2530b16e4394a9e466fead48be0ff0 with SHA-1 0c83aba28e is in history

Change-Id: Ie06a72ec6d56cdd3c203f040c448fceb4d896a5a
2020-05-05 11:47:03 +00:00
Paul Duffin 5d5804a81f Merge changes I101fa6b0,Ic1a9bb1e into rvc-dev
* changes:
  Report visibility errors in both check and gather phases
  Reduce duplication in visibility property management
2020-05-05 11:33:11 +00:00
Paul Duffin aa4162e71e Document preArch mutators
Bug: 155295806
Test: m checkbuild
Change-Id: I4cd6647a8707f49363d297a3b3082ef19ba93868
2020-05-05 11:35:43 +01:00
satayev d82f528fa3 Merge "Export depsInfo into android package." am: 57769e469b am: ed11483aa6
Change-Id: I103c2e1f0eada4b1cd516cc1a24625d680627824
2020-05-05 10:30:28 +00:00
Artur Satayev cc78eb08b2 [automerger skipped] Merge "Ensure APEX's Java deps use stable SDKs." into rvc-dev am: b25992b4eb -s ours
am skip reason: Change-Id Ib1acf3073e96fe23c92d292ec0b1a91e2cd408db with SHA-1 8cf899afcc is in history

Change-Id: I57c9f1b1b16ce5e122c796f4dc195f2ad2b6a1d2
2020-05-05 10:17:36 +00:00
Anton Hansson 2ddb61f72c Merge "Treat lint warnings as errors" into rvc-dev am: 3292836210
Change-Id: I54329e9e9bb7689d44526e6453aff0bcbca11c94
2020-05-05 10:17:28 +00:00
satayev ed11483aa6 Merge "Export depsInfo into android package." am: 57769e469b
Change-Id: I70884847b9767c6a06b68d548ff204e1cdeb4458
2020-05-05 10:17:27 +00:00
satayev 57769e469b Merge "Export depsInfo into android package." 2020-05-05 10:00:41 +00:00
Artur Satayev b25992b4eb Merge "Ensure APEX's Java deps use stable SDKs." into rvc-dev 2020-05-05 09:59:34 +00:00
Anton Hansson 3292836210 Merge "Treat lint warnings as errors" into rvc-dev 2020-05-05 09:58:51 +00:00
Paul Duffin b33d21bdaf Report visibility errors in both check and gather phases
Previously, errors that were found when splitting visibility rules were
only reported in the check phase and simply ignored during the gather
phase. That was because every visibility property that was processed in
the gather phase had already been checked in the check phase. However,
that is not strictly true as it has always been possible to add a
mutator between the check and gather phases that creates a module with
invalid visibility properties that will just be ignored. Fortunately,
that has not happened.

A follow up commit will add the capability to create modules after the
defaults have been applied which means the chances of invalid visibility
properties being ignored will increase.

This change makes both phases report any errors they find. It will not
have any impact on existing code as if any errors are reported in the
check phase then the build will exit before the gather phase. It will
prevent any invalid visibility errors from being ignored.

Bug: 155295806
Test: m nothing
Merged-In: I101fa6b03d2530b16e4394a9e466fead48be0ff0
Change-Id: I101fa6b03d2530b16e4394a9e466fead48be0ff0
(cherry picked from commit 0c83aba28e)
2020-05-05 10:34:55 +01:00
Paul Duffin abc9a647a2 Reduce duplication in visibility property management
Adds a couple of new methods to manage visibility property instances to
reduce duplication and encapsulate the implementation slightly better.

The AddVisibilityProperty method is exported as it will be needed by
other packages in follow up commits.

Bug: 155295806
Test: m nothing
Merged-In: Ic1a9bb1e151fc6ae65761344fd210b4e4ba74fbc
Change-Id: Ic1a9bb1e151fc6ae65761344fd210b4e4ba74fbc
(cherry picked from commit 5ec73ecc08)
2020-05-05 10:34:30 +01:00
Treehugger Robot ee3534a961 Merge "Fix build error of sysprop_library in namespace" am: 0a80524957 am: f7d0e1452b
Change-Id: Ibfa4f8c0cfdfa920bf407f0962c7384e48cf2f86
2020-05-05 06:19:24 +00:00