/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/ |
D | VoNrRepositoryTest.kt | 41 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>()
|
D | TelephonyRepositoryTest.kt | 43 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>()
|
D | NetworkSelectRepositoryTest.kt | 46 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()
|
D | MobileNetworkImeiPreferenceControllerTest.kt | 57 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>()
|
D | SubscriptionActivationRepositoryTest.kt | 46 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>()
|
D | ServiceStateFlowTest.kt | 44 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>()
|
D | AllowedNetworkTypesFlowTest.kt | 43 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>()
|
D | CallStateRepositoryTest.kt | 44 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>()
|
D | DataSubscriptionRepositoryTest.kt | 50 private val mockTelephonyManager = in <lambda>() constant 69 on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager in <lambda>()
|
D | MmsMessagePreferenceControllerTest.kt | 47 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>()
|
D | MobileNetworkEidPreferenceControllerTest.kt | 62 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/ |
D | WifiCallingRepositoryTest.kt | 43 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/ |
D | NetworkScanRepositoryTest.kt | 57 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/ |
D | BillingCycleRepositoryTest.kt | 47 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/ |
D | AutoSelectPreferenceControllerTest.kt | 63 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/ |
D | DataUsageSummaryPreferenceControllerTest.kt | 59 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/ |
D | SignalStrengthRepositoryTest.kt | 49 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/ |
D | CellBroadcastReceiverTest.java | 240 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()
|
D | CellBroadcastResourcesTest.java | 208 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/ |
D | CarrierConfigLoaderTest.java | 470 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/ |
D | TelecomServiceImplTest.java | 1967 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()
|
D | CallsManagerTest.java | 3867 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()
|