OSDN Git Service

Fix the inconsistency of scan status.
authoryinxu <yinxu@google.com>
Fri, 23 Jun 2017 22:27:42 +0000 (15:27 -0700)
committeryinxu <yinxu@google.com>
Fri, 23 Jun 2017 22:30:22 +0000 (15:30 -0700)
commitad50361ecec1844ddfb8a41097832a5cf0ecbb76
treea3a11f0d43e6ca975d85d784a05edc4cf42d1dc4
parent8330d5212d4f10e412dbc3ad8eac750f783258df
Fix the inconsistency of scan status.

In types.hal and ril.h, the scan status is defined as:
    PARTIAL = 0x01
    COMPLETE = 0x02

But in NetworkScanResult.java, the scan status is defined as:
    public static final int SCAN_STATUS_PARTIAL = 0
    public static final int SCAN_STATUS_COMPLETE = 1

This CL makes changes to NetworkScanResult.java so that the scan status
is consistent both in Telephony and RIL.

Test: Telephony sanity tests
Bug: 30954762
Change-Id: Iadcd344ad3fe682da98a1a41c2964583f67dc792
telephony/java/com/android/internal/telephony/NetworkScanResult.java