LoggingService.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:Mobilog 作者:
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);
        else 
            neighborsmapGSM.put(i.getLac()+"-"+i.getCid(), (-113+2*(i.getRssi())));
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号