commit | c22fb33347291512d081a833839c2a4d9a50c2d6 | [log] [tgz] |
---|---|---|
author | Suprabh Shukla <suprabh@google.com> | Mon May 08 14:40:59 2023 -0700 |
committer | Suprabh Shukla <suprabh@google.com> | Mon May 08 15:21:16 2023 -0700 |
tree | d1af3e3576062ebab21dd9dd2aa070636fe7522c | |
parent | 7c8d60cd6630f45b233de2729f1cf5a89870ce2b [diff] |
Avoid redundant overwrite of value in TimeSparseArray TimeSparseArray complains when a value for a given time is overwritten to warn of possible mistakes. WakingActivityHistory#recordActivity was overwriting the value for a given time by itself. Added unit tests to exercise this code path. Test: atest FrameworksServicesTests:WakingActivityHistoryTest Bug: 279599693 Change-Id: Icf95b8964981b891a83e461aee620071497b81f2