Inject different User IDs into biometric utils
Test: atest SettingsUnitTests Bug: 222217132 Change-Id: I7939d78817f53814d0f8fb4636231a4833fbe26a
This commit is contained in:
@@ -19,7 +19,6 @@ package com.android.settings.biometrics.face;
|
||||
import android.content.Context;
|
||||
import android.hardware.biometrics.BiometricAuthenticator;
|
||||
import android.hardware.face.FaceManager;
|
||||
import android.os.UserHandle;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.Settings;
|
||||
@@ -32,13 +31,14 @@ import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
|
||||
*/
|
||||
public class FaceStatusUtils {
|
||||
|
||||
private final int mUserId = UserHandle.myUserId();
|
||||
private final int mUserId;
|
||||
private final Context mContext;
|
||||
private final FaceManager mFaceManager;
|
||||
|
||||
public FaceStatusUtils(Context context, FaceManager faceManager) {
|
||||
public FaceStatusUtils(Context context, FaceManager faceManager, int userId) {
|
||||
mContext = context;
|
||||
mFaceManager = faceManager;
|
||||
mUserId = userId;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user