/frameworks/base/tests/Input/src/android/hardware/input/ |
D | InputDeviceLightsManagerTest.java | 37 import android.hardware.lights.Light; 131 private void mockLights(Light[] lights) throws Exception { in mockLights() 142 Light[] mockedLights = { in testGetInputDeviceLights() 143 new Light(1 /* id */, "Light1", 0 /* ordinal */, Light.LIGHT_TYPE_INPUT, in testGetInputDeviceLights() 144 Light.LIGHT_CAPABILITY_BRIGHTNESS), in testGetInputDeviceLights() 145 new Light(2 /* id */, "Light2", 0 /* ordinal */, Light.LIGHT_TYPE_INPUT, in testGetInputDeviceLights() 146 Light.LIGHT_CAPABILITY_COLOR_RGB), in testGetInputDeviceLights() 147 new Light(3 /* id */, "Light3", 0 /* ordinal */, Light.LIGHT_TYPE_INPUT, in testGetInputDeviceLights() 153 List<Light> lights = lightsManager.getLights(); in testGetInputDeviceLights() 163 Light[] mockedLights = { in testControlMultipleLights() [all …]
|
/frameworks/base/core/java/android/hardware/lights/ |
D | Light.java | 33 public final class Light implements Parcelable { class 128 public Light(int id, int ordinal, int type) { in Light() method in Light 137 public Light(int id, String name, int ordinal, int type, int capabilities) { in Light() method in Light 146 public Light(int id, String name, int ordinal, int type, int capabilities, in Light() method in Light 156 private Light(@NonNull Parcel in) { in Light() method in Light 183 public static final @android.annotation.NonNull Parcelable.Creator<Light> CREATOR = 184 new Parcelable.Creator<Light>() { 185 public Light createFromParcel(Parcel in) { 186 return new Light(in); 189 public Light[] newArray(int size) { [all …]
|
D | LightsRequest.java | 35 final Map<Light, LightState> mRequests = new HashMap<>(); 42 private LightsRequest(Map<Light, LightState> requests) { in LightsRequest() argument 44 List<Light> lights = new ArrayList<Light>(mRequests.keySet()); in LightsRequest() 46 final Light light = lights.get(i); in LightsRequest() 75 public @NonNull Map<Light, LightState> getLightsAndStates() { in getLightsAndStates() 84 final Map<Light, LightState> mChanges = new HashMap<>(); 91 public @NonNull Builder addLight(@NonNull Light light, @NonNull LightState state) { in addLight() 108 public @NonNull Builder setLight(@NonNull Light light, @NonNull LightState state) { in setLight() 117 public @NonNull Builder clearLight(@NonNull Light light) { in clearLight()
|
D | ILightsManager.aidl | 19 import android.hardware.lights.Light; 29 List<Light> getLights(); in getLights()
|
D | LightsManager.java | 69 public @NonNull abstract List<Light> getLights(); in getLights() 75 public abstract @NonNull LightState getLightState(@NonNull Light light); in getLightState()
|
D | Light.aidl | 20 parcelable Light;
|
D | SystemLightsManager.java | 72 public @NonNull List<Light> getLights() { in getLights() 87 public @NonNull LightState getLightState(@NonNull Light light) { in getLightState()
|
/frameworks/native/services/inputflinger/reader/controller/ |
D | PeripheralController.h | 61 struct Light { struct 62 explicit Light(InputDeviceContext& context, const std::string& name, int32_t id, in Light() function 65 virtual ~Light() {} in ~Light() argument 84 struct MonoLight : public Light { argument 87 : Light(context, name, id, type), rawId(rawId) { in MonoLight() 97 struct RgbLight : public Light { 101 : Light(context, "RGB", id, type), rawRgbIds(rawRgbIds), rawGlobalId(rawGlobalId) { in RgbLight() 119 struct MultiColorLight : public Light { 122 : Light(context, name, id, type), rawId(rawId) { in MultiColorLight() 133 struct PlayerIdLight : public Light { [all …]
|
D | PeripheralController.cpp | 67 std::optional<std::int32_t> PeripheralController::Light::getRawLightBrightness(int32_t rawLightId) { in getRawLightBrightness() 92 void PeripheralController::Light::setRawLightBrightness(int32_t rawLightId, int32_t brightness) { in setRawLightBrightness() 290 const Light* light) const { in getPreferredBrightnessLevels() 469 std::unique_ptr<Light> light = in configureLights() 494 std::unique_ptr<Light> light = in configureLights() 527 std::unique_ptr<Light> light = in configureLights() 537 std::unique_ptr<Light> light = std::make_unique<MonoLight>(getDeviceContext(), rawInfo.name, in configureLights()
|
/frameworks/base/tests/Input/src/com/android/server/input/ |
D | KeyboardBacklightControllerTests.kt | 28 import android.hardware.lights.Light 70 private fun createLight(lightId: Int, lightType: Int): Light = in createKeyboard() 77 private fun createLight(lightId: Int, lightType: Int, suggestedBrightnessLevels: IntArray?): Light = in createKeyboard() 78 Light( in createKeyboard() 83 Light.LIGHT_CAPABILITY_BRIGHTNESS, in createKeyboard() 170 val keyboardBacklight = createLight(LIGHT_ID, Light.LIGHT_TYPE_KEYBOARD_BACKLIGHT) in createKeyboard() 188 val keyboardInputLight = createLight(LIGHT_ID, Light.LIGHT_TYPE_INPUT) in createKeyboard() 206 val keyboardBacklight = createLight(LIGHT_ID, Light.LIGHT_TYPE_KEYBOARD_BACKLIGHT) in createKeyboard() 207 val keyboardInputLight = createLight(SECOND_LIGHT_ID, Light.LIGHT_TYPE_INPUT) in createKeyboard() 232 val keyboardBacklight = createLight(LIGHT_ID, Light.LIGHT_TYPE_KEYBOARD_BACKLIGHT) in createKeyboard() [all …]
|
/frameworks/base/libs/hwui/ |
D | CanvasTransform.cpp | 60 case ColorTransform::Light: in transformColor() 73 case ColorTransform::Light: in transformColorInverse() 132 return hsv[2] >= .5f ? BitmapPalette::Light : BitmapPalette::Dark; in paletteForColorHSV() 140 SkColor4f color = palette == BitmapPalette::Light ? SkColors::kWhite : SkColors::kBlack; in filterPalette() 155 if (palette == BitmapPalette::Light && transform == ColorTransform::Dark) { in transformPaint() 158 if (palette == BitmapPalette::Dark && transform == ColorTransform::Light) { in transformPaint()
|
D | CanvasTransform.h | 38 Light, enumerator
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/ |
D | CameraPrivacyLightControllerTest.java | 41 import android.hardware.lights.Light; 103 private List<Light> mLights; 112 List<Light> lights) { in prepareDefaultCameraPrivacyLightController() 117 public CameraPrivacyLightController prepareCameraPrivacyLightController(List<Light> lights, in prepareCameraPrivacyLightController() 201 List<Light> lights = new ArrayList<>(); in testAllCameraLightsAreRequestedOnOpActive() 220 .filter(l -> l.getType() == Light.LIGHT_TYPE_CAMERA) in testAllCameraLightsAreRequestedOnOpActive() 355 private Light getNextLight(boolean cameraType) { in getNextLight() 356 Light light = ExtendedMockito.mock(Light.class); in getNextLight() 358 doReturn(Light.LIGHT_TYPE_CAMERA).when(light).getType(); in getNextLight() 360 doReturn(Light.LIGHT_TYPE_MICROPHONE).when(light).getType(); in getNextLight()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | KeyboardLedController.java | 28 import android.hardware.lights.Light; 100 Light light = getKeyboardMicMuteLight(device); in updateMicMuteLedState() 108 private Light getKeyboardMicMuteLight(InputDevice device) { in getKeyboardMicMuteLight() 109 for (Light light : device.getLightsManager().getLights()) { in getKeyboardMicMuteLight() 110 if (light.getType() == Light.LIGHT_TYPE_KEYBOARD_MIC_MUTE in getKeyboardMicMuteLight()
|
D | KeyboardBacklightController.java | 27 import android.hardware.lights.Light; 249 private void maybeBackupBacklightBrightness(InputDevice inputDevice, Light keyboardBacklight, in maybeBackupBacklightBrightness() 266 private void maybeRestoreBacklightBrightness(InputDevice inputDevice, Light keyboardBacklight) { in maybeRestoreBacklightBrightness() 383 final Light keyboardBacklight = getKeyboardBacklight(inputDevice); in onInputDeviceChanged() 402 private Light getKeyboardBacklight(InputDevice inputDevice) { in getKeyboardBacklight() 405 for (Light light : inputDevice.getLightsManager().getLights()) { in getKeyboardBacklight() 406 if (light.getType() == Light.LIGHT_TYPE_KEYBOARD_BACKLIGHT in getKeyboardBacklight() 552 private final Light mLight; 559 KeyboardBacklightState(int deviceId, Light light) { in KeyboardBacklightState()
|
D | NativeInputManagerService.java | 23 import android.hardware.lights.Light; 168 List<Light> getLights(int deviceId); in getLights() 437 public native List<Light> getLights(int deviceId); in getLights()
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputDeviceLightsManager.java | 21 import android.hardware.lights.Light; 58 public @NonNull List<Light> getLights() { in getLights() 68 public @NonNull LightState getLightState(@NonNull Light light) { in getLightState()
|
D | IInputManager.aidl | 35 import android.hardware.lights.Light; 190 List<Light> getLights(int deviceId); in getLights()
|
/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
D | CameraPrivacyLightController.java | 27 import android.hardware.lights.Light; 66 private final List<Light> mCameraLights = new ArrayList<>(); 136 List<Light> lights = mLightsManager.getLights(); in CameraPrivacyLightController() 138 Light light = lights.get(i); in CameraPrivacyLightController() 139 if (light.getType() == Light.LIGHT_TYPE_CAMERA) { in CameraPrivacyLightController()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/lights/ |
D | LightsServiceTest.java | 35 import android.hardware.lights.Light; 145 Light micLight = manager.getLights().get(0); in testControlLights_onlyEffectiveForLifetimeOfClient() 167 Light micLight = manager.getLights().get(0); in testControlLights_firstCallerWinsContention() 195 Light micLight = manager.getLights().get(0); in testClearLight() 212 Light micLight = manager.getLights().get(0); in testControlLights_higherPriorityCallerWinsContention()
|
/frameworks/base/apex/jobscheduler/service/aconfig/ |
D | device_idle.aconfig | 17 description: "Disable wakelocks for background apps while Light Device Idle is active"
|
/frameworks/base/services/core/java/com/android/server/lights/ |
D | LightsService.java | 25 import android.hardware.lights.Light; 109 public List<Light> getLights() { in getLights() 113 final List<Light> lights = new ArrayList<Light>(); in getLights() 117 lights.add(new Light(hwLight.id, hwLight.ordinal, hwLight.type)); in getLights()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationRecord.java | 181 private Light mLight; 285 private Light calculateLights() { in calculateLights() 295 Light light = getChannel().shouldShowLights() ? new Light(channelLightColor, in calculateLights() 302 light = new Light(notification.ledARGB, notification.ledOnMS, in calculateLights() 305 light = new Light(defaultLightColor, defaultLightOn, in calculateLights() 1193 public Light getLight() { in getLight() 1706 static final class Light { class in NotificationRecord 1711 public Light(int color, int onMs, int offMs) { in Light() method in NotificationRecord.Light 1722 Light light = (Light) o; in equals()
|
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.h | 49 Light, enumerator
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationRecordTest.java | 132 private static final NotificationRecord.Light CUSTOM_LIGHT = 133 new NotificationRecord.Light(1, 2, 3); 595 NotificationRecord.Light expected = new NotificationRecord.Light( in testLights_upgrade_defaultLights() 611 NotificationRecord.Light expected = new NotificationRecord.Light( in testLights_upgrade()
|