Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e0534ac9 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

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
parent 73450ac8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment