TelephonyHelper

public class TelephonyHelper
extends Object

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


Một tiện ích để sử dụng và nhận thông tin liên quan đến điện thoại.

Tóm tắt

Lớp lồng ghép

class TelephonyHelper.SimCardInformation

Một phần tử chứa thông tin liên quan đến thẻ SIM. 

Trường

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

Phương thức công khai

static TelephonyHelper.SimCardInformation getSimInfo(ITestDevice device)

Nhận thông tin liên quan đến thẻ SIM từ một thiết bị nhất định.

Trường

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

Phương thức công khai

getSimInfo

public static TelephonyHelper.SimCardInformation getSimInfo (ITestDevice device)

Lấy thông tin liên quan đến thẻ SIM từ một thiết bị nhất định.

Tham số
device ITestDevice: Thiết bị đang được kiểm thử

Giá trị trả về
TelephonyHelper.SimCardInformation Một đối tượng SimCardInformation được điền sẵn thông tin thẻ SIM hoặc giá trị rỗng nếu có lỗi.

Gửi
DeviceNotAvailableException