Move carrier privilege intent resolution to CarrierPrivilegesTracker.
These methods now use CarrierPrivilegesTracker as the source of truth,
and the Uicc{Port,Profile,CarrierPrivilegeRules} redundancies have been
removed.
This implicitly adds a caching layer that should result in noticeable
performance increases. While the PackageManager queries are still
per-call, we now have a caching layer that allows instantly determining
whether a resolved component has privileges, and we don't have to
perform redundant PackageManager queries to get that status.
Bug: 211796398
Test: atest com.android.internal.telephony.CarrierPrivilegesTrackerTest
Test: atest android.telephony.cts.TelephonyManagerTest
Change-Id: I11751daa2df4e11d6ada3edd3aac88173eae54ff
Merged-In: Idc7c2c434b78c1af62e89ef3b9eb48e4fa540d16
(cherry picked from commit 610f2f5faf53d96706ca9629976403a7b3714eb2)
1 file changed