Commit Graph

22 Commits

Author SHA1 Message Date
Anton Hansson
8f3c2f946b Default-on strict updatability linting for Modules
Modules should be enabling this by now.

Test: errorprone build
Change-Id: I04efcf5b8903c50289809fc8e97d002d81e4754e
2022-04-29 11:40:42 +00:00
Anton Hansson
4404571a65 Merge "Remove StubLibraries.bp" 2022-03-10 17:15:48 +00:00
Paul Hu
ce95bdcc0b Merge "Remove framework-module-defaults visibility to ConnectivityT" 2022-03-07 00:59:15 +00:00
paulhu
63ab31bff7 Remove framework-module-defaults visibility to ConnectivityT
The framework-connectivity-t is using framework-module-defaults
to build sdk library. But framework-connectivity-t is located on
packages/modules/Connectivity not f/b/packages/ConnectivityT
which has the visibility already. So remove the unused directory
from framework-module-defaults visibility.

Bug: 208914639
Test: m
Change-Id: I8187cdfd6c92080a5555e70d9ddea3ebf206fbdc
2022-03-04 10:17:38 +08:00
Anton Hansson
69353afb48 Remove StubLibraries.bp
The new targets defined here ended up not being used for the purpose
I had in mind -- delete them and move the android.jar defaults back
to frameworks/base, where the only user now is.

Test: m
Merged-In: I9612c5c13ea38705ea949cf0836a790eafaf447f
Change-Id: I9612c5c13ea38705ea949cf0836a790eafaf447f
2022-03-03 15:14:59 +00:00
Gurpreet Singh
b6bc4b74a5 Adding apex_defaults to provide common parameters for Q, R, S and T.
This CL is adding the apex_defaults modules to provide common
parameters for the releases corresponding to Q, R, S and T.

These defaults servers as a common place to add properties which should
affect all mainline modules.

Bug: 172589606
Test: USE_RBE=true m
Since there are no runtime changes, successful code build is enough for
testing.

Change-Id: Ib7aeff510712b047df44bc1d16570c5a48d24e11
2022-03-03 13:12:39 +00:00
Anton Hansson
26621734ae Update visibility to impl jars
The "merged" impl jar definition is moving to a new directory.

Bug: 169103987
Test: m nothing
Merged-In: I8eee60259f00fed281f0c579b12e9e99a4f6612e
Change-Id: I8eee60259f00fed281f0c579b12e9e99a4f6612e
(cherry picked from commit 711e0ef744b8c67fbab4815e040ea3726cb284ad)
2022-02-07 08:57:28 +00:00
Anton Hansson
023527e0a9 Remove dead code
This variable was not used.

Test: presubmit
Change-Id: I382c1fe5279450c2f1600328e5e01f435f1572b0
2022-01-17 20:09:57 +00:00
Anton Hansson
ea32306404 Remove duplicate --hide arguments
sdk_library.go already adds these automatically, so they make no
difference.

Test: m
Change-Id: If812d0b840a7142f108ed3e33b96ae5f395481e8
2022-01-17 19:47:03 +00:00
Anton Hansson
5579fed193 Remove references to win_sdk
This goal doesn't exist anymore. The build system automatically
translates it to "sdk".

Test: m win_sdk dist && inspect out/dist/apistubs
Change-Id: Ia54e92c96ef91250351735827ab07e339fe26c15
2022-01-04 09:10:36 +00:00
paulhu
cb20205e85 Make framework-module-defaults visible to ConnectivityT
Bug: 206893064
Test: m
Change-Id: Ia55a98c9a7dbb8b9ae7e148a9ebaaa5423f91f1f
2021-12-10 13:39:42 +08:00
Samiul Islam
4fd10a5a90 Add visibility to test artifacts used for apexd_test
Bug: 187444679
Test: atest ApexTestCases
Test: atest StagedInstallInternalTest
Change-Id: I5f098a7df76a165791e1d72119297ac5b8e315fe
2021-10-13 17:24:32 +01:00
Anton Hansson
ee390f26eb Enhance documentation in mainline stubs
Metalava has a feature to "enhance documentation" which is mostly based
on auto-generating documentation text based on source-retention
annotations. This is turned on automatically for doc stubs, but here
we are enabling it for module's jar stubs as well.

