public class TrustManager extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
TrustManager.TrustListener |
Constructor and Description |
---|
TrustManager(IBinder b) |
Modifier and Type | Method and Description |
---|---|
boolean |
isTrustUsuallyManaged(int userId) |
void |
registerTrustListener(TrustManager.TrustListener trustListener)
Registers a listener for trust events.
|
void |
reportEnabledTrustAgentsChanged(int userId)
Reports that the list of enabled trust agents changed for user .
|
void |
reportKeyguardShowingChanged()
Reports that the visibility of the keyguard has changed.
|
void |
reportUnlockAttempt(boolean successful,
int userId)
Reports that user has tried to unlock the device.
|
void |
setDeviceLockedForUser(int userId,
boolean locked)
Changes the lock status for the given user.
|
void |
unregisterTrustListener(TrustManager.TrustListener trustListener)
Unregisters a listener for trust events.
|
public TrustManager(IBinder b)
public void setDeviceLockedForUser(int userId, boolean locked)
android.Manifest.permission#ACCESS_KEYGUARD_SECURE_STORAGE
permission.userId
- The id for the user to be locked/unlocked.locked
- The value for that user's locked state.public void reportUnlockAttempt(boolean successful, int userId)
successful
- if true, the unlock attempt was successful.
Requires the android.Manifest.permission#ACCESS_KEYGUARD_SECURE_STORAGE
permission.public void reportEnabledTrustAgentsChanged(int userId)
android.Manifest.permission#ACCESS_KEYGUARD_SECURE_STORAGE
permission.public void reportKeyguardShowingChanged()
android.Manifest.permission#ACCESS_KEYGUARD_SECURE_STORAGE
permission.public void registerTrustListener(TrustManager.TrustListener trustListener)
android.Manifest.permission#TRUST_LISTENER
permission.public void unregisterTrustListener(TrustManager.TrustListener trustListener)
android.Manifest.permission#TRUST_LISTENER
permission.public boolean isTrustUsuallyManaged(int userId)
LockPatternUtils.StrongAuthTracker
.