Home
last modified time | relevance | path

Searched refs:messageCaptor (Results 1 – 14 of 14) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiMonitorTest.java100 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited() local
101 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
103 Message message = messageCaptor.getValue(); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
121 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToErrorWepProhibhited() local
122 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
123 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
124 assertEquals(WifiManager.WPS_WEP_PROHIBITED, messageCaptor.getValue().arg1); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
139 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToConfigAuthError() local
140 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigAuthError()
141 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToConfigAuthError()
[all …]
DConnectionFailureNotifierTest.java147 ArgumentCaptor<String> messageCaptor = ArgumentCaptor.forClass(String.class); in testConnectionFailureSendRandomizationSettingsNotification() local
150 any(), messageCaptor.capture(), any(), any(), any(), in testConnectionFailureSendRandomizationSettingsNotification()
152 String message = messageCaptor.getValue(); in testConnectionFailureSendRandomizationSettingsNotification()
DWifiDialogManagerTest.java448 ArgumentCaptor<CharSequence> messageCaptor = ArgumentCaptor.forClass(CharSequence.class); in testSimpleDialog_launchAndResponse_notifiesCallback_preT() local
449 verify(builder).setMessage(messageCaptor.capture()); in testSimpleDialog_launchAndResponse_notifiesCallback_preT()
450 assertThat(messageCaptor.getValue().toString()).isEqualTo(TEST_MESSAGE); in testSimpleDialog_launchAndResponse_notifiesCallback_preT()
621 ArgumentCaptor<CharSequence> messageCaptor = ArgumentCaptor.forClass(CharSequence.class); in testLegacySimpleDialog_launchAndResponse_notifiesCallback() local
622 verify(builder).setMessage(messageCaptor.capture()); in testLegacySimpleDialog_launchAndResponse_notifiesCallback()
623 assertThat(messageCaptor.getValue().toString()).isEqualTo(TEST_MESSAGE); in testLegacySimpleDialog_launchAndResponse_notifiesCallback()
DWifiCarrierInfoManagerTest.java2234 ArgumentCaptor<String> messageCaptor = ArgumentCaptor.forClass(String.class); in validateUserApprovalDialog() local
2236 any(), messageCaptor.capture(), any(), any(), any(), any(), any()); in validateUserApprovalDialog()
2237 String message = messageCaptor.getValue(); in validateUserApprovalDialog()
DSoftApManagerTest.java2505 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in startSoftApAndVerifyEnabled() local
2507 messageCaptor.capture(), stateMachineCaptor.capture(), any(), any(), anyInt(), in startSoftApAndVerifyEnabled()
2512 stateMachineCaptor.getValue().sendMessage(Message.obtain(messageCaptor.getValue())); in startSoftApAndVerifyEnabled()
DWifiNetworkSuggestionsManagerTest.java3315 ArgumentCaptor<String> messageCaptor = ArgumentCaptor.forClass(String.class); in validateUserApprovalDialog() local
3317 any(), messageCaptor.capture(), any(), any(), any(), any(), any()); in validateUserApprovalDialog()
3318 String message = messageCaptor.getValue(); in validateUserApprovalDialog()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pMonitorTest.java69 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastSupplicantDisconnectionEvent() local
70 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastSupplicantDisconnectionEvent()
71 assertEquals(WifiP2pMonitor.SUP_DISCONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastSupplicantDisconnectionEvent()
85 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastEventToTwoHandlers() local
86 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventToTwoHandlers()
87 assertEquals(WifiP2pMonitor.SUP_CONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastEventToTwoHandlers()
88 verify(mSecondHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventToTwoHandlers()
89 assertEquals(WifiP2pMonitor.SUP_CONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastEventToTwoHandlers()
101 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastEventWhenIfaceIsNull() local
102 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventWhenIfaceIsNull()
[all …]
DWifiP2pServiceImplTest.java7156 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in verifySetConnectionRequestResult() local
7157 verify(mClientHandler, times(4)).sendMessage(messageCaptor.capture()); in verifySetConnectionRequestResult()
7158 List<Message> messages = messageCaptor.getAllValues(); in verifySetConnectionRequestResult()
7167 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in verifySetConnectionRequestResult() local
7169 messageCaptor.capture()); in verifySetConnectionRequestResult()
7170 List<Message> messages = messageCaptor.getAllValues(); in verifySetConnectionRequestResult()
7227 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in verifyMultiApproverMatch() local
7228 verify(mClientHandler, times(3)).sendMessage(messageCaptor.capture()); in verifyMultiApproverMatch()
7229 List<Message> messages = messageCaptor.getAllValues(); in verifyMultiApproverMatch()
7312 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testSetConnectionRequestResultFailureWithoutSavedPeerConfig() local
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBassClientServiceTest.java733 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testStopSearchingForSources_addSourceCauseSyncEvenWithoutScanning() local
734 verify(sm, never()).sendMessage(messageCaptor.capture()); in testStopSearchingForSources_addSourceCauseSyncEvenWithoutScanning()
737 messageCaptor.getAllValues().stream() in testStopSearchingForSources_addSourceCauseSyncEvenWithoutScanning()
760 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testStopSearchingForSources_addSourceCauseSyncEvenWithoutScanning() local
761 verify(sm, atLeast(1)).sendMessage(messageCaptor.capture()); in testStopSearchingForSources_addSourceCauseSyncEvenWithoutScanning()
764 messageCaptor.getAllValues().stream() in testStopSearchingForSources_addSourceCauseSyncEvenWithoutScanning()
966 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in verifyAddSourceForGroup() local
967 verify(sm, atLeast(1)).sendMessage(messageCaptor.capture()); in verifyAddSourceForGroup()
970 messageCaptor.getAllValues().stream() in verifyAddSourceForGroup()
1216 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testModifySourceForGroup() local
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsReplySenderTest.kt170 val messageCaptor = ArgumentCaptor.forClass(Message::class.java) in verifyMessageQueued() constant
174 handlerCaptor.capture(), messageCaptor.capture(), eq(reply.sendDelayMs)) in verifyMessageQueued()
176 return Pair(handlerCaptor.value, messageCaptor.value) in verifyMessageQueued()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarProjectionServiceTest.java520 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in assertMessageSent() local
521 verify(mMessenger).send(messageCaptor.capture()); in assertMessageSent()
522 Message message = messageCaptor.getValue(); in assertMessageSent()
DCarInputServiceTest.java1354 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in flushHandler() local
1356 verify(mHandler, atLeast(0)).sendMessageAtTime(messageCaptor.capture(), anyLong()); in flushHandler()
1358 for (Message message : messageCaptor.getAllValues()) { in flushHandler()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastListActivityTest.java739 ArgumentCaptor<SmsCbMessage> messageCaptor = ArgumentCaptor.forClass(SmsCbMessage.class); in testCursorAdaptorBindViewForWatch() local
740 verify(mockListItemView).bind(messageCaptor.capture()); in testCursorAdaptorBindViewForWatch()
741 assertEquals("testAlert", messageCaptor.getValue().getMessageBody()); in testCursorAdaptorBindViewForWatch()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTelephonyConnectionServiceTest.java1236 ArgumentCaptor<Integer> messageCaptor = ArgumentCaptor.forClass(Integer.class); in testSuppServiceNotification() local
1238 messageCaptor.capture(), any()); in testSuppServiceNotification()
1240 int message = messageCaptor.getValue(); in testSuppServiceNotification()