Google is committed to advancing racial equity for Black communities. See how.
This page was translated by the Cloud Translation API.
Switch to English

KeyguardControllerState

public class KeyguardControllerState
extends Object

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


鍵盤鎖狀態的容器。靈感來自ActivityManagerState.java。

摘要

公開方法

static KeyguardControllerState create ( dump) create ( dump)

創建並填充KeyguardControllerState基於來自KeyguardController一個dumpsys輸出。

boolean isKeyguardOccluded ()

如果鍵盤鎖被遮擋,則返回True,否則返回false。

boolean isKeyguardShowing ()

如果顯示鍵盤鎖,則返回True,否則返回false。

公開方法

創造

public static KeyguardControllerState create ( dump)

創建並填充KeyguardControllerState基於來自KeyguardController一個dumpsys輸出。

參量
dump :dumpsys活動活動的輸出

退貨
KeyguardControllerState 代表輸出的KeyguardControllerState如果提供了無效的輸出,則為null。

isKeyguard已遮擋

public boolean isKeyguardOccluded ()

如果鍵盤鎖被遮擋,則返回True,否則返回false。

退貨
boolean

isKeyguardShowing

public boolean isKeyguardShowing ()

如果顯示鍵盤鎖,則返回True,否則返回false。

退貨
boolean