/* * Copyright (C) 2021-2022 The LineageOS Project * * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include #include #include "Backlight.h" using ::aidl::android::hardware::light::HwLight; using ::aidl::android::hardware::light::HwLightState; namespace aidl { namespace android { namespace hardware { namespace light { class Lights : public BnLights { public: Lights(); ndk::ScopedAStatus setLightState(int32_t id, const HwLightState& state) override; ndk::ScopedAStatus getLights(std::vector* _aidl_return) override; private: void setLED(); std::vector mLights; BacklightDevice* mBacklightDevice; std::vector mButtonsPaths; bool mWhiteLED; std::mutex mLEDMutex; HwLightState mLastBatteryState; HwLightState mLastNotificationState; HwLightState mLastAttentionState; }; } // namespace light } // namespace hardware } // namespace android } // namespace aidl