Skip to content
Commit c22fb333 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

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
parent 7c8d60cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment