15 Commits

Author SHA1 Message Date
beanstown106
8a6b51d85f wahoo: Enable battery led and multicolor notif/battery leds
* Updated comments with latest lights capabilities.

Change-Id: I445277aeebccd8bf6b0897d51d6a0c29d173828c
2024-06-08 21:52:56 +08:00
Rashed Abdel-Tawab
23129495c3 wahoo: Switch to generated_kernel_headers
Author: razorloves <razorloves@gmail.com>
Date:   Tue Feb 18 13:38:24 2020 +1100

    wahoo: liblight: use generated kernel headers

    Change-Id: Ib12bf0b7019f9fc1cd6b119e7377fe89d9eaf8f1
2024-06-08 21:51:33 +08:00
Dan Willemsen
06f7dd0a4b Stop using $(TARGET_DEVICE) in module names
See:
https://android.googlesource.com/platform/build/soong/+/master/docs/best_practices.md#module-with-name-based-on-variable

Bug: 122333321
Bug: 148986460
Test: treehugger
Change-Id: I68f596ebd09cc81108ad32b195677ad56b8a0653
2020-02-06 09:33:07 -08:00
Santos Cordon
aa1b4ab5ee Remove default VR brightness implementation in lights.c
There already exists adjustable, default values in the java layer for this stuff so
we will leverage that instead.

Test: Ensure that going into VR mode still sets the value to correct
default.

Bug: 73090564
Change-Id: Id9929f074219fee74f93def5227e92ea9b6f55a0
2018-04-17 11:22:07 -07:00
Lennart Wieboldt
c9ab231e23 wahoo: remove LOCAL_CLANG := true am: 8f4072e87a
am: 08424a84df

Change-Id: I1c6af3ab6e1d676bb1e16ab156fb72e22065013c
2017-11-13 19:56:24 +00:00
Lennart Wieboldt
8f4072e87a wahoo: remove LOCAL_CLANG := true
Clang is the default compiler since nougat.

Change-Id: I565e25f9f688a979eac41de0eee4a88b24099098
Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
2017-11-13 18:00:37 +00:00
Chih-Hung Hsieh
05896daee2 Use -Werror in device/google/wahoo am: 20197b4ece
am: 8d60677ea0

Change-Id: If8d99326c5afa8e0992f22a3b6abfa1d54d8c69e
2017-11-07 02:12:27 +00:00
Chih-Hung Hsieh
20197b4ece Use -Werror in device/google/wahoo
* Remove unused local variable.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I96228277b9c81b71e73e4e376d86cdea6cbcb647
2017-11-06 15:06:45 -08:00
jiwon912.choi
cd7e2696d2 liblight: Change method to get LP mode brightness am: 98a24a3603
am: 6042685672

Change-Id: Ibb8472f6a67757a1f6556535f059d53454d07dd2
2017-07-07 23:12:04 +00:00
jiwon912.choi
98a24a3603 liblight: Change method to get LP mode brightness
Bug : 62663757

If sys.display.low_persistence_mode_brightness is set, get brightness
from sys.display.low_persistence_mode_brightness.

Change-Id: I21a7583f535f8797300bab738cc4c8805ca06b90
2017-07-07 13:29:59 -07:00
Tri Vo
2d00ff1586 Fix missing headers from libhardware_headers.
Bug: 37342627
Test: cd device/google/wahoo/ && mma -j64 -k BOARD_VNDK_VERSION=current
Change-Id: I20c21bb9e18049d4f90d8a8102be5935b98aa2ea
2017-06-22 18:03:11 -07:00
Isaac Chen
c0cae510d2 lights.$(TARGET_DEVICE): moved to vendor partition
Move it to vendor to work with generic AOSP system image.

Bug: 37927875
Test: The lib is under /vendor/lib(64)/hw instead of /system/lib(64)/hw
and the resulted system/vendor images work on the device.

Change-Id: I8218120bc870b64959f5a9929c5fdea703b7fb0c
2017-05-17 15:44:41 +08:00
taekwoo.nam
b45c4031ad liblight: Change the node for the low persistence mode.
To synchronize the kernel driver, changed the path.

Bug: 36660610
Change-Id: Ieaf9e46dd4ce7d0aad91a1f7bfa486029be1816a
2017-04-18 22:29:33 +00:00
Steven Moreland
2d06d3d446 liblight: remove button light.
The file /sys/class/leds/button-backlight/brightness isn't
created/exposed by the kernel.

Bug: 36097008
Test: LightHidlTest.TestSupported now passes.
Change-Id: If2e036cfa9fdb36596bc0820480072fde7591112
2017-03-20 14:40:42 -07:00
Thierry Strudel
4e18dc435b Import common file from device specific directory
Test: boot, basic functionality
Change-Id: I9c07718b481730c3388f99c5e1eff17c9fd75a7b
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-04 23:34:45 -08:00