diff options
Diffstat (limited to 'sysfs/ReadingEnhancement.h')
-rw-r--r-- | sysfs/ReadingEnhancement.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/sysfs/ReadingEnhancement.h b/sysfs/ReadingEnhancement.h index 595eb67..cf4149e 100644 --- a/sysfs/ReadingEnhancement.h +++ b/sysfs/ReadingEnhancement.h @@ -18,8 +18,6 @@ #define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H #include <vendor/lineage/livedisplay/2.0/IReadingEnhancement.h> -#include <hidl/MQDescriptor.h> -#include <hidl/Status.h> namespace vendor { namespace lineage { @@ -27,26 +25,20 @@ 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 ReadingEnhancement : public IReadingEnhancement { +#define FILE_RE "/sys/class/graphics/fb0/reading_mode" + +class ReadingEnhancement : public IReadingEnhancement { + public: + bool isSupported(); + // Methods from ::vendor::lineage::livedisplay::V2_0::IReadingEnhancement follow. Return<bool> isEnabled() override; Return<bool> setEnabled(bool enabled) override; - - // Methods from ::android::hidl::base::V1_0::IBase follow. - }; -// FIXME: most likely delete, this is only for passthrough implementations -// extern "C" IReadingEnhancement* HIDL_FETCH_IReadingEnhancement(const char* name); - } // namespace sysfs } // namespace V2_0 } // namespace livedisplay |