TelephonyHelper

public class TelephonyHelper
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.helper.TelephonyHelper


Ein Dienstprogramm, mit dem Sie Informationen zur Telefonie abrufen und nutzen können.

Zusammenfassung

Verschachtelte Klassen

class TelephonyHelper.SimCardInformation

Ein Informationshalter für die SIM-Karteninformationen. 

Konstanten

String CARRIER_PRIVILEGES_KEY

String PACKAGE_NAME

String SECURED_ELEMENT_KEY

String SE_SERVICE_KEY

String SIM_STATE_KEY

Felder

public static final TestDescription SIM_TEST

Öffentliche Methoden

static TelephonyHelper.SimCardInformation getSimInfo(ITestDevice device)

Informationen zur SIM-Karte von einem bestimmten Gerät abrufen.

Konstanten

CARRIER_PRIVILEGES_KEY

public static final String CARRIER_PRIVILEGES_KEY

Constant Value: "has_carried_privileges"

PACKAGE_NAME

public static final String PACKAGE_NAME

Konstanter Wert: "android.telephony.utility"

SECURED_ELEMENT_KEY

public static final String SECURED_ELEMENT_KEY

Konstanter Wert: "has_secured_element"

SE_SERVICE_KEY

public static final String SE_SERVICE_KEY

Constant Value: "has_se_service"

SIM_STATE_KEY

public static final String SIM_STATE_KEY

Konstanter Wert: "sim_state"

Felder

SIM_TEST

public static final TestDescription SIM_TEST

Öffentliche Methoden

getSimInfo

public static TelephonyHelper.SimCardInformation getSimInfo (ITestDevice device)

Informationen zur SIM-Karte von einem bestimmten Gerät abrufen.

Parameter
device ITestDevice: Das zu testende Gerät

Returns
TelephonyHelper.SimCardInformation Ein SimCardInformation-Objekt, das mit den Informationen der SIM-Karte gefüllt ist, oder „null“, wenn etwas schiefgeht.

Ausgabe
DeviceNotAvailableException