Home
last modified time | relevance | path

Searched refs:messageArgumentCaptor (Results 1 – 7 of 7) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneTest.java186 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testHandleInCallMmiCommandCallWaiting() local
187 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallWaiting()
188 assertEquals(EVENT_SUPP_SERVICE_FAILED, messageArgumentCaptor.getValue().what); in testHandleInCallMmiCommandCallWaiting()
190 ((AsyncResult)messageArgumentCaptor.getValue().obj).result); in testHandleInCallMmiCommandCallWaiting()
213 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testHandleInCallMmiCommandCallHold() local
214 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallHold()
215 assertEquals(EVENT_SUPP_SERVICE_FAILED, messageArgumentCaptor.getValue().what); in testHandleInCallMmiCommandCallHold()
217 ((AsyncResult) messageArgumentCaptor.getValue().obj).result); in testHandleInCallMmiCommandCallHold()
252 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testHandleInCallMmiCommandCallEct() local
253 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallEct()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiScannerTest.java258 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testStartScan() local
259 verify(mHandler).handleMessage(messageArgumentCaptor.capture()); in testStartScan()
260 Message message = messageArgumentCaptor.getValue(); in testStartScan()
289 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testStopScan() local
290 verify(mHandler, times(2)).handleMessage(messageArgumentCaptor.capture()); in testStopScan()
291 Message message = messageArgumentCaptor.getValue(); in testStopScan()
314 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testStartScanListenerOnSuccess() local
315 verify(mHandler).handleMessage(messageArgumentCaptor.capture()); in testStartScanListenerOnSuccess()
316 Message sentMessage = messageArgumentCaptor.getValue(); in testStartScanListenerOnSuccess()
344 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testStartScanListenerOnResults() local
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTransportManagerTest.java119 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testHandoverNeeded() local
122 verify(mTestHandler, times(1)).sendMessageAtTime(messageArgumentCaptor.capture(), in testHandoverNeeded()
124 Message message = messageArgumentCaptor.getValue(); in testHandoverNeeded()
145 messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testHandoverNeeded()
148 verify(mTestHandler, times(2)).sendMessageAtTime(messageArgumentCaptor.capture(), in testHandoverNeeded()
150 message = messageArgumentCaptor.getValue(); in testHandoverNeeded()
228 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testBackToBackHandoverNeeded() local
231 verify(mTestHandler, times(1)).sendMessageAtTime(messageArgumentCaptor.capture(), in testBackToBackHandoverNeeded()
233 Message message = messageArgumentCaptor.getValue(); in testBackToBackHandoverNeeded()
251 verify(mTestHandler, times(1)).sendMessageAtTime(messageArgumentCaptor.capture(), in testBackToBackHandoverNeeded()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTrackerTest.java824 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testRegAndUnregForVoiceRoamingOn() local
825 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForVoiceRoamingOn()
826 assertEquals(EVENT_DATA_ROAMING_ON, messageArgumentCaptor.getValue().what); in testRegAndUnregForVoiceRoamingOn()
871 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testRegAndUnregForVoiceRoamingOff() local
872 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForVoiceRoamingOff()
873 assertEquals(EVENT_DATA_ROAMING_OFF, messageArgumentCaptor.getValue().what); in testRegAndUnregForVoiceRoamingOff()
910 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testRegAndUnregForDataRoamingOn() local
911 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForDataRoamingOn()
912 assertEquals(EVENT_DATA_ROAMING_ON, messageArgumentCaptor.getValue().what); in testRegAndUnregForDataRoamingOn()
957 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testRegAndUnregForDataRoamingOff() local
[all …]
DGsmCdmaPhoneTest.java486 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testVoiceMailNumberCdma() local
488 messageArgumentCaptor.capture()); in testVoiceMailNumberCdma()
490 Message msg = messageArgumentCaptor.getValue(); in testVoiceMailNumberCdma()
734 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testEmergencyCallbackMessages() local
737 verify(mTestHandler, times(2)).sendMessageAtTime(messageArgumentCaptor.capture(), in testEmergencyCallbackMessages()
739 List<Message> msgList = messageArgumentCaptor.getAllValues(); in testEmergencyCallbackMessages()
822 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testModemResetInEmergencyCallbackMessages() local
825 verify(mTestHandler, times(2)).sendMessageAtTime(messageArgumentCaptor.capture(), in testModemResetInEmergencyCallbackMessages()
827 List<Message> msgList = messageArgumentCaptor.getAllValues(); in testModemResetInEmergencyCallbackMessages()
938 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testGetEmptyIccCard() local
[all …]
DCarrierSignalAgentTest.java265 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testCarrierConfigChange() local
267 .sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testCarrierConfigChange()
269 messageArgumentCaptor.getValue().what); in testCarrierConfigChange()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java2905 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in verifyAsyncChannelMessageHandlingWithChangePermisson() local
2906 verify(mClientModeImpl).sendMessage(messageArgumentCaptor.capture()); in verifyAsyncChannelMessageHandlingWithChangePermisson()
2907 assertEquals(requestMsgWhat, messageArgumentCaptor.getValue().what); in verifyAsyncChannelMessageHandlingWithChangePermisson()
2928 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in verifyAsyncChannelMessageHandlingWithPrivilegedPermissions() local
2929 verify(mClientModeImpl).sendMessage(messageArgumentCaptor.capture()); in verifyAsyncChannelMessageHandlingWithPrivilegedPermissions()
2930 assertEquals(requestMsgWhat, messageArgumentCaptor.getValue().what); in verifyAsyncChannelMessageHandlingWithPrivilegedPermissions()