/* * SPDX-FileCopyrightText: 2020 The Android Open Source Project * SPDX-FileCopyrightText: 2023 The LineageOS Project * SPDX-License-Identifier: Apache-2.0 */ #pragma once #define LOG_TAG "android.hardware.lights-service.bengal" #include #include namespace aidl { namespace android { namespace hardware { namespace light { // Keep sorted in the order of priority. constexpr std::array kAvailableLights = { // id, ordinal, type HwLight{static_cast(LightType::NOTIFICATIONS), 0, LightType::NOTIFICATIONS}, HwLight{static_cast(LightType::BATTERY), 1, LightType::BATTERY}, }; class Lights : public BnLights { public: ndk::ScopedAStatus setLightState(int id, const HwLightState& state) override; ndk::ScopedAStatus getLights(std::vector* types) override; private: std::array notif_states_; }; } // namespace light } // namespace hardware } // namespace android } // namespace aidl