Extend previously added limits for listeners
original change (ag/10753900) did not cover all apis
-added limit check to onSubscriptionsChangedListener
-added limit check to addOnOpportunisticSubscriptionListener
-minor refactoring to remove duplicate code
-error logging to ensure that logs are printed for sys/phone uids
Bug: 222188265
Test: atest TelephonyRegistryTest
Merged-In: Ie231d7d2bc217bf1d373f8447f5f2f672c8ab908
Change-Id: Ie231d7d2bc217bf1d373f8447f5f2f672c8ab908
(cherry picked from commit 1b5369b5fb3e42713341d335fe1ffb2d3ed9b27a)
1 file changed