/frameworks/base/tests/Input/src/android/hardware/input/ |
D | InputDeviceLightsManagerTest.java | 133 when(mIInputManagerMock.getLights(eq(DEVICE_ID))).thenReturn( in mockLights() 153 List<Light> lights = lightsManager.getLights(); in testGetInputDeviceLights() 154 verify(mIInputManagerMock).getLights(eq(DEVICE_ID)); in testGetInputDeviceLights() 176 List<Light> lightList = lightsManager.getLights(); in testControlMultipleLights() 182 .addLight(lightsManager.getLights().get(0), states[0]) in testControlMultipleLights() 183 .addLight(lightsManager.getLights().get(1), states[1]) in testControlMultipleLights() 184 .addLight(lightsManager.getLights().get(2), states[2]) in testControlMultipleLights() 194 assertThat(lightsManager.getLightState(lightsManager.getLights().get(0)).getColor()) in testControlMultipleLights() 196 assertThat(lightsManager.getLightState(lightsManager.getLights().get(1)).getColor()) in testControlMultipleLights() 198 assertThat(lightsManager.getLightState(lightsManager.getLights().get(2)).getColor()) in testControlMultipleLights() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/lights/ |
D | LightsServiceTest.java | 66 public HwLight[] getLights() { 116 assertThat(manager.getLights().size()).isEqualTo(4); in testGetLights_filtersSystemLights() 127 .addLight(manager.getLights().get(0), new LightState(0xf1)) in testControlMultipleLights() 128 .addLight(manager.getLights().get(1), new LightState(0xf2)) in testControlMultipleLights() 129 .addLight(manager.getLights().get(2), new LightState(0xf3)) in testControlMultipleLights() 133 assertThat(manager.getLightState(manager.getLights().get(0)).getColor()).isEqualTo(0xf1); in testControlMultipleLights() 134 assertThat(manager.getLightState(manager.getLights().get(1)).getColor()).isEqualTo(0xf2); in testControlMultipleLights() 135 assertThat(manager.getLightState(manager.getLights().get(2)).getColor()).isEqualTo(0xf3); in testControlMultipleLights() 138 assertThat(manager.getLightState(manager.getLights().get(3)).getColor()).isEqualTo(0x00); in testControlMultipleLights() 145 Light micLight = manager.getLights().get(0); in testControlLights_onlyEffectiveForLifetimeOfClient() [all …]
|
/frameworks/base/tests/Input/src/com/android/server/input/ |
D | KeyboardBacklightControllerTests.kt | 172 `when`(iInputManager.getLights(DEVICE_ID)).thenReturn(listOf(keyboardBacklight)) in createKeyboard() 190 `when`(iInputManager.getLights(DEVICE_ID)).thenReturn(listOf(keyboardInputLight)) in createKeyboard() 209 `when`(iInputManager.getLights(DEVICE_ID)).thenReturn( in createKeyboard() 234 `when`(iInputManager.getLights(DEVICE_ID)).thenReturn(listOf(keyboardBacklight)) in createKeyboard() 281 `when`(iInputManager.getLights(DEVICE_ID)).thenReturn(listOf(keyboardBacklight)) in createKeyboard() 304 `when`(iInputManager.getLights(DEVICE_ID)).thenReturn(listOf(keyboardBacklight)) in createKeyboard() 356 `when`(iInputManager.getLights(DEVICE_ID)).thenReturn(listOf(keyboardBacklight)) in createKeyboard() 392 `when`(iInputManager.getLights(DEVICE_ID)).thenReturn(listOf(keyboardBacklight)) in createKeyboard() 486 `when`(iInputManager.getLights(DEVICE_ID)).thenReturn(listOf(keyboardBacklight)) in createKeyboard() 515 `when`(iInputManager.getLights(DEVICE_ID)).thenReturn(listOf(keyboardBacklight)) in createKeyboard() [all …]
|
/frameworks/base/core/java/android/hardware/lights/ |
D | SystemLightsManager.java | 72 public @NonNull List<Light> getLights() { in getLights() method in SystemLightsManager 74 return mService.getLights(); in getLights() 165 List<Integer> idList = request.getLights(); in requestLights()
|
D | ILightsManager.aidl | 29 List<Light> getLights(); in getLights() method
|
D | LightsManager.java | 69 public @NonNull abstract List<Light> getLights(); in getLights() method in LightsManager
|
D | LightsRequest.java | 57 public @NonNull List<Integer> getLights() { in getLights() method in LightsRequest
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputDeviceLightsManager.java | 58 public @NonNull List<Light> getLights() { in getLights() method in InputDeviceLightsManager 59 return mGlobal.getLights(mDeviceId); in getLights()
|
D | IInputManager.aidl | 190 List<Light> getLights(int deviceId); in getLights() method
|
D | InputManagerGlobal.java | 1169 @NonNull List<Light> getLights(int deviceId) { in getLights() method in InputManagerGlobal 1171 return mIm.getLights(deviceId); in getLights() 1196 List<Integer> lightIdList = request.getLights(); in requestLights()
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | InputReaderFuzzer.cpp | 112 std::vector<InputDeviceLightInfo> getLights(int32_t deviceId) { in getLights() function in android::FuzzInputReader 113 return reader->getLights(deviceId); in getLights() 253 [&]() -> void { reader->getLights(fdp->ConsumeIntegral<int32_t>()); }, in LLVMFuzzerTestOneInput()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | NativeInputManagerService.java | 168 List<Light> getLights(int deviceId); in getLights() method 437 public native List<Light> getLights(int deviceId); in getLights() method in NativeInputManagerService.NativeImpl
|
D | KeyboardLedController.java | 109 for (Light light : device.getLightsManager().getLights()) { in getKeyboardMicMuteLight()
|
D | KeyboardBacklightController.java | 405 for (Light light : inputDevice.getLightsManager().getLights()) { in getKeyboardBacklight()
|
D | InputManagerService.java | 1885 public List<Light> getLights(int deviceId) { in getLights() method in InputManagerService 1886 return mNative.getLights(deviceId); in getLights() 1911 final List<Light> lights = mNative.getLights(deviceId); in setLightStatesInternal()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/ |
D | CameraPrivacyLightControllerTest.java | 148 doReturn(mLights).when(mLightsManager).getLights(); in prepareCameraPrivacyLightController() 223 List<Integer> lightsRequestLightIds = mLightsRequestCaptor.getValue().getLights(); in testAllCameraLightsAreRequestedOnOpActive()
|
/frameworks/base/services/core/java/com/android/server/lights/ |
D | LightsService.java | 109 public List<Light> getLights() { in getLights() method in LightsService.LightsManagerBinderService 481 for (HwLight hwLight : mVintfLights.get().getLights()) { in populateAvailableLightsFromAidl()
|
/frameworks/native/libs/input/ |
D | InputDevice.cpp | 292 std::vector<InputDeviceLightInfo> InputDeviceInfo::getLights() { in getLights() function in android::InputDeviceInfo
|
/frameworks/native/services/inputflinger/include/ |
D | InputReaderBase.h | 362 virtual std::vector<InputDeviceLightInfo> getLights(int32_t deviceId) = 0;
|
/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
D | CameraPrivacyLightController.java | 136 List<Light> lights = mLightsManager.getLights(); in CameraPrivacyLightController()
|
/frameworks/native/include/input/ |
D | InputDevice.h | 344 std::vector<InputDeviceLightInfo> getLights();
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputReader.h | 103 std::vector<InputDeviceLightInfo> getLights(int32_t deviceId) override;
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 806 std::vector<InputDeviceLightInfo> InputReader::getLights(int32_t deviceId) { in getLights() function in android::InputReader 814 return device->getDeviceInfo().getLights(); in getLights()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 681 ASSERT_EQ(0U, inputDevice.getLights().size()); in TEST_F() 695 ASSERT_EQ(1U, inputDevice.getLights().size()); in TEST_F() 10284 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() 10309 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() 10327 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() 10353 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() 10374 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() 10397 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() 10426 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() 10454 std::vector<InputDeviceLightInfo> lights = info.getLights(); in TEST_F() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 2298 im->getInputManager()->getReader().getLights(deviceId); in nativeGetLights()
|