summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Sudheer Shanka <sudheersai@google.com> 2022-03-15 13:58:49 -0700
committer Sudheer Shanka <sudheersai@google.com> 2022-03-16 18:43:39 -0700
commit7cc9d2d11e9c48641485baff3d022e9dccb2a12c (patch)
treee76a6c215c4d75ea8ab7bf4d0a9ac193e01a1501 /cmds/bootanimation/BootAnimation.cpp
parent8fb55d4172cde04273f663165c23e1c7cf55f585 (diff)
Initialize lastUsedElapsedTime to Integer.MIN_VALUE.
Since 'lastUsedElapsedTime' indicates the timestamp at which the app was last used by the user and this isn't necessarily the reason why we create AppUsageHistory objects, we shouldn't be initializing the 'lastUsedElapsedTime' to the timestamp at which the object is being created. Also, update 'lastPredictedTime' to Integer.MIN_VALUE as getElapsedTime() time doesn't return predictable values for timestamps in the past and passing getElapsedTime(0) isn't accurate as it basically indicates the timestamp at boot. Bug: 206518483 Test: atest tests/tests/app.usage/src/android/app/usage/cts/UsageStatsTest.java Change-Id: Ib90b435b1efc34144f0461aaaf339fc6037ecdc2
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions