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(List<String> 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

KeyguardControllerState create (List<String> dump)

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

Parameters
dump List: output from the dumpsys activity activities

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

isKeyguardOccluded

boolean isKeyguardOccluded ()

Returns True if the keyguard is occluded, false otherwise.

Returns
boolean

isKeyguardShowing

boolean isKeyguardShowing ()

Returns True if the keyguard is showing, false otherwise.

Returns
boolean