blob: 19375c9599397225a1d65efe9d5ae210d9abd635 [file] [log] [blame]
Jiyong Parkbae2e902019-11-17 13:11:19 +09001filegroup {
2 name: "services-main-sources",
3 srcs: ["java/**/*.java"],
4 path: "java",
5 visibility: ["//visibility:private"],
6}
7
8filegroup {
Andrei Onea43114702021-02-10 20:53:12 +00009 name: "services-non-updatable-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090010 srcs: [
11 ":services.core-sources",
Hongwei Wangcdcb68d2020-11-23 12:48:05 -080012 ":services.core-sources-am-wm",
Jiyong Parkbae2e902019-11-17 13:11:19 +090013 ":services.accessibility-sources",
14 ":services.appprediction-sources",
15 ":services.appwidget-sources",
16 ":services.autofill-sources",
17 ":services.backup-sources",
Jiyong Parkabc72e42019-11-17 15:17:53 +090018 ":backuplib-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090019 ":services.companion-sources",
20 ":services.contentcapture-sources",
21 ":services.contentsuggestions-sources",
22 ":services.coverage-sources",
23 ":services.devicepolicy-sources",
24 ":services.midi-sources",
Nick Moukhinecf47bdd2020-08-19 16:29:18 +020025 ":services.musicsearch-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090026 ":services.net-sources",
27 ":services.print-sources",
Yi Kong86f85932020-06-29 20:03:55 +080028 ":services.profcollect-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090029 ":services.restrictions-sources",
Hyunyoung Song21e60a92020-11-20 20:27:54 -080030 ":services.searchui-sources",
Shashwat Razdand33e8c32021-01-29 13:02:19 -080031 ":services.smartspace-sources",
Eugenio Marchioric3c0a1e2020-12-23 10:44:55 +000032 ":services.speech-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090033 ":services.startop.iorap-sources",
34 ":services.systemcaptions-sources",
Adam He2653f232020-11-30 18:23:20 -080035 ":services.translation-sources",
Alex Agranovich50c987f2021-02-18 09:19:33 +000036 ":services.texttospeech-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090037 ":services.usage-sources",
38 ":services.usb-sources",
39 ":services.voiceinteraction-sources",
Roshan Piusea33fb92020-02-20 12:49:45 -080040 ":services.wifi-sources",
Andrei Onea43114702021-02-10 20:53:12 +000041 ],
42 visibility: ["//visibility:private"],
43}
44
45filegroup {
46 name: "services-all-sources",
47 srcs: [
48 ":services-non-updatable-sources",
49 ":service-media-s-sources",
Hai Zhang76f0def2020-01-16 01:42:58 -080050 ":service-permission-sources",
Muhammad Qureshi8ea733e2020-02-07 09:30:28 -080051 ":service-statsd-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090052 ],
53 visibility: ["//visibility:private"],
54}
55
Colin Crosseb652a42017-12-05 09:46:29 -080056// merge all required services into one jar
57// ============================================================
58java_library {
59 name: "services",
Colin Crossa12c0f52018-06-27 11:00:11 -070060 installable: true,
Colin Crosseb652a42017-12-05 09:46:29 -080061
62 dex_preopt: {
63 app_image: true,
64 profile: "art-profile",
65 },
66
Jiyong Parkbae2e902019-11-17 13:11:19 +090067 srcs: [":services-main-sources"],
Colin Crosseb652a42017-12-05 09:46:29 -080068
69 // The convention is to name each service module 'services.$(module_name)'
70 static_libs: [
Colin Cross4c0b06b2017-12-12 19:43:04 -080071 "services.core",
Colin Crosseb652a42017-12-05 09:46:29 -080072 "services.accessibility",
Sunny Goyal54e91342018-11-14 11:59:02 -080073 "services.appprediction",
Colin Crosseb652a42017-12-05 09:46:29 -080074 "services.appwidget",
75 "services.autofill",
76 "services.backup",
77 "services.companion",
Felipe Leme749b8892018-12-03 16:30:30 -080078 "services.contentcapture",
Winson Chung3fb0f252019-01-08 17:41:55 -080079 "services.contentsuggestions",
Colin Crosseb652a42017-12-05 09:46:29 -080080 "services.coverage",
81 "services.devicepolicy",
82 "services.midi",
Nick Moukhinecf47bdd2020-08-19 16:29:18 +020083 "services.musicsearch",
Colin Crosseb652a42017-12-05 09:46:29 -080084 "services.net",
Danning Chen20b32ed2019-12-18 16:52:03 -080085 "services.people",
Colin Crosseb652a42017-12-05 09:46:29 -080086 "services.print",
Yi Kong86f85932020-06-29 20:03:55 +080087 "services.profcollect",
Colin Crosseb652a42017-12-05 09:46:29 -080088 "services.restrictions",
Hyunyoung Song21e60a92020-11-20 20:27:54 -080089 "services.searchui",
Shashwat Razdand33e8c32021-01-29 13:02:19 -080090 "services.smartspace",
Eugenio Marchioric3c0a1e2020-12-23 10:44:55 +000091 "services.speech",
Igor Murashkin4de1e162018-11-26 10:33:17 -080092 "services.startop",
Robert Berrye14120e2019-03-18 16:33:42 -040093 "services.systemcaptions",
Adam He2653f232020-11-30 18:23:20 -080094 "services.translation",
Alex Agranovich50c987f2021-02-18 09:19:33 +000095 "services.texttospeech",
Colin Crosseb652a42017-12-05 09:46:29 -080096 "services.usage",
97 "services.usb",
98 "services.voiceinteraction",
Roshan Piusea33fb92020-02-20 12:49:45 -080099 "services.wifi",
Dmitri Plotnikov4eaac3a2020-05-04 17:00:16 -0700100 "service-blobstore",
101 "service-jobscheduler",
Colin Crosseb652a42017-12-05 09:46:29 -0800102 "android.hidl.base-V1.0-java",
103 ],
104
105 libs: [
106 "android.hidl.manager-V1.0-java",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100107 "framework-tethering.stubs.module_lib",
Colin Crosseb652a42017-12-05 09:46:29 -0800108 ],
109
110 // Uncomment to enable output of certain warnings (deprecated, unchecked)
111 //javacflags: ["-Xlint"],
Colin Crosseb652a42017-12-05 09:46:29 -0800112}
113
Colin Cross3a7d8992017-12-05 17:33:58 -0800114// native library
115// =============================================================
116
117cc_library_shared {
118 name: "libandroid_servers",
119 defaults: ["libservices.core-libs"],
120 whole_static_libs: ["libservices.core"],
121}
atrost86895aa2019-08-19 16:51:15 +0100122
123platform_compat_config {
124 name: "services-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100125 src: ":services",
126}
Ulya Trafimovich0d1b063d62019-12-03 11:59:51 +0000127
128filegroup {
129 name: "art-profile",
130 srcs: ["art-profile"],
131}
Jiyong Parkabc72e42019-11-17 15:17:53 +0900132
133// API stub
134// =============================================================
135
Andrei Onea43114702021-02-10 20:53:12 +0000136stubs_defaults {
137 name: "services-stubs-default",
Jiyong Parkabc72e42019-11-17 15:17:53 +0900138 installable: false,
Makoto Onukiaf97aef2020-02-03 10:32:52 -0800139 args: " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.SYSTEM_SERVER\\)" +
Jiyong Parkabc72e42019-11-17 15:17:53 +0900140 " --hide-annotation android.annotation.Hide" +
Anton Hanssonf74130f2020-02-19 18:29:12 +0000141 " --hide InternalClasses" + // com.android.* classes are okay in this interface
142 // TODO: remove the --hide options below
Jiyong Parkabc72e42019-11-17 15:17:53 +0900143 " --hide-package com.google.android.startop.iorap" +
Jiyong Parkabc72e42019-11-17 15:17:53 +0900144 " --hide DeprecationMismatch" +
145 " --hide HiddenTypedefConstant",
Jiyong Parkabc72e42019-11-17 15:17:53 +0900146 visibility: ["//visibility:private"],
Andrei Onea43114702021-02-10 20:53:12 +0000147 filter_packages: ["com.android."]
148}
149
150droidstubs {
151 name: "services-stubs.sources",
152 srcs: [":services-all-sources"],
153 defaults: ["services-stubs-default"],
Jiyong Park13c923d2019-12-20 16:29:45 +0900154 check_api: {
155 current: {
156 api_file: "api/current.txt",
157 removed_api_file: "api/removed.txt",
158 },
Anton Hanssondaa9d882020-02-19 11:35:09 +0000159 last_released: {
Anton Hansson48ee95e2020-05-02 17:49:26 +0100160 api_file: ":android.api.system-server.latest",
Anton Hansson960c6752020-05-02 18:00:30 +0100161 removed_api_file: ":removed.api.system-server.latest",
Anton Hanssonce556232021-01-22 16:40:06 +0000162 baseline_file: ":android-incompatibilities.api.system-server.latest"
Anton Hanssondaa9d882020-02-19 11:35:09 +0000163 },
164 api_lint: {
165 enabled: true,
Anton Hansson48ee95e2020-05-02 17:49:26 +0100166 new_since: ":android.api.system-server.latest",
Anton Hanssondaa9d882020-02-19 11:35:09 +0000167 baseline_file: "api/lint-baseline.txt",
168 },
Jiyong Park13c923d2019-12-20 16:29:45 +0900169 },
Anton Hansson85785fe2021-01-20 20:23:34 +0000170 dists: [
171 {
172 targets: ["sdk", "win_sdk"],
173 dir: "apistubs/android/system-server/api",
174 dest: "android.txt",
175 tag: ".api.txt"
176 },
177 {
178 targets: ["sdk", "win_sdk"],
179 dir: "apistubs/android/system-server/api",
180 dest: "removed.txt",
181 tag: ".removed-api.txt",
182 },
183 ]
Jiyong Parkabc72e42019-11-17 15:17:53 +0900184}
185
186java_library {
Anton Hanssona49fb992020-03-19 15:23:32 +0000187 name: "android_system_server_stubs_current",
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000188 defaults: ["android_stubs_dists_default"],
Jiyong Parkabc72e42019-11-17 15:17:53 +0900189 srcs: [":services-stubs.sources"],
190 installable: false,
Anton Hanssona49fb992020-03-19 15:23:32 +0000191 static_libs: ["android_module_lib_stubs_current"],
Anton Hansson4304e602020-07-21 12:55:48 +0100192 sdk_version: "none",
193 system_modules: "none",
194 java_version: "1.8",
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000195 dist: {
196 dir: "apistubs/android/system-server",
197 },
Jiyong Parkabc72e42019-11-17 15:17:53 +0900198}
Andrei Onea43114702021-02-10 20:53:12 +0000199
200droidstubs {
201 name: "services-non-updatable-stubs.sources",
202 srcs: [":services-non-updatable-sources"],
203 defaults: ["services-stubs-default"],
204 check_api: {
205 current: {
206 api_file: "api/non-updatable-current.txt",
207 removed_api_file: "api/non-updatable-removed.txt",
208 },
209 api_lint: {
210 enabled: true,
211 new_since: ":android-non-updatable.api.system-server.latest",
212 baseline_file: "api/non-updatable-lint-baseline.txt",
213 },
214 },
215 dists: [
216 {
217 targets: ["sdk", "win_sdk"],
218 dir: "apistubs/android/system-server/api",
219 dest: "android-non-updatable.txt",
220 tag: ".api.txt"
221 },
222 {
223 targets: ["sdk", "win_sdk"],
224 dir: "apistubs/android/system-server/api",
225 dest: "android-non-updatable-removed.txt",
226 tag: ".removed-api.txt",
227 },
228 ]
229}