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

Skip to content
Commit 6d9648b1 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Add property invalidated cache for getSubscriptionId.

Telecom calls into TelephonyManager#getSubscriptionId quite often for
phone account handle operations.  Adding a property invalidated cache
to TelephonyManager to cache those values.
The cache is invalidated from Telephony whenever phone accounts are
re-registered.

Test: Added unit test which confirms the number of AIDL calls when the
cache is operating as expected.
Test: Manual test; verified that I can see the property invalidated cache
logs which indicate that there are cache hits going on.
Bug: 224654574

Change-Id: I62c992247921465d401442c2aff005384665258e
parent 57794d59
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment