public boolean isValid(NeighboringCellInfo neighboringCell, Measurement measurement) {
NetworkGroup netType = NetworkTypeUtils.getNetworkGroup(neighboringCell.getNetworkType());
if (netType == NetworkGroup.Gsm) {
return getGsmValidator().isValid(neighboringCell.getCid(), neighboringCell.getLac(), measurement.getMnc(), measurement.getMcc(), NeighboringCellInfo.UNKNOWN_CID);
} else if (netType == NetworkGroup.Wcdma) {
// NOTE: Maybe some phones return full set for WCDMA and then it should be valid
return getGsmValidator().isValid(neighboringCell.getCid(), neighboringCell.getLac(), measurement.getMnc(), measurement.getMcc(), neighboringCell.getPsc());
}
return false;
}
CellLocationValidator.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:TowerCollector
作者:
评论列表
文章目录