2021-06-28 09:37:26 +00:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2022-09-01 10:10:32 +00:00
|
|
|
// Defines our permissions
|
|
|
|
android_app {
|
|
|
|
name: "android.system.virtualmachine.res",
|
|
|
|
installable: true,
|
|
|
|
apex_available: ["com.android.virt"],
|
2022-10-24 11:02:35 +00:00
|
|
|
platform_apis: true,
|
2022-09-01 10:10:32 +00:00
|
|
|
}
|
|
|
|
|
2021-06-28 09:37:26 +00:00
|
|
|
java_sdk_library {
|
2022-10-18 22:17:34 +00:00
|
|
|
name: "framework-virtualization",
|
2021-06-28 09:37:26 +00:00
|
|
|
|
2022-12-06 14:16:20 +00:00
|
|
|
defaults: ["non-updatable-framework-module-defaults"],
|
2022-11-15 11:27:45 +00:00
|
|
|
|
2022-09-01 10:10:32 +00:00
|
|
|
jarjar_rules: "jarjar-rules.txt",
|
|
|
|
|
2021-06-28 09:37:26 +00:00
|
|
|
srcs: ["src/**/*.java"],
|
|
|
|
static_libs: [
|
|
|
|
"android.system.virtualizationservice-java",
|
2022-09-01 10:10:32 +00:00
|
|
|
// For android.sysprop.HypervisorProperties
|
|
|
|
"PlatformProperties",
|
2021-06-28 09:37:26 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
apex_available: ["com.android.virt"],
|
2022-10-18 22:17:34 +00:00
|
|
|
|
2021-06-28 09:37:26 +00:00
|
|
|
permitted_packages: [
|
|
|
|
"android.system.virtualmachine",
|
|
|
|
"android.system.virtualizationservice",
|
2022-09-01 10:10:32 +00:00
|
|
|
// android.sysprop.*, renamed by jarjar
|
|
|
|
"com.android.system.virtualmachine.sysprop",
|
2021-06-28 09:37:26 +00:00
|
|
|
],
|
2022-11-09 13:35:40 +00:00
|
|
|
errorprone: {
|
|
|
|
enabled: true,
|
|
|
|
javacflags: [
|
2022-11-18 14:28:08 +00:00
|
|
|
// We use @GuardedBy and we want a test failure if our locking isn't consistent with it.
|
2022-11-09 13:35:40 +00:00
|
|
|
"-Xep:GuardedBy:ERROR",
|
|
|
|
],
|
|
|
|
},
|
2022-10-18 22:17:34 +00:00
|
|
|
|
2022-11-15 11:27:45 +00:00
|
|
|
sdk_version: "core_platform",
|
2022-11-21 12:32:05 +00:00
|
|
|
stub_only_libs: [
|
|
|
|
"android_module_lib_stubs_current",
|
|
|
|
],
|
2022-11-15 11:27:45 +00:00
|
|
|
impl_only_libs: [
|
|
|
|
"framework",
|
|
|
|
],
|
|
|
|
impl_library_visibility: [
|
2022-11-18 14:28:08 +00:00
|
|
|
"//packages/modules/Virtualization:__subpackages__",
|
2022-11-15 11:27:45 +00:00
|
|
|
],
|
2022-08-17 10:38:24 +00:00
|
|
|
}
|
|
|
|
|
2022-12-06 18:10:39 +00:00
|
|
|
java_api_contribution {
|
|
|
|
name: "framework-virtualization-public-stubs",
|
|
|
|
api_surface: "public",
|
|
|
|
api_file: "api/current.txt",
|
|
|
|
visibility: [
|
|
|
|
"//build/orchestrator/apis",
|
|
|
|
],
|
|
|
|
}
|