summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Keith <javelinanddart@gmail.com>2018-08-12 19:56:29 +0200
committerPaul Keith <javelinanddart@gmail.com>2018-08-22 15:52:26 +0200
commit3f2656223a15673a18b4ea39a0471dc7241380b9 (patch)
treed298a9cb217468c5429db9e82bf2860f1886aa17
downloadandroid_hardware_lineage_livedisplay-3f2656223a15673a18b4ea39a0471dc7241380b9.tar.gz
android_hardware_lineage_livedisplay-3f2656223a15673a18b4ea39a0471dc7241380b9.tar.bz2
android_hardware_lineage_livedisplay-3f2656223a15673a18b4ea39a0471dc7241380b9.zip
livedisplay: Add initial code generated from hidl-gen
Change-Id: I2fffa3be545336f74f21a06762a93f1f158ab607
-rw-r--r--qti/AdaptiveBacklight.cpp31
-rw-r--r--qti/AdaptiveBacklight.h40
-rw-r--r--qti/Android.bp34
-rw-r--r--qti/AutoContrast.cpp31
-rw-r--r--qti/AutoContrast.h40
-rw-r--r--qti/ColorBalance.cpp36
-rw-r--r--qti/ColorBalance.h41
-rw-r--r--qti/ColorEnhancement.cpp31
-rw-r--r--qti/ColorEnhancement.h40
-rw-r--r--qti/DisplayColorCalibration.cpp41
-rw-r--r--qti/DisplayColorCalibration.h42
-rw-r--r--qti/DisplayModes.cpp41
-rw-r--r--qti/DisplayModes.h42
-rw-r--r--qti/PictureAdjustment.cpp61
-rw-r--r--qti/PictureAdjustment.h46
-rw-r--r--qti/ReadingEnhancement.cpp31
-rw-r--r--qti/ReadingEnhancement.h40
-rw-r--r--qti/SunlightEnhancement.cpp31
-rw-r--r--qti/SunlightEnhancement.h40
19 files changed, 739 insertions, 0 deletions
diff --git a/qti/AdaptiveBacklight.cpp b/qti/AdaptiveBacklight.cpp
new file mode 100644
index 0000000..c32a14e
--- /dev/null
+++ b/qti/AdaptiveBacklight.cpp
@@ -0,0 +1,31 @@
+#include "AdaptiveBacklight.h"
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+// Methods from ::vendor::lineage::livedisplay::V2_0::IAdaptiveBacklight follow.
+Return<bool> AdaptiveBacklight::isEnabled() {
+ // TODO implement
+ return bool {};
+}
+
+Return<bool> AdaptiveBacklight::setEnabled(bool enabled) {
+ // TODO implement
+ return bool {};
+}
+
+
+// Methods from ::android::hidl::base::V1_0::IBase follow.
+
+//IAdaptiveBacklight* HIDL_FETCH_IAdaptiveBacklight(const char* /* name */) {
+ //return new AdaptiveBacklight();
+//}
+//
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
diff --git a/qti/AdaptiveBacklight.h b/qti/AdaptiveBacklight.h
new file mode 100644
index 0000000..58bd74d
--- /dev/null
+++ b/qti/AdaptiveBacklight.h
@@ -0,0 +1,40 @@
+#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_ADAPTIVEBACKLIGHT_H
+#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_ADAPTIVEBACKLIGHT_H
+
+#include <vendor/lineage/livedisplay/2.0/IAdaptiveBacklight.h>
+#include <hidl/MQDescriptor.h>
+#include <hidl/Status.h>
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+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 AdaptiveBacklight : public IAdaptiveBacklight {
+ // Methods from ::vendor::lineage::livedisplay::V2_0::IAdaptiveBacklight 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" IAdaptiveBacklight* HIDL_FETCH_IAdaptiveBacklight(const char* name);
+
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
+
+#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_ADAPTIVEBACKLIGHT_H
diff --git a/qti/Android.bp b/qti/Android.bp
new file mode 100644
index 0000000..22f8234
--- /dev/null
+++ b/qti/Android.bp
@@ -0,0 +1,34 @@
+cc_library_shared {
+ // FIXME: this should only be -impl for a passthrough hal.
+ // In most cases, to convert this to a binderized implementation, you should:
+ // - change '-impl' to '-service' here and make it a cc_binary instead of a
+ // cc_library_shared.
+ // - add a *.rc file for this module.
+ // - delete HIDL_FETCH_I* functions.
+ // - call configureRpcThreadpool and registerAsService on the instance.
+ // You may also want to append '-impl/-service' with a specific identifier like
+ // '-vendor' or '-<hardware identifier>' etc to distinguish it.
+ name: "vendor.lineage.livedisplay@2.0-impl",
+ relative_install_path: "hw",
+ // FIXME: this should be 'vendor: true' for modules that will eventually be
+ // on AOSP.
+ proprietary: true,
+ srcs: [
+ "AdaptiveBacklight.cpp",
+ "AutoContrast.cpp",
+ "ColorBalance.cpp",
+ "ColorEnhancement.cpp",
+ "DisplayColorCalibration.cpp",
+ "DisplayModes.cpp",
+ "PictureAdjustment.cpp",
+ "ReadingEnhancement.cpp",
+ "SunlightEnhancement.cpp",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "libhidltransport",
+ "libutils",
+ "vendor.lineage.livedisplay@2.0",
+ "vendor.lineage.livedisplay@1.0",
+ ],
+}
diff --git a/qti/AutoContrast.cpp b/qti/AutoContrast.cpp
new file mode 100644
index 0000000..f02896a
--- /dev/null
+++ b/qti/AutoContrast.cpp
@@ -0,0 +1,31 @@
+#include "AutoContrast.h"
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+// Methods from ::vendor::lineage::livedisplay::V2_0::IAutoContrast follow.
+Return<bool> AutoContrast::isEnabled() {
+ // TODO implement
+ return bool {};
+}
+
+Return<bool> AutoContrast::setEnabled(bool enabled) {
+ // TODO implement
+ return bool {};
+}
+
+
+// Methods from ::android::hidl::base::V1_0::IBase follow.
+
+//IAutoContrast* HIDL_FETCH_IAutoContrast(const char* /* name */) {
+ //return new AutoContrast();
+//}
+//
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
diff --git a/qti/AutoContrast.h b/qti/AutoContrast.h
new file mode 100644
index 0000000..50d949b
--- /dev/null
+++ b/qti/AutoContrast.h
@@ -0,0 +1,40 @@
+#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_AUTOCONTRAST_H
+#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_AUTOCONTRAST_H
+
+#include <vendor/lineage/livedisplay/2.0/IAutoContrast.h>
+#include <hidl/MQDescriptor.h>
+#include <hidl/Status.h>
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+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 AutoContrast : public IAutoContrast {
+ // Methods from ::vendor::lineage::livedisplay::V2_0::IAutoContrast 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" IAutoContrast* HIDL_FETCH_IAutoContrast(const char* name);
+
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
+
+#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_AUTOCONTRAST_H
diff --git a/qti/ColorBalance.cpp b/qti/ColorBalance.cpp
new file mode 100644
index 0000000..2382070
--- /dev/null
+++ b/qti/ColorBalance.cpp
@@ -0,0 +1,36 @@
+#include "ColorBalance.h"
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+// Methods from ::vendor::lineage::livedisplay::V2_0::IColorBalance follow.
+Return<void> ColorBalance::getColorBalanceRange(getColorBalanceRange_cb _hidl_cb) {
+ // TODO implement
+ return Void();
+}
+
+Return<int32_t> ColorBalance::getColorBalance() {
+ // TODO implement
+ return int32_t {};
+}
+
+Return<bool> ColorBalance::setColorBalance(int32_t value) {
+ // TODO implement
+ return bool {};
+}
+
+
+// Methods from ::android::hidl::base::V1_0::IBase follow.
+
+//IColorBalance* HIDL_FETCH_IColorBalance(const char* /* name */) {
+ //return new ColorBalance();
+//}
+//
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
diff --git a/qti/ColorBalance.h b/qti/ColorBalance.h
new file mode 100644
index 0000000..542f1ed
--- /dev/null
+++ b/qti/ColorBalance.h
@@ -0,0 +1,41 @@
+#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORBALANCE_H
+#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORBALANCE_H
+
+#include <vendor/lineage/livedisplay/2.0/IColorBalance.h>
+#include <hidl/MQDescriptor.h>
+#include <hidl/Status.h>
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+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 ColorBalance : public IColorBalance {
+ // Methods from ::vendor::lineage::livedisplay::V2_0::IColorBalance follow.
+ Return<void> getColorBalanceRange(getColorBalanceRange_cb _hidl_cb) override;
+ Return<int32_t> getColorBalance() override;
+ Return<bool> setColorBalance(int32_t value) override;
+
+ // Methods from ::android::hidl::base::V1_0::IBase follow.
+
+};
+
+// FIXME: most likely delete, this is only for passthrough implementations
+// extern "C" IColorBalance* HIDL_FETCH_IColorBalance(const char* name);
+
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
+
+#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORBALANCE_H
diff --git a/qti/ColorEnhancement.cpp b/qti/ColorEnhancement.cpp
new file mode 100644
index 0000000..0f186d3
--- /dev/null
+++ b/qti/ColorEnhancement.cpp
@@ -0,0 +1,31 @@
+#include "ColorEnhancement.h"
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+// Methods from ::vendor::lineage::livedisplay::V2_0::IColorEnhancement follow.
+Return<bool> ColorEnhancement::isEnabled() {
+ // TODO implement
+ return bool {};
+}
+
+Return<bool> ColorEnhancement::setEnabled(bool enabled) {
+ // TODO implement
+ return bool {};
+}
+
+
+// Methods from ::android::hidl::base::V1_0::IBase follow.
+
+//IColorEnhancement* HIDL_FETCH_IColorEnhancement(const char* /* name */) {
+ //return new ColorEnhancement();
+//}
+//
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
diff --git a/qti/ColorEnhancement.h b/qti/ColorEnhancement.h
new file mode 100644
index 0000000..dc43726
--- /dev/null
+++ b/qti/ColorEnhancement.h
@@ -0,0 +1,40 @@
+#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORENHANCEMENT_H
+#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORENHANCEMENT_H
+
+#include <vendor/lineage/livedisplay/2.0/IColorEnhancement.h>
+#include <hidl/MQDescriptor.h>
+#include <hidl/Status.h>
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+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 ColorEnhancement : public IColorEnhancement {
+ // Methods from ::vendor::lineage::livedisplay::V2_0::IColorEnhancement 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" IColorEnhancement* HIDL_FETCH_IColorEnhancement(const char* name);
+
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
+
+#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORENHANCEMENT_H
diff --git a/qti/DisplayColorCalibration.cpp b/qti/DisplayColorCalibration.cpp
new file mode 100644
index 0000000..e5b1169
--- /dev/null
+++ b/qti/DisplayColorCalibration.cpp
@@ -0,0 +1,41 @@
+#include "DisplayColorCalibration.h"
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+// Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayColorCalibration follow.
+Return<int32_t> DisplayColorCalibration::getMaxValue() {
+ // TODO implement
+ return int32_t {};
+}
+
+Return<int32_t> DisplayColorCalibration::getMinValue() {
+ // TODO implement
+ return int32_t {};
+}
+
+Return<void> DisplayColorCalibration::getCalibration(getCalibration_cb _hidl_cb) {
+ // TODO implement
+ return Void();
+}
+
+Return<bool> DisplayColorCalibration::setCalibration(const hidl_vec<int32_t>& rgb) {
+ // TODO implement
+ return bool {};
+}
+
+
+// Methods from ::android::hidl::base::V1_0::IBase follow.
+
+//IDisplayColorCalibration* HIDL_FETCH_IDisplayColorCalibration(const char* /* name */) {
+ //return new DisplayColorCalibration();
+//}
+//
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
diff --git a/qti/DisplayColorCalibration.h b/qti/DisplayColorCalibration.h
new file mode 100644
index 0000000..644ca9d
--- /dev/null
+++ b/qti/DisplayColorCalibration.h
@@ -0,0 +1,42 @@
+#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H
+#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H
+
+#include <vendor/lineage/livedisplay/2.0/IDisplayColorCalibration.h>
+#include <hidl/MQDescriptor.h>
+#include <hidl/Status.h>
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+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 DisplayColorCalibration : public IDisplayColorCalibration {
+ // Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayColorCalibration follow.
+ Return<int32_t> getMaxValue() override;
+ Return<int32_t> getMinValue() override;
+ Return<void> getCalibration(getCalibration_cb _hidl_cb) override;
+ Return<bool> setCalibration(const hidl_vec<int32_t>& rgb) override;
+
+ // Methods from ::android::hidl::base::V1_0::IBase follow.
+
+};
+
+// FIXME: most likely delete, this is only for passthrough implementations
+// extern "C" IDisplayColorCalibration* HIDL_FETCH_IDisplayColorCalibration(const char* name);
+
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
+
+#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H
diff --git a/qti/DisplayModes.cpp b/qti/DisplayModes.cpp
new file mode 100644
index 0000000..ecac41b
--- /dev/null
+++ b/qti/DisplayModes.cpp
@@ -0,0 +1,41 @@
+#include "DisplayModes.h"
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+// Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayModes follow.
+Return<void> DisplayModes::getDisplayModes(getDisplayModes_cb _hidl_cb) {
+ // TODO implement
+ return Void();
+}
+
+Return<void> DisplayModes::getCurrentDisplayMode(getCurrentDisplayMode_cb _hidl_cb) {
+ // TODO implement
+ return Void();
+}
+
+Return<void> DisplayModes::getDefaultDisplayMode(getDefaultDisplayMode_cb _hidl_cb) {
+ // TODO implement
+ return Void();
+}
+
+Return<bool> DisplayModes::setDisplayMode(int32_t modeID, bool makeDefault) {
+ // TODO implement
+ return bool {};
+}
+
+
+// Methods from ::android::hidl::base::V1_0::IBase follow.
+
+//IDisplayModes* HIDL_FETCH_IDisplayModes(const char* /* name */) {
+ //return new DisplayModes();
+//}
+//
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
diff --git a/qti/DisplayModes.h b/qti/DisplayModes.h
new file mode 100644
index 0000000..d83caf8
--- /dev/null
+++ b/qti/DisplayModes.h
@@ -0,0 +1,42 @@
+#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYMODES_H
+#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYMODES_H
+
+#include <vendor/lineage/livedisplay/2.0/IDisplayModes.h>
+#include <hidl/MQDescriptor.h>
+#include <hidl/Status.h>
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+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 DisplayModes : public IDisplayModes {
+ // Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayModes follow.
+ Return<void> getDisplayModes(getDisplayModes_cb _hidl_cb) override;
+ Return<void> getCurrentDisplayMode(getCurrentDisplayMode_cb _hidl_cb) override;
+ Return<void> getDefaultDisplayMode(getDefaultDisplayMode_cb _hidl_cb) override;
+ Return<bool> setDisplayMode(int32_t modeID, bool makeDefault) override;
+
+ // Methods from ::android::hidl::base::V1_0::IBase follow.
+
+};
+
+// FIXME: most likely delete, this is only for passthrough implementations
+// extern "C" IDisplayModes* HIDL_FETCH_IDisplayModes(const char* name);
+
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
+
+#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYMODES_H
diff --git a/qti/PictureAdjustment.cpp b/qti/PictureAdjustment.cpp
new file mode 100644
index 0000000..79f17a7
--- /dev/null
+++ b/qti/PictureAdjustment.cpp
@@ -0,0 +1,61 @@
+#include "PictureAdjustment.h"
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+// Methods from ::vendor::lineage::livedisplay::V2_0::IPictureAdjustment follow.
+Return<void> PictureAdjustment::getHueRange(getHueRange_cb _hidl_cb) {
+ // TODO implement
+ return Void();
+}
+
+Return<void> PictureAdjustment::getSaturationRange(getSaturationRange_cb _hidl_cb) {
+ // TODO implement
+ return Void();
+}
+
+Return<void> PictureAdjustment::getIntensityRange(getIntensityRange_cb _hidl_cb) {
+ // TODO implement
+ return Void();
+}
+
+Return<void> PictureAdjustment::getContrastRange(getContrastRange_cb _hidl_cb) {
+ // TODO implement
+ return Void();
+}
+
+Return<void> PictureAdjustment::getSaturationThresholdRange(getSaturationThresholdRange_cb _hidl_cb) {
+ // TODO implement
+ return Void();
+}
+
+Return<void> PictureAdjustment::getPictureAdjustment(getPictureAdjustment_cb _hidl_cb) {
+ // TODO implement
+ return Void();
+}
+
+Return<void> PictureAdjustment::getDefaultPictureAdjustment(getDefaultPictureAdjustment_cb _hidl_cb) {
+ // TODO implement
+ return Void();
+}
+
+Return<bool> PictureAdjustment::setPictureAdjustment(const ::vendor::lineage::livedisplay::V1_0::HSIC& hsic) {
+ // TODO implement
+ return bool {};
+}
+
+
+// Methods from ::android::hidl::base::V1_0::IBase follow.
+
+//IPictureAdjustment* HIDL_FETCH_IPictureAdjustment(const char* /* name */) {
+ //return new PictureAdjustment();
+//}
+//
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
diff --git a/qti/PictureAdjustment.h b/qti/PictureAdjustment.h
new file mode 100644
index 0000000..78c56db
--- /dev/null
+++ b/qti/PictureAdjustment.h
@@ -0,0 +1,46 @@
+#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_PICTUREADJUSTMENT_H
+#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_PICTUREADJUSTMENT_H
+
+#include <vendor/lineage/livedisplay/2.0/IPictureAdjustment.h>
+#include <hidl/MQDescriptor.h>
+#include <hidl/Status.h>
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+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 PictureAdjustment : public IPictureAdjustment {
+ // Methods from ::vendor::lineage::livedisplay::V2_0::IPictureAdjustment follow.
+ Return<void> getHueRange(getHueRange_cb _hidl_cb) override;
+ Return<void> getSaturationRange(getSaturationRange_cb _hidl_cb) override;
+ Return<void> getIntensityRange(getIntensityRange_cb _hidl_cb) override;
+ Return<void> getContrastRange(getContrastRange_cb _hidl_cb) override;
+ Return<void> getSaturationThresholdRange(getSaturationThresholdRange_cb _hidl_cb) override;
+ Return<void> getPictureAdjustment(getPictureAdjustment_cb _hidl_cb) override;
+ Return<void> getDefaultPictureAdjustment(getDefaultPictureAdjustment_cb _hidl_cb) override;
+ Return<bool> setPictureAdjustment(const ::vendor::lineage::livedisplay::V1_0::HSIC& hsic) override;
+
+ // Methods from ::android::hidl::base::V1_0::IBase follow.
+
+};
+
+// FIXME: most likely delete, this is only for passthrough implementations
+// extern "C" IPictureAdjustment* HIDL_FETCH_IPictureAdjustment(const char* name);
+
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
+
+#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_PICTUREADJUSTMENT_H
diff --git a/qti/ReadingEnhancement.cpp b/qti/ReadingEnhancement.cpp
new file mode 100644
index 0000000..bf71df9
--- /dev/null
+++ b/qti/ReadingEnhancement.cpp
@@ -0,0 +1,31 @@
+#include "ReadingEnhancement.h"
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+// Methods from ::vendor::lineage::livedisplay::V2_0::IReadingEnhancement follow.
+Return<bool> ReadingEnhancement::isEnabled() {
+ // TODO implement
+ return bool {};
+}
+
+Return<bool> ReadingEnhancement::setEnabled(bool enabled) {
+ // TODO implement
+ return bool {};
+}
+
+
+// Methods from ::android::hidl::base::V1_0::IBase follow.
+
+//IReadingEnhancement* HIDL_FETCH_IReadingEnhancement(const char* /* name */) {
+ //return new ReadingEnhancement();
+//}
+//
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
diff --git a/qti/ReadingEnhancement.h b/qti/ReadingEnhancement.h
new file mode 100644
index 0000000..ee996d5
--- /dev/null
+++ b/qti/ReadingEnhancement.h
@@ -0,0 +1,40 @@
+#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H
+#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 {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+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 {
+ // 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 implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
+
+#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H
diff --git a/qti/SunlightEnhancement.cpp b/qti/SunlightEnhancement.cpp
new file mode 100644
index 0000000..8516a53
--- /dev/null
+++ b/qti/SunlightEnhancement.cpp
@@ -0,0 +1,31 @@
+#include "SunlightEnhancement.h"
+
+namespace vendor {
+namespace lineage {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+// Methods from ::vendor::lineage::livedisplay::V2_0::ISunlightEnhancement follow.
+Return<bool> SunlightEnhancement::isEnabled() {
+ // TODO implement
+ return bool {};
+}
+
+Return<bool> SunlightEnhancement::setEnabled(bool enabled) {
+ // TODO implement
+ return bool {};
+}
+
+
+// Methods from ::android::hidl::base::V1_0::IBase follow.
+
+//ISunlightEnhancement* HIDL_FETCH_ISunlightEnhancement(const char* /* name */) {
+ //return new SunlightEnhancement();
+//}
+//
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
diff --git a/qti/SunlightEnhancement.h b/qti/SunlightEnhancement.h
new file mode 100644
index 0000000..98848d9
--- /dev/null
+++ b/qti/SunlightEnhancement.h
@@ -0,0 +1,40 @@
+#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H
+#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 {
+namespace livedisplay {
+namespace V2_0 {
+namespace implementation {
+
+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 {
+ // 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.
+
+};
+
+// FIXME: most likely delete, this is only for passthrough implementations
+// extern "C" ISunlightEnhancement* HIDL_FETCH_ISunlightEnhancement(const char* name);
+
+} // namespace implementation
+} // namespace V2_0
+} // namespace livedisplay
+} // namespace lineage
+} // namespace vendor
+
+#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H