KeyguardControllerState
public
class
KeyguardControllerState
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.KeyguardControllerState |
用于存放锁屏状态的容器。灵感源自 ActivityManagerState.java。
摘要
公共方法 | |
|---|---|
static
KeyguardControllerState
|
create(List<String> dump)
根据 KeyguardController 的 dumpsys 输出创建并填充 |
boolean
|
isKeyguardGoingAway()
如果锁屏界面即将消失,则返回 True,否则返回 False。 |
boolean
|
isKeyguardOccluded()
如果键盘锁被遮挡,则返回 True,否则返回 False。 |
boolean
|
isKeyguardShowing()
如果锁屏显示,则返回 True,否则返回 False。 |
公共方法
create
public static KeyguardControllerState create (List<String> dump)
基于 KeyguardController 的 dumpsys 输出创建并填充 KeyguardControllerState。
| 参数 | |
|---|---|
dump |
List:来自 dumpsys activity activities 的输出 |
| 返回 | |
|---|---|
KeyguardControllerState |
表示输出的 KeyguardControllerState;如果提供的输出无效,则为 null。 |
isKeyguardGoingAway
public boolean isKeyguardGoingAway ()
如果锁屏界面即将消失,则返回 True,否则返回 False。
| 返回 | |
|---|---|
boolean |
|
isKeyguardOccluded
public boolean isKeyguardOccluded ()
如果锁屏被遮挡,则返回 True,否则返回 False。
| 返回 | |
|---|---|
boolean |
|
isKeyguardShowing
public boolean isKeyguardShowing ()
如果显示屏保,则返回 True,否则返回 False。
| 返回 | |
|---|---|
boolean |
|