diff options
Diffstat (limited to 'light/Light.h')
| -rw-r--r-- | light/Light.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/light/Light.h b/light/Light.h index a5884e2..72a6d76 100644 --- a/light/Light.h +++ b/light/Light.h @@ -69,11 +69,13 @@ struct Light : public ILight { Return<Status> setLight(Type type, const LightState& state) override; Return<void> getSupportedTypes(getSupportedTypes_cb _hidl_cb) override; + void onSliderChanged(bool open); + private: void setAttentionLight(const LightState& state); void setBatteryLight(const LightState& state); - void setKeyboardBacklight(const LightState& state); void setLcdBacklight(const LightState& state); + void setKeyboardBacklightLocked(); void setNotificationLight(const LightState& state); void setSpeakerBatteryLightLocked(); void setSpeakerLightLocked(const LightState& state); @@ -91,6 +93,9 @@ struct Light : public ILight { std::unordered_map<Type, std::function<void(const LightState&)>> mLights; std::mutex mLock; + + bool mLcdBacklightOn; + bool mSliderOpen; }; } // namespace implementation |
