hidl: touch: Add binderized service implementation
* Change default ::implementation namespace to ::samsung
* Fill in required methods for used impls
* Cleanup passthrough code for used impls
* Add and setup binderized service
Change-Id: Iadc3b6e385233d103c3349ce31a08d6d040886c7
diff --git a/lineagehw/hidl/touch/KeyDisabler.h b/lineagehw/hidl/touch/KeyDisabler.h
index ffe4f0d..3b56b46 100644
--- a/lineagehw/hidl/touch/KeyDisabler.h
+++ b/lineagehw/hidl/touch/KeyDisabler.h
@@ -25,7 +25,7 @@
namespace lineage {
namespace touch {
namespace V1_0 {
-namespace implementation {
+namespace samsung {
using ::android::hardware::hidl_array;
using ::android::hardware::hidl_memory;
@@ -35,18 +35,21 @@
using ::android::hardware::Void;
using ::android::sp;
-struct KeyDisabler : public IKeyDisabler {
+class KeyDisabler : public IKeyDisabler {
+ public:
+ KeyDisabler() = default;
+
+ bool isSupported();
+
// Methods from ::vendor::lineage::touch::V1_0::IKeyDisabler follow.
- Return<void> setEnabled(bool enabled) override;
+ 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" IKeyDisabler* HIDL_FETCH_IKeyDisabler(const char* name);
-
-} // namespace implementation
+} // namespace samsung
} // namespace V1_0
} // namespace touch
} // namespace lineage