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: [ |
| 21 | ":com.android.hardware.camera2-aconfig-java{.generated_srcjars}", |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 22 | ":com.android.window.flags.window-aconfig-java{.generated_srcjars}", |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 23 | ], |
| 24 | } |
| 25 | |
| 26 | // Default flags for java_aconfig_libraries that go into framework-minus-apex |
| 27 | // These libraries will not work standalone |
| 28 | java_defaults { |
| 29 | name: "framework-minus-apex-aconfig-java-defaults", |
| 30 | sdk_version: "core_platform", |
| 31 | libs: ["fake_device_config"], |
| 32 | } |
| 33 | |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 34 | // Camera |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 35 | aconfig_declarations { |
| 36 | name: "com.android.hardware.camera2-aconfig", |
| 37 | package: "com.android.hardware.camera2", |
| 38 | srcs: ["core/java/android/hardware/camera2/camera_platform.aconfig"], |
| 39 | } |
| 40 | |
| 41 | java_aconfig_library { |
| 42 | name: "com.android.hardware.camera2-aconfig-java", |
| 43 | aconfig_declarations: "com.android.hardware.camera2-aconfig", |
| 44 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 45 | } |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 46 | |
| 47 | // Window |
| 48 | aconfig_declarations { |
| 49 | name: "com.android.window.flags.window-aconfig", |
| 50 | package: "com.android.window.flags", |
| 51 | srcs: ["core/java/android/window/flags/*.aconfig"], |
| 52 | } |
| 53 | |
| 54 | java_aconfig_library { |
| 55 | name: "com.android.window.flags.window-aconfig-java", |
| 56 | aconfig_declarations: "com.android.window.flags.window-aconfig", |
| 57 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 58 | } |