Home
last modified time | relevance | path

Searched defs:lightId (Results 1 – 18 of 18) sorted by relevance

/frameworks/native/services/inputflinger/reader/mapper/
DInputMapper.h106 virtual bool setLightColor(int32_t lightId, int32_t color) { return true; } in setLightColor()
107 virtual bool setLightPlayerId(int32_t lightId, int32_t playerId) { return true; } in setLightPlayerId()
108 virtual std::optional<int32_t> getLightColor(int32_t lightId) { return std::nullopt; } in getLightColor()
109 virtual std::optional<int32_t> getLightPlayerId(int32_t lightId) { return std::nullopt; } in getLightPlayerId()
/frameworks/base/services/core/java/com/android/server/input/
DPersistentDataStore.java156 public boolean setKeyboardBacklightBrightness(String inputDeviceDescriptor, int lightId, in setKeyboardBacklightBrightness()
166 public OptionalInt getKeyboardBacklightBrightness(String inputDeviceDescriptor, int lightId) { in getKeyboardBacklightBrightness()
410 public boolean setKeyboardBacklightBrightness(int lightId, int brightness) { in setKeyboardBacklightBrightness()
418 public OptionalInt getKeyboardBacklightBrightness(int lightId) { in getKeyboardBacklightBrightness()
467 int lightId = parser.getAttributeInt(null, "light-id"); in loadFromXml() local
DNativeInputManagerService.java170 int getLightPlayerId(int deviceId, int lightId); in getLightPlayerId()
172 int getLightColor(int deviceId, int lightId); in getLightColor()
174 void setLightPlayerId(int deviceId, int lightId, int playerId); in setLightPlayerId()
176 void setLightColor(int deviceId, int lightId, int color); in setLightColor()
440 public native int getLightPlayerId(int deviceId, int lightId); in getLightPlayerId()
443 public native int getLightColor(int deviceId, int lightId); in getLightColor()
446 public native void setLightPlayerId(int deviceId, int lightId, int playerId); in setLightPlayerId()
449 public native void setLightColor(int deviceId, int lightId, int color); in setLightColor()
DInputManagerService.java1945 public @Nullable LightState getLightState(int deviceId, int lightId) { in getLightState()
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputReaderFuzzer.cpp138 bool setLightColor(int32_t deviceId, int32_t lightId, int32_t color) { in setLightColor()
142 bool setLightPlayerId(int32_t deviceId, int32_t lightId, int32_t playerId) { in setLightPlayerId()
146 std::optional<int32_t> getLightColor(int32_t deviceId, int32_t lightId) { in getLightColor()
150 std::optional<int32_t> getLightPlayerId(int32_t deviceId, int32_t lightId) { in getLightPlayerId()
DMapperHelpers.h169 std::optional<RawLightInfo> getRawLightInfo(int32_t deviceId, int32_t lightId) const override { in getRawLightInfo()
172 std::optional<int32_t> getLightBrightness(int32_t deviceId, int32_t lightId) const override { in getLightBrightness()
175 void setLightBrightness(int32_t deviceId, int32_t lightId, int32_t brightness) override{}; in setLightBrightness()
177 int32_t deviceId, int32_t lightId) const override { in getLightIntensities()
180 void setLightIntensities(int32_t deviceId, int32_t lightId, in setLightIntensities()
/frameworks/native/services/inputflinger/reader/controller/
DPeripheralController.cpp552 bool PeripheralController::setLightColor(int32_t lightId, int32_t color) { in setLightColor()
565 std::optional<int32_t> PeripheralController::getLightColor(int32_t lightId) { in getLightColor()
579 bool PeripheralController::setLightPlayerId(int32_t lightId, int32_t playerId) { in setLightPlayerId()
588 std::optional<int32_t> PeripheralController::getLightPlayerId(int32_t lightId) { in getLightPlayerId()
/frameworks/base/core/java/android/hardware/lights/
DILightsManager.aidl31 LightState getLightState(int lightId); in getLightState()
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h349 inline std::optional<RawLightInfo> getRawLightInfo(int32_t lightId) { in getRawLightInfo()
353 inline std::optional<int32_t> getLightBrightness(int32_t lightId) { in getLightBrightness()
357 inline void setLightBrightness(int32_t lightId, int32_t brightness) { in setLightBrightness()
362 int32_t lightId) { in getLightIntensities()
366 inline void setLightIntensities(int32_t lightId, in setLightIntensities()
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp660 bool InputDevice::setLightColor(int32_t lightId, int32_t color) { in setLightColor()
664 bool InputDevice::setLightPlayerId(int32_t lightId, int32_t playerId) { in setLightPlayerId()
668 std::optional<int32_t> InputDevice::getLightColor(int32_t lightId) { in getLightColor()
672 std::optional<int32_t> InputDevice::getLightPlayerId(int32_t lightId) { in getLightPlayerId()
DInputReader.cpp828 bool InputReader::setLightColor(int32_t deviceId, int32_t lightId, int32_t color) { in setLightColor()
838 bool InputReader::setLightPlayerId(int32_t deviceId, int32_t lightId, int32_t playerId) { in setLightPlayerId()
848 std::optional<int32_t> InputReader::getLightColor(int32_t deviceId, int32_t lightId) { in getLightColor()
858 std::optional<int32_t> InputReader::getLightPlayerId(int32_t deviceId, int32_t lightId) { in getLightPlayerId()
DEventHub.cpp1397 void EventHub::setLightBrightness(int32_t deviceId, int32_t lightId, int32_t brightness) { in setLightBrightness()
1414 void EventHub::setLightIntensities(int32_t deviceId, int32_t lightId, in setLightIntensities()
/frameworks/base/services/core/java/com/android/server/lights/
DLightsService.java85 void setRequest(int lightId, LightState state) { in setRequest()
152 public @Nullable LightState getLightState(int lightId) { in getLightState()
/frameworks/base/tests/Input/src/com/android/server/input/
DKeyboardBacklightControllerTests.kt729 val lightId = light.id in createKeyboard() constant
/frameworks/native/services/inputflinger/tests/
DFakeEventHub.cpp603 void FakeEventHub::setLightBrightness(int32_t deviceId, int32_t lightId, int32_t brightness) { in setLightBrightness()
607 void FakeEventHub::setLightIntensities(int32_t deviceId, int32_t lightId, in setLightIntensities()
DInputReader_test.cpp1314 bool setLightColor(int32_t lightId, int32_t color) override { in setLightColor()
1319 std::optional<int32_t> getLightColor(int32_t lightId) override { in getLightColor()
1327 bool setLightPlayerId(int32_t lightId, int32_t playerId) override { return true; } in setLightPlayerId()
1329 std::optional<int32_t> getLightPlayerId(int32_t lightId) override { return std::nullopt; } in getLightPlayerId()
/frameworks/base/core/java/android/hardware/input/
DIInputManager.aidl192 LightState getLightState(int deviceId, int lightId); in getLightState()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp2357 jint lightId) { in nativeGetLightPlayerId()
2366 static jint nativeGetLightColor(JNIEnv* env, jobject nativeImplObj, jint deviceId, jint lightId) { in nativeGetLightColor()
2374 static void nativeSetLightPlayerId(JNIEnv* env, jobject nativeImplObj, jint deviceId, jint lightId, in nativeSetLightPlayerId()
2381 static void nativeSetLightColor(JNIEnv* env, jobject nativeImplObj, jint deviceId, jint lightId, in nativeSetLightColor()