Home
last modified time | relevance | path

Searched refs:isActiveSubId (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileNetworkSwitchControllerTest.java112 doReturn(true).when(mSubscriptionManager).isActiveSubId(mSubId); in displayPreference_oneEnabledSubscription_switchBarNotHidden()
120 doReturn(false).when(mSubscriptionManager).isActiveSubId(mSubId); in displayPreference_oneDisabledSubscription_switchBarNotHidden()
128 when(mSubscriptionManager.isActiveSubId(mSubId)).thenReturn(true); in displayPreference_subscriptionEnabled_switchIsOn()
136 when(mSubscriptionManager.isActiveSubId(mSubId)).thenReturn(false); in displayPreference_subscriptionDisabled_switchIsOff()
144 when(mSubscriptionManager.isActiveSubId(mSubId)).thenReturn(true); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly()
156 when(mSubscriptionManager.isActiveSubId(mSubId)).thenReturn(true); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledFailed()
167 when(mSubscriptionManager.isActiveSubId(mSubId)).thenReturn(false); in switchChangeListener_fromDisabledToEnabled_setSubscriptionEnabledCalledCorrectly()
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSProfileSelectorTest.java214 doReturn(true).when(mSubscriptionManager).isActiveSubId(anyInt()); in testStartProfileSelectionSuccess()
299 doReturn(true).when(mSubscriptionManager).isActiveSubId(anyInt()); in testStartProfileSelectionWithDifferentPrioritySubInfo()
357 doReturn(false).when(mSubscriptionManager).isActiveSubId(anyInt()); in testStartProfileSelectionWithActivePrimarySimOnESim()
568 doReturn(true).when(mSubscriptionManager).isActiveSubId(anyInt()); in testStartProfileSelectionSuccessWithSameArgumentsAgain()
605 doReturn(true).when(mSubscriptionManager).isActiveSubId(anyInt()); in testStartProfileSelectionSuccessWithSameArgumentsAgain()
653 doReturn(true).when(mSubscriptionManager).isActiveSubId(anyInt()); in testStopProfileSelectionWithPreferredDataOnSame()
701 doReturn(true).when(mSubscriptionManager).isActiveSubId(anyInt()); in testStopProfileSelectionWithPreferredDataOnDifferent()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSProfileSelector.java169 if (mSubscriptionManager.isActiveSubId(subId)) {
532 … if (!mSubscriptionManager.isActiveSubId(filteredAvailableNetworks.get(0).getSubId())) { in checkProfileUpdate()
675 if (!mSubscriptionManager.isActiveSubId(subId)) { in enableModem()
762 if (mSubscriptionManager.isActiveSubId(subscriptionInfo.getSubscriptionId())) { in isOpportunisticSubActive()
802 || (isOpprotunisticSub(subId) && mSubscriptionManager.isActiveSubId(subId))) { in selectProfileForData()
DOpportunisticNetworkService.java419 () -> mSubscriptionManager.isActiveSubId( in handleCarrierAppAvailableNetworks()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkSwitchController.java86 if (mSubscriptionManager.isActiveSubId(mSubId) != isChecked in displayPreference()
115 mSwitchBar.setChecked(mSubscriptionManager.isActiveSubId(mSubId)); in update()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DCarrierIdProviderTest.java345 doReturn(true).when(mSubController).isActiveSubId(eq(1)); in testUpdateCurrentSubscription()
420 doReturn(true).when(mSubController).isActiveSubId(eq(1)); in testUpdateCurrentSubscription_WrongURI()
DTelephonyProviderTest.java235 private void setUpMockContext(boolean isActiveSubId) { in setUpMockContext() argument
236 mContext = new MockContextWithProvider(mTelephonyProviderTestable, isActiveSubId); in setUpMockContext()
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java731 if (!mSubscriptionManager.isActiveSubId(id)) { in dismissLimitedSimFunctionWarningNotificationForInactiveSubs()
851 if (!mSubscriptionManager.isActiveSubId(subId)) { in dismissNetworkSelectionNotificationForInactiveSubId()
DPhoneInterfaceManager.java4399 return mSubscriptionController.isActiveSubId(subId); in isActiveSubscription()
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java198 if (!isActiveSubId(subId)) {
406 private boolean isActiveSubId(int subId) {
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/
DSimSelectNotificationTest.java120 when(mSubscriptionManager.isActiveSubId(mSubId)).thenReturn(true); in setUp()
/packages/apps/Settings/src/com/android/settings/sim/
DSimSelectNotification.java106 if (!subscriptionManager.isActiveSubId(subId)) { in onEnableMmsDataRequest()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DCarrierIdProvider.java621 if (!SubscriptionController.getInstance().isActiveSubId(subId)) { in updateCarrierIdForCurrentSubscription()