Commit Graph

22143 Commits

Author SHA1 Message Date
Colin Cross
b85063c64a Merge "Revert "enforce sdk_version for JNI libs for updatable APKs"" am: 2bdf0da9e7 am: 6e55eb8f69
Change-Id: I88b97cb5794aa17ebf11903847e0f57f8517f6ad
2020-05-13 01:55:38 +00:00
Colin Cross
6e55eb8f69 Merge "Revert "enforce sdk_version for JNI libs for updatable APKs"" am: 2bdf0da9e7
Change-Id: If534a74d40bb852c8f2ac58670e8468c496c58f5
2020-05-13 01:40:37 +00:00
Colin Cross
2bdf0da9e7 Merge "Revert "enforce sdk_version for JNI libs for updatable APKs"" 2020-05-13 01:26:25 +00:00
Jooyung Han
cc928d9059 Revert "enforce sdk_version for JNI libs for updatable APKs"
This reverts commit 98c4750f39.

Reason for revert: broken builds

Change-Id: Icd3a9e226ff8ff288b682757cded9f43069ebc5e
2020-05-13 01:22:56 +00:00
Treehugger Robot
58461c4a42 Merge "enforce sdk_version for JNI libs for updatable APKs" am: 1852b586bf am: 548c377bee
Change-Id: Icb9cd88d908d28eebd89d25429b64fc30faf60bb
2020-05-13 01:22:49 +00:00
Treehugger Robot
548c377bee Merge "enforce sdk_version for JNI libs for updatable APKs" am: 1852b586bf
Change-Id: I84d7039417a5c518659f044055cf86a85c506576
2020-05-13 01:06:36 +00:00
Treehugger Robot
1852b586bf Merge "enforce sdk_version for JNI libs for updatable APKs" 2020-05-13 00:57:34 +00:00
Treehugger Robot
c589305e8d Merge "Add support for the remote execution of Abi links." am: c81f967ddd am: e1d817f150
Change-Id: I8a276845427bab7ad7f2135672ac39e291944eb9
2020-05-12 22:00:25 +00:00
Treehugger Robot
e1d817f150 Merge "Add support for the remote execution of Abi links." am: c81f967ddd
Change-Id: I39f20b3527c3cdae74b2c73674eba14bf49af752
2020-05-12 21:46:27 +00:00
Treehugger Robot
c81f967ddd Merge "Add support for the remote execution of Abi links." 2020-05-12 21:35:43 +00:00
Stephen Hines
b99c9d52e2 Default to zero-initialization instead of pattern. am: 7871416eec am: a6ca70a374
Change-Id: I79affb3afb753859a38002a1b560d0876f8dfa87
2020-05-12 19:44:24 +00:00
Stephen Hines
a6ca70a374 Default to zero-initialization instead of pattern. am: 7871416eec
Change-Id: Ide57a1b64926a22c23cc2e83552820954aeaaa4a
2020-05-12 19:27:48 +00:00
Paul Duffin
c7042f34b4 [automerger skipped] Defer \n quoting generatedContents until creating the ninja rule am: ece64f6de0 -s ours
am skip reason: Change-Id I768c3b96ed08a3daf251730e2a10d9d72338c49a with SHA-1 1110827b3f is in history

Change-Id: Iaf02254b48dd9140e0a93a6fff1d8726799d01eb
2020-05-12 12:42:19 +00:00
Stephen Hines
7871416eec Default to zero-initialization instead of pattern.
Bug: http://b/154169005
Test: Built blueline and ran some CTS tests.
Change-Id: Ie5e45619096cdcd0b52d01ece65e7f0233b2a3c8
2020-05-12 01:10:38 -07:00
Paul Duffin
2649cdf267 [automerger skipped] Merge changes I4e1861ea,Ic99b7333 into rvc-dev am: ddbb19648e -s ours
am skip reason: Change-Id I4e1861ea67f441f2948a0d7d7053ab0b1169955f with SHA-1 c878250d3f is in history

