summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorVarun Shah <varunshah@google.com>2019-09-05 11:50:18 -0700
committerVarun Shah <varunshah@google.com>2019-09-05 17:03:36 -0700
commit5e1613ef644567982597e5f27e90fc5c3ff56f09 (patch)
tree02d72aa8e8b454db3c65b32abd1140589cbdaa7b /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent3d8dd77fe5371f6c0a1423c423f1884e5559e051 (diff)
Update UsageStats#checkAndGetTimeLocked behavior.
The time change event was happening for every user even if they were not unlocked, causing UsageStatsService to crash. Since the data is now located in CE, the #checkAndGetTimeLocked function has been moved to UserUsageStatsService, tying time change events to each user instead of UsageStatsService. This gives the guarantee that no usage stats data will be accessed or modified if the user service is not existent while keeping the same behavior as earlier. References to #checkAndGetTimeLocked in UsageStatsService have been updated to call System.currentTimeMillis() directly. Bug: 140529704 Test: atest UsageStatsTest Test: atest UsageStatsDatabaseTest Change-Id: I746790f3918b927ac8ac76ee860c94cac603e5da
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions