public class LockSettingsService
extends ILockSettings.Stub
Modifier and Type | Class and Description |
---|---|
static class |
LockSettingsService.Lifecycle |
Constructor and Description |
---|
LockSettingsService(Context context) |
Modifier and Type | Method and Description |
---|---|
VerifyCredentialResponse |
checkPassword(String password,
int userId,
ICheckCredentialProgressCallback progressCallback) |
VerifyCredentialResponse |
checkPattern(String pattern,
int userId,
ICheckCredentialProgressCallback progressCallback) |
boolean |
checkVoldPassword(int userId) |
boolean |
getBoolean(String key,
boolean defaultValue,
int userId) |
long |
getLong(String key,
long defaultValue,
int userId) |
boolean |
getSeparateProfileChallengeEnabled(int userId) |
String |
getString(String key,
String defaultValue,
int userId) |
String |
getStringUnchecked(String key,
String defaultValue,
int userId) |
int |
getStrongAuthForUser(int userId) |
boolean |
havePassword(int userId) |
boolean |
havePattern(int userId) |
void |
hideEncryptionNotification(UserHandle userHandle) |
void |
onCleanupUser(int userId) |
void |
onUnlockUser(int userId) |
void |
registerStrongAuthTracker(IStrongAuthTracker tracker) |
void |
requireStrongAuth(int strongAuthReason,
int userId) |
void |
resetKeyStore(int userId) |
void |
setBoolean(String key,
boolean value,
int userId) |
void |
setLockPassword(String password,
String savedCredential,
int userId) |
void |
setLockPattern(String pattern,
String savedCredential,
int userId) |
void |
setLong(String key,
long value,
int userId) |
void |
setSeparateProfileChallengeEnabled(int userId,
boolean enabled,
String managedUserPassword) |
void |
setString(String key,
String value,
int userId) |
void |
systemReady() |
void |
tieManagedProfileLockIfNecessary(int managedUserId,
String managedUserPassword)
Tie managed profile to primary profile if it is in unified mode and not tied before.
|
void |
unregisterStrongAuthTracker(IStrongAuthTracker tracker) |
void |
userPresent(int userId) |
VerifyCredentialResponse |
verifyPassword(String password,
long challenge,
int userId) |
VerifyCredentialResponse |
verifyPattern(String pattern,
long challenge,
int userId) |
VerifyCredentialResponse |
verifyTiedProfileChallenge(String password,
boolean isPattern,
long challenge,
int userId) |
public LockSettingsService(Context context)
public void tieManagedProfileLockIfNecessary(int managedUserId, String managedUserPassword)
managedUserId
- Managed profile user IdmanagedUserPassword
- Managed profile original password (when it has separated lock).
NULL when it does not have a separated lock before.public void hideEncryptionNotification(UserHandle userHandle)
public void onCleanupUser(int userId)
public void onUnlockUser(int userId)
public void systemReady()
public boolean getSeparateProfileChallengeEnabled(int userId) throws RemoteException
RemoteException
public void setSeparateProfileChallengeEnabled(int userId, boolean enabled, String managedUserPassword) throws RemoteException
RemoteException
public void setBoolean(String key, boolean value, int userId) throws RemoteException
RemoteException
public void setLong(String key, long value, int userId) throws RemoteException
RemoteException
public void setString(String key, String value, int userId) throws RemoteException
RemoteException
public boolean getBoolean(String key, boolean defaultValue, int userId) throws RemoteException
RemoteException
public long getLong(String key, long defaultValue, int userId) throws RemoteException
RemoteException
public String getString(String key, String defaultValue, int userId) throws RemoteException
RemoteException
public boolean havePassword(int userId) throws RemoteException
RemoteException
public boolean havePattern(int userId) throws RemoteException
RemoteException
public void setLockPattern(String pattern, String savedCredential, int userId) throws RemoteException
RemoteException
public void setLockPassword(String password, String savedCredential, int userId) throws RemoteException
RemoteException
public void resetKeyStore(int userId) throws RemoteException
RemoteException
public VerifyCredentialResponse checkPattern(String pattern, int userId, ICheckCredentialProgressCallback progressCallback) throws RemoteException
RemoteException
public VerifyCredentialResponse verifyPattern(String pattern, long challenge, int userId) throws RemoteException
RemoteException
public VerifyCredentialResponse checkPassword(String password, int userId, ICheckCredentialProgressCallback progressCallback) throws RemoteException
RemoteException
public VerifyCredentialResponse verifyPassword(String password, long challenge, int userId) throws RemoteException
RemoteException
public VerifyCredentialResponse verifyTiedProfileChallenge(String password, boolean isPattern, long challenge, int userId) throws RemoteException
RemoteException
public boolean checkVoldPassword(int userId) throws RemoteException
RemoteException
public void registerStrongAuthTracker(IStrongAuthTracker tracker)
public void unregisterStrongAuthTracker(IStrongAuthTracker tracker)
public void requireStrongAuth(int strongAuthReason, int userId)
public void userPresent(int userId)
public int getStrongAuthForUser(int userId)