private void updateNeighboringCells(){
/** Neighboring cells */
List<NeighboringCellInfo> neighboringCellInfo;
neighboringCellInfo = srvcTelephonyManager.getNeighboringCellInfo();
/** Fill the hash tables depending on the network type*/
for (NeighboringCellInfo i : neighboringCellInfo) {
int networktype=i.getNetworkType();
if ((networktype == TelephonyManager.NETWORK_TYPE_UMTS) ||
(networktype == TelephonyManager.NETWORK_TYPE_HSDPA) ||
(networktype == TelephonyManager.NETWORK_TYPE_HSUPA) ||
(networktype == TelephonyManager.NETWORK_TYPE_HSPA))
//neighborsmapUMTS.put(i.getPsc(), i.getRssi()-115);
// Nexus 5 phone gives the actual rsrp instead of index level of CPICH
neighborsmapUMTS.put(i.getPsc(), i.getRssi());
else
neighborsmapGSM.put(i.getLac()+"-"+i.getCid(), (-113+2*(i.getRssi())));
}
}
LoggingService.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:mobility-logger
作者:
评论列表
文章目录