commit | 64177774e279e2e9727b9284844542ba38c4ef6f | [log] [tgz] |
---|---|---|
author | Kuan Wang <clairewang@google.com> | Fri Jul 28 13:31:31 2023 +0800 |
committer | Kuan Wang <clairewang@google.com> | Tue Aug 01 14:36:58 2023 +0800 |
tree | 09ebcf0c6b98be5eeab987378443573af5ceac6d | |
parent | 98df5bcde283ef172e3c3eec6a3daf1112c4227a [diff] |
Add cache strategy for getUsageSource(). Cache usage source into SharedPreferences when phone is booting to avoid calling it too frequently. It should be safe because the usage source can only change on reboot. Bug: 293366011 Test: make RunSettingsRoboTests Change-Id: I35c07539d294737c5764b03b746cfb39f4ce008d