OSDN Git Service

Encode the Number of MNC Digits in CellIdentity
authorNathan Harold <nharold@google.com>
Mon, 20 Aug 2018 18:38:27 +0000 (11:38 -0700)
committerNathan Harold <nharold@google.com>
Fri, 21 Sep 2018 04:34:22 +0000 (04:34 +0000)
commit5f438e18ba37089a8ae58fca529ab1cb964e9f81
treedccdc7b4552aaeefc794a90966c311148cfdba82
parent982ba7ab0767df77b0cda7f592bfde7e8b6cb53d
Encode the Number of MNC Digits in CellIdentity

Legacy RIL uses an integer to encode the number of
MNC digits. Because the size is not fixed, leading
zeroes result in ambiguity in the length of the mnc.

This change adds support for passing the number of
encoded digits in the most-significant nibble of the
mnc integer (which is only 10 bits). Thus, on any
implementation that is 16-bits or wider, the mnc info
will be properly encoded and decoded with the
correctly-sized string.

Bug: 111971808
Test: ril::util::mnc::test
Change-Id: I24aeba5328a63f80b0d6b25b068bd19160191dff
Merged-In: I24aeba5328a63f80b0d6b25b068bd19160191dff
(cherry picked from commit 98cfceefdf06d5e4ec3bfff3d1cd425baefb155e)
include/telephony/ril.h
include/telephony/ril_mnc.h [new file with mode: 0644]
libril/ril_service.cpp