Change-Id: Iaa32a369f0fa11be6d712a2fa6782e602ab2f14f
2020-05-12 07:18:23 +00:00
Paul Duffin
ece64f6de0 Defer \n quoting generatedContents until creating the ninja rule
Previously, when writing to generatedContents \n characters were
quoted (replaced with \\n) so as to allow them to be preserved through
ninja/rsp/bash and were unquoted (replaced \\n with \n) just before
redirecting to the output file. That meant that any code which wanted
to access the contents for other purposes, e.g. testing had to unquote
\\n.

This change moves the quoting to be part of the code that generates the
ninja rule which simplifies any other code that has to access the
contents.

Without quoting the generated Android.bp files are not formatted
properly, are all on one line and completely unreadable.

Bug: 156286550
Test: m art-module-sdk and check generated Android.bp file to make sure
      it is properly formatted.
Merged-In: I768c3b96ed08a3daf251730e2a10d9d72338c49a
Change-Id: I768c3b96ed08a3daf251730e2a10d9d72338c49a
(cherry picked from commit 1110827b3f)
2020-05-12 08:04:57 +01:00
Paul Duffin
ddbb19648e Merge changes I4e1861ea,Ic99b7333 into rvc-dev
* changes:
  java_sdk_library: Path extraction from deps depend on tag
  Expand SystemApi annotation for generating system api
2020-05-12 07:02:44 +00:00
Treehugger Robot
7d053060f1 Merge "Add test_mainline_modules to the auto-gen test config(GTest only)." am: b67b9a416e am: 4fd48ce4a6
Change-Id: I0c33299fe24ce901c3accd3cf3b79cf6b4d80ca7
2020-05-12 05:04:29 +00:00
Treehugger Robot
4fd48ce4a6 Merge "Add test_mainline_modules to the auto-gen test config(GTest only)." am: b67b9a416e
Change-Id: I71b08ec0614073ce4642762514228cdaf5a75bdf
2020-05-12 04:46:50 +00:00
Treehugger Robot
c6e48b7dad Merge "Add sourcepath to inputs of remoteable metalava action." am: e72da7f63c am: 0452efbd16
Change-Id: Ib78a89ee437500a6f347d0c746bb56fae97e4a15
2020-05-12 04:41:37 +00:00
Treehugger Robot
b67b9a416e Merge "Add test_mainline_modules to the auto-gen test config(GTest only)." 2020-05-12 04:35:17 +00:00
Treehugger Robot
0452efbd16 Merge "Add sourcepath to inputs of remoteable metalava action." am: e72da7f63c
Change-Id: Ifd64c3270f7acc2f26644d6b35cc748b6e090cf8
2020-05-12 04:27:58 +00:00
Treehugger Robot
e72da7f63c Merge "Add sourcepath to inputs of remoteable metalava action." 2020-05-12 04:15:16 +00:00
Yo Chiang
adc834ae1b Merge "Register ALL_MODULES subvars with my_register_name" am: bcaea49d24 am: a182196375
Change-Id: I6aee735b3dbcd7dd2ba221e65baf6cd9a37bc1f9
2020-05-12 03:29:57 +00:00
Yo Chiang
a182196375 Merge "Register ALL_MODULES subvars with my_register_name" am: bcaea49d24
Change-Id: Ia25dc5a0bcdc57c7df7bc976d6d20e064bf27794
2020-05-12 03:18:59 +00:00
Yo Chiang
bcaea49d24 Merge "Register ALL_MODULES subvars with my_register_name" 2020-05-12 03:09:20 +00:00
Treehugger Robot
94875a1f5a Merge "Defer \n quoting generatedContents until creating the ninja rule" am: 0a5dae117b am: 2edcea914c
Change-Id: I9464f946ff3ecddeb17e9c9f0aaf86bf1282dcbc
2020-05-12 03:06:44 +00:00
Treehugger Robot
2edcea914c Merge "Defer \n quoting generatedContents until creating the ninja rule" am: 0a5dae117b
Change-Id: I7ef8e56f3d0b6bad7392c21121f6a22084c14271
2020-05-12 02:54:40 +00:00
Treehugger Robot
0a5dae117b Merge "Defer \n quoting generatedContents until creating the ninja rule" 2020-05-12 02:44:38 +00:00
Artur Satayev
94a89b1e3a [automerger skipped] Merge "Introduce app -deps-info." into rvc-dev am: 815476347a -s ours
am skip reason: Change-Id Ic6d94df3b7b4be5afe328a0abe768beee1a58362 with SHA-1 1111b84822 is in history

