/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/ |
D | EapSimTest.java | 164 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 …]
|
D | EapAkaTest.java | 179 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 …]
|
D | EapAkaPrimeTest.java | 269 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/ |
D | EapAkaChallengeStateTest.java | 181 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessMissingAtRand() 201 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessMissingAtAutn() 221 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessMissingAtMac() 279 when(mMockTelephonyManager in testProcessIccAuthenticationNullResponse() 290 verify(mMockTelephonyManager) in testProcessIccAuthenticationNullResponse() 295 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessIccAuthenticationNullResponse() 313 when(mMockTelephonyManager in testProcessIccAuthenticationInvalidTag() 324 verify(mMockTelephonyManager) in testProcessIccAuthenticationInvalidTag() 329 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessIccAuthenticationInvalidTag() 347 when(mMockTelephonyManager in testProcessIccAuthenticationSynchronizeTag() [all …]
|
D | EapSimChallengeStateTest.java | 253 when(mMockTelephonyManager in testGetRandChallengeResults() 259 when(mMockTelephonyManager in testGetRandChallengeResults() 274 verify(mMockTelephonyManager) in testGetRandChallengeResults() 279 verify(mMockTelephonyManager) in testGetRandChallengeResults() 284 verifyNoMoreInteractions(mMockTelephonyManager); in testGetRandChallengeResults() 295 when(mMockTelephonyManager in testGetRandChallengeResultsBufferUnderflow() 301 when(mMockTelephonyManager in testGetRandChallengeResultsBufferUnderflow() 314 verify(mMockTelephonyManager) in testGetRandChallengeResultsBufferUnderflow() 319 verify(mMockTelephonyManager) in testGetRandChallengeResultsBufferUnderflow() 324 verifyNoMoreInteractions(mMockTelephonyManager); in testGetRandChallengeResultsBufferUnderflow() [all …]
|
D | EapAkaIdentityStateTest.java | 74 doReturn(IMSI).when(mMockTelephonyManager).getSubscriberId(); in testProcessIdentityRequest() 80 verify(mMockTelephonyManager).getSubscriberId(); in testProcessIdentityRequest() 81 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessIdentityRequest() 97 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessWithoutIdentityRequestAttributes() 116 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessMultipleIdentityRequestAttributes() 128 doReturn(null).when(mMockTelephonyManager).getSubscriberId(); in testProcessImsiUnavailable() 134 verify(mMockTelephonyManager).getSubscriberId(); in testProcessImsiUnavailable() 135 verifyNoMoreInteractions(mMockEapAkaTypeDataDecoder, mMockTelephonyManager); in testProcessImsiUnavailable() 159 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapAkaTypeDataDecoder); in testProcessTransitionToChallengeState()
|
D | EapAkaMethodStateMachineTest.java | 71 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()
|
D | EapSimStateTest.java | 70 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()
|
D | EapSimMethodStateMachineTest.java | 72 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()
|
D | EapAkaStateTest.java | 69 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()
|
D | EapSimStartStateTest.java | 175 doReturn(IMSI).when(mMockTelephonyManager).getSubscriberId(); in testAddIdentityAttributeToResponse() 179 verify(mMockTelephonyManager).getSubscriberId(); in testAddIdentityAttributeToResponse() 181 verifyNoMoreInteractions(mMockTelephonyManager); in testAddIdentityAttributeToResponse() 196 doReturn(null).when(mMockTelephonyManager).getSubscriberId(); in testAddIdentityAttributeToResponseImsiUnavailable() 202 verify(mMockTelephonyManager).getSubscriberId(); in testAddIdentityAttributeToResponseImsiUnavailable() 203 verifyNoMoreInteractions(mMockTelephonyManager); in testAddIdentityAttributeToResponseImsiUnavailable() 212 verifyNoMoreInteractions(mMockTelephonyManager); in testAddIdentityAttributeToResponseNoIdRequest()
|
D | EapSimAkaMethodStateMachineTest.java | 137 private TelephonyManager mMockTelephonyManager; field in EapSimAkaMethodStateMachineTest 143 mMockTelephonyManager = mock(TelephonyManager.class); in setUp() 148 mMockTelephonyManager, EAP_IDENTITY_BYTES, mEapSimConfig) { in setUp() 248 when(mMockTelephonyManager in testProcessUiccAuthentication() 261 verify(mMockTelephonyManager) in testProcessUiccAuthentication() 266 verifyNoMoreInteractions(mMockTelephonyManager); in testProcessUiccAuthentication() 271 when(mMockTelephonyManager in testProcessUiccAuthenticationNullResponse() 286 verify(mMockTelephonyManager) in testProcessUiccAuthenticationNullResponse() 291 verifyNoMoreInteractions(mMockTelephonyManager); in testProcessUiccAuthenticationNullResponse()
|
D | EapAkaPrimeIdentityStateTest.java | 67 doReturn(IMSI).when(mMockTelephonyManager).getSubscriberId(); in testProcessIdentityRequest() 73 verify(mMockTelephonyManager).getSubscriberId(); in testProcessIdentityRequest() 74 verifyNoMoreInteractions(mMockTypeDataDecoder, mMockTelephonyManager); in testProcessIdentityRequest() 94 verifyNoMoreInteractions(mMockTelephonyManager, mMockTypeDataDecoder); in testProcessTransitionToChallengeState()
|
D | EapAkaPrimeTest.java | 52 protected TelephonyManager mMockTelephonyManager; field in EapAkaPrimeTest 60 mMockTelephonyManager = mock(TelephonyManager.class); in setUp() 67 doReturn(mMockTelephonyManager) in setUp()
|
D | EapAkaPrimeCreatedStateTest.java | 62 verifyNoMoreInteractions(mMockTelephonyManager, mMockTypeDataDecoder); in testProcessTransitionToIdentityState() 83 verifyNoMoreInteractions(mMockTelephonyManager, mMockTypeDataDecoder); in testProcessTransitionToChallengeState()
|
D | EapAkaCreatedStateTest.java | 69 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapAkaTypeDataDecoder); in testProcessTransitionToIdentityState() 90 verifyNoMoreInteractions(mMockTelephonyManager, mMockEapAkaTypeDataDecoder); in testProcessTransitionToChallengeState()
|
D | EapAkaPrimeStateTest.java | 62 verifyNoMoreInteractions(mMockTelephonyManager, mMockTypeDataDecoder); in testProcessNotification() 81 verifyNoMoreInteractions(mMockTelephonyManager, mMockTypeDataDecoder); in testProcessInvalidDecodeResult()
|
D | EapAkaPrimeChallengeStateTest.java | 142 doReturn(IMSI).when(mMockTelephonyManager).getSubscriberId(); in testTransitionWithEapAkaPrimeIdentity() 149 verify(mMockTelephonyManager).getSubscriberId(); in testTransitionWithEapAkaPrimeIdentity()
|
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/ |
D | ONSNetworkScanCtlrTest.java | 54 … 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()
|
D | ONSBaseTest.java | 35 protected TelephonyManager mMockTelephonyManager; field in ONSBaseTest
|
/packages/apps/Car/libs/car-telephony-common/tests/robotests/src/com/android/car/telephony/common/ |
D | ContactTest.java | 64 private TelephonyManager mMockTelephonyManager; field in ContactTest 83 mMockTelephonyManager); in setup() 84 when(mMockTelephonyManager.getSimCountryIso()).thenReturn(""); in setup()
|
/packages/services/Telephony/tests/src/com/android/ |
D | TestContext.java | 45 @Mock TelephonyManager mMockTelephonyManager; field in TestContext 109 return mMockTelephonyManager; in getSystemService()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 254 private MockTelephonyManager mMockTelephonyManager; field in ContactsActor 330 return mMockTelephonyManager; in ContactsActor() 380 return mMockTelephonyManager; in ContactsActor() 418 mMockTelephonyManager = new MockTelephonyManager(mProviderContext); in ContactsActor()
|