@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
public static void fill(TheDictionary map, CellIdentityWcdma value) throws Exception {
if (value != null) {
map.put("type", "3");
int i;
i = value.getMcc();
if (i != Integer.MAX_VALUE && i > 0 && i < 1000) map.put("mcc", i);
i = value.getMnc();
if (i != Integer.MAX_VALUE && i > 0 && i < 1000) map.put("mnc", i);
i = value.getLac();
if (i != Integer.MAX_VALUE && i > 0) map.put("lac", i);
i = value.getPsc();
if (i != Integer.MAX_VALUE && i > 0) map.put("psc", i);
i = value.getCid();
if (i != Integer.MAX_VALUE && i > 0) {
if (i >= 0x10000) {
map.put("rncid", i / 0x10000);
i %= 0x10000;
}
map.put("cid", i);
}
}
}
CellId.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:tabulae
作者:
评论列表
文章目录