diff options
author | Pavan Kumar M <rpavan@codeaurora.org> | 2020-05-21 20:19:03 +0530 |
---|---|---|
committer | Pavan Kumar M <rpavan@codeaurora.org> | 2020-06-24 07:09:11 +0530 |
commit | c3689e21769d14dbf16c6758034b509ac03a3a39 (patch) | |
tree | cea893864b6d15e3e41c5791eea22628fd8089a8 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | d24e6d4ff6e841cd468d9c48ec35484aa53cb624 (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