The point of this is to be able to replace the module source code with
module jar stub source code when generating doc stubs -- something
previously not possible because most source-retention annotations are
not present in the jar stubs.

In order for the enhancement to work properly, metalava needs to be
passed the annotation source code rather than the annotations library.
This is because of various javadoc tags controlling what documentation
is generated, e.g. @paramDoc, @returnDoc etc.

Bug: 186197911
Test: manually inspect module stub source code is enhanced
Change-Id: I3fda4cd64e49c1da33fe614c30aafd9fa0dba3b9
2021-09-20 15:11:55 +01:00
Colin Cross
8573dc4a41 Set dist_group: "android" for module java_sdk_libraries
dist_group replaces owner and the default is going to change, set it
to the current default "android" for module java_sdk_libraries.

Bug: 186723288
Test: m checkbuild
Change-Id: Id4d20471a8106718fb1529f5c83c9ca5ffb2a569
2021-06-01 14:29:40 -07:00
Anton Hansson
8eb42eecbf Add build rules for updated SDK 30 android.jars
These build rules are work-in-progress libraries to produce SDK jars
based on SDK 30 but with updated mainline module stubs.

They aren't yet ready to be used, as some of the components need
tweaking (for example, the android-non-updatable prebuilt does not
have resources in it)

Migrate in the android.jar defaults from frameworks/base to avoid taking
a dependency on that repository.

Bug: 184839225
Test: m android_30_modules_current{,_system}
Change-Id: Ie696406c57f437c9c46d727311ff2956b2c8c4ea
2021-04-22 18:39:53 +01:00
Anton Hansson
807c08357a Move module defaults into a dedicated .bp file
I'm adding some other modules in a follow up, and to avoid creating
a large messy bp file, do some re-organization ahead of time.

Bug: 184839225
Bug: 185128417
Test: m
Change-Id: Icd655e680f7138582ddf34fb0e0e78e9bdd7a927
2021-04-14 19:07:15 +01:00
Chris Wailes
0f36225c44 Add libartservice to the visibility for system server defaults
Test: m update-api
Bug: 177273468
Merged-In: Ica7ec614d5463225a3895a1bc7d96cd10a6eed4c
Change-Id: Ica7ec614d5463225a3895a1bc7d96cd10a6eed4c
2021-03-30 12:39:43 -07:00
Anton Hansson
d2cbe05c06 Build system_server jars with system_server api
modules_current is the correct API for bootclasspath module
libraries, but it is unnecessarily restrictive for system server jars.

Test: m
Change-Id: Ic84f4c5edb4444e4c3042e19cada0caca9b16e1d
2021-03-18 10:40:33 +00:00
Bob Badour
f3aa76929d [LSC] Add LOCAL_LICENSE_KINDS to packages/modules/common
Added SPDX-license-identifier-Apache-2.0 to:
  java/com/android/modules/annotation/Android.bp
  sdk/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work

Change-Id: Ia45708593b339ddbc4e7643b9974bf60fd9a4e2d
Merged-in: I2934cb172c2a335a8fa0044219f362d80cb44a0e
2021-02-17 09:46:27 -08:00
Remi NGUYEN VAN
bf85235779 Add visibility for packages/Connectivity
For modularization of connectivity classes, connectivity classes in
frameworks/base are planned to move to packages/modules/Connectivity.
To facilitate the work, classes are first moved to
frameworks/base/packages/Connectivity, so they can then be moved all
together with their history to packages/modules/Connectivity.

Bug: 171540887
Test: m
Change-Id: I78c7adbfe2242b1d3179d07d3cb1f0ff8a203d65
2021-02-17 12:27:42 +09:00
Anton Hansson
ebcfa668d0 Remove reference to whitelist
Test: No
Change-Id: I402c1a2e9f9e0e26124d5fb807dff353136699a5
2021-02-03 18:59:14 +00:00
Anton Hansson
e7a9d09ac5 Move shared module build rules to common repo
This decouples modules from frameworks/base, and this repo also has
a different automerger strategy.

Add //frameworks/base/apex:__subpackages__ to the defaults_visibility
to preserve the existing behavior.

Test: m
Merged-In: I1cf8cbbccf042a8503bf751ab057742cca357585
Change-Id: I1cf8cbbccf042a8503bf751ab057742cca357585
2021-02-03 16:56:06 +00:00