Home
last modified time | relevance | path

Searched refs:LightsManager (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/lights/
DLightsServiceTest.java29 import android.hardware.lights.LightsManager;
55 fakeHwLight(102, LightsManager.LIGHT_TYPE_MICROPHONE, 4),
56 fakeHwLight(103, LightsManager.LIGHT_TYPE_MICROPHONE, 3),
57 fakeHwLight(104, LightsManager.LIGHT_TYPE_MICROPHONE, 1),
58 fakeHwLight(105, LightsManager.LIGHT_TYPE_MICROPHONE, 2)
92 LightsManager manager = new LightsManager(mContext, service.mManagerService); in testGetLights_filtersSystemLights()
101 LightsManager manager = new LightsManager(mContext, service.mManagerService); in testControlMultipleLights()
104 LightsManager.LightsSession session = manager.openSession(); in testControlMultipleLights()
123 LightsManager manager = new LightsManager(mContext, service.mManagerService); in testControlLights_onlyEffectiveForLifetimeOfClient()
130 LightsManager.LightsSession session = manager.openSession(); in testControlLights_onlyEffectiveForLifetimeOfClient()
[all …]
/frameworks/base/core/java/android/hardware/lights/
DLightsManager.java50 public final class LightsManager { class
75 public LightsManager(@NonNull Context context) throws ServiceNotFoundException { in LightsManager() method in LightsManager
86 public LightsManager(@NonNull Context context, @NonNull ILightsManager service) { in LightsManager() method in LightsManager
DLight.java102 public @LightsManager.LightType int getType() { in getType()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/
DLocalDisplayAdapterTest.java40 import com.android.server.lights.LightsManager;
71 private LightsManager mMockedLightsManager;
88 LocalServices.removeServiceForTest(LightsManager.class); in setUp()
89 LocalServices.addService(LightsManager.class, mMockedLightsManager); in setUp()
/frameworks/base/services/core/java/com/android/server/lights/
DLightsService.java446 mLights = new LightImpl[LightsManager.LIGHT_ID_COUNT]; in populateAvailableLights()
481 publishLocalService(LightsManager.class, mService); in onStart()
497 private final LightsManager mService = new LightsManager() {
516 return 0 <= light.type && light.type < LightsManager.LIGHT_ID_COUNT; in isSystemLight()
DLightsManager.java21 public abstract class LightsManager { class
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java52 import com.android.server.lights.LightsManager;
101 @Mock LightsManager mMockLightsManager;
113 LocalServices.removeServiceForTest(LightsManager.class); in setUp()
114 LocalServices.addService(LightsManager.class, mMockLightsManager); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java72 import com.android.server.lights.LightsManager;
102 @Mock private LightsManager mLightsManagerMock;
154 addLocalServiceMock(LightsManager.class, mLightsManagerMock); in setUp()
207 LocalServices.removeServiceForTest(LightsManager.class); in tearDown()
/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java41 import com.android.server.lights.LightsManager;
199 LightsManager lights = LocalServices.getService(LightsManager.class); in LocalDisplayDevice()
200 mBacklight = lights.getLight(LightsManager.LIGHT_ID_BACKLIGHT); in LocalDisplayDevice()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRoleObserverTest.java61 import com.android.server.lights.LightsManager;
135 mock(LightsManager.class), in setUp()
DNotificationManagerServiceTest.java146 import com.android.server.lights.LightsManager;
354 final LightsManager mockLightsManager = mock(LightsManager.class); in setUp()
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java71 import com.android.server.lights.LightsManager;
204 mLed = new Led(context, getLocalService(LightsManager.class)); in BatteryService()
1085 public Led(Context context, LightsManager lights) { in Led()
1086 mBatteryLight = lights.getLight(LightsManager.LIGHT_ID_BATTERY); in Led()
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java86 import android.hardware.lights.LightsManager;
1363 registerService(Context.LIGHTS_SERVICE, LightsManager.class, in registerService()
1364 new CachedServiceFetcher<LightsManager>() { in registerService()
1366 public LightsManager createService(ContextImpl ctx) in registerService()
1368 return new LightsManager(ctx); in registerService()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java98 import com.android.server.lights.LightsManager;
242 private LightsManager mLightsManager;
860 mLightsManager = getLocalService(LightsManager.class); in systemReady()
861 mAttentionLight = mLightsManager.getLight(LightsManager.LIGHT_ID_ATTENTION); in systemReady()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java237 import com.android.server.lights.LightsManager;
1639 LightsManager lightsManager, NotificationListeners notificationListeners, in init()
1738 mNotificationLight = lightsManager.getLight(LightsManager.LIGHT_ID_NOTIFICATIONS); in init()
1739 mAttentionLight = lightsManager.getLight(LightsManager.LIGHT_ID_ATTENTION); in init()
1821 getLocalService(LightsManager.class), in onStart()
/frameworks/base/api/
Dtest-current.txt1009 public final class LightsManager {
1012 …fest.permission.CONTROL_DEVICE_LIGHTS) public android.hardware.lights.LightsManager.LightsSession …
1016 public final class LightsManager.LightsSession implements java.lang.AutoCloseable {
Dsystem-current.txt2515 public final class LightsManager {
2517 …fest.permission.CONTROL_DEVICE_LIGHTS) public android.hardware.lights.LightsManager.LightsSession …
2521 public final class LightsManager.LightsSession implements java.lang.AutoCloseable {
/frameworks/base/non-updatable-api/
Dsystem-current.txt2515 public final class LightsManager {
2517 …fest.permission.CONTROL_DEVICE_LIGHTS) public android.hardware.lights.LightsManager.LightsSession …
2521 public final class LightsManager.LightsSession implements java.lang.AutoCloseable {
/frameworks/base/services/
Dart-profile599 …/android/server/BatteryService;Landroid/content/Context;Lcom/android/server/lights/LightsManager;)V
9609 …Manager;Landroid/content/pm/PackageManager;Lcom/android/server/lights/LightsManager;Lcom/android/s…
19387 Lcom/android/server/lights/LightsManager;