TelephonyHelper

public class TelephonyHelper
extends Object

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


A utility to use and get information related to the telephony.

Summary

Nested classes

class TelephonyHelper.SimCardInformation

An information holder for the sim card related information. 

Constants

String CARRIER_PRIVILEGES_KEY

String PACKAGE_NAME

String SECURED_ELEMENT_KEY

String SE_SERVICE_KEY

String SIM_STATE_KEY

Fields

public static final TestDescription SIM_TEST

Public methods

static TelephonyHelper.SimCardInformation getSimInfo(ITestDevice device)

Get the information related to sim card from a given device.

Constants

CARRIER_PRIVILEGES_KEY

public static final String CARRIER_PRIVILEGES_KEY

Constant Value: "has_carried_privileges"

PACKAGE_NAME

public static final String PACKAGE_NAME

Constant Value: "android.telephony.utility"

SECURED_ELEMENT_KEY

public static final String SECURED_ELEMENT_KEY

Constant Value: "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

Constant Value: "sim_state"

Fields

SIM_TEST

public static final TestDescription SIM_TEST

Public methods

getSimInfo

public static TelephonyHelper.SimCardInformation getSimInfo (ITestDevice device)

Get the information related to sim card from a given device.

Parameters
device ITestDevice: The device under tests

Returns
TelephonyHelper.SimCardInformation A SimCardInformation object populated with the sim card info or null if anything goes wrong.

Throws
DeviceNotAvailableException