commit | b5e1153d03dc5e830519a21224f308248450fae4 | [log] [tgz] |
---|---|---|
author | Tim Murray <timmurray@google.com> | Tue Nov 12 18:23:50 2019 -0800 |
committer | Tim Murray <timmurray@google.com> | Thu Feb 20 17:11:04 2020 -0800 |
tree | 6d1c81924ddad1dd740e7ab99749b8f6168e2521 | |
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