Home
last modified time | relevance | path

Searched refs:getLight (Results 1 – 10 of 10) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/lights/
H A DLightsManager.java37 public abstract LogicalLight getLight(int id); in getLight() method in LightsManager
H A DLightsService.java515 public LogicalLight getLight(int lightType) {
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationRecordTest.java427 assertNull(record.getLight()); in testLights_preUpgrade_noLight()
437 assertEquals(CUSTOM_LIGHT, record.getLight()); in testLights_preUpgrade()
449 assertNotEquals(CUSTOM_LIGHT, record.getLight()); in testLights_locked_preUpgrade()
467 assertEquals(expected, record.getLight()); in testLights_upgrade_defaultLights()
483 assertEquals(expected, record.getLight()); in testLights_upgrade()
492 assertNull(record.getLight()); in testLights_upgrade_noLight()
H A DNotificationManagerServiceTest.java527 when(mockLightsManager.getLight(anyInt())).thenReturn(mock(LogicalLight.class)); in setUp()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationRecord.java455 proto.write(NotificationRecordProto.CAN_SHOW_LIGHT, getLight() != null); in dump()
1161 public Light getLight() { in getLight() method in NotificationRecord
H A DNotificationManagerService.java2374 mNotificationLight = lightsManager.getLight(LightsManager.LIGHT_ID_NOTIFICATIONS); in init()
2375 mAttentionLight = lightsManager.getLight(LightsManager.LIGHT_ID_ATTENTION); in init()
8479 if (record.getLight() == null) {
9871 NotificationRecord.Light light = ledNotification.getLight();
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
H A DLocalDisplayAdapterTest.java880 .getLight(LightsManager.LIGHT_ID_BACKLIGHT); in testBacklightAdapter_withoutSourceControlSupport_defaultDisplay()
893 .getLight(LightsManager.LIGHT_ID_BACKLIGHT); in testBacklightAdapter_withoutSourceControlSupport_nonDefaultDisplay()
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DLocalDisplayAdapter.java1539 mBacklight = lights.getLight(LightsManager.LIGHT_ID_BACKLIGHT);
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DBatteryService.java1246 mBatteryLight = lights.getLight(LightsManager.LIGHT_ID_BATTERY); in Led()
/aosp14/frameworks/base/services/core/java/com/android/server/power/
H A DPowerManagerService.java1358 mAttentionLight = mLightsManager.getLight(LightsManager.LIGHT_ID_ATTENTION);