public class StatusBarKeyguardViewManager extends Object implements com.android.systemui.statusbar.RemoteInputController.Callback
ViewMediatorCallback
to poke the wake lock and report that the keyguard is done,
which is in turn, reported to this class by the current
com.android.keyguard.KeyguardViewBase
.Modifier and Type | Field and Description |
---|---|
protected KeyguardBouncer |
mBouncer |
protected Context |
mContext |
protected boolean |
mFirstUpdate |
protected boolean |
mLastOccluded |
protected boolean |
mLastRemoteInputActive |
protected boolean |
mLastShowing |
protected LockPatternUtils |
mLockPatternUtils |
protected boolean |
mOccluded |
protected PhoneStatusBar |
mPhoneStatusBar |
protected boolean |
mRemoteInputActive |
protected boolean |
mShowing |
protected ViewMediatorCallback |
mViewMediatorCallback |
Constructor and Description |
---|
StatusBarKeyguardViewManager(Context context,
ViewMediatorCallback callback,
LockPatternUtils lockPatternUtils) |
Modifier and Type | Method and Description |
---|---|
void |
animateCollapsePanels(float speedUpFactor) |
void |
dismiss()
Dismisses the keyguard by going to the next screen or making it gone.
|
void |
dismissWithAction(KeyguardHostView.OnDismissAction r,
Runnable cancelAction,
boolean afterKeyguardGone) |
protected boolean |
getLastNavBarVisible() |
ViewRootImpl |
getViewRootImpl() |
void |
hide(long startTime,
long fadeoutDuration)
Hides the keyguard view
|
boolean |
interceptMediaKey(KeyEvent event) |
boolean |
isBouncerShowing() |
boolean |
isGoingToNotificationShade() |
boolean |
isInputRestricted() |
protected boolean |
isNavBarVisible() |
boolean |
isOccluded() |
boolean |
isScreenTurnedOn() |
boolean |
isSecure()
WARNING: This method might cause Binder calls.
|
boolean |
isSecure(int userId) |
boolean |
isShowing() |
boolean |
isUnlockWithWallpaper() |
void |
keyguardGoingAway() |
void |
notifyDeviceWakeUpRequested() |
void |
notifyKeyguardAuthenticated(boolean strongAuth)
Notifies that the user has authenticated by other means than using the bouncer, for example,
fingerprint.
|
void |
onActivityDrawn() |
boolean |
onBackPressed()
Notifies this manager that the back button has been pressed.
|
void |
onDensityOrFontScaleChanged() |
void |
onFinishedGoingToSleep() |
void |
onRemoteInputActive(boolean active) |
void |
onScreenTurnedOff() |
void |
onScreenTurnedOn() |
void |
onScreenTurningOn() |
void |
onStartedGoingToSleep() |
void |
onStartedWakingUp() |
void |
registerStatusBar(PhoneStatusBar phoneStatusBar,
ViewGroup container,
StatusBarWindowManager statusBarWindowManager,
ScrimController scrimController,
FingerprintUnlockController fingerprintUnlockController) |
void |
reset()
Reset the state of the view.
|
void |
setNeedsInput(boolean needsInput) |
void |
setOccluded(boolean occluded,
boolean animate) |
boolean |
shouldDisableWindowAnimationsForUnlock() |
boolean |
shouldDismissOnMenuPressed() |
void |
show(Bundle options)
Show the keyguard.
|
void |
showBouncerMessage(String message,
int color) |
protected void |
showBouncerOrKeyguard()
Shows the notification keyguard or the bouncer depending on
KeyguardBouncer.needsFullscreenBouncer() . |
void |
startPreHideAnimation(Runnable finishRunnable)
Starts the animation before we dismiss Keyguard, i.e. an disappearing animation on the
security view of the bouncer.
|
protected void |
updateStates() |
void |
verifyUnlock() |
protected final Context mContext
protected LockPatternUtils mLockPatternUtils
protected ViewMediatorCallback mViewMediatorCallback
protected PhoneStatusBar mPhoneStatusBar
protected KeyguardBouncer mBouncer
protected boolean mShowing
protected boolean mOccluded
protected boolean mRemoteInputActive
protected boolean mFirstUpdate
protected boolean mLastShowing
protected boolean mLastOccluded
protected boolean mLastRemoteInputActive
public StatusBarKeyguardViewManager(Context context, ViewMediatorCallback callback, LockPatternUtils lockPatternUtils)
public void registerStatusBar(PhoneStatusBar phoneStatusBar, ViewGroup container, StatusBarWindowManager statusBarWindowManager, ScrimController scrimController, FingerprintUnlockController fingerprintUnlockController)
public void show(Bundle options)
protected void showBouncerOrKeyguard()
KeyguardBouncer.needsFullscreenBouncer()
.public void dismissWithAction(KeyguardHostView.OnDismissAction r, Runnable cancelAction, boolean afterKeyguardGone)
public void reset()
public void onStartedGoingToSleep()
public void onFinishedGoingToSleep()
public void onStartedWakingUp()
public void onScreenTurningOn()
public boolean isScreenTurnedOn()
public void onScreenTurnedOn()
public void onRemoteInputActive(boolean active)
onRemoteInputActive
in interface com.android.systemui.statusbar.RemoteInputController.Callback
public void onScreenTurnedOff()
public void notifyDeviceWakeUpRequested()
public void verifyUnlock()
public void setNeedsInput(boolean needsInput)
public boolean isUnlockWithWallpaper()
public void setOccluded(boolean occluded, boolean animate)
public boolean isOccluded()
public void startPreHideAnimation(Runnable finishRunnable)
finishRunnable
- the runnable to be run after the animation finished, or null
if
no action should be runpublic void hide(long startTime, long fadeoutDuration)
public void onDensityOrFontScaleChanged()
public void dismiss()
public boolean isSecure()
public boolean isShowing()
public boolean onBackPressed()
public boolean isBouncerShowing()
protected void updateStates()
protected boolean isNavBarVisible()
protected boolean getLastNavBarVisible()
public boolean shouldDismissOnMenuPressed()
public boolean interceptMediaKey(KeyEvent event)
public void onActivityDrawn()
public boolean shouldDisableWindowAnimationsForUnlock()
public boolean isGoingToNotificationShade()
public boolean isSecure(int userId)
public boolean isInputRestricted()
public void keyguardGoingAway()
public void animateCollapsePanels(float speedUpFactor)
public void notifyKeyguardAuthenticated(boolean strongAuth)
public void showBouncerMessage(String message, int color)
public ViewRootImpl getViewRootImpl()