Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 Cloud Translation API 翻译。
Switch to English

KeyguardControllerState

public class KeyguardControllerState
extends Object

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


A container for the keyguard states. Inspired from ActivityManagerState.java.

Summary

Public methods

static KeyguardControllerState create( dump)

Creates and populate a KeyguardControllerState based on a dumpsys output from the KeyguardController.

boolean isKeyguardOccluded()

Returns True if the keyguard is occluded, false otherwise.

boolean isKeyguardShowing()

Returns True if the keyguard is showing, false otherwise.

Public methods

create

public static KeyguardControllerState create ( dump)

Creates and populate a KeyguardControllerState based on a dumpsys output from the KeyguardController.

Parameters
dump : output from the dumpsys activity activities

Returns
KeyguardControllerState The KeyguardControllerState representing the output or null if invalid output is provided.

isKeyguardOccluded

public boolean isKeyguardOccluded ()

Returns True if the keyguard is occluded, false otherwise.

Returns
boolean

isKeyguardShowing

public boolean isKeyguardShowing ()

Returns True if the keyguard is showing, false otherwise.

Returns
boolean