Android 结束通话--实现黑名单拦截(三)

2014-11-24 00:08:15 · 作者: · 浏览: 37
mation in service state
*/
void updateServiceLocation();


/**
* Enable location update notifications.
*/
void enableLocationUpdates();


/**
* Disable location update notifications.
*/
void disableLocationUpdates();


/**
* Enable a specific APN type.
*/
int enableApnType(String type);


/**
* Disable a specific APN type.
*/
int disableApnType(String type);


/**
* Allow mobile data connections.
*/
boolean enableDataConnectivity();


/**
* Disallow mobile data connections.
*/
boolean disableDataConnectivity();


/**
* Report whether data connectivity is possible.
*/
boolean isDataConnectivityPossible();


Bundle getCellLocation();


/**
* Returns the neighboring cell information of the device.
*/
List getNeighboringCellInfo();


int getCallState();
int getDataActivity();
int getDataState();


/**
* Returns the current active phone type as integer.
* Returns TelephonyManager.PHONE_TYPE_CDMA if RILConstants.CDMA_PHONE
* and TelephonyManager.PHONE_TYPE_GSM if RILConstants.GSM_PHONE
*/
int getActivePhoneType();


/**
* Returns the CDMA ERI icon index to display
*/
int getCdmaEriIconIndex();


/**
* Returns the CDMA ERI icon mode,
* 0 - ON
* 1 - FLASHING
*/
int getCdmaEriIconMode();


/**
* Returns the CDMA ERI text,
*/
String getCdmaEriText();


/**
* Returns true if CDMA provisioning needs to run.
*/
boolean getCdmaNeedsProvisioning();


/**
* Returns the unread count of voicemails
*/
int getVoiceMessageCount();


/**
* Returns the network type
*/
int getNetworkType();

/**
* Return true if an ICC card is present
*/
boolean hasIccCard();
}