Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 1 | // 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 |
| 16 | java_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 Guan | 922de82 | 2023-08-30 13:34:58 -0500 | [diff] [blame] | 21 | ":android.app.usage.flags-aconfig-java{.generated_srcjars}", |
Jakob Schneider | d60b6fb | 2023-09-06 18:37:52 +0100 | [diff] [blame] | 22 | ":android.content.pm.flags-aconfig-java{.generated_srcjars}", |
Gil Cukierman | 5fc9dc6 | 2023-08-29 15:57:05 +0000 | [diff] [blame] | 23 | ":android.os.flags-aconfig-java{.generated_srcjars}", |
Yeabkal Wubshit | f90fe8d | 2023-06-29 01:55:43 -0700 | [diff] [blame] | 24 | ":android.os.vibrator.flags-aconfig-java{.generated_srcjars}", |
Victor Hsieh | 2ce97f2 | 2023-08-21 17:20:25 -0700 | [diff] [blame] | 25 | ":android.security.flags-aconfig-java{.generated_srcjars}", |
Shane | aadd41c | 2023-08-30 20:36:00 +0000 | [diff] [blame] | 26 | ":android.view.flags-aconfig-java{.generated_srcjars}", |
Eino-Ville Talvala | 1020850 | 2023-08-18 10:15:25 -0700 | [diff] [blame] | 27 | ":camera_platform_flags_core_java_lib{.generated_srcjars}", |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 28 | ":com.android.window.flags.window-aconfig-java{.generated_srcjars}", |
Josep del Rio | c469f35 | 2023-08-24 18:03:06 +0000 | [diff] [blame] | 29 | ":com.android.hardware.input-aconfig-java{.generated_srcjars}", |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 30 | ":com.android.text.flags-aconfig-java{.generated_srcjars}", |
Grant Menke | 417190a | 2023-08-30 14:39:29 -0700 | [diff] [blame] | 31 | ":telecom_flags_core_java_lib{.generated_srcjars}", |
Ling Ma | 5668985 | 2023-09-11 17:59:59 -0700 | [diff] [blame] | 32 | ":telephony_flags_core_java_lib{.generated_srcjars}", |
Marvin Ramin | 94357fd | 2023-08-23 11:07:27 +0200 | [diff] [blame] | 33 | ":android.companion.virtual.flags-aconfig-java{.generated_srcjars}", |
Felix Stern | d3dc6e0 | 2023-08-30 15:46:52 +0000 | [diff] [blame] | 34 | ":android.view.inputmethod.flags-aconfig-java{.generated_srcjars}", |
Yeabkal Wubshit | cbb08ee | 2023-09-05 21:01:56 -0700 | [diff] [blame] | 35 | ":android.widget.flags-aconfig-java{.generated_srcjars}", |
Iván Budnik | ae843cd | 2023-08-01 17:12:09 +0000 | [diff] [blame] | 36 | ":com.android.media.flags.bettertogether-aconfig-java{.generated_srcjars}", |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 37 | ], |
Zhi Dou | 3b92dcb | 2023-08-30 22:12:17 +0000 | [diff] [blame] | 38 | // Add aconfig-annotations-lib as a dependency for the optimization |
| 39 | libs: ["aconfig-annotations-lib"], |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | // Default flags for java_aconfig_libraries that go into framework-minus-apex |
| 43 | // These libraries will not work standalone |
| 44 | java_defaults { |
| 45 | name: "framework-minus-apex-aconfig-java-defaults", |
| 46 | sdk_version: "core_platform", |
| 47 | libs: ["fake_device_config"], |
| 48 | } |
| 49 | |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 50 | // Camera |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 51 | java_aconfig_library { |
Eino-Ville Talvala | 1020850 | 2023-08-18 10:15:25 -0700 | [diff] [blame] | 52 | name: "camera_platform_flags_core_java_lib", |
| 53 | aconfig_declarations: "camera_platform_flags", |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 54 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 55 | } |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 56 | |
Grant Menke | 417190a | 2023-08-30 14:39:29 -0700 | [diff] [blame] | 57 | // Telecom |
| 58 | java_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 Ma | 5668985 | 2023-09-11 17:59:59 -0700 | [diff] [blame] | 64 | // Telephony |
| 65 | java_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 Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 71 | // Window |
| 72 | aconfig_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 | |
| 78 | java_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 Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 83 | |
Josep del Rio | c469f35 | 2023-08-24 18:03:06 +0000 | [diff] [blame] | 84 | // Input |
| 85 | aconfig_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 | |
| 91 | java_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 Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 97 | // Text |
| 98 | aconfig_declarations { |
| 99 | name: "com.android.text.flags-aconfig", |
| 100 | package: "com.android.text.flags", |
| 101 | srcs: ["core/java/android/text/flags/*.aconfig"], |
| 102 | } |
| 103 | |
| 104 | java_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 Hsieh | 2ce97f2 | 2023-08-21 17:20:25 -0700 | [diff] [blame] | 109 | |
Seigo Nonaka | 02eee6e | 2023-08-31 16:38:05 +0900 | [diff] [blame] | 110 | cc_aconfig_library { |
| 111 | name: "aconfig_text_flags_c_lib", |
| 112 | aconfig_declarations: "com.android.text.flags-aconfig", |
| 113 | } |
| 114 | |
Victor Hsieh | 2ce97f2 | 2023-08-21 17:20:25 -0700 | [diff] [blame] | 115 | // Security |
| 116 | aconfig_declarations { |
| 117 | name: "android.security.flags-aconfig", |
| 118 | package: "android.security", |
| 119 | srcs: ["core/java/android/security/*.aconfig"], |
| 120 | } |
| 121 | |
| 122 | java_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 Cukierman | 5fc9dc6 | 2023-08-29 15:57:05 +0000 | [diff] [blame] | 127 | |
Victor Hsieh | 9a5311b | 2023-08-29 14:04:02 -0700 | [diff] [blame] | 128 | java_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 Guan | 922de82 | 2023-08-30 13:34:58 -0500 | [diff] [blame] | 136 | // UsageStats |
| 137 | aconfig_declarations { |
| 138 | name: "android.app.usage.flags-aconfig", |
| 139 | package: "android.app.usage", |
| 140 | srcs: ["core/java/android/app/usage/*.aconfig"], |
| 141 | } |
| 142 | |
| 143 | java_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 Cukierman | 5fc9dc6 | 2023-08-29 15:57:05 +0000 | [diff] [blame] | 149 | // OS |
| 150 | aconfig_declarations { |
| 151 | name: "android.os.flags-aconfig", |
| 152 | package: "android.os", |
| 153 | srcs: ["core/java/android/os/*.aconfig"], |
| 154 | } |
| 155 | |
| 156 | java_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 Ramin | 94357fd | 2023-08-23 11:07:27 +0200 | [diff] [blame] | 161 | |
| 162 | // VirtualDeviceManager |
| 163 | java_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 | |
| 169 | aconfig_declarations { |
| 170 | name: "android.companion.virtual.flags-aconfig", |
| 171 | package: "android.companion.virtual.flags", |
| 172 | srcs: ["core/java/android/companion/virtual/*.aconfig"], |
| 173 | } |
Felix Stern | d3dc6e0 | 2023-08-30 15:46:52 +0000 | [diff] [blame] | 174 | |
| 175 | // InputMethod |
| 176 | aconfig_declarations { |
| 177 | name: "android.view.inputmethod.flags-aconfig", |
| 178 | package: "android.view.inputmethod", |
| 179 | srcs: ["core/java/android/view/inputmethod/flags.aconfig"], |
| 180 | } |
| 181 | |
| 182 | java_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 Wubshit | f90fe8d | 2023-06-29 01:55:43 -0700 | [diff] [blame] | 187 | |
| 188 | // Vibrator |
| 189 | aconfig_declarations { |
| 190 | name: "android.os.vibrator.flags-aconfig", |
| 191 | package: "android.os.vibrator", |
| 192 | srcs: ["core/java/android/os/vibrator/*.aconfig"], |
| 193 | } |
| 194 | |
| 195 | java_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 | } |
Shane | aadd41c | 2023-08-30 20:36:00 +0000 | [diff] [blame] | 200 | |
| 201 | // View |
| 202 | aconfig_declarations { |
| 203 | name: "android.view.flags-aconfig", |
| 204 | package: "android.view.flags", |
| 205 | srcs: ["core/java/android/view/flags/*.aconfig"], |
| 206 | } |
| 207 | |
| 208 | java_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 Wubshit | cbb08ee | 2023-09-05 21:01:56 -0700 | [diff] [blame] | 213 | |
| 214 | // Widget |
| 215 | aconfig_declarations { |
| 216 | name: "android.widget.flags-aconfig", |
| 217 | package: "android.widget.flags", |
| 218 | srcs: ["core/java/android/widget/flags/*.aconfig"], |
| 219 | } |
| 220 | |
| 221 | java_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 Schneider | d60b6fb | 2023-09-06 18:37:52 +0100 | [diff] [blame] | 227 | // Package Manager |
| 228 | aconfig_declarations { |
| 229 | name: "android.content.pm.flags-aconfig", |
| 230 | package: "android.content.pm", |
| 231 | srcs: ["core/java/android/content/pm/*.aconfig"], |
| 232 | } |
| 233 | |
| 234 | java_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 Budnik | ae843cd | 2023-08-01 17:12:09 +0000 | [diff] [blame] | 240 | // Media BetterTogether |
| 241 | aconfig_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 | |
| 247 | java_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 | } |