summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2018-01-25 11:43:52 -0800
committerChenbo Feng <fengc@google.com>2018-01-29 12:19:26 -0800
commit20328e8df09733a622370707a0b4e0479bc99607 (patch)
treeee35e4668e7b0907f1cedb47ba33e2c172700393 /tools/aapt2/java/JavaClassGenerator.cpp
parentfbef950d952d4f33725eb6cc318e531b841e9f28 (diff)
Return non-negetive value in getMobileStats method
The current implementation of getMobileRxBytes and all the similiar method adds up the return values for multiple calls to getRxBytes so if all of them return UNSUPPORTED for any reason, getMobileRxBytes() would return a value such as -3. This behavior is not compliance with the cts TrafficStatsTest which always assume getMobileRxBytes to return a non-negetive value. The method now will check tha stats get from getRxBytes method and add them up only if the stats is valid. Bug: 72473294 Test: run cts -m CtsNetTestCases -t android.net.cts.TrafficStatsTest Change-Id: I656970ebc8f6506cf17c4353ad46c0178bb65cfd
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions