blob: eb7b72ed2cfdeea91717e8a942f4336b9ec2d5d2 [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 {
Jiyong Park5ba39df2020-01-19 19:08:37 +09009 name: "services-all-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090010 srcs: [
11 ":services.core-sources",
12 ":services.accessibility-sources",
13 ":services.appprediction-sources",
14 ":services.appwidget-sources",
15 ":services.autofill-sources",
16 ":services.backup-sources",
Jiyong Parkabc72e42019-11-17 15:17:53 +090017 ":backuplib-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090018 ":services.companion-sources",
19 ":services.contentcapture-sources",
20 ":services.contentsuggestions-sources",
21 ":services.coverage-sources",
22 ":services.devicepolicy-sources",
23 ":services.midi-sources",
Nick Moukhinecf47bdd2020-08-19 16:29:18 +020024 ":services.musicsearch-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090025 ":services.net-sources",
26 ":services.print-sources",
Yi Kong86f85932020-06-29 20:03:55 +080027 ":services.profcollect-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090028 ":services.restrictions-sources",
29 ":services.startop.iorap-sources",
30 ":services.systemcaptions-sources",
31 ":services.usage-sources",
32 ":services.usb-sources",
33 ":services.voiceinteraction-sources",
Roshan Piusea33fb92020-02-20 12:49:45 -080034 ":services.wifi-sources",
Hai Zhang76f0def2020-01-16 01:42:58 -080035 ":service-permission-sources",
Muhammad Qureshi8ea733e2020-02-07 09:30:28 -080036 ":service-statsd-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090037 ],
38 visibility: ["//visibility:private"],
39}
40
Colin Crosseb652a42017-12-05 09:46:29 -080041// merge all required services into one jar
42// ============================================================
43java_library {
44 name: "services",
Colin Crossa12c0f52018-06-27 11:00:11 -070045 installable: true,
Colin Crosseb652a42017-12-05 09:46:29 -080046
47 dex_preopt: {
48 app_image: true,
49 profile: "art-profile",
50 },
51
Jiyong Parkbae2e902019-11-17 13:11:19 +090052 srcs: [":services-main-sources"],
Colin Crosseb652a42017-12-05 09:46:29 -080053
54 // The convention is to name each service module 'services.$(module_name)'
55 static_libs: [
Colin Cross4c0b06b2017-12-12 19:43:04 -080056 "services.core",
Colin Crosseb652a42017-12-05 09:46:29 -080057 "services.accessibility",
Sunny Goyal54e91342018-11-14 11:59:02 -080058 "services.appprediction",
Colin Crosseb652a42017-12-05 09:46:29 -080059 "services.appwidget",
60 "services.autofill",
61 "services.backup",
62 "services.companion",
Felipe Leme749b8892018-12-03 16:30:30 -080063 "services.contentcapture",
Winson Chung3fb0f252019-01-08 17:41:55 -080064 "services.contentsuggestions",
Colin Crosseb652a42017-12-05 09:46:29 -080065 "services.coverage",
66 "services.devicepolicy",
67 "services.midi",
Nick Moukhinecf47bdd2020-08-19 16:29:18 +020068 "services.musicsearch",
Colin Crosseb652a42017-12-05 09:46:29 -080069 "services.net",
Danning Chen20b32ed2019-12-18 16:52:03 -080070 "services.people",
Colin Crosseb652a42017-12-05 09:46:29 -080071 "services.print",
Yi Kong86f85932020-06-29 20:03:55 +080072 "services.profcollect",
Colin Crosseb652a42017-12-05 09:46:29 -080073 "services.restrictions",
Igor Murashkin4de1e162018-11-26 10:33:17 -080074 "services.startop",
Robert Berrye14120e2019-03-18 16:33:42 -040075 "services.systemcaptions",
Colin Crosseb652a42017-12-05 09:46:29 -080076 "services.usage",
77 "services.usb",
78 "services.voiceinteraction",
Roshan Piusea33fb92020-02-20 12:49:45 -080079 "services.wifi",
Dmitri Plotnikov4eaac3a2020-05-04 17:00:16 -070080 "service-blobstore",
Aaron Huange6f27dd2020-06-27 07:18:23 +080081 "service-connectivity",
Dmitri Plotnikov4eaac3a2020-05-04 17:00:16 -070082 "service-jobscheduler",
Colin Crosseb652a42017-12-05 09:46:29 -080083 "android.hidl.base-V1.0-java",
84 ],
85
86 libs: [
87 "android.hidl.manager-V1.0-java",
Paul Duffinabebc6a2020-05-31 11:35:50 +010088 "framework-tethering.stubs.module_lib",
Colin Crosseb652a42017-12-05 09:46:29 -080089 ],
90
91 // Uncomment to enable output of certain warnings (deprecated, unchecked)
92 //javacflags: ["-Xlint"],
Colin Crosseb652a42017-12-05 09:46:29 -080093}
94
Colin Cross3a7d8992017-12-05 17:33:58 -080095// native library
96// =============================================================
97
98cc_library_shared {
99 name: "libandroid_servers",
100 defaults: ["libservices.core-libs"],
101 whole_static_libs: ["libservices.core"],
102}
atrost86895aa2019-08-19 16:51:15 +0100103
104platform_compat_config {
105 name: "services-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100106 src: ":services",
107}
Ulya Trafimovich0d1b063d62019-12-03 11:59:51 +0000108
109filegroup {
110 name: "art-profile",
111 srcs: ["art-profile"],
112}
Jiyong Parkabc72e42019-11-17 15:17:53 +0900113
114// API stub
115// =============================================================
116
117droidstubs {
118 name: "services-stubs.sources",
Jiyong Park5ba39df2020-01-19 19:08:37 +0900119 srcs: [":services-all-sources"],
Jiyong Parkabc72e42019-11-17 15:17:53 +0900120 installable: false,
Makoto Onukiaf97aef2020-02-03 10:32:52 -0800121 args: " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.SYSTEM_SERVER\\)" +
Jiyong Parkabc72e42019-11-17 15:17:53 +0900122 " --hide-annotation android.annotation.Hide" +
Anton Hanssonf74130f2020-02-19 18:29:12 +0000123 " --hide InternalClasses" + // com.android.* classes are okay in this interface
124 // TODO: remove the --hide options below
Jiyong Parkabc72e42019-11-17 15:17:53 +0900125 " --hide-package com.google.android.startop.iorap" +
Jiyong Parkabc72e42019-11-17 15:17:53 +0900126 " --hide DeprecationMismatch" +
127 " --hide HiddenTypedefConstant",
Jiyong Parkabc72e42019-11-17 15:17:53 +0900128 visibility: ["//visibility:private"],
Anton Hansson442fcf42020-03-27 15:09:26 +0000129 filter_packages: ["com.android."],
Jiyong Park13c923d2019-12-20 16:29:45 +0900130 check_api: {
131 current: {
132 api_file: "api/current.txt",
133 removed_api_file: "api/removed.txt",
134 },
Anton Hanssondaa9d882020-02-19 11:35:09 +0000135 last_released: {
Anton Hansson48ee95e2020-05-02 17:49:26 +0100136 api_file: ":android.api.system-server.latest",
Anton Hansson960c6752020-05-02 18:00:30 +0100137 removed_api_file: ":removed.api.system-server.latest",
Anton Hanssondaa9d882020-02-19 11:35:09 +0000138 baseline_file: ":system-server-api-incompatibilities-with-last-released"
139 },
140 api_lint: {
141 enabled: true,
Anton Hansson48ee95e2020-05-02 17:49:26 +0100142 new_since: ":android.api.system-server.latest",
Anton Hanssondaa9d882020-02-19 11:35:09 +0000143 baseline_file: "api/lint-baseline.txt",
144 },
Jiyong Park13c923d2019-12-20 16:29:45 +0900145 },
Anton Hanssond9a3fee2020-03-23 18:08:55 +0000146 dist: {
147 targets: ["sdk", "win_sdk"],
148 dir: "apistubs/android/system-server/api",
149 dest: "android.txt",
150 },
Jiyong Parkabc72e42019-11-17 15:17:53 +0900151}
152
153java_library {
Anton Hanssona49fb992020-03-19 15:23:32 +0000154 name: "android_system_server_stubs_current",
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000155 defaults: ["android_stubs_dists_default"],
Jiyong Parkabc72e42019-11-17 15:17:53 +0900156 srcs: [":services-stubs.sources"],
157 installable: false,
Anton Hanssona49fb992020-03-19 15:23:32 +0000158 static_libs: ["android_module_lib_stubs_current"],
Anton Hansson4304e602020-07-21 12:55:48 +0100159 sdk_version: "none",
160 system_modules: "none",
161 java_version: "1.8",
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000162 dist: {
163 dir: "apistubs/android/system-server",
164 },
Jiyong Parkabc72e42019-11-17 15:17:53 +0900165}