Home
last modified time | relevance | path

Searched refs:mLightsSession (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DCameraPrivacyLightController.java68 private LightsManager.LightsSession mLightsSession = null; field in CameraPrivacyLightController
234 if (mLightsSession == null) { in updateLightSession()
238 mLightsSession.close(); in updateLightSession()
239 mLightsSession = null; in updateLightSession()
244 if (mLastLightColor == lightColor && mLightsSession != null) { in updateLightSession()
257 if (mLightsSession == null) { in updateLightSession()
258 mLightsSession = mLightsManager.openSession(Integer.MAX_VALUE); in updateLightSession()
261 mLightsSession.requestLights(requestBuilder.build()); in updateLightSession()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
DCameraPrivacyLightControllerTest.java88 private LightsManager.LightsSession mLightsSession; field in CameraPrivacyLightControllerTest
149 doReturn(mLightsSession).when(mLightsManager).openSession(anyInt()); in prepareCameraPrivacyLightController()
217 verify(mLightsSession).requestLights(mLightsRequestCaptor.capture()); in testAllCameraLightsAreRequestedOnOpActive()
245 verify(mLightsSession, times(0)).close(); in testWillCloseOnFinishOp()
247 verify(mLightsSession, times(1)).close(); in testWillCloseOnFinishOp()
271 verify(mLightsSession, times(0)).close(); in testWillCloseOnFinishOpForAllPackages()
274 verify(mLightsSession, times(1)).close(); in testWillCloseOnFinishOpForAllPackages()
296 verify(mLightsSession).requestLights(mLightsRequestCaptor.capture()); in testNoLightSensor()
335 verify(mLightsSession, atLeastOnce()).requestLights(mLightsRequestCaptor.capture()); in testAlsThresholds()