blob: bf5198eadb9cbf9c8722c2c11864b9f92e80aab7 [file] [log] [blame]
Jason Monka2f2d822018-08-13 11:10:48 -04001//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17java_library {
18 name: "SystemUI-proto",
19
20 srcs: ["src/**/*.proto"],
21
22 proto: {
23 type: "nano",
24 },
Winson Chungeb1aa3d2020-08-25 19:02:29 -070025
26 libs: [
27 "WindowManager-Shell-proto",
28 ],
Jason Monka2f2d822018-08-13 11:10:48 -040029}
30
31java_library {
32 name: "SystemUI-tags",
33 srcs: ["src/com/android/systemui/EventLogTags.logtags"],
34}
35
Dave Mankoff8012d7b2020-11-13 17:34:39 -050036java_library {
37 name: "SystemUI-sensors",
38 srcs: [
39 "src/com/android/systemui/util/sensors/ThresholdSensor.java",
40 ]
41}
42
Jason Monka2f2d822018-08-13 11:10:48 -040043android_library {
44 name: "SystemUI-core",
45 srcs: [
Jason Monkae7ced22018-08-22 16:56:58 -040046 "src/**/*.kt",
Jason Monka2f2d822018-08-13 11:10:48 -040047 "src/**/*.java",
48 "src/**/I*.aidl",
49 ],
50 resource_dirs: [
Sunny Goyalb4a26012019-12-05 15:49:41 -080051 "res-product",
Jason Monka2f2d822018-08-13 11:10:48 -040052 "res-keyguard",
53 "res",
54 ],
55 static_libs: [
Winson Chung10a9b4b2019-12-18 10:01:36 -080056 "WindowManager-Shell",
Jason Monka2f2d822018-08-13 11:10:48 -040057 "SystemUIPluginLib",
58 "SystemUISharedLib",
Jerry Chang919d1d22020-07-16 12:31:24 +080059 "SystemUI-statsd",
Jason Monka2f2d822018-08-13 11:10:48 -040060 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -050061 "androidx.viewpager2_viewpager2",
Jason Monka2f2d822018-08-13 11:10:48 -040062 "androidx.legacy_legacy-support-v4",
63 "androidx.recyclerview_recyclerview",
64 "androidx.preference_preference",
65 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -050066 "androidx.concurrent_concurrent-futures",
Jason Monka2f2d822018-08-13 11:10:48 -040067 "androidx.mediarouter_mediarouter",
68 "androidx.palette_palette",
69 "androidx.legacy_legacy-preference-v14",
70 "androidx.leanback_leanback",
71 "androidx.slice_slice-core",
72 "androidx.slice_slice-view",
73 "androidx.slice_slice-builders",
74 "androidx.arch.core_core-runtime",
75 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -080076 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -040077 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b92020-12-16 14:01:12 -050078 "androidx.exifinterface_exifinterface",
Steve Elliotta7d72052020-12-16 23:04:19 -050079 "kotlinx_coroutines_android",
80 "kotlinx_coroutines",
Hyunyoung Song5347a542019-03-01 13:32:28 -080081 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -040082 "SystemUI-tags",
83 "SystemUI-proto",
Dave Mankoffdffcc472020-07-08 15:25:16 -040084 "dagger2",
Jason Monk73e8ffc2018-12-06 14:45:19 -050085 "jsr330"
Jason Monka2f2d822018-08-13 11:10:48 -040086 ],
87 manifest: "AndroidManifest.xml",
88
Selim Cinek820ba2d2019-06-18 18:59:09 -070089 kotlincflags: ["-Xjvm-default=enable"],
Jason Monk73e8ffc2018-12-06 14:45:19 -050090
Dave Mankoffdffcc472020-07-08 15:25:16 -040091 plugins: ["dagger2-compiler"],
Jason Monka2f2d822018-08-13 11:10:48 -040092}
93
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090094filegroup {
95 name: "SystemUI-tests-utils",
96 srcs: [
Beverly79c89ec2019-12-13 10:33:01 -050097 "tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090098 "tests/src/com/android/systemui/statusbar/RankingBuilder.java",
99 "tests/src/com/android/systemui/statusbar/SbnBuilder.java",
Prabir Pradhan4499bde2020-04-09 15:07:41 -0700100 "tests/src/com/android/systemui/util/concurrency/FakeExecutor.java",
101 "tests/src/com/android/systemui/util/time/FakeSystemClock.java",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +0900102 ],
103 path: "tests/src",
104}
105
Jason Monkae7ced22018-08-22 16:56:58 -0400106android_library {
107 name: "SystemUI-tests",
Sunny Goyaleb18d392020-02-07 16:48:14 -0800108 manifest: "tests/AndroidManifest-base.xml",
109 additional_manifests: ["tests/AndroidManifest.xml"],
110
Jason Monkae7ced22018-08-22 16:56:58 -0400111 resource_dirs: [
112 "tests/res",
Sunny Goyalb4a26012019-12-05 15:49:41 -0800113 "res-product",
Jason Monkae7ced22018-08-22 16:56:58 -0400114 "res-keyguard",
115 "res",
116 ],
117 srcs: [
118 "tests/src/**/*.kt",
119 "tests/src/**/*.java",
120 "src/**/*.kt",
121 "src/**/*.java",
122 "src/**/I*.aidl",
123 ],
124 static_libs: [
125 "SystemUIPluginLib",
126 "SystemUISharedLib",
Hyunyoung Song3d89c932020-04-11 13:31:06 -0700127 "SystemUI-statsd",
Jason Monkae7ced22018-08-22 16:56:58 -0400128 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500129 "androidx.viewpager2_viewpager2",
Jason Monkae7ced22018-08-22 16:56:58 -0400130 "androidx.legacy_legacy-support-v4",
131 "androidx.recyclerview_recyclerview",
132 "androidx.preference_preference",
133 "androidx.appcompat_appcompat",
Mark Renoufe2395012020-12-16 01:05:12 -0500134 "androidx.concurrent_concurrent-futures",
Jason Monkae7ced22018-08-22 16:56:58 -0400135 "androidx.mediarouter_mediarouter",
136 "androidx.palette_palette",
137 "androidx.legacy_legacy-preference-v14",
138 "androidx.leanback_leanback",
139 "androidx.slice_slice-core",
140 "androidx.slice_slice-view",
141 "androidx.slice_slice-builders",
142 "androidx.arch.core_core-runtime",
143 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800144 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400145 "androidx-constraintlayout_constraintlayout",
Miranda Kepharte1a22b92020-12-16 14:01:12 -0500146 "androidx.exifinterface_exifinterface",
Pinyao Tingee191b12020-04-29 18:35:39 -0700147 "kotlinx-coroutines-android",
148 "kotlinx-coroutines-core",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700149 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400150 "SystemUI-tags",
151 "SystemUI-proto",
152 "metrics-helper-lib",
Tadashi G. Takaokac7340fb2020-10-20 17:50:13 +0900153 "hamcrest-library",
154 "androidx.test.rules",
155 "androidx.test.uiautomator",
Beverly9028d412019-12-11 16:33:16 -0500156 "mockito-target-extended-minus-junit4",
Jason Monkae7ced22018-08-22 16:56:58 -0400157 "testables",
158 "truth-prebuilt",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400159 "dagger2",
Bill Lina17858d12020-07-14 10:30:10 +0800160 "jsr330",
161 "WindowManager-Shell",
Jason Monkae7ced22018-08-22 16:56:58 -0400162 ],
163 libs: [
164 "android.test.runner",
Jason Monkae7ced22018-08-22 16:56:58 -0400165 "android.test.base",
166 ],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700167 kotlincflags: ["-Xjvm-default=enable"],
Jason Monkae7ced22018-08-22 16:56:58 -0400168 aaptflags: [
169 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700170 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400171 ],
Dave Mankoffdffcc472020-07-08 15:25:16 -0400172 plugins: ["dagger2-compiler"],
Jason Monkae7ced22018-08-22 16:56:58 -0400173}
174
Jason Monka2f2d822018-08-13 11:10:48 -0400175android_app {
176 name: "SystemUI",
Jeff Sharkeyd23b5372020-10-23 14:30:42 -0600177 defaults: ["platform_app_defaults"],
Jason Monka2f2d822018-08-13 11:10:48 -0400178 static_libs: [
179 "SystemUI-core",
180 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000181 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400182
183 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900184 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400185 certificate: "platform",
186 privileged: true,
187
188 optimize: {
189 proguard_flags_files: ["proguard.flags"],
190 },
191
Selim Cinek820ba2d2019-06-18 18:59:09 -0700192 kotlincflags: ["-Xjvm-default=enable"],
193
Jason Monka2f2d822018-08-13 11:10:48 -0400194 dxflags: ["--multi-dex"],
Winson Chungb754f522020-08-03 22:17:08 -0700195 required: [
196 "privapp_whitelist_com.android.systemui",
Winson Chungb754f522020-08-03 22:17:08 -0700197 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400198}