Home
last modified time | relevance | path

Searched refs:intentArgumentCaptor (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccStateChangedLauncherTest.java108 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in testProvisioningPackageSet() local
112 verify(mContext, times(broadcast_count)).sendBroadcast(intentArgumentCaptor.capture()); in testProvisioningPackageSet()
113 assertEquals(PROVISIONING_PACKAGE_NAME, intentArgumentCaptor.getValue().getPackage()); in testProvisioningPackageSet()
115 intentArgumentCaptor.getValue().getAction()); in testProvisioningPackageSet()
123 verify(mContext, times(broadcast_count)).sendBroadcast(intentArgumentCaptor.capture()); in testProvisioningPackageSet()
124 assertEquals(PROVISIONING_PACKAGE_NAME, intentArgumentCaptor.getValue().getPackage()); in testProvisioningPackageSet()
126 intentArgumentCaptor.getValue().getAction()); in testProvisioningPackageSet()
138 verify(mContext, times(broadcast_count)).sendBroadcast(intentArgumentCaptor.capture()); in testProvisioningPackageSet()
139 assertEquals(PROVISIONING_PACKAGE_NAME, intentArgumentCaptor.getValue().getPackage()); in testProvisioningPackageSet()
141 intentArgumentCaptor.getValue().getAction()); in testProvisioningPackageSet()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandlerTest.java201 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in testNewSms() local
202 verify(mContext).sendBroadcast(intentArgumentCaptor.capture()); in testNewSms()
204 intentArgumentCaptor.getValue().getAction()); in testNewSms()
209 intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in testNewSms()
210 verify(mContext, times(2)).sendBroadcast(intentArgumentCaptor.capture()); in testNewSms()
212 intentArgumentCaptor.getAllValues().get(1).getAction()); in testNewSms()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsStorageMonitorTest.java81 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in testEventIccFull() local
82 verify(mContextFixture.getTestDouble()).sendBroadcast(intentArgumentCaptor.capture()); in testEventIccFull()
84 intentArgumentCaptor.getValue().getAction()); in testEventIccFull()
DWapPushOverSmsTest.java89 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in testDispatchWapPdu() local
90 verify(mInboundSmsHandler).dispatchIntent(intentArgumentCaptor.capture(), in testDispatchWapPdu()
96 Intent intent = intentArgumentCaptor.getValue(); in testDispatchWapPdu()
DLocaleTrackerTest.java135 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyCountryCodeNotified() local
136 verify(mContext, times(countryCodes.length)).sendBroadcast(intentArgumentCaptor.capture()); in verifyCountryCodeNotified()
137 List<Intent> intents = intentArgumentCaptor.getAllValues(); in verifyCountryCodeNotified()
DGsmCdmaPhoneTest.java676 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in testEmergencyCallbackMessages() local
679 intentArgumentCaptor.capture(), in testEmergencyCallbackMessages()
695 Intent intent = intentArgumentCaptor.getValue(); in testEmergencyCallbackMessages()
713 intentArgumentCaptor.capture(), in testEmergencyCallbackMessages()
729 intent = intentArgumentCaptor.getValue(); in testEmergencyCallbackMessages()
764 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in testModemResetInEmergencyCallbackMessages() local
767 intentArgumentCaptor.capture(), in testModemResetInEmergencyCallbackMessages()
783 Intent intent = intentArgumentCaptor.getValue(); in testModemResetInEmergencyCallbackMessages()
801 intentArgumentCaptor.capture(), in testModemResetInEmergencyCallbackMessages()
817 intent = intentArgumentCaptor.getValue(); in testModemResetInEmergencyCallbackMessages()
DServiceStateTrackerTest.java417 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in testSpnUpdateShowPlmnOnly() local
419 .sendStickyBroadcastAsUser(intentArgumentCaptor.capture(), eq(UserHandle.ALL)); in testSpnUpdateShowPlmnOnly()
422 List<Intent> intents = intentArgumentCaptor.getAllValues(); in testSpnUpdateShowPlmnOnly()
2284 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in getExtrasFromLastSpnUpdateIntent() local
2286 .sendStickyBroadcastAsUser(intentArgumentCaptor.capture(), eq(UserHandle.ALL)); in getExtrasFromLastSpnUpdateIntent()
2288 List<Intent> intents = intentArgumentCaptor.getAllValues(); in getExtrasFromLastSpnUpdateIntent()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmCellBroadcastHandlerTest.java117 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in testBroadcastSms() local
119 intentArgumentCaptor.capture(), eq(UserHandle.ALL), in testBroadcastSms()
124 List<Intent> intentList = intentArgumentCaptor.getAllValues(); in testBroadcastSms()
DGsmInboundSmsHandlerTest.java242 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in verifySmsIntentBroadcasts() local
244 intentArgumentCaptor.capture()); in verifySmsIntentBroadcasts()
246 intentArgumentCaptor.getAllValues().get(numPastBroadcasts).getAction()); in verifySmsIntentBroadcasts()
256 intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in verifySmsIntentBroadcasts()
258 intentArgumentCaptor.capture()); in verifySmsIntentBroadcasts()
260 intentArgumentCaptor.getAllValues().get(numPastBroadcasts + 1).getAction()); in verifySmsIntentBroadcasts()
315 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyDataSmsIntentBroadcasts() local
317 intentArgumentCaptor.capture()); in verifyDataSmsIntentBroadcasts()
319 intentArgumentCaptor.getAllValues().get(numPastBroadcasts).getAction()); in verifyDataSmsIntentBroadcasts()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneTest.java549 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in testEcbm() local
551 intentArgumentCaptor.capture(), in testEcbm()
564 Intent intent = intentArgumentCaptor.getValue(); in testEcbm()
579 intentArgumentCaptor.capture(), in testEcbm()
592 intent = intentArgumentCaptor.getValue(); in testEcbm()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkFactoryTest.java2592 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); in validateUiStartParams() local
2594 intentArgumentCaptor.capture(), eq(UserHandle.getUserHandleForUid(TEST_UID_1))); in validateUiStartParams()
2595 Intent intent = intentArgumentCaptor.getValue(); in validateUiStartParams()