KeyguardControllerState

public class KeyguardControllerState
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.KeyguardControllerState


用于存放屏幕保护状态的容器。灵感来自 ActivityManagerState.java。

摘要

公共方法

static KeyguardControllerState create( dump)

根据 KeyguardController 中的 dumpsys 输出创建并填充 KeyguardControllerState

boolean isKeyguardGoingAway()

如果键盘保护屏即将关闭,则返回 True;否则返回 False。

boolean isKeyguardOccluded()

如果屏幕保护程序被遮挡,则返回 true;否则,返回 false。

boolean isKeyguardShowing()

如果显示屏保,则返回 true;否则,返回 false。

公共方法

create

public static KeyguardControllerState create ( dump)

根据 KeyguardController 中的 dumpsys 输出创建并填充 KeyguardControllerState

参数
dump :dumpsys activity 活动的输出

返回
KeyguardControllerState 表示输出的 KeyguardControllerState;如果提供无效的输出,则为 null。

isKeyguardGoingAway

public boolean isKeyguardGoingAway ()

如果键盘保护屏即将关闭,则返回 True;否则返回 False。

返回
boolean

isKeyguardOccluded

public boolean isKeyguardOccluded ()

如果屏幕保护程序被遮挡,则返回 True;否则返回 False。

返回
boolean

isKeyguardShowing

public boolean isKeyguardShowing ()

如果显示屏保,则返回 True;否则,返回 False。

返回
boolean