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: [ |
Gil Cukierman | 5fc9dc6 | 2023-08-29 15:57:05 +0000 | [diff] [blame] | 21 | ":android.os.flags-aconfig-java{.generated_srcjars}", |
Victor Hsieh | 2ce97f2 | 2023-08-21 17:20:25 -0700 | [diff] [blame] | 22 | ":android.security.flags-aconfig-java{.generated_srcjars}", |
Eino-Ville Talvala | 1020850 | 2023-08-18 10:15:25 -0700 | [diff] [blame] | 23 | ":camera_platform_flags_core_java_lib{.generated_srcjars}", |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 24 | ":com.android.window.flags.window-aconfig-java{.generated_srcjars}", |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 25 | ":com.android.text.flags-aconfig-java{.generated_srcjars}", |
Grant Menke | 417190a | 2023-08-30 14:39:29 -0700 | [diff] [blame^] | 26 | ":telecom_flags_core_java_lib{.generated_srcjars}", |
Marvin Ramin | 94357fd | 2023-08-23 11:07:27 +0200 | [diff] [blame] | 27 | ":android.companion.virtual.flags-aconfig-java{.generated_srcjars}", |
Felix Stern | d3dc6e0 | 2023-08-30 15:46:52 +0000 | [diff] [blame] | 28 | ":android.view.inputmethod.flags-aconfig-java{.generated_srcjars}", |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 29 | ], |
Zhi Dou | 3b92dcb | 2023-08-30 22:12:17 +0000 | [diff] [blame] | 30 | // Add aconfig-annotations-lib as a dependency for the optimization |
| 31 | libs: ["aconfig-annotations-lib"], |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | // Default flags for java_aconfig_libraries that go into framework-minus-apex |
| 35 | // These libraries will not work standalone |
| 36 | java_defaults { |
| 37 | name: "framework-minus-apex-aconfig-java-defaults", |
| 38 | sdk_version: "core_platform", |
| 39 | libs: ["fake_device_config"], |
| 40 | } |
| 41 | |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 42 | // Camera |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 43 | java_aconfig_library { |
Eino-Ville Talvala | 1020850 | 2023-08-18 10:15:25 -0700 | [diff] [blame] | 44 | name: "camera_platform_flags_core_java_lib", |
| 45 | aconfig_declarations: "camera_platform_flags", |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 46 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 47 | } |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 48 | |
Grant Menke | 417190a | 2023-08-30 14:39:29 -0700 | [diff] [blame^] | 49 | // Telecom |
| 50 | java_aconfig_library { |
| 51 | name: "telecom_flags_core_java_lib", |
| 52 | aconfig_declarations: "telecom_flags", |
| 53 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 54 | } |
| 55 | |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 56 | // Window |
| 57 | aconfig_declarations { |
| 58 | name: "com.android.window.flags.window-aconfig", |
| 59 | package: "com.android.window.flags", |
| 60 | srcs: ["core/java/android/window/flags/*.aconfig"], |
| 61 | } |
| 62 | |
| 63 | java_aconfig_library { |
| 64 | name: "com.android.window.flags.window-aconfig-java", |
| 65 | aconfig_declarations: "com.android.window.flags.window-aconfig", |
| 66 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 67 | } |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 68 | |
| 69 | // Text |
| 70 | aconfig_declarations { |
| 71 | name: "com.android.text.flags-aconfig", |
| 72 | package: "com.android.text.flags", |
| 73 | srcs: ["core/java/android/text/flags/*.aconfig"], |
| 74 | } |
| 75 | |
| 76 | java_aconfig_library { |
| 77 | name: "com.android.text.flags-aconfig-java", |
| 78 | aconfig_declarations: "com.android.text.flags-aconfig", |
| 79 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 80 | } |
Victor Hsieh | 2ce97f2 | 2023-08-21 17:20:25 -0700 | [diff] [blame] | 81 | |
| 82 | // Security |
| 83 | aconfig_declarations { |
| 84 | name: "android.security.flags-aconfig", |
| 85 | package: "android.security", |
| 86 | srcs: ["core/java/android/security/*.aconfig"], |
| 87 | } |
| 88 | |
| 89 | java_aconfig_library { |
| 90 | name: "android.security.flags-aconfig-java", |
| 91 | aconfig_declarations: "android.security.flags-aconfig", |
| 92 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 93 | } |
Gil Cukierman | 5fc9dc6 | 2023-08-29 15:57:05 +0000 | [diff] [blame] | 94 | |
Victor Hsieh | 9a5311b | 2023-08-29 14:04:02 -0700 | [diff] [blame] | 95 | java_aconfig_library { |
| 96 | name: "android.security.flags-aconfig-java-host", |
| 97 | aconfig_declarations: "android.security.flags-aconfig", |
| 98 | host_supported: true, |
| 99 | test: true, |
| 100 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 101 | } |
| 102 | |
Gil Cukierman | 5fc9dc6 | 2023-08-29 15:57:05 +0000 | [diff] [blame] | 103 | // OS |
| 104 | aconfig_declarations { |
| 105 | name: "android.os.flags-aconfig", |
| 106 | package: "android.os", |
| 107 | srcs: ["core/java/android/os/*.aconfig"], |
| 108 | } |
| 109 | |
| 110 | java_aconfig_library { |
| 111 | name: "android.os.flags-aconfig-java", |
| 112 | aconfig_declarations: "android.os.flags-aconfig", |
| 113 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 114 | } |
Marvin Ramin | 94357fd | 2023-08-23 11:07:27 +0200 | [diff] [blame] | 115 | |
| 116 | // VirtualDeviceManager |
| 117 | java_aconfig_library { |
| 118 | name: "android.companion.virtual.flags-aconfig-java", |
| 119 | aconfig_declarations: "android.companion.virtual.flags-aconfig", |
| 120 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 121 | } |
| 122 | |
| 123 | aconfig_declarations { |
| 124 | name: "android.companion.virtual.flags-aconfig", |
| 125 | package: "android.companion.virtual.flags", |
| 126 | srcs: ["core/java/android/companion/virtual/*.aconfig"], |
| 127 | } |
Felix Stern | d3dc6e0 | 2023-08-30 15:46:52 +0000 | [diff] [blame] | 128 | |
| 129 | // InputMethod |
| 130 | aconfig_declarations { |
| 131 | name: "android.view.inputmethod.flags-aconfig", |
| 132 | package: "android.view.inputmethod", |
| 133 | srcs: ["core/java/android/view/inputmethod/flags.aconfig"], |
| 134 | } |
| 135 | |
| 136 | java_aconfig_library { |
| 137 | name: "android.view.inputmethod.flags-aconfig-java", |
| 138 | aconfig_declarations: "android.view.inputmethod.flags-aconfig", |
| 139 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 140 | } |