@Implements(value=android.telephony.TelephonyManager.class) public class ShadowTelephonyManager extends Object
TelephonyManager.| Constructor and Description |
|---|
ShadowTelephonyManager() |
| Modifier and Type | Method and Description |
|---|---|
List<android.telephony.CellInfo> |
getAllCellInfo() |
android.telephony.CellLocation |
getCellLocation() |
String |
getDeviceId() |
int |
getEventFlags()
Non-Android accessor.
|
String |
getLine1Number() |
android.telephony.PhoneStateListener |
getListener()
Non-Android accessor.
|
String |
getNetworkCountryIso() |
String |
getNetworkOperator() |
String |
getNetworkOperatorName() |
int |
getNetworkType() |
int |
getPhoneType() |
String |
getSimCountryIso() |
String |
getSimOperator() |
String |
getSimOperatorName() |
int |
getSimState() |
void |
listen(android.telephony.PhoneStateListener listener,
int events) |
void |
setAllCellInfo(List<android.telephony.CellInfo> allCellInfo) |
void |
setCellLocation(android.telephony.CellLocation cellLocation) |
void |
setDeviceId(String newDeviceId) |
void |
setLine1Number(String line1Number) |
void |
setNetworkCountryIso(String networkCountryIso) |
void |
setNetworkOperator(String networkOperator) |
void |
setNetworkOperatorName(String networkOperatorName) |
void |
setNetworkType(int networkType) |
void |
setPhoneType(int phoneType) |
void |
setReadPhoneStatePermission(boolean readPhoneStatePermission) |
void |
setSimCountryIso(String simCountryIso) |
void |
setSimOperator(String simOperator) |
void |
setSimOperatorName(String simOperatorName) |
void |
setSimState(int simState) |
@Implementation
public void listen(android.telephony.PhoneStateListener listener,
int events)
public android.telephony.PhoneStateListener getListener()
public int getEventFlags()
@Implementation public String getDeviceId()
public void setDeviceId(String newDeviceId)
public void setNetworkOperatorName(String networkOperatorName)
@Implementation public String getNetworkOperatorName()
public void setNetworkCountryIso(String networkCountryIso)
@Implementation public String getNetworkCountryIso()
public void setNetworkOperator(String networkOperator)
@Implementation public String getNetworkOperator()
@Implementation public String getSimOperator()
public void setSimOperator(String simOperator)
@Implementation public String getSimOperatorName()
public void setSimOperatorName(String simOperatorName)
@Implementation public String getSimCountryIso()
public void setSimCountryIso(String simCountryIso)
@Implementation public int getSimState()
public void setSimState(int simState)
public void setReadPhoneStatePermission(boolean readPhoneStatePermission)
@Implementation public int getPhoneType()
public void setPhoneType(int phoneType)
@Implementation public String getLine1Number()
public void setLine1Number(String line1Number)
@Implementation public int getNetworkType()
public void setNetworkType(int networkType)
@Implementation public List<android.telephony.CellInfo> getAllCellInfo()
public void setAllCellInfo(List<android.telephony.CellInfo> allCellInfo)
@Implementation public android.telephony.CellLocation getCellLocation()
public void setCellLocation(android.telephony.CellLocation cellLocation)
Copyright © 2016. All rights reserved.