Searched refs:mLightsSession (Results 1 – 2 of 2) sorted by relevance
68 private LightsManager.LightsSession mLightsSession = null; field in CameraPrivacyLightController234 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()
88 private LightsManager.LightsSession mLightsSession; field in CameraPrivacyLightControllerTest149 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()