Home
last modified time | relevance | path

Searched refs:lightState (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/lights/
DLightsService.java400 HwLightState lightState = new HwLightState(); in setLightUnchecked() local
401 lightState.color = color; in setLightUnchecked()
402 lightState.flashMode = (byte) mode; in setLightUnchecked()
403 lightState.flashOnMs = onMS; in setLightUnchecked()
404 lightState.flashOffMs = offMS; in setLightUnchecked()
405 lightState.brightnessMode = (byte) brightnessMode; in setLightUnchecked()
406 mVintfLights.get().setLightState(mHwLight.id, lightState); in setLightUnchecked()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
DCameraPrivacyLightControllerTest.java298 for (LightState lightState : lightsRequest.getLightStates()) { in testNoLightSensor()
299 assertEquals(mDefaultColors[mDefaultColors.length - 1], lightState.getColor()); in testNoLightSensor()
336 for (LightState lightState : mLightsRequestCaptor.getValue().getLightStates()) { in testAlsThresholds()
337 assertEquals(expectedColor, lightState.getColor()); in testAlsThresholds()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java2726 private void enterLightState(int lightState) { in enterLightState() argument
2727 switch (lightState) { in enterLightState()
2742 while (mDeviceIdleController.getLightState() != lightState) { in enterLightState()
2759 mDeviceIdleController.setLightStateForTest(lightState); in enterLightState()
2762 fail("Unknown light state " + lightStateToString(lightState)); in enterLightState()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java1892 private void setLightStateInternal(int deviceId, Light light, LightState lightState) { in setLightStateInternal() argument
1896 + "lightState " + lightState); in setLightStateInternal()
1899 mNative.setLightPlayerId(deviceId, light.getId(), lightState.getPlayerId()); in setLightStateInternal()
1903 mNative.setLightColor(deviceId, light.getId(), lightState.getColor()); in setLightStateInternal()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DDeviceIdleController.java3725 void setLightStateForTest(int lightState) { in setLightStateForTest() argument
3727 mLightState = lightState; in setLightStateForTest()