Files
android_hardware_oplus/aidl/touch/GloveMode.h
Bruno Martins 1a462ed83c touch: Implement GloveMode support
Change-Id: I1bb2f502e5b6947dfb2d68572b098d0e5b058c28
2025-07-06 23:56:31 +01:00

33 lines
747 B
C++

/*
* SPDX-FileCopyrightText: 2025 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <aidl/vendor/lineage/touch/BnGloveMode.h>
#include <aidl/vendor/oplus/hardware/touch/IOplusTouch.h>
namespace aidl {
namespace vendor {
namespace lineage {
namespace touch {
using aidl::vendor::oplus::hardware::touch::IOplusTouch;
class GloveMode : public BnGloveMode {
public:
explicit GloveMode(std::shared_ptr<IOplusTouch> oplusTouch);
ndk::ScopedAStatus getEnabled(bool* _aidl_return) override;
ndk::ScopedAStatus setEnabled(bool enabled) override;
private:
std::shared_ptr<IOplusTouch> mOplusTouch;
};
} // namespace touch
} // namespace lineage
} // namespace vendor
} // namespace aidl