/**
* Get current cell info
*
* @return cell information format as {@link String}
*/
public String getCellInfo() {
if (DBG)
Log.d(Config.TAG, TAG + "getCellInfo called");
String ret = null;
List<CellInfo> listCellInfo = mTelMgr.getAllCellInfo();
if (listCellInfo != null)
for (CellInfo a_Info : listCellInfo) {
if (CellInfoCdma.class.isInstance(a_Info))
ret = ret + "\n Cell info cdma: " + a_Info.toString();
else if (CellInfoGsm.class.isInstance(a_Info))
ret = ret + "\n Cell info gsm: " + a_Info.toString();
else if (CellInfoLte.class.isInstance(a_Info)) {
ret = ret + "\n Cell info lte: " + a_Info.toString();
CellInfoLte cellInfoLte = (CellInfoLte) a_Info;
CellIdentityLte cellIdentity = cellInfoLte
.getCellIdentity();
Log.d(Config.TAG, TAG + " LTE - " + cellIdentity.getCi()
+ cellIdentity.getTac() + cellIdentity.getPci());
} else if (CellInfoWcdma.class.isInstance(a_Info))
ret = ret + "\n Cell info : wcdma" + a_Info.toString();
}
return ret;
}
PhoneStateHelper.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:SignalAnalysis
作者:
评论列表
文章目录