Loading packages/SystemUI/src/com/android/systemui/keyguard/FaceAuthScreenBrightnessController.kt +1 −1 Original line number Diff line number Diff line Loading @@ -177,7 +177,7 @@ open class FaceAuthScreenBrightnessController( userDefinedBrightness = systemSettings.getFloat(SCREEN_BRIGHTNESS_FLOAT) } }) userDefinedBrightness = systemSettings.getFloat(SCREEN_BRIGHTNESS_FLOAT) userDefinedBrightness = systemSettings.getFloat(SCREEN_BRIGHTNESS_FLOAT, 1f) } override fun dump(fd: FileDescriptor, pw: PrintWriter, args: Array<out String>) { Loading packages/SystemUI/tests/src/com/android/systemui/keyguard/FaceAuthScreenBrightnessControllerTest.kt +2 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,8 @@ class FaceAuthScreenBrightnessControllerTest : SysuiTestCase() { override fun createAnimator(start: Float, end: Float) = animator } `when`(systemSettings.getFloat(eq(SCREEN_BRIGHTNESS_FLOAT))).thenReturn(INITIAL_BRIGHTNESS) `when`(systemSettings.getFloat(eq(SCREEN_BRIGHTNESS_FLOAT), eq(1f))) .thenReturn(INITIAL_BRIGHTNESS) faceAuthScreenBrightnessController.attach(whiteOverlay) verify(keyguardUpdateMonitor).registerCallback(capture(keyguardUpdateCallback)) } Loading Loading
packages/SystemUI/src/com/android/systemui/keyguard/FaceAuthScreenBrightnessController.kt +1 −1 Original line number Diff line number Diff line Loading @@ -177,7 +177,7 @@ open class FaceAuthScreenBrightnessController( userDefinedBrightness = systemSettings.getFloat(SCREEN_BRIGHTNESS_FLOAT) } }) userDefinedBrightness = systemSettings.getFloat(SCREEN_BRIGHTNESS_FLOAT) userDefinedBrightness = systemSettings.getFloat(SCREEN_BRIGHTNESS_FLOAT, 1f) } override fun dump(fd: FileDescriptor, pw: PrintWriter, args: Array<out String>) { Loading
packages/SystemUI/tests/src/com/android/systemui/keyguard/FaceAuthScreenBrightnessControllerTest.kt +2 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,8 @@ class FaceAuthScreenBrightnessControllerTest : SysuiTestCase() { override fun createAnimator(start: Float, end: Float) = animator } `when`(systemSettings.getFloat(eq(SCREEN_BRIGHTNESS_FLOAT))).thenReturn(INITIAL_BRIGHTNESS) `when`(systemSettings.getFloat(eq(SCREEN_BRIGHTNESS_FLOAT), eq(1f))) .thenReturn(INITIAL_BRIGHTNESS) faceAuthScreenBrightnessController.attach(whiteOverlay) verify(keyguardUpdateMonitor).registerCallback(capture(keyguardUpdateCallback)) } Loading