commit | ea7040e3c8cc89b1257862cf8d20ee36faa3d9fe | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Mon Jun 21 12:36:51 2021 +0800 |
committer | Riddle Hsu <riddlehsu@google.com> | Mon Jun 21 04:51:28 2021 +0000 |
tree | e7a248eed5f8004942f4a077d35e028a05ee4518 | |
parent | bdd8ff3fdd231dceb158f8989f7c5840f5270eb6 [diff] |
Fix potential overflow of launch event uptime It was stored as integer for legacy MetricsLogger to log in seconds. But since atom log uses it in milliseconds, it may be overflow if the time is greater than 24 days. So now just store it in milliseconds with long type and only covert to seconds for legacy logger. Bug: 191610816 Test: atest ActivityMetricsLoggerTests Change-Id: I3e40097fe7ce8e01d8495c1de2f1eafa855934a8