blob: 3a6a538df4e3fc28a97377c5bcf3a143b60394a9 [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",
24 ":services.net-sources",
25 ":services.print-sources",
26 ":services.restrictions-sources",
27 ":services.startop.iorap-sources",
28 ":services.systemcaptions-sources",
29 ":services.usage-sources",
30 ":services.usb-sources",
31 ":services.voiceinteraction-sources",
Roshan Piusea33fb92020-02-20 12:49:45 -080032 ":services.wifi-sources",
Hai Zhang76f0def2020-01-16 01:42:58 -080033 ":service-permission-sources",
Muhammad Qureshi8ea733e2020-02-07 09:30:28 -080034 ":service-statsd-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090035 ],
36 visibility: ["//visibility:private"],
37}
38
Colin Crosseb652a42017-12-05 09:46:29 -080039// merge all required services into one jar
40// ============================================================
41java_library {
42 name: "services",
Colin Crossa12c0f52018-06-27 11:00:11 -070043 installable: true,
Colin Crosseb652a42017-12-05 09:46:29 -080044
45 dex_preopt: {
46 app_image: true,
47 profile: "art-profile",
48 },
49
Jiyong Parkbae2e902019-11-17 13:11:19 +090050 srcs: [":services-main-sources"],
Colin Crosseb652a42017-12-05 09:46:29 -080051
52 // The convention is to name each service module 'services.$(module_name)'
53 static_libs: [
Colin Cross4c0b06b2017-12-12 19:43:04 -080054 "services.core",
Colin Crosseb652a42017-12-05 09:46:29 -080055 "services.accessibility",
Sunny Goyal54e91342018-11-14 11:59:02 -080056 "services.appprediction",
Colin Crosseb652a42017-12-05 09:46:29 -080057 "services.appwidget",
58 "services.autofill",
59 "services.backup",
60 "services.companion",
Felipe Leme749b8892018-12-03 16:30:30 -080061 "services.contentcapture",
Winson Chung3fb0f252019-01-08 17:41:55 -080062 "services.contentsuggestions",
Colin Crosseb652a42017-12-05 09:46:29 -080063 "services.coverage",
64 "services.devicepolicy",
65 "services.midi",
66 "services.net",
Danning Chen20b32ed2019-12-18 16:52:03 -080067 "services.people",
Colin Crosseb652a42017-12-05 09:46:29 -080068 "services.print",
69 "services.restrictions",
Igor Murashkin4de1e162018-11-26 10:33:17 -080070 "services.startop",
Robert Berrye14120e2019-03-18 16:33:42 -040071 "services.systemcaptions",
Colin Crosseb652a42017-12-05 09:46:29 -080072 "services.usage",
73 "services.usb",
74 "services.voiceinteraction",
Roshan Piusea33fb92020-02-20 12:49:45 -080075 "services.wifi",
Colin Crosseb652a42017-12-05 09:46:29 -080076 "android.hidl.base-V1.0-java",
77 ],
78
79 libs: [
80 "android.hidl.manager-V1.0-java",
Anton Hanssonfe8b0452020-03-07 12:36:42 +000081 "framework-tethering-stubs-module_libs_api",
Colin Crosseb652a42017-12-05 09:46:29 -080082 ],
83
84 // Uncomment to enable output of certain warnings (deprecated, unchecked)
85 //javacflags: ["-Xlint"],
86
87}
88
Colin Cross3a7d8992017-12-05 17:33:58 -080089// native library
90// =============================================================
91
92cc_library_shared {
93 name: "libandroid_servers",
94 defaults: ["libservices.core-libs"],
95 whole_static_libs: ["libservices.core"],
96}
atrost86895aa2019-08-19 16:51:15 +010097
98platform_compat_config {
99 name: "services-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100100 src: ":services",
101}
Ulya Trafimovich0d1b063d62019-12-03 11:59:51 +0000102
103filegroup {
104 name: "art-profile",
105 srcs: ["art-profile"],
106}
Jiyong Parkabc72e42019-11-17 15:17:53 +0900107
108// API stub
109// =============================================================
110
111droidstubs {
112 name: "services-stubs.sources",
Jiyong Park5ba39df2020-01-19 19:08:37 +0900113 srcs: [":services-all-sources"],
Jiyong Parkabc72e42019-11-17 15:17:53 +0900114 installable: false,
Makoto Onukiaf97aef2020-02-03 10:32:52 -0800115 args: " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.SYSTEM_SERVER\\)" +
Jiyong Parkabc72e42019-11-17 15:17:53 +0900116 " --hide-annotation android.annotation.Hide" +
Anton Hanssonf74130f2020-02-19 18:29:12 +0000117 " --hide InternalClasses" + // com.android.* classes are okay in this interface
118 // TODO: remove the --hide options below
Jiyong Parkabc72e42019-11-17 15:17:53 +0900119 " --hide-package com.google.android.startop.iorap" +
120 " --hide ReferencesHidden" +
121 " --hide DeprecationMismatch" +
122 " --hide HiddenTypedefConstant",
Jiyong Parkabc72e42019-11-17 15:17:53 +0900123 visibility: ["//visibility:private"],
Anton Hansson442fcf42020-03-27 15:09:26 +0000124 filter_packages: ["com.android."],
Jiyong Park13c923d2019-12-20 16:29:45 +0900125 check_api: {
126 current: {
127 api_file: "api/current.txt",
128 removed_api_file: "api/removed.txt",
129 },
Anton Hanssondaa9d882020-02-19 11:35:09 +0000130 last_released: {
Anton Hansson48ee95e2020-05-02 17:49:26 +0100131 api_file: ":android.api.system-server.latest",
Anton Hanssondaa9d882020-02-19 11:35:09 +0000132 removed_api_file: "api/removed.txt",
133 baseline_file: ":system-server-api-incompatibilities-with-last-released"
134 },
135 api_lint: {
136 enabled: true,
Anton Hansson48ee95e2020-05-02 17:49:26 +0100137 new_since: ":android.api.system-server.latest",
Anton Hanssondaa9d882020-02-19 11:35:09 +0000138 baseline_file: "api/lint-baseline.txt",
139 },
Jiyong Park13c923d2019-12-20 16:29:45 +0900140 },
Anton Hanssond9a3fee2020-03-23 18:08:55 +0000141 dist: {
142 targets: ["sdk", "win_sdk"],
143 dir: "apistubs/android/system-server/api",
144 dest: "android.txt",
145 },
Jiyong Parkabc72e42019-11-17 15:17:53 +0900146}
147
148java_library {
Anton Hanssona49fb992020-03-19 15:23:32 +0000149 name: "android_system_server_stubs_current",
Jiyong Parkabc72e42019-11-17 15:17:53 +0900150 srcs: [":services-stubs.sources"],
151 installable: false,
Anton Hanssona49fb992020-03-19 15:23:32 +0000152 static_libs: ["android_module_lib_stubs_current"],
Jiyong Parkabc72e42019-11-17 15:17:53 +0900153}