Move carrier privilege status checks to CarrierPrivilegesTracker.
All query methods to get the status of a package or UID (including the
aggregate "get all privileged packages" methods) now use
CarrierPrivilegesTracker as the source of truth. The remaining
Uicc{Port,Profile,CarrierPrivilegeRules} redundancies will be cleaned up
in a follow-up CL.
This implicitly adds a caching layer that should result in noticeable
performance increases.
Bug: 211796398
Test: atest com.android.internal.telephony.CarrierPrivilegesTrackerTest
Test: atest android.telephony.cts.TelephonyManagerTest
Test: atest
com.google.android.telephony.tests.carrierapp.CarrierAppDeviceTest
Change-Id: Iff4ba652ffc6e22bd89faff18ad36bbf985a55ac
1 file changed