use of android.telephony.cdma.CdmaCellLocation in project XobotOS by xamarin.
the class GsmDataConnectionTracker method getCellLocationId.
private int getCellLocationId() {
int cid = -1;
CellLocation loc = mPhone.getCellLocation();
if (loc != null) {
if (loc instanceof GsmCellLocation) {
cid = ((GsmCellLocation) loc).getCid();
} else if (loc instanceof CdmaCellLocation) {
cid = ((CdmaCellLocation) loc).getBaseStationId();
}
}
return cid;
}
use of android.telephony.cdma.CdmaCellLocation in project XobotOS by xamarin.
the class CdmaDataConnectionTracker method writeEventLogCdmaDataDrop.
private void writeEventLogCdmaDataDrop() {
CdmaCellLocation loc = (CdmaCellLocation) (mPhone.getCellLocation());
EventLog.writeEvent(EventLogTags.CDMA_DATA_DROP, loc != null ? loc.getBaseStationId() : -1, TelephonyManager.getDefault().getNetworkType());
}
Aggregations