blob: 525ae80ff9a76b8a79f3b8cd4a40d882ee8f4bbd [file] [log] [blame]
Joe Onoratocd779472023-08-19 19:49:52 -07001// Copyright (C) 2023 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Aconfig declarations and libraries for the core framework
16java_defaults {
17 name: "framework-minus-apex-aconfig-libraries",
18
19 // Add java_aconfig_libraries to here to add them to the core framework
20 srcs: [
Xin Guan922de822023-08-30 13:34:58 -050021 ":android.app.usage.flags-aconfig-java{.generated_srcjars}",
Jakob Schneiderd60b6fb2023-09-06 18:37:52 +010022 ":android.content.pm.flags-aconfig-java{.generated_srcjars}",
Gil Cukierman5fc9dc62023-08-29 15:57:05 +000023 ":android.os.flags-aconfig-java{.generated_srcjars}",
Yeabkal Wubshitf90fe8d2023-06-29 01:55:43 -070024 ":android.os.vibrator.flags-aconfig-java{.generated_srcjars}",
Victor Hsieh2ce97f22023-08-21 17:20:25 -070025 ":android.security.flags-aconfig-java{.generated_srcjars}",
Shaneaadd41c2023-08-30 20:36:00 +000026 ":android.view.flags-aconfig-java{.generated_srcjars}",
Eino-Ville Talvala10208502023-08-18 10:15:25 -070027 ":camera_platform_flags_core_java_lib{.generated_srcjars}",
Chris Li547ae2c2023-07-28 14:01:06 +080028 ":com.android.window.flags.window-aconfig-java{.generated_srcjars}",
Josep del Rioc469f352023-08-24 18:03:06 +000029 ":com.android.hardware.input-aconfig-java{.generated_srcjars}",
Seigo Nonaka1e157782023-08-22 09:57:46 +090030 ":com.android.text.flags-aconfig-java{.generated_srcjars}",
Grant Menke417190a2023-08-30 14:39:29 -070031 ":telecom_flags_core_java_lib{.generated_srcjars}",
Ling Ma56689852023-09-11 17:59:59 -070032 ":telephony_flags_core_java_lib{.generated_srcjars}",
Marvin Ramin94357fd2023-08-23 11:07:27 +020033 ":android.companion.virtual.flags-aconfig-java{.generated_srcjars}",
Felix Sternd3dc6e02023-08-30 15:46:52 +000034 ":android.view.inputmethod.flags-aconfig-java{.generated_srcjars}",
Yeabkal Wubshitcbb08ee2023-09-05 21:01:56 -070035 ":android.widget.flags-aconfig-java{.generated_srcjars}",
Iván Budnikae843cd2023-08-01 17:12:09 +000036 ":com.android.media.flags.bettertogether-aconfig-java{.generated_srcjars}",
Joe Onoratocd779472023-08-19 19:49:52 -070037 ],
Zhi Dou3b92dcb2023-08-30 22:12:17 +000038 // Add aconfig-annotations-lib as a dependency for the optimization
39 libs: ["aconfig-annotations-lib"],
Joe Onoratocd779472023-08-19 19:49:52 -070040}
41
42// Default flags for java_aconfig_libraries that go into framework-minus-apex
43// These libraries will not work standalone
44java_defaults {
45 name: "framework-minus-apex-aconfig-java-defaults",
46 sdk_version: "core_platform",
47 libs: ["fake_device_config"],
48}
49
Chris Li547ae2c2023-07-28 14:01:06 +080050// Camera
Joe Onoratocd779472023-08-19 19:49:52 -070051java_aconfig_library {
Eino-Ville Talvala10208502023-08-18 10:15:25 -070052 name: "camera_platform_flags_core_java_lib",
53 aconfig_declarations: "camera_platform_flags",
Joe Onoratocd779472023-08-19 19:49:52 -070054 defaults: ["framework-minus-apex-aconfig-java-defaults"],
55}
Chris Li547ae2c2023-07-28 14:01:06 +080056
Grant Menke417190a2023-08-30 14:39:29 -070057// Telecom
58java_aconfig_library {
59 name: "telecom_flags_core_java_lib",
60 aconfig_declarations: "telecom_flags",
61 defaults: ["framework-minus-apex-aconfig-java-defaults"],
62}
63
Ling Ma56689852023-09-11 17:59:59 -070064// Telephony
65java_aconfig_library {
66 name: "telephony_flags_core_java_lib",
67 aconfig_declarations: "telephony_flags",
68 defaults: ["framework-minus-apex-aconfig-java-defaults"],
69}
70
Chris Li547ae2c2023-07-28 14:01:06 +080071// Window
72aconfig_declarations {
73 name: "com.android.window.flags.window-aconfig",
74 package: "com.android.window.flags",
75 srcs: ["core/java/android/window/flags/*.aconfig"],
76}
77
78java_aconfig_library {
79 name: "com.android.window.flags.window-aconfig-java",
80 aconfig_declarations: "com.android.window.flags.window-aconfig",
81 defaults: ["framework-minus-apex-aconfig-java-defaults"],
82}
Seigo Nonaka1e157782023-08-22 09:57:46 +090083
Josep del Rioc469f352023-08-24 18:03:06 +000084// Input
85aconfig_declarations {
86 name: "com.android.hardware.input.input-aconfig",
87 package: "com.android.hardware.input",
88 srcs: ["core/java/android/hardware/input/*.aconfig"],
89}
90
91java_aconfig_library {
92 name: "com.android.hardware.input-aconfig-java",
93 aconfig_declarations: "com.android.hardware.input.input-aconfig",
94 defaults: ["framework-minus-apex-aconfig-java-defaults"],
95}
96
Seigo Nonaka1e157782023-08-22 09:57:46 +090097// Text
98aconfig_declarations {
99 name: "com.android.text.flags-aconfig",
100 package: "com.android.text.flags",
101 srcs: ["core/java/android/text/flags/*.aconfig"],
102}
103
104java_aconfig_library {
105 name: "com.android.text.flags-aconfig-java",
106 aconfig_declarations: "com.android.text.flags-aconfig",
107 defaults: ["framework-minus-apex-aconfig-java-defaults"],
108}
Victor Hsieh2ce97f22023-08-21 17:20:25 -0700109
Seigo Nonaka02eee6e2023-08-31 16:38:05 +0900110cc_aconfig_library {
111 name: "aconfig_text_flags_c_lib",
112 aconfig_declarations: "com.android.text.flags-aconfig",
113}
114
Victor Hsieh2ce97f22023-08-21 17:20:25 -0700115// Security
116aconfig_declarations {
117 name: "android.security.flags-aconfig",
118 package: "android.security",
119 srcs: ["core/java/android/security/*.aconfig"],
120}
121
122java_aconfig_library {
123 name: "android.security.flags-aconfig-java",
124 aconfig_declarations: "android.security.flags-aconfig",
125 defaults: ["framework-minus-apex-aconfig-java-defaults"],
126}
Gil Cukierman5fc9dc62023-08-29 15:57:05 +0000127
Victor Hsieh9a5311b2023-08-29 14:04:02 -0700128java_aconfig_library {
129 name: "android.security.flags-aconfig-java-host",
130 aconfig_declarations: "android.security.flags-aconfig",
131 host_supported: true,
132 test: true,
133 defaults: ["framework-minus-apex-aconfig-java-defaults"],
134}
135
Xin Guan922de822023-08-30 13:34:58 -0500136// UsageStats
137aconfig_declarations {
138 name: "android.app.usage.flags-aconfig",
139 package: "android.app.usage",
140 srcs: ["core/java/android/app/usage/*.aconfig"],
141}
142
143java_aconfig_library {
144 name: "android.app.usage.flags-aconfig-java",
145 aconfig_declarations: "android.app.usage.flags-aconfig",
146 defaults: ["framework-minus-apex-aconfig-java-defaults"],
147}
148
Gil Cukierman5fc9dc62023-08-29 15:57:05 +0000149// OS
150aconfig_declarations {
151 name: "android.os.flags-aconfig",
152 package: "android.os",
153 srcs: ["core/java/android/os/*.aconfig"],
154}
155
156java_aconfig_library {
157 name: "android.os.flags-aconfig-java",
158 aconfig_declarations: "android.os.flags-aconfig",
159 defaults: ["framework-minus-apex-aconfig-java-defaults"],
160}
Marvin Ramin94357fd2023-08-23 11:07:27 +0200161
162// VirtualDeviceManager
163java_aconfig_library {
164 name: "android.companion.virtual.flags-aconfig-java",
165 aconfig_declarations: "android.companion.virtual.flags-aconfig",
166 defaults: ["framework-minus-apex-aconfig-java-defaults"],
167}
168
169aconfig_declarations {
170 name: "android.companion.virtual.flags-aconfig",
171 package: "android.companion.virtual.flags",
172 srcs: ["core/java/android/companion/virtual/*.aconfig"],
173}
Felix Sternd3dc6e02023-08-30 15:46:52 +0000174
175// InputMethod
176aconfig_declarations {
177 name: "android.view.inputmethod.flags-aconfig",
178 package: "android.view.inputmethod",
179 srcs: ["core/java/android/view/inputmethod/flags.aconfig"],
180}
181
182java_aconfig_library {
183 name: "android.view.inputmethod.flags-aconfig-java",
184 aconfig_declarations: "android.view.inputmethod.flags-aconfig",
185 defaults: ["framework-minus-apex-aconfig-java-defaults"],
186}
Yeabkal Wubshitf90fe8d2023-06-29 01:55:43 -0700187
188// Vibrator
189aconfig_declarations {
190 name: "android.os.vibrator.flags-aconfig",
191 package: "android.os.vibrator",
192 srcs: ["core/java/android/os/vibrator/*.aconfig"],
193}
194
195java_aconfig_library {
196 name: "android.os.vibrator.flags-aconfig-java",
197 aconfig_declarations: "android.os.vibrator.flags-aconfig",
198 defaults: ["framework-minus-apex-aconfig-java-defaults"],
199}
Shaneaadd41c2023-08-30 20:36:00 +0000200
201// View
202aconfig_declarations {
203 name: "android.view.flags-aconfig",
204 package: "android.view.flags",
205 srcs: ["core/java/android/view/flags/*.aconfig"],
206}
207
208java_aconfig_library {
209 name: "android.view.flags-aconfig-java",
210 aconfig_declarations: "android.view.flags-aconfig",
211 defaults: ["framework-minus-apex-aconfig-java-defaults"],
212}
Yeabkal Wubshitcbb08ee2023-09-05 21:01:56 -0700213
214// Widget
215aconfig_declarations {
216 name: "android.widget.flags-aconfig",
217 package: "android.widget.flags",
218 srcs: ["core/java/android/widget/flags/*.aconfig"],
219}
220
221java_aconfig_library {
222 name: "android.widget.flags-aconfig-java",
223 aconfig_declarations: "android.widget.flags-aconfig",
224 defaults: ["framework-minus-apex-aconfig-java-defaults"],
225}
226
Jakob Schneiderd60b6fb2023-09-06 18:37:52 +0100227// Package Manager
228aconfig_declarations {
229 name: "android.content.pm.flags-aconfig",
230 package: "android.content.pm",
231 srcs: ["core/java/android/content/pm/*.aconfig"],
232}
233
234java_aconfig_library {
235 name: "android.content.pm.flags-aconfig-java",
236 aconfig_declarations: "android.content.pm.flags-aconfig",
237 defaults: ["framework-minus-apex-aconfig-java-defaults"],
238}
239
Iván Budnikae843cd2023-08-01 17:12:09 +0000240// Media BetterTogether
241aconfig_declarations {
242 name: "com.android.media.flags.bettertogether-aconfig",
243 package: "com.android.media.flags",
244 srcs: ["media/java/android/media/flags/media_better_together.aconfig"],
245}
246
247java_aconfig_library {
248 name: "com.android.media.flags.bettertogether-aconfig-java",
249 aconfig_declarations: "com.android.media.flags.bettertogether-aconfig",
250 defaults: ["framework-minus-apex-aconfig-java-defaults"],
251}