Add the support of lights HAL

Bug: 230288032
Test: atest VtsHalLightTargetTest
Change-Id: I076e76f589a202833095b14a839500a26c35e9b3
Signed-off-by: Chungjui Fan <chungjuifan@google.com>
This commit is contained in:
Chungjui Fan 2022-06-08 15:02:49 +08:00
parent fdca91b2ac
commit 0d44479f24
6 changed files with 348 additions and 0 deletions

23
lights/Android.bp Normal file
View file

@ -0,0 +1,23 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "//device/google/tangorpro:device_google_tangorpro_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["//device/google/tangorpro:device_google_tangorpro_license"],
}
cc_binary {
name: "android.hardware.lights-service.tangorpro",
relative_install_path: "hw",
init_rc: ["android.hardware.lights-service.tangorpro.rc"],
vintf_fragments: ["android.hardware.lights-service.tangorpro.xml"],
vendor: true,
shared_libs: [
"libbase",
"libbinder_ndk",
"android.hardware.light-V2-ndk",
],
srcs: ["Lights.cpp", "led_lut_calibrator.cpp"],
}