Home
last modified time | relevance | path

Searched refs:SubscriptionManager (Results 1 – 25 of 573) sorted by relevance

12345678910>>...23

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DDataUsageUtilsTest.java25 import android.telephony.SubscriptionManager;
46 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in getDefaultSubscriptionId_nullSubscriptionManager_returnsInvalidId()
51 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getDefaultSubscriptionId_noSubscriptions_returnsInvalidId()
56 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in getDefaultSubscriptionId_noSubscriptions_returnsInvalidId()
61 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription()
76 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getDefaultSubscriptionId_hasDefaultSubscription_returnsDefaultSubscription()
86 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getPrimaryPlan_noSubscriptions_returnsNull()
95 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getPrimaryPlan_dataLimitBytesIsZero_returnsNull()
107 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getPrimaryPlan_dataUsageBytesIsHuge_returnsNull()
119 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getPrimaryPlan_cycleRuleIsNull_returnsNull()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DDefaultSubscriptionReceiver.java9 import android.telephony.SubscriptionManager;
25 filter.addAction(SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED); in registerReceiver()
27 filter.addAction(SubscriptionManager.ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED); in registerReceiver()
39 mListener.onDefaultDataChanged(SubscriptionManager.getDefaultDataSubscriptionId()); in onReceive()
40 } else if (SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED.equals(action)) { in onReceive()
41 mListener.onDefaultSubInfoChanged(SubscriptionManager.getDefaultSubscriptionId()); in onReceive()
43 mListener.onDefaultVoiceChanged(SubscriptionManager.getDefaultVoiceSubscriptionId()); in onReceive()
44 } else if (SubscriptionManager.ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED.equals(action)) { in onReceive()
45 mListener.onDefaultSmsChanged(SubscriptionManager.getDefaultSmsSubscriptionId()); in onReceive()
DSubscriptionUtil.java19 import static android.telephony.SubscriptionManager.INVALID_SIM_SLOT_INDEX;
20 import static android.telephony.SubscriptionManager.PROFILE_CLASS_PROVISIONING;
21 import static android.telephony.SubscriptionManager.TRANSFER_STATUS_CONVERTED;
34 import android.telephony.SubscriptionManager;
102 public static List<SubscriptionInfo> getActiveSubscriptions(SubscriptionManager manager) { in getActiveSubscriptions()
216 != SubscriptionManager.INVALID_SIM_SLOT_INDEX) { in isPrimarySubscriptionWithinSameUuid()
261 if (subInfo.getSimSlotIndex() != SubscriptionManager.INVALID_SIM_SLOT_INDEX) { in isPrimarySubscriptionWithinSameUuid()
353 final SubscriptionManager subscriptionManager = context.getSystemService( in getUniqueSubscriptionDisplayNames()
354 SubscriptionManager.class); in getUniqueSubscriptionDisplayNames()
485 public static boolean showToggleForPhysicalSim(SubscriptionManager subMgr) {
[all …]
DActiveSubscriptionsListener.java27 import android.telephony.SubscriptionManager;
44 extends SubscriptionManager.OnSubscriptionsChangedListener
60 private SubscriptionManager mSubscriptionManager;
78 this(looper, context, SubscriptionManager.INVALID_SUBSCRIPTION_ID); in ActiveSubscriptionsListener()
121 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in getSubscriptionChangeReceiver()
125 if (SubscriptionManager.isValidSubscriptionId(mTargetSubscriptionId)) { in getSubscriptionChangeReceiver()
126 if (SubscriptionManager.isValidSubscriptionId(subId) in getSubscriptionChangeReceiver()
175 public SubscriptionManager getSubscriptionManager() {
177 mSubscriptionManager = mContext.getSystemService(SubscriptionManager.class)
/packages/apps/Settings/src/com/android/settings/spa/network/
DNetworkCellularGroupProvider.kt25 import android.telephony.SubscriptionManager in <lambda>()
85 var defaultVoiceSubId: Int = SubscriptionManager.INVALID_SUBSCRIPTION_ID in <lambda>()
86 var defaultSmsSubId: Int = SubscriptionManager.INVALID_SUBSCRIPTION_ID in <lambda>()
87 var defaultDataSubId: Int = SubscriptionManager.INVALID_SUBSCRIPTION_ID in <lambda>()
88 var nonDds: Int = SubscriptionManager.INVALID_SUBSCRIPTION_ID in <lambda>()
103 mutableIntStateOf(SubscriptionManager.INVALID_SUBSCRIPTION_ID) in <lambda>()
106 mutableIntStateOf(SubscriptionManager.INVALID_SUBSCRIPTION_ID) in <lambda>()
109 mutableIntStateOf(SubscriptionManager.INVALID_SUBSCRIPTION_ID) in <lambda>()
112 mutableIntStateOf(SubscriptionManager.INVALID_SUBSCRIPTION_ID) in <lambda>()
176 nonDds = if (defaultDataSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in <lambda>()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/
DNetworkProviderCallsSmsControllerTest.kt21 import android.telephony.SubscriptionManager in <lambda>()
46 defaultVoiceSubscriptionId = SubscriptionManager.INVALID_SUBSCRIPTION_ID, in <lambda>()
47 defaultSmsSubscriptionId = SubscriptionManager.INVALID_SUBSCRIPTION_ID, in <lambda>()
59 defaultVoiceSubscriptionId = SubscriptionManager.INVALID_SUBSCRIPTION_ID, in <lambda>()
60 defaultSmsSubscriptionId = SubscriptionManager.INVALID_SUBSCRIPTION_ID, in <lambda>()
72 defaultVoiceSubscriptionId = SubscriptionManager.INVALID_SUBSCRIPTION_ID, in <lambda>()
73 defaultSmsSubscriptionId = SubscriptionManager.INVALID_SUBSCRIPTION_ID, in <lambda>()
83 defaultVoiceSubscriptionId = SubscriptionManager.INVALID_SUBSCRIPTION_ID, in <lambda>()
84 defaultSmsSubscriptionId = SubscriptionManager.INVALID_SUBSCRIPTION_ID, in <lambda>()
94 defaultVoiceSubscriptionId = SubscriptionManager.INVALID_SUBSCRIPTION_ID, in <lambda>()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DResetNetworkSubscriptionPreferenceController.java23 import android.telephony.SubscriptionManager;
42 private final SubscriptionManager mSubscriptionManager;
47 mSubscriptionManager = context.getSystemService(SubscriptionManager.class); in ResetNetworkSubscriptionPreferenceController()
66 preference.setValue(String.valueOf(SubscriptionManager.INVALID_SUBSCRIPTION_ID)); in updateState()
112 int defaultSubscriptionId = SubscriptionManager.getDefaultDataSubscriptionId(); in getDefaultSubscriptionId()
113 if (!SubscriptionManager.isUsableSubIdValue(defaultSubscriptionId)) { in getDefaultSubscriptionId()
114 defaultSubscriptionId = SubscriptionManager.getDefaultVoiceSubscriptionId(); in getDefaultSubscriptionId()
116 if (!SubscriptionManager.isUsableSubIdValue(defaultSubscriptionId)) { in getDefaultSubscriptionId()
117 defaultSubscriptionId = SubscriptionManager.getDefaultSmsSubscriptionId(); in getDefaultSubscriptionId()
119 if (!SubscriptionManager.isUsableSubIdValue(defaultSubscriptionId)) { in getDefaultSubscriptionId()
[all …]
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/
DTelephonyUtils.java27 import android.telephony.SubscriptionManager;
48 this(context, SubscriptionManager.INVALID_SUBSCRIPTION_ID); in TelephonyUtils()
52 if (SubscriptionManager.isValidSubscriptionId(subId)) { in TelephonyUtils()
97 SubscriptionManager subscriptionManager = in isActivedSubId()
98 (SubscriptionManager) context.getSystemService( in isActivedSubId()
109 SubscriptionManager subscriptionManager = in getSlotId()
110 (SubscriptionManager) context.getSystemService( in getSlotId()
117 return SubscriptionManager.INVALID_SIM_SLOT_INDEX; in getSlotId()
188 SubscriptionManager subscriptionManager = in getSubIdsWithFcmSupported()
189 context.getSystemService(SubscriptionManager.class); in getSubIdsWithFcmSupported()
/packages/apps/Settings/src/com/android/settings/
DResetSubscriptionContract.java20 import android.telephony.SubscriptionManager;
21 import android.telephony.SubscriptionManager.OnSubscriptionsChangedListener;
59 .filter(id -> SubscriptionManager.isUsableSubscriptionId(id)) in ResetSubscriptionContract()
79 SubscriptionManager mgr = getSubscriptionManager(); in getAnyMissingSubscriptionId()
101 protected SubscriptionManager getSubscriptionManager() { in getSubscriptionManager()
102 return mContext.getSystemService(SubscriptionManager.class); in getSubscriptionManager()
132 SubscriptionManager mgr = getSubscriptionManager();
149 SubscriptionManager mgr = getSubscriptionManager();
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastConfigServiceTest.java45 import android.telephony.SubscriptionManager;
79 SubscriptionManager mMockSubscriptionManager;
201 setCellBroadcastRange(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, ranges); in testEnableCellBroadcastRange()
211 setCellBroadcastRange(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, ranges); in testEnableCellBroadcastRange()
225 setCellBroadcastRange(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, ranges); in testDisableCellBroadcastRange()
234 setCellBroadcastRange(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, ranges); in testDisableCellBroadcastRange()
322 mConfigService.enableCellBroadcastChannels(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID); in testEnablingChannelsDefault()
345 mConfigService.enableCellBroadcastChannels(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID); in testEnablingPresidential()
349 mConfigService.enableCellBroadcastChannels(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID); in testEnablingPresidential()
353 mConfigService.enableCellBroadcastChannels(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID); in testEnablingPresidential()
[all …]
DCellBroadcastSettingsTest.java43 import android.telephony.SubscriptionManager;
219 mockContext, SubscriptionManager.DEFAULT_SUBSCRIPTION_ID); in testGetResources()
224 mockContext, SubscriptionManager.INVALID_SUBSCRIPTION_ID); in testGetResources()
230 SubscriptionManager mockSubManager = mock(SubscriptionManager.class); in testGetResources()
232 .getSystemServiceName(eq(SubscriptionManager.class)); in testGetResources()
243 mockContext, SubscriptionManager.DEFAULT_SUBSCRIPTION_ID - 1); in testGetResources()
255 mockContext, SubscriptionManager.DEFAULT_SUBSCRIPTION_ID - 1); in testGetResources()
262 mockContext, SubscriptionManager.DEFAULT_SUBSCRIPTION_ID - 1); in testGetResources()
271 mockContext, SubscriptionManager.DEFAULT_SUBSCRIPTION_ID - 2); in testGetResources()
284 SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, ""); in testGetResourcesByOperator()
[all …]
/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/
DSmartForwardingUtils.java23 import android.telephony.SubscriptionManager;
88 int subId = SubscriptionManager.getSubscriptionId(i); in getAllSlotCallWaitingStatus()
96 Context context, SubscriptionManager sm, TelephonyManager tm) { in getAllSlotCallForwardingStatus()
101 int subId = SubscriptionManager.getSubscriptionId(i); in getAllSlotCallForwardingStatus()
108 public static void clearAllBackupData(Context context, SubscriptionManager sm, in clearAllBackupData()
112 int subId = SubscriptionManager.getSubscriptionId(i); in clearAllBackupData()
134 SubscriptionManager subscriptionManager = context.getSystemService( in getPhoneNumber()
135 SubscriptionManager.class); in getPhoneNumber()
137 SubscriptionManager.getSubscriptionId(slotId)); in getPhoneNumber()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTest.java52 import android.telephony.SubscriptionManager;
279 private SubscriptionManager mSubscriptionManager = mock(SubscriptionManager.class);
295 } else if (SubscriptionManager.WFC_ENABLED_CONTENT_URI.equals(uri)) { in MockContextWithProvider()
344 } else if (serviceClass.equals(SubscriptionManager.class)) { in getSystemServiceName()
532 cv.put(SubscriptionManager.MCC, mcc); in testMccMncMigration()
533 cv.put(SubscriptionManager.MNC, mnc); in testMccMncMigration()
534 cv.put(SubscriptionManager.ICC_ID, String.valueOf(idx)); in testMccMncMigration()
535 cv.put(SubscriptionManager.CARD_ID, String.valueOf(idx)); in testMccMncMigration()
542 String[] proj = {SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID, in testMccMncMigration()
543 SubscriptionManager.MCC, SubscriptionManager.MNC, in testMccMncMigration()
[all …]
/packages/apps/Settings/src/com/android/settings/network/telephony/
DSubscriptionRepository.kt21 import android.telephony.SubscriptionManager in <lambda>()
53 if (!SubscriptionManager.isValidSubscriptionId(subId)) return flowOf(false) in <lambda>()
73 val Context.subscriptionManager: SubscriptionManager?
74 get() = getSystemService(SubscriptionManager::class.java)
76 fun Context.requireSubscriptionManager(): SubscriptionManager = subscriptionManager!! in Context()
85 val listener = object : SubscriptionManager.OnSubscriptionsChangedListener() { in Context()
121 subInfos.filter { it.simSlotIndex != SubscriptionManager.INVALID_SIM_SLOT_INDEX } in Context()
133 get() = if (simSlotIndex != SubscriptionManager.INVALID_SIM_SLOT_INDEX) {
/packages/apps/Settings/src/com/android/settings/sim/
DSimDialogActivity.java28 import android.telephony.SubscriptionManager;
189 if (SubscriptionManager.getDefaultDataSubscriptionId() in getDataPickDialogFragment()
190 == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in getDataPickDialogFragment()
233 if (!SubscriptionManager.isValidSubscriptionId(subId)) { in getCarrierConfigForSubId()
317 final SubscriptionManager subscriptionManager = in showEnableAutoDataSwitchDialog()
318 getSystemService(SubscriptionManager.class); in showEnableAutoDataSwitchDialog()
340 final SubscriptionManager subscriptionManager = in onEnableAutoDataSwitch()
341 getSystemService(SubscriptionManager.class); in onEnableAutoDataSwitch()
357 final SubscriptionManager subscriptionManager = getSystemService(SubscriptionManager.class); in setDefaultDataSubId()
361 if (subId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in setDefaultDataSubId()
[all …]
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DCarrierPrivilegeAuthenticator.java40 import android.telephony.SubscriptionManager;
243 && oldPair.mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID in onCarrierServiceChanged()
273 && oldPair.mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in unregisterCarrierPrivilegesListeners()
316 if (SubscriptionManager.INVALID_SUBSCRIPTION_ID == subId) { in isCarrierServiceUidForNetworkCapabilities()
335 subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in getSubIdFromNetworkCapabilities()
337 if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID in getSubIdFromNetworkCapabilities()
343 if (subId != SubscriptionManager.INVALID_SUBSCRIPTION_ID in getSubIdFromNetworkCapabilities()
360 return SubscriptionManager.getSubscriptionId(slotIndex); in getSubId()
362 SubscriptionManager sm = mContext.getSystemService(SubscriptionManager.class); in getSubId()
367 return SubscriptionManager.INVALID_SUBSCRIPTION_ID; in getSubId()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileNetworkUpdateManager.java24 import android.telephony.SubscriptionManager;
52 private final SubscriptionManager mSubscriptionManager;
57 final SubscriptionManager.OnSubscriptionsChangedListener
59 new SubscriptionManager.OnSubscriptionsChangedListener() {
72 SubscriptionManager sm = context.getSystemService(SubscriptionManager.class); in MobileNetworkUpdateManager()
91 MobileNetworkUpdateManager(int subId, SubscriptionManager subscriptionManager, in MobileNetworkUpdateManager()
155 : SubscriptionManager.INVALID_SUBSCRIPTION_ID; in getSubscriptionId()
/packages/apps/Settings/src/com/android/settings/network/ims/
DWifiCallingQueryImsState.java22 import android.telephony.SubscriptionManager;
61 if (!SubscriptionManager.isValidSubscriptionId(subId)) { in isEnabledByUser()
73 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isWifiCallingSupported()
101 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isReadyToWifiCalling()
121 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isAllowUserControl()
141 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isEnabledByUser()
DVolteQueryImsState.java24 import android.telephony.SubscriptionManager;
62 if (!SubscriptionManager.isValidSubscriptionId(subId)) { in isEnabledByUser()
74 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isVoLteProvisioned()
94 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isReadyToVoLte()
114 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isAllowUserControl()
134 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isEnabledByUser()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/
DSubscriptionUtilsTest.java25 import android.telephony.SubscriptionManager;
45 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getAvailableSubscriptions_hasSubscriptionsFromSubscriptionManager_valueReturned()
62 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned()
83 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getAvailableSubscriptions_hasInactiveInsertedPSim_valueRemoved()
/packages/services/Telephony/tests/src/com/android/phone/
DCarrierConfigLoaderTest.java51 import android.telephony.SubscriptionManager;
91 private static final int DEFAULT_SUB_ID = SubscriptionManager.getDefaultSubscriptionId();
198 SubscriptionManager.INVALID_PHONE_INDEX, in testUpdateConfigForPhoneId_invalidPhoneId()
209 if (!SubscriptionManager.isValidPhoneId(SubscriptionManager.getPhoneId(DEFAULT_SUB_ID))) { in testUpdateConfigForPhoneId_simAbsent()
229 eq(SubscriptionManager.INVALID_SUBSCRIPTION_ID), in testUpdateConfigForPhoneId_simAbsent()
242 if (!SubscriptionManager.isValidPhoneId(SubscriptionManager.getPhoneId(DEFAULT_SUB_ID))) { in testUpdateConfigForPhoneId_simLoaded_withCachedConfigInXml()
285 SubscriptionManager.INVALID_SUBSCRIPTION_ID, new PersistableBundle(), false)); in testOverrideConfig_invalidSubId()
294 if (!SubscriptionManager.isValidPhoneId(SubscriptionManager.getPhoneId(DEFAULT_SUB_ID))) { in testOverrideConfig_withNullBundle()
315 if (!SubscriptionManager.isValidPhoneId(SubscriptionManager.getPhoneId(DEFAULT_SUB_ID))) { in testOverrideConfig_withNonNullBundle()
342 SubscriptionManager.INVALID_SUBSCRIPTION_ID)); in testNotifyConfigChangedForSubId_invalidSubId()
[all …]
/packages/services/Telephony/src/com/android/phone/
DSubscriptionInfoHelper.java25 import android.telephony.SubscriptionManager;
50 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
63 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in SubscriptionInfoHelper()
64 mSubId = intent.getIntExtra(SUB_ID_EXTRA, SubscriptionManager.INVALID_SUBSCRIPTION_ID); in SubscriptionInfoHelper()
103 ? PhoneFactory.getPhone(SubscriptionManager.getPhoneId(mSubId)) in getPhone()
128 return mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID; in hasSubId()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DResetNetworkSubscriptionPreferenceControllerTest.java19 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
20 import static android.telephony.SubscriptionManager.MIN_SUBSCRIPTION_ID_VALUE;
39 import android.telephony.SubscriptionManager;
83 private SubscriptionManager mMockSubscriptionManager;
96 when(mContext.getSystemService(SubscriptionManager.class)) in setUp()
100 SubscriptionManager.class, withSettings().lenient()).startMocking(); in setUp()
102 when(SubscriptionManager.isUsableSubIdValue(anyInt())).thenCallRealMethod(); in setUp()
103 when(SubscriptionManager.getDefaultSubscriptionId()).thenReturn(INVALID_SUBSCRIPTION_ID); in setUp()
104 when(SubscriptionManager.getDefaultSmsSubscriptionId()).thenReturn(INVALID_SUBSCRIPTION_ID); in setUp()
105 when(SubscriptionManager.getDefaultVoiceSubscriptionId()).thenReturn( in setUp()
[all …]
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/
DImsEntitlementReceiver.java35 import android.telephony.SubscriptionManager;
67 SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onReceive()
68 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in onReceive()
71 SubscriptionManager.EXTRA_SLOT_INDEX, in onReceive()
72 SubscriptionManager.INVALID_SIM_SLOT_INDEX); in onReceive()
75 || !SubscriptionManager.isValidSubscriptionId(currentSubId) in onReceive()
106 if (SubscriptionManager.isValidSubscriptionId(lastSubId)) { in handleCarrierConfigChanged()
162 KEY_LAST_SUB_ID + slotId, SubscriptionManager.INVALID_SUBSCRIPTION_ID); in getAndSetSubId()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DSubscriptionRepositoryTest.kt21 import android.telephony.SubscriptionManager
42 private var subInfoListener: SubscriptionManager.OnSubscriptionsChangedListener? = null
44 private val mockSubscriptionManager = mock<SubscriptionManager> { in <lambda>()
46 subInfoListener = it.arguments[1] as SubscriptionManager.OnSubscriptionsChangedListener in <lambda>()
60 .isSubscriptionEnabledFlow(SubscriptionManager.INVALID_SUBSCRIPTION_ID) in <lambda>()
123 setSimSlotIndex(SubscriptionManager.INVALID_SIM_SLOT_INDEX) in getSelectableSubscriptionInfoList_oneNotInSlot_inSlotSortedFirst()
136 .containsExactly(SIM_SLOT_INDEX_1, SubscriptionManager.INVALID_SIM_SLOT_INDEX).inOrder() in getSelectableSubscriptionInfoList_oneNotInSlot_inSlotSortedFirst()
144 setSimSlotIndex(SubscriptionManager.INVALID_SIM_SLOT_INDEX) in getSelectableSubscriptionInfoList_sameGroupAndOneHasSlot_returnTheOneWithSimSlotIndex()

12345678910>>...23