Change-Id: Id40b5fd3ff30b45a3c6259a74249146efa66419e
2020-05-11 23:27:57 +00:00
Artur Satayev
815476347a Merge "Introduce app -deps-info." into rvc-dev 2020-05-11 23:14:47 +00:00
Paul Duffin
5fb8213db6 java_sdk_library: Path extraction from deps depend on tag
Previously, the information that the java_sdk_library extracted from
its child dependencies was determined purely by the type of the
dependency and whether it had a tag of the appropriate type. The actual
tag itself was ignored. That worked but was a little fragile as it
relied on there being no overlap between the types of the dependencies
or if there was overlap on the order in which the dependencies were
processed and the dependency types were checked to ensure that the
correct information was collected.

This change makes the information that is extracted dependent on the
tag that is used. That makes the behavior much more robust and also
simplifes the follow up change which may get the stubs source and API
files from separate droidstubs invocations.

Changes:
* A func field is added to the scopeDependencyTag that is supplied with
  a dependency from which to extract the information and scopePaths
  into which the information will be stored.
* Each scopeDependencyTag instance supplies its own function.
* Various items are renamed to more closely reflect what they actually
  do. e.g. the apiFileTag is renamed to stubsSourceAndApiTag field
  because if provides access to both api file and stubs source.

Test: m checkapi
Bug: 155164730
Merged-In: I4e1861ea67f441f2948a0d7d7053ab0b1169955f
Change-Id: I4e1861ea67f441f2948a0d7d7053ab0b1169955f
(cherry picked from commit c878250d3f)
2020-05-11 23:49:05 +01:00
Paul Duffin
991f262697 Expand SystemApi annotation for generating system api
Metalava apparently normalizes the SystemApi annotation that was
previously used to the form that this change uses so this is
effectively a no-op. However, this does make this code more
self-consistent and also matches the form that is used in the framework
defaults for the mainline modules.

Test: m checkapi
Bug: 155164730
Merged-In: Ic99b7333730ed8b918d8af72ae7bd6a851c2093a
Change-Id: Ic99b7333730ed8b918d8af72ae7bd6a851c2093a
(cherry picked from commit 0d543640d5)
2020-05-11 23:48:52 +01:00
Paul Duffin
1110827b3f Defer \n quoting generatedContents until creating the ninja rule
Previously, when writing to generatedContents \n characters were
quoted (replaced with \\n) so as to allow them to be preserved through
ninja/rsp/bash and were unquoted (replaced \\n with \n) just before
redirecting to the output file. That meant that any code which wanted
to access the contents for other purposes, e.g. testing had to unquote
\\n.

This change moves the quoting to be part of the code that generates the
ninja rule which simplifies any other code that has to access the
contents.

Without quoting the generated Android.bp files are not formatted
properly, are all on one line and completely unreadable.

Bug: 156286550
Test: m art-module-sdk and check generated Android.bp file to make sure
      it is properly formatted.
