2021-02-23 14:26:20 -08:00
|
|
|
package {
|
2024-01-31 11:06:17 +00:00
|
|
|
default_team: "trendy_team_haptics_framework",
|
2021-02-23 14:26:20 -08:00
|
|
|
// See: http://go/android-license-faq
|
|
|
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
|
|
|
// all of the 'license_kinds' from "hardware_interfaces_license"
|
|
|
|
|
// to get the below license kinds:
|
|
|
|
|
// SPDX-license-identifier-Apache-2.0
|
|
|
|
|
default_applicable_licenses: ["hardware_interfaces_license"],
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-18 16:23:39 -08:00
|
|
|
cc_library_static {
|
|
|
|
|
name: "libvibratorexampleimpl",
|
2022-03-15 01:45:28 +00:00
|
|
|
vendor_available: true,
|
|
|
|
|
host_supported: true,
|
2019-11-18 16:23:39 -08:00
|
|
|
shared_libs: [
|
|
|
|
|
"libbase",
|
|
|
|
|
"libbinder_ndk",
|
2021-08-09 09:47:37 +09:00
|
|
|
"android.hardware.vibrator-V2-ndk",
|
2019-11-18 16:23:39 -08:00
|
|
|
],
|
|
|
|
|
export_include_dirs: ["include"],
|
2020-10-12 18:44:40 +00:00
|
|
|
srcs: [
|
|
|
|
|
"Vibrator.cpp",
|
|
|
|
|
"VibratorManager.cpp",
|
|
|
|
|
],
|
2019-11-18 16:23:39 -08:00
|
|
|
visibility: [
|
2020-01-06 13:40:51 -08:00
|
|
|
":__subpackages__",
|
|
|
|
|
"//hardware/interfaces/tests/extension/vibrator:__subpackages__",
|
2019-11-18 16:23:39 -08:00
|
|
|
],
|
2022-03-15 01:45:28 +00:00
|
|
|
target: {
|
|
|
|
|
darwin: {
|
|
|
|
|
enabled: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
2019-11-18 16:23:39 -08:00
|
|
|
}
|
|
|
|
|
|
2023-10-10 16:08:22 +09:00
|
|
|
prebuilt_etc {
|
2021-09-16 10:42:58 -07:00
|
|
|
name: "android.hardware.vibrator.xml",
|
2023-10-10 16:08:22 +09:00
|
|
|
src: "android.hardware.vibrator.xml",
|
|
|
|
|
sub_dir: "vintf",
|
|
|
|
|
installable: false,
|
2021-09-16 10:42:58 -07:00
|
|
|
}
|
|
|
|
|
|
2019-10-24 18:12:46 -07:00
|
|
|
cc_binary {
|
|
|
|
|
name: "android.hardware.vibrator-service.example",
|
|
|
|
|
relative_install_path: "hw",
|
|
|
|
|
init_rc: ["vibrator-default.rc"],
|
2021-09-16 10:42:58 -07:00
|
|
|
vintf_fragments: [":android.hardware.vibrator.xml"],
|
2019-10-24 18:12:46 -07:00
|
|
|
vendor: true,
|
|
|
|
|
shared_libs: [
|
|
|
|
|
"libbase",
|
|
|
|
|
"libbinder_ndk",
|
2021-08-09 09:47:37 +09:00
|
|
|
"android.hardware.vibrator-V2-ndk",
|
2019-10-24 18:12:46 -07:00
|
|
|
],
|
2019-11-18 16:23:39 -08:00
|
|
|
static_libs: [
|
|
|
|
|
"libvibratorexampleimpl",
|
|
|
|
|
],
|
|
|
|
|
srcs: ["main.cpp"],
|
2019-10-24 18:12:46 -07:00
|
|
|
}
|
2022-03-15 01:45:28 +00:00
|
|
|
|
|
|
|
|
cc_fuzz {
|
|
|
|
|
name: "android.hardware.vibrator-service.example_fuzzer",
|
|
|
|
|
host_supported: true,
|
2022-08-19 20:54:21 +00:00
|
|
|
defaults: ["service_fuzzer_defaults"],
|
2022-03-15 01:45:28 +00:00
|
|
|
static_libs: [
|
|
|
|
|
"android.hardware.vibrator-V2-ndk",
|
|
|
|
|
"liblog",
|
|
|
|
|
"libvibratorexampleimpl",
|
|
|
|
|
],
|
|
|
|
|
srcs: ["fuzzer.cpp"],
|
|
|
|
|
fuzz_config: {
|
|
|
|
|
cc: [
|
|
|
|
|
"smoreland@google.com",
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
}
|