commit | a500ff04c1e35cdce11ee0222e8d0fa1ee6d3981 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Fri Sep 01 12:51:51 2017 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Fri Sep 01 17:13:01 2017 -0600 |
tree | ab31a702ba87292ed3be50cd0270aa27a0c2c8cf | |
parent | d1c91e0e813cada72c4b713a960fc80946f3f5d9 [diff] |
Gracefully handle integer overflows. Try sticking with integer-based math as much as possible for speed, but switch to double-based math if we detect that we'd end up causing an overflow. New tests to verify. Test: bit FrameworksNetTests:com.android.server.net.NetworkStatsCollectionTest Bug: 65257769 Change-Id: I1ae35599be134f81850c0a3d86928b057fba1eff