From f3fdce9afd3922c85ef990f6528d12b927b84e64 Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Thu, 9 Dec 2021 18:22:55 -0500 Subject: [PATCH] vibrator: Drop kernel header dependency * This is a partial revert of 5fba81168e8446448da68a5e546c2aa77b8dd148. * CAF adds the kernel headers dep to fetch one single value that is removed in that commit. Easier to just carry it here, especially considering most devices won't have this in generated_kernel_headers, even. Change-Id: I5b7daab2731e4b6b529cdb1ccf0fe173f677f8fd --- aidl/vibrator/Android.bp | 1 - aidl/vibrator/VibratorOffload.cpp | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/aidl/vibrator/Android.bp b/aidl/vibrator/Android.bp index a346adf..f88a983 100644 --- a/aidl/vibrator/Android.bp +++ b/aidl/vibrator/Android.bp @@ -59,7 +59,6 @@ cc_library_shared { "android.hardware.vibrator-V1-ndk_platform", ], export_include_dirs: ["include"], - header_libs: ["qti_kernel_headers"], } cc_binary { diff --git a/aidl/vibrator/VibratorOffload.cpp b/aidl/vibrator/VibratorOffload.cpp index b9729b9..6922a9d 100644 --- a/aidl/vibrator/VibratorOffload.cpp +++ b/aidl/vibrator/VibratorOffload.cpp @@ -34,7 +34,6 @@ #include #include #include -#include #include #include #include @@ -53,6 +52,12 @@ namespace vibrator { #define UEVENT_MSG_LEN 1024 #define SLATE_EVENT "SLATE_EVENT=" #define SLATE_EVENT_STRING_LEN 12 //length of SLATE_EVENT +/* + * TODO Need to work on solution to get this from kernel header + * without effecting other kernel versions where this change + * goes in. + */ +#define SLATE_AFTER_POWER_UP 4 PatternOffload::PatternOffload() {