Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_base_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_base_license"], |
| 8 | } |
| 9 | |
Anton Hansson | e3d44e8 | 2021-04-12 18:14:30 +0100 | [diff] [blame] | 10 | // Defaults for platform code that runs inside system_server |
| 11 | java_defaults { |
| 12 | name: "platform_service_defaults", |
| 13 | plugins: ["error_prone_android_framework"], |
| 14 | errorprone: { |
| 15 | javacflags: [ |
Anton Hansson | e3d44e8 | 2021-04-12 18:14:30 +0100 | [diff] [blame] | 16 | "-Xep:AndroidFrameworkCompatChange:ERROR", |
| 17 | // "-Xep:AndroidFrameworkUid:ERROR", |
Michael Wright | 010aa30 | 2022-02-04 17:12:47 +0000 | [diff] [blame] | 18 | "-Xep:SelfEquals:ERROR", |
Michael Wright | 2e7197c | 2022-02-04 19:00:44 +0000 | [diff] [blame] | 19 | "-Xep:NullTernary:ERROR", |
Michael Wright | 5c97595 | 2022-02-04 20:08:57 +0000 | [diff] [blame] | 20 | "-Xep:TryFailThrowable:ERROR", |
Michael Wright | 400ea88 | 2022-02-04 20:45:04 +0000 | [diff] [blame] | 21 | "-Xep:HashtableContains:ERROR", |
Michael Wright | c92adae | 2022-02-04 20:49:14 +0000 | [diff] [blame] | 22 | "-Xep:FormatString:ERROR", |
Michael Wright | 16451b0 | 2022-02-04 20:59:26 +0000 | [diff] [blame] | 23 | "-Xep:ArrayHashCode:ERROR", |
Michael Wright | 573d22a | 2022-02-04 21:02:33 +0000 | [diff] [blame] | 24 | "-Xep:SelfAssignment:ERROR", |
Michael Wright | 3cc84d0 | 2022-02-04 21:05:45 +0000 | [diff] [blame] | 25 | "-Xep:ArrayEquals:ERROR", |
Michael Wright | 684f5a5 | 2022-02-04 21:41:04 +0000 | [diff] [blame] | 26 | "-Xep:IdentityBinaryExpression:ERROR", |
Anton Hansson | e3d44e8 | 2021-04-12 18:14:30 +0100 | [diff] [blame] | 27 | // NOTE: only enable to generate local patchfiles |
| 28 | // "-XepPatchChecks:refaster:frameworks/base/errorprone/refaster/EfficientXml.java.refaster", |
| 29 | // "-XepPatchLocation:/tmp/refaster/", |
| 30 | ], |
| 31 | }, |
Azhara Assanova | a131ad9 | 2021-06-11 09:53:48 +0000 | [diff] [blame] | 32 | lint: { |
| 33 | extra_check_modules: ["AndroidFrameworkLintChecker"], |
| 34 | }, |
Anton Hansson | e3d44e8 | 2021-04-12 18:14:30 +0100 | [diff] [blame] | 35 | } |
| 36 | |
Jared Duke | fb64d44 | 2023-09-22 16:49:22 +0000 | [diff] [blame] | 37 | // Config to control optimizing and shrinking the services target using R8. |
| 38 | // Set via `export SYSTEM_OPTIMIZE_JAVA=true|false`, or explicitly in Make via the |
Jared Duke | 4514bdf | 2021-11-18 13:18:21 -0800 | [diff] [blame] | 39 | // `SOONG_CONFIG_ANDROID_SYSTEM_OPTIMIZE_JAVA` variable. |
Jared Duke | 4514bdf | 2021-11-18 13:18:21 -0800 | [diff] [blame] | 40 | soong_config_module_type { |
| 41 | name: "system_optimized_java_defaults", |
| 42 | module_type: "java_defaults", |
| 43 | config_namespace: "ANDROID", |
tyiu | 39a05ed | 2023-10-04 17:54:32 +0000 | [diff] [blame] | 44 | bool_variables: [ |
| 45 | "SYSTEM_OPTIMIZE_JAVA", |
| 46 | "FULL_SYSTEM_OPTIMIZE_JAVA", |
| 47 | ], |
Jared Duke | fb64d44 | 2023-09-22 16:49:22 +0000 | [diff] [blame] | 48 | properties: [ |
| 49 | "optimize", |
| 50 | "dxflags", |
| 51 | ], |
Jared Duke | 4514bdf | 2021-11-18 13:18:21 -0800 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | system_optimized_java_defaults { |
| 55 | name: "services_java_defaults", |
| 56 | soong_config_variables: { |
| 57 | SYSTEM_OPTIMIZE_JAVA: { |
| 58 | optimize: { |
| 59 | enabled: true, |
Jared Duke | ea03d10 | 2022-02-15 13:57:06 -0800 | [diff] [blame] | 60 | // TODO(b/210510433): Enable optimizations after improving |
| 61 | // retracing infra. |
tyiu | 39a05ed | 2023-10-04 17:54:32 +0000 | [diff] [blame] | 62 | // See also FULL_SYSTEM_OPTIMIZE_JAVA. |
Jared Duke | ea03d10 | 2022-02-15 13:57:06 -0800 | [diff] [blame] | 63 | optimize: false, |
Jared Duke | 4514bdf | 2021-11-18 13:18:21 -0800 | [diff] [blame] | 64 | shrink: true, |
Jared Duke | 06689ad | 2022-09-07 12:24:36 -0700 | [diff] [blame] | 65 | ignore_warnings: false, |
Jared Duke | 76919e8 | 2023-10-25 21:46:36 +0000 | [diff] [blame] | 66 | proguard_compatibility: false, |
Jared Duke | 6cf7fbd | 2023-05-19 20:21:36 +0000 | [diff] [blame] | 67 | proguard_flags_files: [ |
| 68 | "proguard.flags", |
| 69 | // Ensure classes referenced in the framework-res manifest |
| 70 | // and implemented in system_server are kept. |
| 71 | ":framework-res{.aapt.proguardOptionsFile}", |
| 72 | ], |
Jared Duke | 4514bdf | 2021-11-18 13:18:21 -0800 | [diff] [blame] | 73 | }, |
Hai Zhang | 3070d7c | 2022-11-11 21:48:44 -0800 | [diff] [blame] | 74 | conditions_default: { |
| 75 | optimize: { |
| 76 | enabled: true, |
| 77 | optimize: false, |
| 78 | shrink: true, |
| 79 | ignore_warnings: false, |
| 80 | // Note that this proguard config is very conservative, only shrinking the |
| 81 | // permission subpackage to prune unused jarjar'ed Kotlin dependencies. |
| 82 | proguard_flags_files: ["proguard_permission.flags"], |
| 83 | }, |
Jared Duke | fb64d44 | 2023-09-22 16:49:22 +0000 | [diff] [blame] | 84 | // Explicitly configure R8 to preserve debug info, as this path should |
| 85 | // really only allow stripping of permission-specific code and deps. |
| 86 | dxflags: ["--debug"], |
Hai Zhang | 3070d7c | 2022-11-11 21:48:44 -0800 | [diff] [blame] | 87 | }, |
Jared Duke | 4514bdf | 2021-11-18 13:18:21 -0800 | [diff] [blame] | 88 | }, |
tyiu | 39a05ed | 2023-10-04 17:54:32 +0000 | [diff] [blame] | 89 | // Allow form factors to opt-in full system java optimization |
| 90 | FULL_SYSTEM_OPTIMIZE_JAVA: { |
| 91 | optimize: { |
| 92 | optimize: true, |
| 93 | }, |
| 94 | }, |
Jared Duke | 4514bdf | 2021-11-18 13:18:21 -0800 | [diff] [blame] | 95 | }, |
| 96 | } |
| 97 | |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 98 | filegroup { |
| 99 | name: "services-main-sources", |
Colin Cross | 33b78ef | 2021-03-26 10:31:25 -0700 | [diff] [blame] | 100 | srcs: [ |
| 101 | "java/**/*.java", |
| 102 | "java/**/package.html", |
| 103 | ], |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 104 | path: "java", |
| 105 | visibility: ["//visibility:private"], |
| 106 | } |
| 107 | |
| 108 | filegroup { |
Andrei Onea | 4311470 | 2021-02-10 20:53:12 +0000 | [diff] [blame] | 109 | name: "services-non-updatable-sources", |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 110 | srcs: [ |
| 111 | ":services.core-sources", |
Hongwei Wang | cdcb68d | 2020-11-23 12:48:05 -0800 | [diff] [blame] | 112 | ":services.core-sources-am-wm", |
Colin Cross | 33b78ef | 2021-03-26 10:31:25 -0700 | [diff] [blame] | 113 | "core/java/com/android/server/am/package.html", |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 114 | ":services.accessibility-sources", |
| 115 | ":services.appprediction-sources", |
| 116 | ":services.appwidget-sources", |
| 117 | ":services.autofill-sources", |
| 118 | ":services.backup-sources", |
| 119 | ":services.companion-sources", |
| 120 | ":services.contentcapture-sources", |
| 121 | ":services.contentsuggestions-sources", |
| 122 | ":services.coverage-sources", |
Helen Qin | 20ff355 | 2022-09-13 15:47:24 +0000 | [diff] [blame] | 123 | ":services.credentials-sources", |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 124 | ":services.devicepolicy-sources", |
| 125 | ":services.midi-sources", |
Nick Moukhine | cf47bdd | 2020-08-19 16:29:18 +0200 | [diff] [blame] | 126 | ":services.musicsearch-sources", |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 127 | ":services.net-sources", |
Hai Zhang | 3070d7c | 2022-11-11 21:48:44 -0800 | [diff] [blame] | 128 | ":services.permission-sources", |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 129 | ":services.print-sources", |
Yi Kong | 86f8593 | 2020-06-29 20:03:55 +0800 | [diff] [blame] | 130 | ":services.profcollect-sources", |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 131 | ":services.restrictions-sources", |
Hyunyoung Song | 21e60a9 | 2020-11-20 20:27:54 -0800 | [diff] [blame] | 132 | ":services.searchui-sources", |
Shashwat Razdan | d33e8c3 | 2021-01-29 13:02:19 -0800 | [diff] [blame] | 133 | ":services.smartspace-sources", |
Atneya Nair | 0d4726f | 2023-04-07 15:36:29 -0700 | [diff] [blame] | 134 | ":services.soundtrigger-sources", |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 135 | ":services.systemcaptions-sources", |
Adam He | 2653f23 | 2020-11-30 18:23:20 -0800 | [diff] [blame] | 136 | ":services.translation-sources", |
Alex Agranovich | 50c987f | 2021-02-18 09:19:33 +0000 | [diff] [blame] | 137 | ":services.texttospeech-sources", |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 138 | ":services.usage-sources", |
| 139 | ":services.usb-sources", |
| 140 | ":services.voiceinteraction-sources", |
Sharon Su | a5afd37 | 2022-02-01 22:09:36 +0000 | [diff] [blame] | 141 | ":services.wallpapereffectsgeneration-sources", |
Roshan Pius | ea33fb9 | 2020-02-20 12:49:45 -0800 | [diff] [blame] | 142 | ":services.wifi-sources", |
TYM Tsai | abf72bd | 2023-11-21 07:12:21 +0000 | [diff] [blame] | 143 | ":framework-pm-common-shared-srcs", |
Andrei Onea | 4311470 | 2021-02-10 20:53:12 +0000 | [diff] [blame] | 144 | ], |
| 145 | visibility: ["//visibility:private"], |
| 146 | } |
| 147 | |
Felipe Leme | fec71a7 | 2021-04-01 23:32:53 -0700 | [diff] [blame] | 148 | java_library { |
| 149 | name: "Slogf", |
| 150 | srcs: ["core/java/com/android/server/utils/Slogf.java"], |
| 151 | } |
| 152 | |
“Shadman | ae41b3a | 2024-01-31 04:30:31 +0000 | [diff] [blame] | 153 | soong_config_module_type { |
| 154 | name: "art_profile_java_defaults", |
| 155 | module_type: "java_defaults", |
| 156 | config_namespace: "art_profile", |
| 157 | variables: ["services_profile_path"], |
| 158 | properties: ["dex_preopt"], |
| 159 | } |
| 160 | |
| 161 | soong_config_string_variable { |
| 162 | name: "services_profile_path", |
| 163 | values: ["art_wear_profile"], |
| 164 | } |
| 165 | |
| 166 | art_profile_java_defaults { |
| 167 | name: "art_profile_java_defaults", |
| 168 | soong_config_variables: { |
| 169 | services_profile_path: { |
| 170 | art_wear_profile: { |
| 171 | dex_preopt: { |
| 172 | app_image: true, |
| 173 | profile: "art-wear-profile", |
| 174 | }, |
| 175 | }, |
| 176 | conditions_default: { |
| 177 | dex_preopt: { |
| 178 | app_image: true, |
| 179 | profile: "art-profile", |
| 180 | }, |
| 181 | }, |
| 182 | }, |
| 183 | }, |
| 184 | } |
| 185 | |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 186 | // merge all required services into one jar |
| 187 | // ============================================================ |
| 188 | java_library { |
| 189 | name: "services", |
“Shadman | ae41b3a | 2024-01-31 04:30:31 +0000 | [diff] [blame] | 190 | defaults: [ |
| 191 | "services_java_defaults", |
| 192 | "art_profile_java_defaults", |
| 193 | ], |
Colin Cross | a12c0f5 | 2018-06-27 11:00:11 -0700 | [diff] [blame] | 194 | installable: true, |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 195 | |
Hai Zhang | 3070d7c | 2022-11-11 21:48:44 -0800 | [diff] [blame] | 196 | exclude_kotlinc_generated_files: true, |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 197 | |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 198 | srcs: [":services-main-sources"], |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 199 | |
| 200 | // The convention is to name each service module 'services.$(module_name)' |
| 201 | static_libs: [ |
Colin Cross | 4c0b06b | 2017-12-12 19:43:04 -0800 | [diff] [blame] | 202 | "services.core", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 203 | "services.accessibility", |
Sunny Goyal | 54e9134 | 2018-11-14 11:59:02 -0800 | [diff] [blame] | 204 | "services.appprediction", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 205 | "services.appwidget", |
| 206 | "services.autofill", |
| 207 | "services.backup", |
| 208 | "services.companion", |
Felipe Leme | 749b889 | 2018-12-03 16:30:30 -0800 | [diff] [blame] | 209 | "services.contentcapture", |
Winson Chung | 3fb0f25 | 2019-01-08 17:41:55 -0800 | [diff] [blame] | 210 | "services.contentsuggestions", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 211 | "services.coverage", |
Helen Qin | 20ff355 | 2022-09-13 15:47:24 +0000 | [diff] [blame] | 212 | "services.credentials", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 213 | "services.devicepolicy", |
Dave Mankoff | 0c72a32 | 2023-07-12 19:32:11 +0000 | [diff] [blame] | 214 | "services.flags", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 215 | "services.midi", |
Nick Moukhine | cf47bdd | 2020-08-19 16:29:18 +0200 | [diff] [blame] | 216 | "services.musicsearch", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 217 | "services.net", |
Danning Chen | 20b32ed | 2019-12-18 16:52:03 -0800 | [diff] [blame] | 218 | "services.people", |
Hai Zhang | 3070d7c | 2022-11-11 21:48:44 -0800 | [diff] [blame] | 219 | "services.permission", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 220 | "services.print", |
Yi Kong | 86f8593 | 2020-06-29 20:03:55 +0800 | [diff] [blame] | 221 | "services.profcollect", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 222 | "services.restrictions", |
Hyunyoung Song | 21e60a9 | 2020-11-20 20:27:54 -0800 | [diff] [blame] | 223 | "services.searchui", |
Shashwat Razdan | d33e8c3 | 2021-01-29 13:02:19 -0800 | [diff] [blame] | 224 | "services.smartspace", |
Atneya Nair | 0d4726f | 2023-04-07 15:36:29 -0700 | [diff] [blame] | 225 | "services.soundtrigger", |
Robert Berry | e14120e | 2019-03-18 16:33:42 -0400 | [diff] [blame] | 226 | "services.systemcaptions", |
Adam He | 2653f23 | 2020-11-30 18:23:20 -0800 | [diff] [blame] | 227 | "services.translation", |
Alex Agranovich | 50c987f | 2021-02-18 09:19:33 +0000 | [diff] [blame] | 228 | "services.texttospeech", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 229 | "services.usage", |
| 230 | "services.usb", |
| 231 | "services.voiceinteraction", |
Sharon Su | a5afd37 | 2022-02-01 22:09:36 +0000 | [diff] [blame] | 232 | "services.wallpapereffectsgeneration", |
Roshan Pius | ea33fb9 | 2020-02-20 12:49:45 -0800 | [diff] [blame] | 233 | "services.wifi", |
Dmitri Plotnikov | 4eaac3a | 2020-05-04 17:00:16 -0700 | [diff] [blame] | 234 | "service-blobstore", |
| 235 | "service-jobscheduler", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 236 | "android.hidl.base-V1.0-java", |
| 237 | ], |
| 238 | |
| 239 | libs: [ |
| 240 | "android.hidl.manager-V1.0-java", |
Paul Duffin | abebc6a | 2020-05-31 11:35:50 +0100 | [diff] [blame] | 241 | "framework-tethering.stubs.module_lib", |
Chris Wailes | 09724a7 | 2021-02-08 10:00:13 -0800 | [diff] [blame] | 242 | "service-art.stubs.system_server", |
Jared Duke | 06689ad | 2022-09-07 12:24:36 -0700 | [diff] [blame] | 243 | "service-permission.stubs.system_server", |
Seth Moore | 0277b66 | 2022-10-20 14:14:39 -0700 | [diff] [blame] | 244 | "service-rkp.stubs.system_server", |
Jared Duke | 06689ad | 2022-09-07 12:24:36 -0700 | [diff] [blame] | 245 | "service-sdksandbox.stubs.system_server", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 246 | ], |
| 247 | |
Brian Julian | eba77a8 | 2023-02-01 14:13:45 +0000 | [diff] [blame] | 248 | vintf_fragments: [ |
| 249 | "manifest_services.xml", |
| 250 | ], |
| 251 | |
Raphael Kim | 8270113 | 2023-02-15 22:40:07 -0800 | [diff] [blame] | 252 | required: [ |
| 253 | "libukey2_jni_shared", |
| 254 | ], |
Cole Faust | 596fe0f | 2024-01-04 09:37:47 -0800 | [diff] [blame] | 255 | lint: { |
| 256 | baseline_filename: "lint-baseline.xml", |
| 257 | }, |
Raphael Kim | 8270113 | 2023-02-15 22:40:07 -0800 | [diff] [blame] | 258 | |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 259 | // Uncomment to enable output of certain warnings (deprecated, unchecked) |
| 260 | //javacflags: ["-Xlint"], |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 261 | } |
| 262 | |
Colin Cross | 3a7d899 | 2017-12-05 17:33:58 -0800 | [diff] [blame] | 263 | // native library |
| 264 | // ============================================================= |
| 265 | |
| 266 | cc_library_shared { |
| 267 | name: "libandroid_servers", |
| 268 | defaults: ["libservices.core-libs"], |
| 269 | whole_static_libs: ["libservices.core"], |
| 270 | } |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 271 | |
| 272 | platform_compat_config { |
| 273 | name: "services-platform-compat-config", |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 274 | src: ":services", |
| 275 | } |
Ulya Trafimovich | 0d1b063d6 | 2019-12-03 11:59:51 +0000 | [diff] [blame] | 276 | |
| 277 | filegroup { |
| 278 | name: "art-profile", |
| 279 | srcs: ["art-profile"], |
| 280 | } |
Jiyong Park | abc72e4 | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 281 | |
| 282 | // API stub |
| 283 | // ============================================================= |
| 284 | |
Andrei Onea | 4311470 | 2021-02-10 20:53:12 +0000 | [diff] [blame] | 285 | stubs_defaults { |
| 286 | name: "services-stubs-default", |
Jiyong Park | abc72e4 | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 287 | installable: false, |
Anton Hansson | 84a0e71 | 2023-10-23 09:17:45 +0000 | [diff] [blame] | 288 | flags: [ |
| 289 | "--show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.SYSTEM_SERVER\\)", |
| 290 | "--hide-annotation android.annotation.Hide", |
| 291 | "--hide InternalClasses", // com.android.* classes are okay in this interface |
Anton Hansson | f74130f | 2020-02-19 18:29:12 +0000 | [diff] [blame] | 292 | // TODO: remove the --hide options below |
Anton Hansson | 84a0e71 | 2023-10-23 09:17:45 +0000 | [diff] [blame] | 293 | "--hide DeprecationMismatch", |
| 294 | "--hide HiddenTypedefConstant", |
| 295 | ], |
Andrei Onea | faa271a | 2021-03-17 13:32:51 +0000 | [diff] [blame] | 296 | visibility: ["//frameworks/base:__subpackages__"], |
Felipe Leme | d3895b6 | 2021-03-24 16:55:27 -0700 | [diff] [blame] | 297 | filter_packages: ["com.android."], |
Andrei Onea | 4311470 | 2021-02-10 20:53:12 +0000 | [diff] [blame] | 298 | } |
| 299 | |
| 300 | droidstubs { |
Andrei Onea | faa271a | 2021-03-17 13:32:51 +0000 | [diff] [blame] | 301 | name: "services-non-updatable-stubs", |
Andrei Onea | 4311470 | 2021-02-10 20:53:12 +0000 | [diff] [blame] | 302 | srcs: [":services-non-updatable-sources"], |
| 303 | defaults: ["services-stubs-default"], |
| 304 | check_api: { |
| 305 | current: { |
Andrei Onea | 8168dc2 | 2021-04-30 12:52:36 +0000 | [diff] [blame] | 306 | api_file: "api/current.txt", |
| 307 | removed_api_file: "api/removed.txt", |
Andrei Onea | 4311470 | 2021-02-10 20:53:12 +0000 | [diff] [blame] | 308 | }, |
| 309 | api_lint: { |
| 310 | enabled: true, |
| 311 | new_since: ":android-non-updatable.api.system-server.latest", |
Andrei Onea | 8168dc2 | 2021-04-30 12:52:36 +0000 | [diff] [blame] | 312 | baseline_file: "api/lint-baseline.txt", |
Andrei Onea | 4311470 | 2021-02-10 20:53:12 +0000 | [diff] [blame] | 313 | }, |
| 314 | }, |
| 315 | dists: [ |
| 316 | { |
Anton Hansson | dd8ef67 | 2022-01-04 08:53:19 +0000 | [diff] [blame] | 317 | targets: ["sdk"], |
Andrei Onea | 4311470 | 2021-02-10 20:53:12 +0000 | [diff] [blame] | 318 | dir: "apistubs/android/system-server/api", |
| 319 | dest: "android-non-updatable.txt", |
Felipe Leme | d3895b6 | 2021-03-24 16:55:27 -0700 | [diff] [blame] | 320 | tag: ".api.txt", |
Andrei Onea | 4311470 | 2021-02-10 20:53:12 +0000 | [diff] [blame] | 321 | }, |
| 322 | { |
Anton Hansson | dd8ef67 | 2022-01-04 08:53:19 +0000 | [diff] [blame] | 323 | targets: ["sdk"], |
Andrei Onea | 4311470 | 2021-02-10 20:53:12 +0000 | [diff] [blame] | 324 | dir: "apistubs/android/system-server/api", |
| 325 | dest: "android-non-updatable-removed.txt", |
| 326 | tag: ".removed-api.txt", |
| 327 | }, |
Felipe Leme | d3895b6 | 2021-03-24 16:55:27 -0700 | [diff] [blame] | 328 | ], |
Jihoon Kang | 866b9b7 | 2023-09-20 22:28:05 +0000 | [diff] [blame] | 329 | api_surface: "system-server", |
Felipe Leme | d3895b6 | 2021-03-24 16:55:27 -0700 | [diff] [blame] | 330 | } |