diff options
author | Tim Murray <timmurray@google.com> | 2019-11-12 18:23:50 -0800 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2020-02-20 17:11:04 -0800 |
commit | b5e1153d03dc5e830519a21224f308248450fae4 (patch) | |
tree | 6d1c81924ddad1dd740e7ab99749b8f6168e2521 /opengl/java | |
parent | 58b9a11b072de9bac8a0a2c7b9673c6c587ba047 (diff) |
LocationManager: cache isLocationEnabledForUser
This method is in the hot path for all location tasks but whether
location is enabled for a particular user doesn't change that
often. Cache the result and invalidate from system_server in order to
reduce CPU consumption.
Test: boots, works, gets location
Bug: 140788621
Change-Id: I84ad2c570e7024187a728071dcbb6f72b177e17a
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions