Loading services/core/java/com/android/server/am/DataConnectionStats.java +2 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,8 @@ public class DataConnectionStats extends BroadcastReceiver { IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_SIM_STATE_CHANGED); mContext.registerReceiver(this, filter, null /* broadcastPermission */, mListenerHandler); mContext.registerReceiver(this, filter, null /* broadcastPermission */, mListenerHandler, Context.RECEIVER_NOT_EXPORTED); } @Override Loading services/core/java/com/android/server/vcn/TelephonySubscriptionTracker.java +1 −1 Original line number Diff line number Diff line Loading @@ -146,7 +146,7 @@ public class TelephonySubscriptionTracker extends BroadcastReceiver { filter.addAction(ACTION_CARRIER_CONFIG_CHANGED); filter.addAction(ACTION_MULTI_SIM_CONFIG_CHANGED); mContext.registerReceiver(this, filter, null, mHandler); mContext.registerReceiver(this, filter, null, mHandler, Context.RECEIVER_NOT_EXPORTED); mSubscriptionManager.addOnSubscriptionsChangedListener( executor, mSubscriptionChangedListener); mTelephonyManager.registerTelephonyCallback(executor, mActiveDataSubIdListener); Loading tests/vcn/java/com/android/server/vcn/TelephonySubscriptionTrackerTest.java +3 −2 Original line number Diff line number Diff line Loading @@ -174,7 +174,7 @@ public class TelephonySubscriptionTrackerTest { private IntentFilter getIntentFilter() { final ArgumentCaptor<IntentFilter> captor = ArgumentCaptor.forClass(IntentFilter.class); verify(mContext).registerReceiver(any(), captor.capture(), any(), any()); verify(mContext).registerReceiver(any(), captor.capture(), any(), any(), anyInt()); return captor.getValue(); } Loading Loading @@ -258,7 +258,8 @@ public class TelephonySubscriptionTrackerTest { eq(mTelephonySubscriptionTracker), any(IntentFilter.class), any(), eq(mHandler)); eq(mHandler), eq(Context.RECEIVER_NOT_EXPORTED)); final IntentFilter filter = getIntentFilter(); assertEquals(2, filter.countActions()); assertTrue(filter.hasAction(ACTION_CARRIER_CONFIG_CHANGED)); Loading Loading
services/core/java/com/android/server/am/DataConnectionStats.java +2 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,8 @@ public class DataConnectionStats extends BroadcastReceiver { IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_SIM_STATE_CHANGED); mContext.registerReceiver(this, filter, null /* broadcastPermission */, mListenerHandler); mContext.registerReceiver(this, filter, null /* broadcastPermission */, mListenerHandler, Context.RECEIVER_NOT_EXPORTED); } @Override Loading
services/core/java/com/android/server/vcn/TelephonySubscriptionTracker.java +1 −1 Original line number Diff line number Diff line Loading @@ -146,7 +146,7 @@ public class TelephonySubscriptionTracker extends BroadcastReceiver { filter.addAction(ACTION_CARRIER_CONFIG_CHANGED); filter.addAction(ACTION_MULTI_SIM_CONFIG_CHANGED); mContext.registerReceiver(this, filter, null, mHandler); mContext.registerReceiver(this, filter, null, mHandler, Context.RECEIVER_NOT_EXPORTED); mSubscriptionManager.addOnSubscriptionsChangedListener( executor, mSubscriptionChangedListener); mTelephonyManager.registerTelephonyCallback(executor, mActiveDataSubIdListener); Loading
tests/vcn/java/com/android/server/vcn/TelephonySubscriptionTrackerTest.java +3 −2 Original line number Diff line number Diff line Loading @@ -174,7 +174,7 @@ public class TelephonySubscriptionTrackerTest { private IntentFilter getIntentFilter() { final ArgumentCaptor<IntentFilter> captor = ArgumentCaptor.forClass(IntentFilter.class); verify(mContext).registerReceiver(any(), captor.capture(), any(), any()); verify(mContext).registerReceiver(any(), captor.capture(), any(), any(), anyInt()); return captor.getValue(); } Loading Loading @@ -258,7 +258,8 @@ public class TelephonySubscriptionTrackerTest { eq(mTelephonySubscriptionTracker), any(IntentFilter.class), any(), eq(mHandler)); eq(mHandler), eq(Context.RECEIVER_NOT_EXPORTED)); final IntentFilter filter = getIntentFilter(); assertEquals(2, filter.countActions()); assertTrue(filter.hasAction(ACTION_CARRIER_CONFIG_CHANGED)); Loading