summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorPavan Kumar M <rpavan@codeaurora.org>2020-05-21 20:19:03 +0530
committerPavan Kumar M <rpavan@codeaurora.org>2020-06-24 07:09:11 +0530
commitc3689e21769d14dbf16c6758034b509ac03a3a39 (patch)
treecea893864b6d15e3e41c5791eea22628fd8089a8 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd24e6d4ff6e841cd468d9c48ec35484aa53cb624 (diff)
Gracefully handle integer overflows.
Avoid recording negative data by doing integer-based math as much as possible, but switch to double-based math if we detect that we'd end up causing an overflow. Test : - Builds, Boots - High data throughput scenarios - NetworkStatsHistoryTest, NetworkStatsCollectionTest Change-Id: I55d4aa649bea3ae201ad513074ff2b71cb918dad CRs-Fixed: 2608836
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions