summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vaibhav Devmurari <vdevmurari@google.com> 2024-11-27 16:22:38 +0000
committer Vaibhav Devmurari <vdevmurari@google.com> 2024-11-28 12:48:38 +0000
commite2bd42b17f0857d252280b68edcec55fbbfd40e7 (patch)
treecb8d92312a8fb18e8053400ff300de9a722e17fd
parent9a3ad9bdc5a31fb030af1ac00cf8001f74a5fd94 (diff)
Cleanup old sysprop flag for Keyboard backlight
Bug: 245989146 Test: manual Flag: EXEMPT cleanup Change-Id: I92916bfdcdbcaf9df5550a08585d7260f69907d6
-rw-r--r--services/inputflinger/reader/controller/PeripheralController.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/services/inputflinger/reader/controller/PeripheralController.cpp b/services/inputflinger/reader/controller/PeripheralController.cpp
index 9eeb2b2a2c..7434ae4b0a 100644
--- a/services/inputflinger/reader/controller/PeripheralController.cpp
+++ b/services/inputflinger/reader/controller/PeripheralController.cpp
@@ -47,10 +47,6 @@ static inline int32_t toArgb(int32_t brightness, int32_t red, int32_t green, int
return (brightness & 0xff) << 24 | (red & 0xff) << 16 | (green & 0xff) << 8 | (blue & 0xff);
}
-static inline bool isKeyboardBacklightCustomLevelsEnabled() {
- return sysprop::InputProperties::enable_keyboard_backlight_custom_levels().value_or(true);
-}
-
/**
* Input controller owned by InputReader device, implements the native API for querying input
* lights, getting and setting the lights brightness and color, by interacting with EventHub
@@ -289,8 +285,7 @@ void PeripheralController::populateDeviceInfo(InputDeviceInfo* deviceInfo) {
std::set<BrightnessLevel> PeripheralController::getPreferredBrightnessLevels(
const Light* light) const {
std::set<BrightnessLevel> levels;
- if (!isKeyboardBacklightCustomLevelsEnabled() ||
- light->type != InputDeviceLightType::KEYBOARD_BACKLIGHT) {
+ if (light->type != InputDeviceLightType::KEYBOARD_BACKLIGHT) {
return levels;
}
std::optional<std::string> keyboardBacklightLevels =