Home
last modified time | relevance | path

Searched refs:getLights (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/tests/Input/src/android/hardware/input/
DInputDeviceLightsManagerTest.java133 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/
DLightsServiceTest.java66 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/
DKeyboardBacklightControllerTests.kt172 `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/
DSystemLightsManager.java72 public @NonNull List<Light> getLights() { in getLights() method in SystemLightsManager
74 return mService.getLights(); in getLights()
165 List<Integer> idList = request.getLights(); in requestLights()
DILightsManager.aidl29 List<Light> getLights(); in getLights() method
DLightsManager.java69 public @NonNull abstract List<Light> getLights(); in getLights() method in LightsManager
DLightsRequest.java57 public @NonNull List<Integer> getLights() { in getLights() method in LightsRequest
/frameworks/base/core/java/android/hardware/input/
DInputDeviceLightsManager.java58 public @NonNull List<Light> getLights() { in getLights() method in InputDeviceLightsManager
59 return mGlobal.getLights(mDeviceId); in getLights()
DIInputManager.aidl190 List<Light> getLights(int deviceId); in getLights() method
DInputManagerGlobal.java1169 @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/
DInputReaderFuzzer.cpp112 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/
DNativeInputManagerService.java168 List<Light> getLights(int deviceId); in getLights() method
437 public native List<Light> getLights(int deviceId); in getLights() method in NativeInputManagerService.NativeImpl
DKeyboardLedController.java109 for (Light light : device.getLightsManager().getLights()) { in getKeyboardMicMuteLight()
DKeyboardBacklightController.java405 for (Light light : inputDevice.getLightsManager().getLights()) { in getKeyboardBacklight()
DInputManagerService.java1885 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/
DCameraPrivacyLightControllerTest.java148 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/
DLightsService.java109 public List<Light> getLights() { in getLights() method in LightsService.LightsManagerBinderService
481 for (HwLight hwLight : mVintfLights.get().getLights()) { in populateAvailableLightsFromAidl()
/frameworks/native/libs/input/
DInputDevice.cpp292 std::vector<InputDeviceLightInfo> InputDeviceInfo::getLights() { in getLights() function in android::InputDeviceInfo
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h362 virtual std::vector<InputDeviceLightInfo> getLights(int32_t deviceId) = 0;
/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DCameraPrivacyLightController.java136 List<Light> lights = mLightsManager.getLights(); in CameraPrivacyLightController()
/frameworks/native/include/input/
DInputDevice.h344 std::vector<InputDeviceLightInfo> getLights();
/frameworks/native/services/inputflinger/reader/include/
DInputReader.h103 std::vector<InputDeviceLightInfo> getLights(int32_t deviceId) override;
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp806 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/
DInputReader_test.cpp681 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/
Dcom_android_server_input_InputManagerService.cpp2298 im->getInputManager()->getReader().getLights(deviceId); in nativeGetLights()

12