WirelessLoggerService.java 文件源码

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

项目:radiocells-scanner-android 作者:
/**
 * A valid gsm cell must have cell id != -1
 * Note: cells with cid > max value 0xffff are accepted (typically UMTS cells. We handle them separately
 *
 * @param gsmIdentity {@link CellIdentityGsm}
 * @return true if valid gsm cell
 */
@TargetApi(JELLY_BEAN_MR1)
private boolean isValidGsmCell(final CellIdentityGsm gsmIdentity) {
    if (gsmIdentity == null) {
        return false;
    }

    final Integer cid = gsmIdentity.getCid();
    return (cid > 0 && cid != Integer.MAX_VALUE);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号