Home
last modified time | relevance | path

Searched refs:getActiveModemCount (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/network/
DSimOnboardingService.kt104 var getActiveModemCount = 0 in <lambda>() variable
106 return (telephonyManager?.getActiveModemCount() ?: 0) in <lambda>()
114 val activeModem = getActiveModemCount in <lambda>()
120 val activeModem = getActiveModemCount in <lambda>()
125 return getActiveModemCount != 0 && activeSubInfoList.size == activeModem in <lambda>()
129 return getActiveModemCount > 1 in <lambda>()
255 if (userSelectedSubInfoList.size < getActiveModemCount) { in <lambda>()
DMobileDataContentObserver.java42 if (telephonyManager.getActiveModemCount() != 1) { in getObservableUri()
DEnableMultiSimSidecar.java151 int activeSlotCount = mTelephonyManager.getActiveModemCount(); in getReadySimsCount()
DResetNetworkOperationBuilder.java243 for (int slotIndex = 0; slotIndex < tm.getActiveModemCount(); slotIndex++) { in resetIms()
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSProfileActivatorTest.java201 doReturn(2).when(mMockTeleManager).getActiveModemCount(); in testMultiSIMNotSupported()
218 doReturn(1).when(mMockTeleManager).getActiveModemCount(); in testDeviceSwitchToDualSIMModeFailed()
241 doReturn(1).when(mMockTeleManager).getActiveModemCount(); in testDeviceSwitchToDualSIMModeSuccess()
265 doReturn(2).when(mMockTeleManager).getActiveModemCount(); in testNoActiveSubscriptions()
283 doReturn(2).when(mMockTeleManager).getActiveModemCount(); in testNullActiveSubscriptionList()
302 doReturn(2).when(mMockTeleManager).getActiveModemCount(); in testNonCBRSCarrierPSIMInserted()
331 doReturn(2).when(mMockTeleManager).getActiveModemCount(); in testTwoActivePSIMSubscriptions()
354 doReturn(2).when(mMockTeleManager).getActiveModemCount(); in testOneCBRSPSIMAndOneNonCBRSESIM()
384 doReturn(2).when(mMockTeleManager).getActiveModemCount(); in testOneCBRSPSIMAndOneOpportunisticESIM()
433 doReturn(2).when(mMockTeleManager).getActiveModemCount(); in testOnlyOpportunisticESIMActive()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DMobileDataPreferenceControllerTest.java150 doReturn(1).when(mTelephonyManager).getActiveModemCount(); in isDialogNeeded_disableSingleSim_returnFalse()
159 doReturn(1).when(mTelephonyManager).getActiveModemCount(); in isDialogNeeded_enableNonDefaultSimInMultiSimMode_returnTrue()
164 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in isDialogNeeded_enableNonDefaultSimInMultiSimMode_returnTrue()
188 doReturn(1).when(mTelephonyManager).getActiveModemCount(); in onPreferenceChange_singleSim_On_shouldEnableData()
202 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in onPreferenceChange_multiSim_On_shouldEnableData()
/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/
DSmartForwardingUtils.java84 int phoneCount = tm.getActiveModemCount(); in getAllSlotCallWaitingStatus()
97 int phoneCount = tm.getActiveModemCount(); in getAllSlotCallForwardingStatus()
110 int phoneCount = tm.getActiveModemCount(); in clearAllBackupData()
DDisableSmartForwardingTask.java40 for (int i = 0; i < tm.getActiveModemCount(); i++) { in run()
DEnableSmartForwardingTask.java88 if (phoneNum.length != tm.getActiveModemCount()) { in initObject()
93 mSlotUTData = new SlotUTData[tm.getActiveModemCount()]; in initObject()
/packages/apps/Settings/src/com/android/settings/sim/receivers/
DSimSlotChangeHandler.java110 if (mTelMgr.getActiveModemCount() > 1) { in onSlotsStatusChange()
149 if (mTelMgr.getActiveModemCount() > 1) { in onSuwFinish()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DCarrierPrivilegeAuthenticatorTest.java147 doReturn(SUBSCRIPTION_COUNT).when(mTelephonyManager).getActiveModemCount(); in CarrierPrivilegeAuthenticatorTest()
220 doReturn(1).when(mTelephonyManager).getActiveModemCount(); in testMultiSimConfigChanged()
/packages/services/Telephony/tests/src/com/android/phone/
DCarrierConfigLoaderTest.java142 doReturn(1).when(mTelephonyManager).getActiveModemCount(); in setUp()
483 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in testMultiSimConfigChanged()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DResetNetworkOperationBuilderTest.java174 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in resetIms_performReset_whenBuildAndRun_withAllValidSubId()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileDataPreferenceController.java213 final boolean isMultiSim = (mTelephonyManager.getActiveModemCount() > 1); in isDialogNeeded()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DGsmCellBroadcastHandler.java191 for (int slotId = 0; slotId < tm.getActiveModemCount(); slotId++) { in registerServiceStateListeners()
753 for(int i = 0; i < tm.getActiveModemCount(); i++) {
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQualifiedNetworksServiceImplTest.java110 when(mMockTelephonyManager.getActiveModemCount()).thenReturn(2); in setUp()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/worker/
DDeviceCheckInHelper.java125 final int totalSlotCount = mTelephonyManager.getActiveModemCount(); in getDeviceAvailableUniqueIds()
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/
DEmergencyCallDomainSelectorTest.java248 when(mTelephonyManager.getActiveModemCount()).thenReturn(1); in setUp()
375 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in testNullEmergencyRegistrationResult()
470 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in testNoRedundantTerminationFromInitialState()
1787 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in testDualSimInvalidSubscription()
1811 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in testDualSimInvalidSubscriptionAfterScan()
1842 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in testDualSimInvalidSubscriptionButNoOtherSlot()
1866 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in testDualSimNormalServiceOnTheOtherSubscription()
1890 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in testDualSimNormalServiceOnTheOtherSubscriptionAfterScan()
2381 doReturn(2).when(mTelephonyManager).getActiveModemCount();
DCrossSimRedialingControllerTest.java124 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in setUp()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogControllerTest.java137 when(mTelephonyManager.getActiveModemCount()).thenReturn(MAX_PHONE_COUNT_SINGLE_SIM); in setup()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSProfileActivator.java528 return (mTelephonyManager.getActiveModemCount() <= 1); in isDeviceInSingleSIMMode()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DCarrierPrivilegeAuthenticator.java175 mModemCount = mTelephonyManager.getActiveModemCount(); in simConfigChanged()
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DTelephonyRcsServiceTest.java107 doReturn(2).when(mTelephonyManager).getActiveModemCount(); in setUp()
/packages/services/Telephony/src/com/android/services/telephony/domainselection/
DTelephonyDomainSelectionService.java228 int activeModemCount = (tm != null) ? tm.getActiveModemCount() : 1; in onCreate()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DQnsUtils.java127 return slotIndex >= 0 && tm != null && slotIndex < tm.getActiveModemCount(); in isValidSlotIndex()

12