Home
last modified time | relevance | path

Searched refs:mMockTelephonyManager (Results 1 – 25 of 32) sorted by relevance

12

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/
DEapSimTest.java164 private TelephonyManager mMockTelephonyManager; field in EapSimTest
171 mMockTelephonyManager = mock(TelephonyManager.class); in setUp()
240 doReturn(mMockTelephonyManager) in verifyEapSimStart()
245 doReturn(UNFORMATTED_IDENTITY).when(mMockTelephonyManager).getSubscriberId(); in verifyEapSimStart()
257 verify(mMockTelephonyManager).getSubscriberId(); in verifyEapSimStart()
266 mMockTelephonyManager, in verifyEapSimStart()
273 when(mMockTelephonyManager in verifyEapSimChallenge()
279 when(mMockTelephonyManager in verifyEapSimChallenge()
285 when(mMockTelephonyManager in verifyEapSimChallenge()
296 verify(mMockTelephonyManager) in verifyEapSimChallenge()
[all …]
DEapAkaTest.java179 private TelephonyManager mMockTelephonyManager; field in EapAkaTest
186 mMockTelephonyManager = mock(TelephonyManager.class); in setUp()
205 doReturn(mMockTelephonyManager) in setUp()
264 doReturn(UNFORMATTED_IDENTITY).when(mMockTelephonyManager).getSubscriberId(); in verifyEapAkaIdentity()
271 verify(mMockTelephonyManager).getSubscriberId(); in verifyEapAkaIdentity()
274 mMockContext, mMockTelephonyManager, mMockSecureRandom, mMockCallback); in verifyEapAkaIdentity()
283 when(mMockTelephonyManager.getIccAuthentication( in verifyEapAkaChallenge()
293 verify(mMockTelephonyManager) in verifyEapAkaChallenge()
305 mMockContext, mMockTelephonyManager, mMockSecureRandom, mMockCallback); in verifyEapAkaChallenge()
318 mMockContext, mMockTelephonyManager, mMockSecureRandom, mMockCallback); in verifyEapAkaChallengeWithoutIdentityReq()
[all …]
DEapAkaPrimeTest.java269 private TelephonyManager mMockTelephonyManager; field in EapAkaPrimeTest
285 mMockTelephonyManager = mock(TelephonyManager.class); in setUp()
305 doReturn(mMockTelephonyManager) in setUp()
331 mMockContext, mMockTelephonyManager, mMockSecureRandom, mMockCallback); in testEapAkaPrimeEndToEndExternalTestVectors()
404 doReturn(unformattedIdentity).when(mMockTelephonyManager).getSubscriberId(); in verifyEapAkaPrimeIdentity()
411 verify(mMockTelephonyManager).getSubscriberId(); in verifyEapAkaPrimeIdentity()
414 mMockContext, mMockTelephonyManager, mMockSecureRandom, mMockCallback); in verifyEapAkaPrimeIdentity()
423 when(mMockTelephonyManager.getIccAuthentication( in verifyEapAkaPrimeChallenge()
433 verify(mMockTelephonyManager) in verifyEapAkaPrimeChallenge()
448 mMockContext, mMockTelephonyManager, mMockSecureRandom, mMockCallback); in verifyEapAkaPrimeChallenge()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapAkaChallengeStateTest.java183 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessMissingAtRand()
203 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessMissingAtAutn()
223 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessMissingAtMac()
281 when(mMockTelephonyManager in testProcessIccAuthenticationNullResponse()
292 verify(mMockTelephonyManager) in testProcessIccAuthenticationNullResponse()
297 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessIccAuthenticationNullResponse()
315 when(mMockTelephonyManager in testProcessIccAuthenticationInvalidTag()
326 verify(mMockTelephonyManager) in testProcessIccAuthenticationInvalidTag()
331 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessIccAuthenticationInvalidTag()
349 when(mMockTelephonyManager in testProcessIccAuthenticationSynchronizeTag()
[all …]
DEapSimChallengeStateTest.java254 when(mMockTelephonyManager in testGetRandChallengeResults()
260 when(mMockTelephonyManager in testGetRandChallengeResults()
275 verify(mMockTelephonyManager) in testGetRandChallengeResults()
280 verify(mMockTelephonyManager) in testGetRandChallengeResults()
285 verifyNoMoreInteractions(mMockTelephonyManager); in testGetRandChallengeResults()
296 when(mMockTelephonyManager in testGetRandChallengeResultsBufferUnderflow()
302 when(mMockTelephonyManager in testGetRandChallengeResultsBufferUnderflow()
315 verify(mMockTelephonyManager) in testGetRandChallengeResultsBufferUnderflow()
320 verify(mMockTelephonyManager) in testGetRandChallengeResultsBufferUnderflow()
325 verifyNoMoreInteractions(mMockTelephonyManager); in testGetRandChallengeResultsBufferUnderflow()
[all …]
DEapAkaIdentityStateTest.java76 doReturn(IMSI).when(mMockTelephonyManager).getSubscriberId(); in testProcessIdentityRequest()
82 verify(mMockTelephonyManager).getSubscriberId(); in testProcessIdentityRequest()
83 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessIdentityRequest()
99 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessWithoutIdentityRequestAttributes()
118 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessMultipleIdentityRequestAttributes()
130 doReturn(null).when(mMockTelephonyManager).getSubscriberId(); in testProcessImsiUnavailable()
136 verify(mMockTelephonyManager).getSubscriberId(); in testProcessImsiUnavailable()
137 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessImsiUnavailable()
161 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapAkaTypeDataDecoder); in testProcessTransitionToChallengeState()
DEapAkaMethodStateMachineTest.java71 protected TelephonyManager mMockTelephonyManager; field in EapAkaMethodStateMachineTest
79 mMockTelephonyManager = mock(TelephonyManager.class); in setUp()
83 doReturn(mMockTelephonyManager) in setUp()
124 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapAkaTypeDataDecoder); in testEapAkaFailsOnMultipleAkaNotifications()
131 doReturn(IMSI).when(mMockTelephonyManager).getSubscriberId(); in testEapAkaFailsOnMultipleAkaNotifications()
140 verify(mMockTelephonyManager).getSubscriberId(); in testEapAkaFailsOnMultipleAkaNotifications()
141 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapAkaTypeDataDecoder); in testEapAkaFailsOnMultipleAkaNotifications()
152 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapAkaTypeDataDecoder); in testEapAkaFailsOnMultipleAkaNotifications()
DEapSimMethodStateMachineTest.java72 private TelephonyManager mMockTelephonyManager; field in EapSimMethodStateMachineTest
81 mMockTelephonyManager = mock(TelephonyManager.class); in setUp()
85 doReturn(mMockTelephonyManager) in setUp()
126 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapSimTypeDataDecoder); in testEapSimFailsOnMultipleSimNotifications()
141 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapSimTypeDataDecoder); in testEapSimFailsOnMultipleSimNotifications()
152 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapSimTypeDataDecoder); in testEapSimFailsOnMultipleSimNotifications()
DEapSimStateTest.java70 protected TelephonyManager mMockTelephonyManager; field in EapSimStateTest
78 mMockTelephonyManager = mock(TelephonyManager.class); in setUp()
82 doReturn(mMockTelephonyManager) in setUp()
105 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapSimTypeDataDecoder); in testProcessNotification()
129 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapSimTypeDataDecoder); in testProcessEapSimNotification()
145 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapSimTypeDataDecoder); in testProcessInvalidDecodeResult()
DEapAkaStateTest.java69 protected TelephonyManager mMockTelephonyManager; field in EapAkaStateTest
77 mMockTelephonyManager = mock(TelephonyManager.class); in setUp()
81 doReturn(mMockTelephonyManager) in setUp()
104 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapAkaTypeDataDecoder); in testProcessNotification()
128 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapAkaTypeDataDecoder); in testProcessEapAkaNotification()
144 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapAkaTypeDataDecoder); in testProcessInvalidDecodeResult()
DEapSimStartStateTest.java176 doReturn(IMSI).when(mMockTelephonyManager).getSubscriberId(); in testAddIdentityAttributeToResponse()
180 verify(mMockTelephonyManager).getSubscriberId(); in testAddIdentityAttributeToResponse()
182 verifyNoMoreInteractions(mMockTelephonyManager); in testAddIdentityAttributeToResponse()
197 doReturn(null).when(mMockTelephonyManager).getSubscriberId(); in testAddIdentityAttributeToResponseImsiUnavailable()
203 verify(mMockTelephonyManager).getSubscriberId(); in testAddIdentityAttributeToResponseImsiUnavailable()
204 verifyNoMoreInteractions(mMockTelephonyManager); in testAddIdentityAttributeToResponseImsiUnavailable()
213 verifyNoMoreInteractions(mMockTelephonyManager); in testAddIdentityAttributeToResponseNoIdRequest()
DEapAkaPrimeIdentityStateTest.java69 doReturn(IMSI).when(mMockTelephonyManager).getSubscriberId(); in testProcessIdentityRequest()
75 verify(mMockTelephonyManager).getSubscriberId(); in testProcessIdentityRequest()
76 verifyNoMoreInteractions(mMockTypeDataDecoder, mMockTelephonyManager); in testProcessIdentityRequest()
96 verifyNoMoreInteractions(mMockTelephonyManager, mMockTypeDataDecoder); in testProcessTransitionToChallengeState()
DEapAkaPrimeTest.java52 protected TelephonyManager mMockTelephonyManager; field in EapAkaPrimeTest
60 mMockTelephonyManager = mock(TelephonyManager.class); in setUp()
67 doReturn(mMockTelephonyManager) in setUp()
DEapSimAkaMethodStateMachineTest.java171 private TelephonyManager mMockTelephonyManager; field in EapSimAkaMethodStateMachineTest
176 mMockTelephonyManager = mock(TelephonyManager.class); in setUp()
180 mMockTelephonyManager, in setUp()
282 when(mMockTelephonyManager in testProcessUiccAuthentication()
295 verify(mMockTelephonyManager) in testProcessUiccAuthentication()
300 verifyNoMoreInteractions(mMockTelephonyManager); in testProcessUiccAuthentication()
305 when(mMockTelephonyManager in testProcessUiccAuthenticationNullResponse()
320 verify(mMockTelephonyManager) in testProcessUiccAuthenticationNullResponse()
325 verifyNoMoreInteractions(mMockTelephonyManager); in testProcessUiccAuthenticationNullResponse()
550 mMockTelephonyManager, in buildEapAkaStateMachineWithKAut()
DEapAkaPrimeCreatedStateTest.java63 verifyNoMoreInteractions(mMockTelephonyManager, mMockTypeDataDecoder); in testProcessTransitionToIdentityState()
84 verifyNoMoreInteractions(mMockTelephonyManager, mMockTypeDataDecoder); in testProcessTransitionToChallengeState()
DEapAkaCreatedStateTest.java70 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapAkaTypeDataDecoder); in testProcessTransitionToIdentityState()
91 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapAkaTypeDataDecoder); in testProcessTransitionToChallengeState()
DEapAkaPrimeStateTest.java63 verifyNoMoreInteractions(mMockTelephonyManager, mMockTypeDataDecoder); in testProcessNotification()
82 verifyNoMoreInteractions(mMockTelephonyManager, mMockTypeDataDecoder); in testProcessInvalidDecodeResult()
/packages/apps/Car/Calendar/tests/unit/src/com/android/car/calendar/common/
DEventDescriptionsTest.java44 private TelephonyManager mMockTelephonyManager; field in EventDescriptionsTest
48 mMockTelephonyManager = Mockito.mock(TelephonyManager.class); in setUp()
49 when(mMockTelephonyManager.getNetworkCountryIso()).thenReturn(COUNTRY_ISO_CODE); in setUp()
50 mEventDescriptions = new EventDescriptions(Locale.GERMANY, mMockTelephonyManager); in setUp()
74 new EventDescriptions(Locale.FRANCE, mMockTelephonyManager); in extractNumberAndPin_internationalNumberWithDifferentLocale_resultIsInternational()
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSNetworkScanCtlrTest.java54 … doReturn(mNetworkScan).when(mMockTelephonyManager).requestNetworkScan(anyObject(), anyObject()); in setUp()
86 mONSNetworkScanCtlr = new ONSNetworkScanCtlr(mContext, mMockTelephonyManager, in testStartFastNetworkScan()
137 mONSNetworkScanCtlr = new ONSNetworkScanCtlr(mContext, mMockTelephonyManager, in testStartFastNetworkScanFail()
190 mONSNetworkScanCtlr = new ONSNetworkScanCtlr(mContext, mMockTelephonyManager, in testStartFastNetworkScanWithMultipleNetworks()
242 mONSNetworkScanCtlr = new ONSNetworkScanCtlr(mContext, mMockTelephonyManager, in testStopNetworkScan()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java84 TelephonyManager mMockTelephonyManager; field in CellBroadcastReceiverTest
224 doReturn(mMockTelephonyManager).when(mMockTelephonyManager) in mockTelephonyManager()
228 doReturn(mMockTelephonyManager).when(mContext).getSystemService(Context.TELEPHONY_SERVICE); in mockTelephonyManager()
253 doReturn(TelephonyManager.UNKNOWN_CARRIER_ID).when(mMockTelephonyManager) in testInitializeSharedPreference_ifSystemUser_firstSub()
259 doReturn(subId).when(mMockTelephonyManager).getSimCarrierId(); in testInitializeSharedPreference_ifSystemUser_firstSub()
276 doReturn(firstSubId).when(mMockTelephonyManager).getSimCarrierId(); in testInitializeSharedPreference_ifSystemUser_carrierChange()
283 doReturn(secondSubId).when(mMockTelephonyManager).getSimCarrierId(); in testInitializeSharedPreference_ifSystemUser_carrierChange()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DResetNetworkConfirmFragmentTest.java95 private TelephonyManager mMockTelephonyManager; field in ResetNetworkConfirmFragmentTest
120 mMockTelephonyManager); in setUp()
121 when(mMockTelephonyManager.getSubscriberId(anyInt())).then(invocation -> { in setUp()
207 verify(mMockTelephonyManager).factoryReset(SubscriptionManager.INVALID_SUBSCRIPTION_ID); in testResetButtonClick_emptyNetworkSubscriptionId_telephonyNotReset()
214 verify(mMockTelephonyManager).factoryReset(123); in testResetButtonClick_validNetworkSubscriptionId_telephonyReset()
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DEpdgSelectorTest.java81 @Mock private TelephonyManager mMockTelephonyManager; field in EpdgSelectorTest
109 .thenReturn(mMockTelephonyManager); in setUp()
111 when(mMockTelephonyManager.createForSubscriptionId(anyInt())) in setUp()
112 .thenReturn(mMockTelephonyManager); in setUp()
115 when(mMockTelephonyManager.getEquivalentHomePlmns()).thenReturn(ehplmnList); in setUp()
381 when(mMockTelephonyManager.getAllCellInfo()).thenReturn(fakeCellInfoArray); in testCellularResolutionMethod()
/packages/services/Iwlan/test/com/google/android/iwlan/
DErrorPolicyManagerTest.java66 @Mock TelephonyManager mMockTelephonyManager; field in ErrorPolicyManagerTest
734 doReturn(mMockTelephonyManager).when(mMockContext).getSystemService(TelephonyManager.class); in setupMockForCarrierConfig()
735 doReturn(mMockTelephonyManager) in setupMockForCarrierConfig()
736 .when(mMockTelephonyManager) in setupMockForCarrierConfig()
738 doReturn(TEST_CARRIER_ID).when(mMockTelephonyManager).getSimCarrierId(); in setupMockForCarrierConfig()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTestTelephonyConnection.java81 TelephonyManager mMockTelephonyManager; field in TestTelephonyConnection
138 mMockTelephonyManager = mock(TelephonyManager.class); in TestTelephonyConnection()
161 .thenReturn(mMockTelephonyManager); in TestTelephonyConnection()
/packages/apps/Car/libs/car-telephony-common/tests/robotests/src/com/android/car/telephony/common/
DContactTest.java70 private TelephonyManager mMockTelephonyManager; field in ContactTest
100 mMockTelephonyManager); in setup()
101 when(mMockTelephonyManager.getSimCountryIso()).thenReturn(""); in setup()

12