diff options
author | Andrei-Valentin Onea <andreionea@google.com> | 2021-02-23 14:13:42 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-02-23 14:13:42 +0000 |
commit | 359eca32b32d07f0013f60ebbe1600d985c951fc (patch) | |
tree | 83e9ac5ac97b456444eb75c1c62d52c77980f7f4 /services/Android.bp | |
parent | d9373ecdaf62f8027f7232fc45ac66ca99c68a0d (diff) | |
parent | 6e69e4458755636707205be53b6bddd335e11637 (diff) |
Merge "Create non updatable system server stubs"
Diffstat (limited to 'services/Android.bp')
-rw-r--r-- | services/Android.bp | 54 |
1 files changed, 49 insertions, 5 deletions
diff --git a/services/Android.bp b/services/Android.bp index 8369444d1615..872b1187a2de 100644 --- a/services/Android.bp +++ b/services/Android.bp @@ -22,7 +22,7 @@ filegroup { } filegroup { - name: "services-all-sources", + name: "services-non-updatable-sources", srcs: [ ":services.core-sources", ":services.accessibility-sources", @@ -47,6 +47,14 @@ filegroup { ":services.usb-sources", ":services.voiceinteraction-sources", ":services.wifi-sources", + ], + visibility: ["//visibility:private"], +} + +filegroup { + name: "services-all-sources", + srcs: [ + ":services-non-updatable-sources", ":service-permission-sources", ":service-statsd-sources", ], @@ -127,9 +135,8 @@ filegroup { // API stub // ============================================================= -droidstubs { - name: "services-stubs.sources", - srcs: [":services-all-sources"], +stubs_defaults { + name: "services-stubs-default", installable: false, args: " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.SYSTEM_SERVER\\)" + " --hide-annotation android.annotation.Hide" + @@ -139,7 +146,13 @@ droidstubs { " --hide DeprecationMismatch" + " --hide HiddenTypedefConstant", visibility: ["//visibility:private"], - filter_packages: ["com.android."], + filter_packages: ["com.android."] +} + +droidstubs { + name: "services-stubs.sources", + srcs: [":services-all-sources"], + defaults: ["services-stubs-default"], check_api: { current: { api_file: "api/current.txt", @@ -185,3 +198,34 @@ java_library { dir: "apistubs/android/system-server", }, } + +droidstubs { + name: "services-non-updatable-stubs.sources", + srcs: [":services-non-updatable-sources"], + defaults: ["services-stubs-default"], + check_api: { + current: { + api_file: "api/non-updatable-current.txt", + removed_api_file: "api/non-updatable-removed.txt", + }, + api_lint: { + enabled: true, + new_since: ":android-non-updatable.api.system-server.latest", + baseline_file: "api/non-updatable-lint-baseline.txt", + }, + }, + dists: [ + { + targets: ["sdk", "win_sdk"], + dir: "apistubs/android/system-server/api", + dest: "android-non-updatable.txt", + tag: ".api.txt" + }, + { + targets: ["sdk", "win_sdk"], + dir: "apistubs/android/system-server/api", + dest: "android-non-updatable-removed.tx", + tag: ".removed-api.txt", + }, + ] +}
\ No newline at end of file |