Home
last modified time | relevance | path

Searched refs:mockTelephonyManager (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DVoNrRepositoryTest.kt41 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant in com.android.settings.network.telephony.VoNrRepositoryTest
57 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
87 mockTelephonyManager.stub { in isVoNrAvailable_allEnabled_returnTrue()
106 mockTelephonyManager.stub { in isVoNrAvailable_deviceNoNr_returnFalse()
139 mockTelephonyManager.stub { in <lambda>()
150 mockTelephonyManager.stub { in <lambda>()
163 verify(mockTelephonyManager).setVoNrEnabled(true) in <lambda>()
DTelephonyRepositoryTest.kt43 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant in com.android.settings.network.telephony.TelephonyRepositoryTest
51 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
68 mockTelephonyManager.stub { in <lambda>()
90 verify(mockTelephonyManager) in <lambda>()
105 mockTelephonyManager.stub { in isDataEnabled_validSub_returnPolicyState()
135 verify(mockTelephonyManager).unregisterTelephonyCallback(telephonyCallback!!) in <lambda>()
DNetworkSelectRepositoryTest.kt46 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant
53 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
60 mockTelephonyManager.stub { in getNetworkRegistrationInfo_notConnected_returnNull()
71 mockTelephonyManager.stub { in getNetworkRegistrationInfo_nullServiceState_returnNull()
104 mockTelephonyManager.stub { in getNetworkRegistrationInfo_hasNetworkList_returnInfo()
DMobileNetworkImeiPreferenceControllerTest.kt57 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant in com.android.settings.network.telephony.MobileNetworkImeiPreferenceControllerTest
68 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
104 mockTelephonyManager.stub { in <lambda>()
125 mockTelephonyManager.stub { in <lambda>()
147 mockTelephonyManager.stub { in <lambda>()
DSubscriptionActivationRepositoryTest.kt46 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant
52 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
112 mockTelephonyManager.stub { in <lambda>()
123 mockTelephonyManager.stub { in <lambda>()
DServiceStateFlowTest.kt44 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant in com.android.settings.network.telephony.ServiceStateFlowTest
53 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
DAllowedNetworkTypesFlowTest.kt43 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant in com.android.settings.network.telephony.AllowedNetworkTypesFlowTest
52 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
DCallStateRepositoryTest.kt44 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant in com.android.settings.network.telephony.CallStateRepositoryTest
61 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
DDataSubscriptionRepositoryTest.kt50 private val mockTelephonyManager = in <lambda>() constant
69 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
DMmsMessagePreferenceControllerTest.kt47 private val mockTelephonyManager: TelephonyManager = mock<TelephonyManager> { in <lambda>() constant in com.android.settings.network.telephony.MmsMessagePreferenceControllerTest
54 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
DMobileNetworkEidPreferenceControllerTest.kt62 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant in com.android.settings.network.telephony.MobileNetworkEidPreferenceControllerTest
71 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/wificalling/
DWifiCallingRepositoryTest.kt43 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant
50 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
62 mockTelephonyManager.stub { in getWiFiCallingMode_roamingAndNotUseWfcHomeModeForRoaming_returnRoamingSetting()
77 mockTelephonyManager.stub { in getWiFiCallingMode_roamingAndUseWfcHomeModeForRoaming_returnHomeSetting()
92 mockTelephonyManager.stub { in getWiFiCallingMode_notRoaming_returnHomeSetting()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/scan/
DNetworkScanRepositoryTest.kt57 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant
66 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
194 mockTelephonyManager.stub { in <lambda>()
202 verify(mockTelephonyManager).requestNetworkScan(argThat<NetworkScanRequest> { in <lambda>()
209 mockTelephonyManager.stub { in <lambda>()
217 verify(mockTelephonyManager).requestNetworkScan(argThat<NetworkScanRequest> { in <lambda>()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DBillingCycleRepositoryTest.kt47 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant in com.android.settings.datausage.lib.BillingCycleRepositoryTest
54 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
80 mockTelephonyManager.isDataEnabledForReason(TelephonyManager.DATA_ENABLED_REASON_USER) in <lambda>()
93 mockTelephonyManager.isDataEnabledForReason(TelephonyManager.DATA_ENABLED_REASON_USER) in <lambda>()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/gsm/
DAutoSelectPreferenceControllerTest.kt63 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant in com.android.settings.network.telephony.gsm.AutoSelectPreferenceControllerTest
69 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
189 verify(mockTelephonyManager).setNetworkSelectionModeAutomatic() in <lambda>()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.kt59 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant
64 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
113 mockTelephonyManager.stub { in getAvailabilityStatus_noMobileData_conditionallyUnavailable()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/deviceinfo/simstatus/
DSignalStrengthRepositoryTest.kt49 private val mockTelephonyManager = mock<TelephonyManager> { in <lambda>() constant
58 on { getSystemService(TelephonyManager::class.java) } doAnswer { mockTelephonyManager } in <lambda>()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java240 mockTelephonyManager(); in testInitializeSharedPreference_ifSystemUser_invalidSub()
258 private void mockTelephonyManager() { in mockTelephonyManager() method in CellBroadcastReceiverTest
272 mockTelephonyManager(); in testInitializeSharedPreference_ifSystemUser_firstSub()
305 mockTelephonyManager(); in testInitializeSharedPreference_ifSystemUser_carrierChange()
533 mockTelephonyManager(); in testOnServiceStateChange()
571 mockTelephonyManager(); in testOnNetworkRoamingChange()
681 mockTelephonyManager(); in testOnSimlessChange()
DCellBroadcastResourcesTest.java208 mockTelephonyManager(); in testGetSmsSenderAddressResource()
263 mockTelephonyManager(); in testGetDialogPictogramResource()
340 mockTelephonyManager(); in testGetDialogTitleResourceForAdditionalChannel()
409 private void mockTelephonyManager() { in mockTelephonyManager() method in CellBroadcastResourcesTest
/packages/services/Telephony/tests/src/com/android/phone/
DCarrierConfigLoaderTest.java470 TelephonyManager mockTelephonyManager = Mockito.mock(TelephonyManager.class); in setCarrierPrivilegesForSubId() local
471 doReturn(mockTelephonyManager).when(mTelephonyManager).createForSubscriptionId(subId); in setCarrierPrivilegesForSubId()
474 mockTelephonyManager).getCarrierPrivilegeStatus(anyInt()); in setCarrierPrivilegesForSubId()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomServiceImplTest.java1967 TelephonyManager mockTelephonyManager = in testGetVoicemailNumberWithNullAccountHandle() local
1969 when(mockTelephonyManager.getVoiceMailNumber()).thenReturn(vmNumber); in testGetVoicemailNumberWithNullAccountHandle()
1983 TelephonyManager mockTelephonyManager = in testGetVoicemailNumberWithNonNullAccountHandle() local
1985 when(mockTelephonyManager.getVoiceMailNumber()).thenReturn(vmNumber); in testGetVoicemailNumberWithNonNullAccountHandle()
2104 TelephonyManager mockTelephonyManager = in testGetLine1NumberWithNoTelephony() local
2106 when(mockTelephonyManager.getLine1Number()).thenThrow( in testGetLine1NumberWithNoTelephony()
2122 TelephonyManager mockTelephonyManager = in setupGetLine1NumberTest() local
2124 when(mockTelephonyManager.getLine1Number()).thenReturn(line1Number); in setupGetLine1NumberTest()
DCallsManagerTest.java3867 TelephonyManager mockTelephonyManager = mComponentContextFixture.getTelephonyManager(); in setupMsimAccounts() local
3868 when(mockTelephonyManager.getMaxNumberOfSimultaneouslyActiveSims()).thenReturn(1); in setupMsimAccounts()
3925 TelephonyManager mockTelephonyManager = mComponentContextFixture.getTelephonyManager(); in setMaxActiveVoiceSubscriptions() local
3926 when(mockTelephonyManager.getPhoneCapability()).thenReturn(mPhoneCapability); in setMaxActiveVoiceSubscriptions()