diff options
Diffstat (limited to 'sysfs/SunlightEnhancement.h')
-rw-r--r-- | sysfs/SunlightEnhancement.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/sysfs/SunlightEnhancement.h b/sysfs/SunlightEnhancement.h index da94126..6156e15 100644 --- a/sysfs/SunlightEnhancement.h +++ b/sysfs/SunlightEnhancement.h @@ -18,8 +18,6 @@ #define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H #include <vendor/lineage/livedisplay/2.0/ISunlightEnhancement.h> -#include <hidl/MQDescriptor.h> -#include <hidl/Status.h> namespace vendor { namespace lineage { @@ -27,26 +25,25 @@ namespace livedisplay { namespace V2_0 { namespace sysfs { -using ::android::hardware::hidl_array; -using ::android::hardware::hidl_memory; -using ::android::hardware::hidl_string; -using ::android::hardware::hidl_vec; using ::android::hardware::Return; using ::android::hardware::Void; -using ::android::sp; -struct SunlightEnhancement : public ISunlightEnhancement { +#define FILE_HBM "/sys/class/graphics/fb0/hbm" +#define FILE_SRE "/sys/class/graphics/fb0/sre" + +class SunlightEnhancement : public ISunlightEnhancement { + public: + bool isSupported(); + // Methods from ::vendor::lineage::livedisplay::V2_0::ISunlightEnhancement follow. Return<bool> isEnabled() override; Return<bool> setEnabled(bool enabled) override; - // Methods from ::android::hidl::base::V1_0::IBase follow. - + private: + std::string mFile; + int32_t mEnabledMode; }; -// FIXME: most likely delete, this is only for passthrough implementations -// extern "C" ISunlightEnhancement* HIDL_FETCH_ISunlightEnhancement(const char* name); - } // namespace sysfs } // namespace V2_0 } // namespace livedisplay |