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>
Mon, 27 Aug 2018 19:09:13 +0000 (12:09 -0700)
commit98cfceefdf06d5e4ec3bfff3d1cd425baefb155e
treed1bb59a6f5e8131c60264779105bc7da0b860a6e
parentc136355b057e2e4b97381c340790e02aef02d982
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
include/telephony/ril.h
include/telephony/ril_mnc.h [new file with mode: 0644]
libril/ril_service.cpp