summaryrefslogtreecommitdiff
path: root/light/Light.h
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-02-07 00:04:57 +0800
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:49:34 +0300
commitf417401d5b9b0f8e7bd4c04781150394b7569163 (patch)
tree2348af4ce40638a21085eeb6a1236b2a665c3ba4 /light/Light.h
parent54bb90253415cf4d301f8d99ec7cf775ca432439 (diff)
sdm660-common: Support button backlight
Change-Id: Id13a42976df428c95c19eae49e1c114f057510bb
Diffstat (limited to 'light/Light.h')
-rw-r--r--light/Light.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/light/Light.h b/light/Light.h
index 7acefa7..1a28589 100644
--- a/light/Light.h
+++ b/light/Light.h
@@ -41,9 +41,11 @@ class Light : public ILight {
private:
void setLightBacklight(Type type, const LightState& state);
+ void setLightButtons(Type type, const LightState& state);
void setLightNotification(Type type, const LightState& state);
void applyNotificationState(const LightState& state);
+ uint32_t max_button_brightness_;
uint32_t max_led_brightness_;
uint32_t max_screen_brightness_;
@@ -57,6 +59,8 @@ class Light : public ILight {
{Type::NOTIFICATIONS, {}},
{Type::BATTERY, {}},
}};
+
+ std::vector<std::string> buttons_;
};
} // namespace implementation