summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2017-08-07 15:47:35 +0900
committerHugo Benichi <hugobenichi@google.com>2017-08-08 09:19:05 +0900
commitad5e2827ead7fa8ebafc291ceb6b4672e70c1775 (patch)
tree6f48c8a218b990d616e60dc3ae14ecf779c7aebd /tools/aapt2/java/JavaClassGenerator.cpp
parent82e815616e1fcab7bcdab737dfc1a28946b0f486 (diff)
NetworkStats: more robust subtraction for deltas
This patch ensures that subtract() between two NetworkStats object will return a delta with no negative entries in all cases. When the stats delta contains some negative values, there are clamped to 0. Some logging is added when this happens. This is what's expected by NetworkStatsHistory#recordData(). Bug: 64365917 Test: runtest frameworks-net Change-Id: I16e97e73f600225f80e0ce517e80c07c6f399196
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions