diff options
author | yinxu <yinxu@google.com> | 2017-05-22 11:26:45 -0700 |
---|---|---|
committer | yinxu <yinxu@google.com> | 2017-05-30 15:52:30 -0700 |
commit | 8688abd15e76c8c8adbd6b2136a813536bb1de8d (patch) | |
tree | e3076a278319c50f69d518117e1d727998efe3ca /include | |
parent | ad3f119378a009828c11e091e6e1e5bc8f8805e5 (diff) | |
download | android_hardware_ril-8688abd15e76c8c8adbd6b2136a813536bb1de8d.tar.gz android_hardware_ril-8688abd15e76c8c8adbd6b2136a813536bb1de8d.tar.bz2 android_hardware_ril-8688abd15e76c8c8adbd6b2136a813536bb1de8d.zip |
Implement the new network scan RIL API.
Test: Telephony sanity tests
Bug: 30954762
Change-Id: I3a4b7f7b642b266fb2c6f75bc3c7fd947dfe6ad0
Diffstat (limited to 'include')
-rw-r--r-- | include/telephony/ril.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h index 4f0dee0..23d06d0 100644 --- a/include/telephony/ril.h +++ b/include/telephony/ril.h @@ -2138,16 +2138,22 @@ typedef enum { typedef struct { RIL_RadioAccessNetworks radio_access_network; // The type of network to scan. + uint32_t bands_length; // Length of bands union { RIL_GeranBands geran_bands[MAX_BANDS]; RIL_UtranBands utran_bands[MAX_BANDS]; RIL_EutranBands eutran_bands[MAX_BANDS]; } bands; + uint32_t channels_length; // Length of channels uint32_t channels[MAX_CHANNELS]; // Frequency channels to scan } RIL_RadioAccessSpecifier; typedef struct { RIL_ScanType type; // Type of the scan + int32_t interval; // Time interval in seconds + // between periodic scans, only + // valid when type=RIL_PERIODIC + uint32_t specifiers_length; // Length of specifiers RIL_RadioAccessSpecifier specifiers[MAX_RADIO_ACCESS_NETWORKS]; // Radio access networks // with bands/channels. } RIL_NetworkScanRequest; @@ -2158,9 +2164,9 @@ typedef enum { } RIL_ScanStatus; typedef struct { - RIL_ScanStatus status; // The status of the scan - uint32_t network_infos_length; // Total length of RIL_CellInfo - RIL_CellInfo* network_infos; // List of network information + RIL_ScanStatus status; // The status of the scan + uint32_t network_infos_length; // Total length of RIL_CellInfo + RIL_CellInfo_v12* network_infos; // List of network information } RIL_NetworkScanResult; /** |