summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorNathan Harold <nharold@google.com>2018-02-26 19:14:18 -0800
committerNathan Harold <nharold@google.com>2018-02-27 17:25:49 -0800
commit3ffbf86e1e4701ea316146c1686f06193166c2a6 (patch)
tree349b35ddf3109182db0f6c86a0f64c1662a6997d /tools/aapt2/java/JavaClassGenerator.cpp
parent95500f8a0f0ff501653d507916f98fc36cefdcc8 (diff)
Fix Range-Checking in CellSignalStrengthCdma
The CellSignalStrengthCdma class previously allowed the values in the class to be kept as negative ints but expected them to be parceled as positive ints. This led to a confusing mess that is best unwound by calling the actual constructor for the class and letting the parcel values be an implementation detail. This CL removes all of the parcel-time coersion and instead expects that the class be constructed using a constructor rather than by manually parceling and then using the class to un-parcel. In addition, the range checking for inputs is now done only once, and values are no longer mutated in the parcel/unparcel process. Bug: 32364031 Test: runtest frameworks-telephony Change-Id: I59ce8c9df1bd99547f3de941a30d6c3cea8f2b8f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions