Loading core/java/android/hardware/face/FaceManager.java +15 −0 Original line number Diff line number Diff line Loading @@ -310,6 +310,21 @@ public class FaceManager implements BiometricAuthenticator, BiometricFaceConstan return result; } /** * Pokes the the driver to have it start looking for faces again. * @hide */ @RequiresPermission(MANAGE_BIOMETRIC) public void userActivity() { if (mService != null) { try { mService.userActivity(); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } } /** * Sets the active user. This is meant to be used to select the current profile for enrollment * to allow separate enrolled faces for a work profile Loading core/java/android/hardware/face/IFaceService.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -98,4 +98,6 @@ interface IFaceService { int setRequireAttention(boolean requireAttention, in byte [] token); boolean getRequireAttention(in byte [] token); void userActivity(); } services/core/java/com/android/server/biometrics/face/FaceService.java +15 −2 Original line number Diff line number Diff line Loading @@ -362,7 +362,7 @@ public class FaceService extends BiometricServiceBase { result = mDaemon != null ? mDaemon.setRequireAttention(requireAttention, byteToken) : Status.INTERNAL_ERROR; } catch (RemoteException e) { Slog.e(getTag(), "Unable to setRequireAttention to " + requireAttention); Slog.e(getTag(), "Unable to setRequireAttention to " + requireAttention, e); result = Status.INTERNAL_ERROR; } Loading @@ -382,10 +382,23 @@ public class FaceService extends BiometricServiceBase { try { result = mDaemon != null ? mDaemon.getRequireAttention(byteToken).value : true; } catch (RemoteException e) { Slog.e(getTag(), "Unable to getRequireAttention"); Slog.e(getTag(), "Unable to getRequireAttention", e); } return result; } @Override public void userActivity() { checkPermission(MANAGE_BIOMETRIC); if (mDaemon != null) { try { mDaemon.userActivity(); } catch (RemoteException e) { Slog.e(getTag(), "Unable to send userActivity", e); } } } } /** Loading Loading
core/java/android/hardware/face/FaceManager.java +15 −0 Original line number Diff line number Diff line Loading @@ -310,6 +310,21 @@ public class FaceManager implements BiometricAuthenticator, BiometricFaceConstan return result; } /** * Pokes the the driver to have it start looking for faces again. * @hide */ @RequiresPermission(MANAGE_BIOMETRIC) public void userActivity() { if (mService != null) { try { mService.userActivity(); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } } /** * Sets the active user. This is meant to be used to select the current profile for enrollment * to allow separate enrolled faces for a work profile Loading
core/java/android/hardware/face/IFaceService.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -98,4 +98,6 @@ interface IFaceService { int setRequireAttention(boolean requireAttention, in byte [] token); boolean getRequireAttention(in byte [] token); void userActivity(); }
services/core/java/com/android/server/biometrics/face/FaceService.java +15 −2 Original line number Diff line number Diff line Loading @@ -362,7 +362,7 @@ public class FaceService extends BiometricServiceBase { result = mDaemon != null ? mDaemon.setRequireAttention(requireAttention, byteToken) : Status.INTERNAL_ERROR; } catch (RemoteException e) { Slog.e(getTag(), "Unable to setRequireAttention to " + requireAttention); Slog.e(getTag(), "Unable to setRequireAttention to " + requireAttention, e); result = Status.INTERNAL_ERROR; } Loading @@ -382,10 +382,23 @@ public class FaceService extends BiometricServiceBase { try { result = mDaemon != null ? mDaemon.getRequireAttention(byteToken).value : true; } catch (RemoteException e) { Slog.e(getTag(), "Unable to getRequireAttention"); Slog.e(getTag(), "Unable to getRequireAttention", e); } return result; } @Override public void userActivity() { checkPermission(MANAGE_BIOMETRIC); if (mDaemon != null) { try { mDaemon.userActivity(); } catch (RemoteException e) { Slog.e(getTag(), "Unable to send userActivity", e); } } } } /** Loading