Loading services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/FingerprintAuthenticationClient.java +2 −0 Original line number Diff line number Diff line Loading @@ -316,6 +316,8 @@ public class FingerprintAuthenticationClient if (getBiometricContext().isAwake()) { mALSProbeCallback.getProbe().enable(); } else { mALSProbeCallback.getProbe().disable(); } } catch (RemoteException e) { Slog.e(TAG, "Remote exception", e); Loading services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/aidl/FingerprintAuthenticationClientTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -320,7 +320,7 @@ public class FingerprintAuthenticationClientTest { } @Test public void luxProbeNotEnabledOnStartWhenNotWake() throws RemoteException { public void luxProbeDisabledOnStartWhenNotWake() throws RemoteException { luxProbeEnabledOnStart(false /* isAwake */); } Loading @@ -337,6 +337,7 @@ public class FingerprintAuthenticationClientTest { .getValue().toAidlContext()); verify(mLuxProbe, isAwake ? times(1) : never()).enable(); verify(mLuxProbe, isAwake ? never() : times(1)).disable(); } @Test Loading Loading
services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/FingerprintAuthenticationClient.java +2 −0 Original line number Diff line number Diff line Loading @@ -316,6 +316,8 @@ public class FingerprintAuthenticationClient if (getBiometricContext().isAwake()) { mALSProbeCallback.getProbe().enable(); } else { mALSProbeCallback.getProbe().disable(); } } catch (RemoteException e) { Slog.e(TAG, "Remote exception", e); Loading
services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/aidl/FingerprintAuthenticationClientTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -320,7 +320,7 @@ public class FingerprintAuthenticationClientTest { } @Test public void luxProbeNotEnabledOnStartWhenNotWake() throws RemoteException { public void luxProbeDisabledOnStartWhenNotWake() throws RemoteException { luxProbeEnabledOnStart(false /* isAwake */); } Loading @@ -337,6 +337,7 @@ public class FingerprintAuthenticationClientTest { .getValue().toAidlContext()); verify(mLuxProbe, isAwake ? times(1) : never()).enable(); verify(mLuxProbe, isAwake ? never() : times(1)).disable(); } @Test Loading