public class KeyguardBouncer extends Object
Modifier and Type | Field and Description |
---|---|
protected ViewMediatorCallback |
mCallback |
protected ViewGroup |
mContainer |
protected Context |
mContext |
protected KeyguardHostView |
mKeyguardView |
protected LockPatternUtils |
mLockPatternUtils |
protected ViewGroup |
mRoot |
Constructor and Description |
---|
KeyguardBouncer(Context context,
ViewMediatorCallback callback,
LockPatternUtils lockPatternUtils,
StatusBarWindowManager windowManager,
ViewGroup container) |
Modifier and Type | Method and Description |
---|---|
protected void |
ensureView() |
void |
hide(boolean destroyView) |
protected void |
inflateView() |
boolean |
interceptMediaKey(KeyEvent event) |
boolean |
isFullscreenBouncer()
Like
needsFullscreenBouncer() , but uses the currently visible security method, which
makes this method much faster. |
boolean |
isSecure()
WARNING: This method might cause Binder calls.
|
boolean |
isShowing() |
boolean |
needsFullscreenBouncer() |
void |
notifyKeyguardAuthenticated(boolean strongAuth) |
boolean |
onBackPressed() |
void |
onScreenTurnedOff() |
void |
prepare() |
protected void |
removeView() |
void |
reset()
Reset the state of the view.
|
boolean |
shouldDismissOnMenuPressed() |
void |
show(boolean resetSecuritySelection) |
void |
showMessage(String message,
int color) |
void |
showPromptReason(int reason)
Show a string explaining why the security view needs to be solved.
|
void |
showWithDismissAction(KeyguardHostView.OnDismissAction r,
Runnable cancelAction) |
void |
startPreHideAnimation(Runnable runnable)
|
protected Context mContext
protected ViewMediatorCallback mCallback
protected LockPatternUtils mLockPatternUtils
protected ViewGroup mContainer
protected KeyguardHostView mKeyguardView
protected ViewGroup mRoot
public KeyguardBouncer(Context context, ViewMediatorCallback callback, LockPatternUtils lockPatternUtils, StatusBarWindowManager windowManager, ViewGroup container)
public void show(boolean resetSecuritySelection)
public void showPromptReason(int reason)
reason
- a flag indicating which string should be shown, see
KeyguardSecurityView.PROMPT_REASON_NONE
and KeyguardSecurityView.PROMPT_REASON_RESTART
public void showMessage(String message, int color)
public void showWithDismissAction(KeyguardHostView.OnDismissAction r, Runnable cancelAction)
public void hide(boolean destroyView)
public void startPreHideAnimation(Runnable runnable)
public void reset()
public void onScreenTurnedOff()
public boolean isShowing()
public void prepare()
protected void ensureView()
protected void inflateView()
protected void removeView()
public boolean onBackPressed()
public boolean needsFullscreenBouncer()
public boolean isFullscreenBouncer()
needsFullscreenBouncer()
, but uses the currently visible security method, which
makes this method much faster.public boolean isSecure()
public boolean shouldDismissOnMenuPressed()
public boolean interceptMediaKey(KeyEvent event)
public void notifyKeyguardAuthenticated(boolean strongAuth)