Google is committed to advancing racial equity for Black communities. See how.

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. 

Fields

public static final String CARRIER_PRIVILEGES_KEY

public static final String PACKAGE_NAME

public static final String SECURED_ELEMENT_KEY

public static final String SE_SERVICE_KEY

public static final String SIM_STATE_KEY

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.

Fields

CARRIER_PRIVILEGES_KEY

public static final String CARRIER_PRIVILEGES_KEY

PACKAGE_NAME

public static final String PACKAGE_NAME

SECURED_ELEMENT_KEY

public static final String SECURED_ELEMENT_KEY

SE_SERVICE_KEY

public static final String SE_SERVICE_KEY

SIM_STATE_KEY

public static final String SIM_STATE_KEY

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