commit | e0534ac91c8256a7e91578ba6ea94f08448dc22e | [log] [tgz] |
---|---|---|
author | Jakub Pawlowski <jpawlowski@google.com> | Wed Jun 19 17:10:34 2019 +0200 |
committer | Jakub Pawlowski <jpawlowski@google.com> | Tue Sep 24 10:32:32 2019 +0000 |
tree | ed01d0253580f012a066a3c80a609517e0eaef43 | |
parent | 73450ac80b35c0613bb01cbd88b714890cfbee23 [diff] |
Cache results of isLocationEnabledForUser calls This reduces number of Binder calls that Bluetooth stack is making while scanning in a noisy environments. Currently we make one call for each scan result. After this patch, the result is cached for two seconds. Test: observe result of "adb shell dumpsys binder_calls_stats" during scan. Bug: 125739276 Change-Id: I777417de356c323b8ea5bebfd1b0a29c27730b13