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}", |
Gil Cukierman | 5fc9dc6 | 2023-08-29 15:57:05 +0000 | [diff] [blame] | 22 | ":android.os.flags-aconfig-java{.generated_srcjars}", |
Yeabkal Wubshit | f90fe8d | 2023-06-29 01:55:43 -0700 | [diff] [blame] | 23 | ":android.os.vibrator.flags-aconfig-java{.generated_srcjars}", |
Victor Hsieh | 2ce97f2 | 2023-08-21 17:20:25 -0700 | [diff] [blame] | 24 | ":android.security.flags-aconfig-java{.generated_srcjars}", |
Shane | aadd41c | 2023-08-30 20:36:00 +0000 | [diff] [blame^] | 25 | ":android.view.flags-aconfig-java{.generated_srcjars}", |
Eino-Ville Talvala | 1020850 | 2023-08-18 10:15:25 -0700 | [diff] [blame] | 26 | ":camera_platform_flags_core_java_lib{.generated_srcjars}", |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 27 | ":com.android.window.flags.window-aconfig-java{.generated_srcjars}", |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 28 | ":com.android.text.flags-aconfig-java{.generated_srcjars}", |
Grant Menke | 417190a | 2023-08-30 14:39:29 -0700 | [diff] [blame] | 29 | ":telecom_flags_core_java_lib{.generated_srcjars}", |
Marvin Ramin | 94357fd | 2023-08-23 11:07:27 +0200 | [diff] [blame] | 30 | ":android.companion.virtual.flags-aconfig-java{.generated_srcjars}", |
Felix Stern | d3dc6e0 | 2023-08-30 15:46:52 +0000 | [diff] [blame] | 31 | ":android.view.inputmethod.flags-aconfig-java{.generated_srcjars}", |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 32 | ], |
Zhi Dou | 3b92dcb | 2023-08-30 22:12:17 +0000 | [diff] [blame] | 33 | // Add aconfig-annotations-lib as a dependency for the optimization |
| 34 | libs: ["aconfig-annotations-lib"], |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | // Default flags for java_aconfig_libraries that go into framework-minus-apex |
| 38 | // These libraries will not work standalone |
| 39 | java_defaults { |
| 40 | name: "framework-minus-apex-aconfig-java-defaults", |
| 41 | sdk_version: "core_platform", |
| 42 | libs: ["fake_device_config"], |
| 43 | } |
| 44 | |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 45 | // Camera |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 46 | java_aconfig_library { |
Eino-Ville Talvala | 1020850 | 2023-08-18 10:15:25 -0700 | [diff] [blame] | 47 | name: "camera_platform_flags_core_java_lib", |
| 48 | aconfig_declarations: "camera_platform_flags", |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 49 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 50 | } |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 51 | |
Grant Menke | 417190a | 2023-08-30 14:39:29 -0700 | [diff] [blame] | 52 | // Telecom |
| 53 | java_aconfig_library { |
| 54 | name: "telecom_flags_core_java_lib", |
| 55 | aconfig_declarations: "telecom_flags", |
| 56 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 57 | } |
| 58 | |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 59 | // Window |
| 60 | aconfig_declarations { |
| 61 | name: "com.android.window.flags.window-aconfig", |
| 62 | package: "com.android.window.flags", |
| 63 | srcs: ["core/java/android/window/flags/*.aconfig"], |
| 64 | } |
| 65 | |
| 66 | java_aconfig_library { |
| 67 | name: "com.android.window.flags.window-aconfig-java", |
| 68 | aconfig_declarations: "com.android.window.flags.window-aconfig", |
| 69 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 70 | } |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 71 | |
| 72 | // Text |
| 73 | aconfig_declarations { |
| 74 | name: "com.android.text.flags-aconfig", |
| 75 | package: "com.android.text.flags", |
| 76 | srcs: ["core/java/android/text/flags/*.aconfig"], |
| 77 | } |
| 78 | |
| 79 | java_aconfig_library { |
| 80 | name: "com.android.text.flags-aconfig-java", |
| 81 | aconfig_declarations: "com.android.text.flags-aconfig", |
| 82 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 83 | } |
Victor Hsieh | 2ce97f2 | 2023-08-21 17:20:25 -0700 | [diff] [blame] | 84 | |
Seigo Nonaka | 02eee6e | 2023-08-31 16:38:05 +0900 | [diff] [blame] | 85 | cc_aconfig_library { |
| 86 | name: "aconfig_text_flags_c_lib", |
| 87 | aconfig_declarations: "com.android.text.flags-aconfig", |
| 88 | } |
| 89 | |
Victor Hsieh | 2ce97f2 | 2023-08-21 17:20:25 -0700 | [diff] [blame] | 90 | // Security |
| 91 | aconfig_declarations { |
| 92 | name: "android.security.flags-aconfig", |
| 93 | package: "android.security", |
| 94 | srcs: ["core/java/android/security/*.aconfig"], |
| 95 | } |
| 96 | |
| 97 | java_aconfig_library { |
| 98 | name: "android.security.flags-aconfig-java", |
| 99 | aconfig_declarations: "android.security.flags-aconfig", |
| 100 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 101 | } |
Gil Cukierman | 5fc9dc6 | 2023-08-29 15:57:05 +0000 | [diff] [blame] | 102 | |
Victor Hsieh | 9a5311b | 2023-08-29 14:04:02 -0700 | [diff] [blame] | 103 | java_aconfig_library { |
| 104 | name: "android.security.flags-aconfig-java-host", |
| 105 | aconfig_declarations: "android.security.flags-aconfig", |
| 106 | host_supported: true, |
| 107 | test: true, |
| 108 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 109 | } |
| 110 | |
Xin Guan | 922de82 | 2023-08-30 13:34:58 -0500 | [diff] [blame] | 111 | // UsageStats |
| 112 | aconfig_declarations { |
| 113 | name: "android.app.usage.flags-aconfig", |
| 114 | package: "android.app.usage", |
| 115 | srcs: ["core/java/android/app/usage/*.aconfig"], |
| 116 | } |
| 117 | |
| 118 | java_aconfig_library { |
| 119 | name: "android.app.usage.flags-aconfig-java", |
| 120 | aconfig_declarations: "android.app.usage.flags-aconfig", |
| 121 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 122 | } |
| 123 | |
Gil Cukierman | 5fc9dc6 | 2023-08-29 15:57:05 +0000 | [diff] [blame] | 124 | // OS |
| 125 | aconfig_declarations { |
| 126 | name: "android.os.flags-aconfig", |
| 127 | package: "android.os", |
| 128 | srcs: ["core/java/android/os/*.aconfig"], |
| 129 | } |
| 130 | |
| 131 | java_aconfig_library { |
| 132 | name: "android.os.flags-aconfig-java", |
| 133 | aconfig_declarations: "android.os.flags-aconfig", |
| 134 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 135 | } |
Marvin Ramin | 94357fd | 2023-08-23 11:07:27 +0200 | [diff] [blame] | 136 | |
| 137 | // VirtualDeviceManager |
| 138 | java_aconfig_library { |
| 139 | name: "android.companion.virtual.flags-aconfig-java", |
| 140 | aconfig_declarations: "android.companion.virtual.flags-aconfig", |
| 141 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 142 | } |
| 143 | |
| 144 | aconfig_declarations { |
| 145 | name: "android.companion.virtual.flags-aconfig", |
| 146 | package: "android.companion.virtual.flags", |
| 147 | srcs: ["core/java/android/companion/virtual/*.aconfig"], |
| 148 | } |
Felix Stern | d3dc6e0 | 2023-08-30 15:46:52 +0000 | [diff] [blame] | 149 | |
| 150 | // InputMethod |
| 151 | aconfig_declarations { |
| 152 | name: "android.view.inputmethod.flags-aconfig", |
| 153 | package: "android.view.inputmethod", |
| 154 | srcs: ["core/java/android/view/inputmethod/flags.aconfig"], |
| 155 | } |
| 156 | |
| 157 | java_aconfig_library { |
| 158 | name: "android.view.inputmethod.flags-aconfig-java", |
| 159 | aconfig_declarations: "android.view.inputmethod.flags-aconfig", |
| 160 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 161 | } |
Yeabkal Wubshit | f90fe8d | 2023-06-29 01:55:43 -0700 | [diff] [blame] | 162 | |
| 163 | // Vibrator |
| 164 | aconfig_declarations { |
| 165 | name: "android.os.vibrator.flags-aconfig", |
| 166 | package: "android.os.vibrator", |
| 167 | srcs: ["core/java/android/os/vibrator/*.aconfig"], |
| 168 | } |
| 169 | |
| 170 | java_aconfig_library { |
| 171 | name: "android.os.vibrator.flags-aconfig-java", |
| 172 | aconfig_declarations: "android.os.vibrator.flags-aconfig", |
| 173 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 174 | } |
Shane | aadd41c | 2023-08-30 20:36:00 +0000 | [diff] [blame^] | 175 | |
| 176 | // View |
| 177 | aconfig_declarations { |
| 178 | name: "android.view.flags-aconfig", |
| 179 | package: "android.view.flags", |
| 180 | srcs: ["core/java/android/view/flags/*.aconfig"], |
| 181 | } |
| 182 | |
| 183 | java_aconfig_library { |
| 184 | name: "android.view.flags-aconfig-java", |
| 185 | aconfig_declarations: "android.view.flags-aconfig", |
| 186 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 187 | } |