public class KeyguardUpdateMonitorCallback extends Object
Constructor and Description |
---|
KeyguardUpdateMonitorCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onBootCompleted()
Called when boot completed.
|
void |
onClockVisibilityChanged()
Called when visibility of lockscreen clock changes, such as when
obscured by a widget.
|
void |
onDevicePolicyManagerStateChanged()
Called when the device policy changes.
|
void |
onDeviceProvisioned()
Called when the device becomes provisioned
|
void |
onDreamingStateChanged(boolean dreaming)
Called when the dream's window state is changed.
|
void |
onEmergencyCallAction()
Called when the emergency call button is pressed.
|
void |
onFaceUnlockStateChanged(boolean running,
int userId)
Called when the state of face unlock changed.
|
void |
onFingerprintAcquired()
Called when a finger has been acquired.
|
void |
onFingerprintAuthenticated(int userId)
Called when a fingerprint is recognized.
|
void |
onFingerprintAuthFailed()
Called when a fingerprint couldn't be authenticated.
|
void |
onFingerprintError(int msgId,
String errString)
Called when fingerprint provides an semi-permanent error message
(e.g.
|
void |
onFingerprintHelp(int msgId,
String helpString)
Called when fingerprint provides help string (e.g.
|
void |
onFingerprintRunningStateChanged(boolean running)
Called when the fingerprint running state changed.
|
void |
onFinishedGoingToSleep(int why)
Called when the device has finished going to sleep.
|
void |
onHasLockscreenWallpaperChanged(boolean hasLockscreenWallpaper)
Called when the state whether we have a lockscreen wallpaper has changed.
|
void |
onKeyguardBouncerChanged(boolean bouncer)
Called when the keyguard enters or leaves bouncer mode.
|
void |
onKeyguardVisibilityChanged(boolean showing)
Called when the visibility of the keyguard changes.
|
void |
onKeyguardVisibilityChangedRaw(boolean showing) |
void |
onPhoneStateChanged(int phoneState)
Called when the phone state changes.
|
void |
onRefreshBatteryInfo(KeyguardUpdateMonitor.BatteryStatus status)
Called when the battery status changes, e.g. when plugged in or unplugged, charge
level, etc. changes.
|
void |
onRefreshCarrierInfo()
Called when the carrier PLMN or SPN changes.
|
void |
onRingerModeChanged(int state)
Called when the ringer mode changes.
|
void |
onScreenTurnedOff()
Called when the screen has been turned off.
|
void |
onScreenTurnedOn()
Called when the screen has been turned on.
|
void |
onSetBackground(Bitmap bitmap)
Called when the transport background changes.
|
void |
onSimStateChanged(int subId,
int slotId,
IccCardConstants.State simState)
Called when the SIM state changes.
|
void |
onStartedGoingToSleep(int why)
Called when the device has started going to sleep.
|
void |
onStartedWakingUp()
Called when the device has started waking up.
|
void |
onStrongAuthStateChanged(int userId)
Called when the state that the user hasn't used strong authentication since quite some time
has changed.
|
void |
onTimeChanged()
Called once per minute or when the time changes.
|
void |
onTrustChanged(int userId)
Called when trust changes for a user.
|
void |
onTrustGrantedWithFlags(int flags,
int userId)
Called after trust was granted with non-zero flags.
|
void |
onTrustManagedChanged(int userId)
Called when trust being managed changes for a user.
|
void |
onUserInfoChanged(int userId)
Called when the user's info changed.
|
void |
onUserSwitchComplete(int userId)
Called when the user change is complete.
|
void |
onUserSwitching(int userId)
Called when the user change begins.
|
void |
onUserUnlocked()
Called when a user got unlocked.
|
public void onRefreshBatteryInfo(KeyguardUpdateMonitor.BatteryStatus status)
status
- current battery statuspublic void onTimeChanged()
public void onRefreshCarrierInfo()
public void onRingerModeChanged(int state)
state
- the current ringer state, as defined in
AudioManager.RINGER_MODE_CHANGED_ACTION
public void onPhoneStateChanged(int phoneState)
TelephonyManager.EXTRA_STATE_IDLE
TelephonyManager@EXTRA_STATE_RINGING
{@link TelephonyManager#EXTRA_STATE_OFFHOOKpublic void onKeyguardVisibilityChanged(boolean showing)
showing
- Indicates if the keyguard is now visible.public void onKeyguardVisibilityChangedRaw(boolean showing)
public void onKeyguardBouncerChanged(boolean bouncer)
bouncer
- if true, keyguard is now in bouncer mode.public void onClockVisibilityChanged()
public void onDeviceProvisioned()
public void onDevicePolicyManagerStateChanged()
DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED
public void onUserSwitching(int userId)
public void onUserSwitchComplete(int userId)
public void onSimStateChanged(int subId, int slotId, IccCardConstants.State simState)
slotId
- simState
- public void onUserInfoChanged(int userId)
public void onUserUnlocked()
public void onBootCompleted()
public void onEmergencyCallAction()
public void onSetBackground(Bitmap bitmap)
bitmap
- public void onStartedWakingUp()
public void onStartedGoingToSleep(int why)
why
- see onFinishedGoingToSleep(int)
public void onFinishedGoingToSleep(int why)
why
- either WindowManagerPolicy.OFF_BECAUSE_OF_ADMIN
,
WindowManagerPolicy.OFF_BECAUSE_OF_USER
, or
WindowManagerPolicy.OFF_BECAUSE_OF_TIMEOUT
.public void onScreenTurnedOn()
public void onScreenTurnedOff()
public void onTrustChanged(int userId)
public void onTrustManagedChanged(int userId)
public void onTrustGrantedWithFlags(int flags, int userId)
public void onFingerprintAcquired()
It is guaranteed that either onFingerprintAuthenticated(int)
or
onFingerprintAuthFailed()
is called after this method eventually.
public void onFingerprintAuthFailed()
public void onFingerprintAuthenticated(int userId)
userId
- the user id for which the fingerprint was authenticatedpublic void onFingerprintHelp(int msgId, String helpString)
msgId
- helpString
- public void onFingerprintError(int msgId, String errString)
msgId
- one of the error messages listed in FingerprintManager
errString
- public void onFaceUnlockStateChanged(boolean running, int userId)
public void onFingerprintRunningStateChanged(boolean running)
public void onStrongAuthStateChanged(int userId)
public void onHasLockscreenWallpaperChanged(boolean hasLockscreenWallpaper)
public void onDreamingStateChanged(boolean dreaming)
dreaming
- true if the dream's window has been created and is visible