Change-Id: I768c3b96ed08a3daf251730e2a10d9d72338c49a
2020-05-11 22:59:25 +01:00
Ramy Medhat
0a5c8dea01 Add sourcepath to inputs of remoteable metalava action.
Test: presubmit
Change-Id: Idd77abddac0a676302226eb62883c74d5d7489af
2020-05-11 16:49:37 -04:00
Liz Kammer
c083f30dde Merge "Add lineage file to deps for signapk." into rvc-dev am: 12f5ef4005
Change-Id: Ifb5689eab7f291148ab5611b12fe040520ca3037
2020-05-11 19:38:31 +00:00
Anton Hansson
71d2ffd153 Merge "Fix API lint copy command" am: 432f75c61a am: d39d5a6935
Change-Id: I3ee57adeb11e10a8d19977c78703769eaa2e594c
2020-05-11 19:30:42 +00:00
satayev
5849e9512d Merge "Introduce app -deps-info." am: ecea813997 am: 72d9fc732d
Change-Id: Ic0dc82dc5293155d4fe628c0ab03ec9a78e94f1c
2020-05-11 19:30:34 +00:00
Liz Kammer
12f5ef4005 Merge "Add lineage file to deps for signapk." into rvc-dev 2020-05-11 19:30:31 +00:00
Anton Hansson
d39d5a6935 Merge "Fix API lint copy command" am: 432f75c61a
Change-Id: I7520caac894887febbcb3266f9240d2079e9d4f0
2020-05-11 18:00:25 +00:00
satayev
72d9fc732d Merge "Introduce app -deps-info." am: ecea813997
Change-Id: I6aac52766172a903681b3fea7c32950d5ffa3f8f
2020-05-11 18:00:18 +00:00
Anton Hansson
432f75c61a Merge "Fix API lint copy command" 2020-05-11 17:54:08 +00:00
Artur Satayev
d9b503aa85 Introduce app -deps-info.
Similar to APEX-deps-info, app deps info produces two lists with
transitive dependencies.

Bug: 149622332
Test: m NetworkStack-deps-info
Change-Id: Ic6d94df3b7b4be5afe328a0abe768beee1a58362
Merged-In: Ic6d94df3b7b4be5afe328a0abe768beee1a58362
Exempt-From-Owner-Approval: cp from aosp
(cherry picked from commit 1111b84822)
2020-05-11 18:03:07 +01:00
satayev
ecea813997 Merge "Introduce app -deps-info." 2020-05-11 16:51:30 +00:00
Artur Satayev
1111b84822 Introduce app -deps-info.
Similar to APEX-deps-info, app deps info produces two lists with
transitive dependencies.

Bug: 149622332
Test: m NetworkStack-deps-info
Change-Id: Ic6d94df3b7b4be5afe328a0abe768beee1a58362
Exempt-From-Owner-Approval: previous patch approved.
2020-05-11 16:51:06 +00:00
Treehugger Robot
26aaea8db7 Merge "java_sdk_library: Path extraction from deps depend on tag" am: a586fecea6 am: 122ed148ec
Change-Id: If7603702de30a3103aabb76b3b939c832f3520df
2020-05-11 15:05:03 +00:00
Treehugger Robot
122ed148ec Merge "java_sdk_library: Path extraction from deps depend on tag" am: a586fecea6
Change-Id: I0026c2f74a14b82d842974d6028dd7a5fd9e707d
2020-05-11 14:58:04 +00:00
Treehugger Robot
a586fecea6 Merge "java_sdk_library: Path extraction from deps depend on tag" 2020-05-11 14:47:21 +00:00
Treehugger Robot
ad8b9a938c Merge "Expand SystemApi annotation for generating system api" am: d2e4822774 am: b98fe19829
Change-Id: Ic2aef0610a58bb361ef37cca2668f4396182b630
2020-05-11 14:45:31 +00:00
Anton Hansson
3361a294c0 Fix API lint copy command
The space after the backtick prevents it working when copy-pasting it
into the shell.

Test: create lint error => m => cp/pasted command runs successfully
Change-Id: I42b8b60d01dcaed34dbde0390eb1691d656a32cf
2020-05-11 15:40:30 +01:00