Searched refs:mLightsManager (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/ |
D | CameraPrivacyLightControllerTest.java | 79 private LightsManager mLightsManager; field in CameraPrivacyLightControllerTest 142 doReturn(mLightsManager).when(context).getSystemService(LightsManager.class); in prepareCameraPrivacyLightController() 148 doReturn(mLights).when(mLightsManager).getLights(); in prepareCameraPrivacyLightController() 149 doReturn(mLightsSession).when(mLightsManager).openSession(anyInt()); in prepareCameraPrivacyLightController() 179 verifyZeroInteractions(mLightsManager); in testNoInteractionsWithServicesIfNoColorsSpecified() 209 verify(mLightsManager, times(0)).openSession(anyInt()); in testAllCameraLightsAreRequestedOnOpActive() 215 verify(mLightsManager, times(1)).openSession(anyInt()); in testAllCameraLightsAreRequestedOnOpActive() 236 verify(mLightsManager, times(1)).openSession(anyInt()); in testWillOnlyOpenOnceWhenTwoPackagesStartOp() 238 verify(mLightsManager, times(1)).openSession(anyInt()); in testWillOnlyOpenOnceWhenTwoPackagesStartOp() 285 verify(mLightsManager, times(0)).openSession(anyInt()); in testWontOpenForExemptedPackage()
|
/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
D | CameraPrivacyLightController.java | 60 private final LightsManager mLightsManager; field in CameraPrivacyLightController 105 mLightsManager = null; in CameraPrivacyLightController() 119 mLightsManager = mContext.getSystemService(LightsManager.class); in CameraPrivacyLightController() 136 List<Light> lights = mLightsManager.getLights(); in CameraPrivacyLightController() 258 mLightsSession = mLightsManager.openSession(Integer.MAX_VALUE); in updateLightSession()
|
/frameworks/base/core/java/android/view/ |
D | InputDevice.java | 111 private LightsManager mLightsManager; field in InputDevice 1301 if (mLightsManager == null) { in getLightsManager() 1302 mLightsManager = InputManagerGlobal.getInstance() in getLightsManager() 1306 return mLightsManager; in getLightsManager()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 342 private LightsManager mLightsManager; field in PowerManagerService 1394 mLightsManager = getLocalService(LightsManager.class); 1395 mAttentionLight = mLightsManager.getLight(LightsManager.LIGHT_ID_ATTENTION);
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 447 private LightsManager mLightsManager; field in NotificationManagerServiceTest 637 when(mLightsManager.getLight(anyInt())).thenReturn(mock(LogicalLight.class)); in setUp() 749 mLightsManager, mListeners, mAssistants, mConditionProviders, mCompanionMgr, in initNMS()
|