Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMonitorTest.java85 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited() local
86 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
87 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
88 assertEquals(WifiManager.WPS_TKIP_ONLY_PROHIBITED, messageCaptor.getValue().arg1); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
103 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToErrorWepProhibhited() local
104 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
105 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
106 assertEquals(WifiManager.WPS_WEP_PROHIBITED, messageCaptor.getValue().arg1); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
121 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToConfigAuthError() local
122 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigAuthError()
[all …]
DWifiNetworkFactoryTest.java1075 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testNetworkSpecifierHandleUserSelectionConnectToNetwork() local
1076 verify(mClientModeImpl).sendMessage(messageCaptor.capture()); in testNetworkSpecifierHandleUserSelectionConnectToNetwork()
1078 Message message = messageCaptor.getValue(); in testNetworkSpecifierHandleUserSelectionConnectToNetwork()
1119 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork() local
1120 verify(mClientModeImpl).sendMessage(messageCaptor.capture()); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork()
1122 Message message = messageCaptor.getValue(); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork()
1177 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testNetworkSpecifierHandleUserSelectionConnectToNetworkUsingLiteralSsidAndBssidMatch() local
1178 verify(mClientModeImpl).sendMessage(messageCaptor.capture()); in testNetworkSpecifierHandleUserSelectionConnectToNetworkUsingLiteralSsidAndBssidMatch()
1180 Message message = messageCaptor.getValue(); in testNetworkSpecifierHandleUserSelectionConnectToNetworkUsingLiteralSsidAndBssidMatch()
1236 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testNetworkSpecifierHandleUserSelectionConnectToNetworkMultipleBssidMatches() local
[all …]
DWificondControlTest.java829 ArgumentCaptor<IScanEvent> messageCaptor = ArgumentCaptor.forClass(IScanEvent.class); in testScanResultEvent() local
830 verify(mWifiScannerImpl).subscribeScanEvents(messageCaptor.capture()); in testScanResultEvent()
831 IScanEvent scanEvent = messageCaptor.getValue(); in testScanResultEvent()
845 ArgumentCaptor<IScanEvent> messageCaptor = ArgumentCaptor.forClass(IScanEvent.class); in testScanFailedEvent() local
846 verify(mWifiScannerImpl).subscribeScanEvents(messageCaptor.capture()); in testScanFailedEvent()
847 IScanEvent scanEvent = messageCaptor.getValue(); in testScanFailedEvent()
860 ArgumentCaptor<IPnoScanEvent> messageCaptor = ArgumentCaptor.forClass(IPnoScanEvent.class); in testPnoScanResultEvent() local
861 verify(mWifiScannerImpl).subscribePnoScanEvents(messageCaptor.capture()); in testPnoScanResultEvent()
862 IPnoScanEvent pnoScanEvent = messageCaptor.getValue(); in testPnoScanResultEvent()
873 ArgumentCaptor<IPnoScanEvent> messageCaptor = ArgumentCaptor.forClass(IPnoScanEvent.class); in testPnoScanEventsForMetrics() local
[all …]
/frameworks/base/tests/utils/testutils/java/android/os/test/
DTestLooperTest.java80 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testNoTimeMovement() local
88 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
89 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
90 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
91 collector.checkThat("2: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
92 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
93 collector.checkThat("3: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
94 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
95 collector.checkThat("4: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
138 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testDelayedDispatchNoTimeMove() local
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pMonitorTest.java67 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastSupplicantDisconnectionEvent() local
68 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastSupplicantDisconnectionEvent()
69 assertEquals(WifiP2pMonitor.SUP_DISCONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastSupplicantDisconnectionEvent()
83 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastEventToTwoHandlers() local
84 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventToTwoHandlers()
85 assertEquals(WifiP2pMonitor.SUP_CONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastEventToTwoHandlers()
86 verify(mSecondHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventToTwoHandlers()
87 assertEquals(WifiP2pMonitor.SUP_CONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastEventToTwoHandlers()
99 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastEventWhenIfaceIsNull() local
100 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventWhenIfaceIsNull()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java198 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in verifyHandleMessageAndGetMessage() local
199 order.verify(handler).handleMessage(messageCaptor.capture()); in verifyHandleMessageAndGetMessage()
200 return messageCaptor.getValue(); in verifyHandleMessageAndGetMessage()
318 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in verifyMultipleSingleScanResults() local
320 .handleMessage(messageCaptor.capture()); in verifyMultipleSingleScanResults()
321 int firstListenerId = messageCaptor.getAllValues().get(0).arg2; in verifyMultipleSingleScanResults()
327 messageCaptor.getAllValues().get(0)); in verifyMultipleSingleScanResults()
328 assertSingleScanCompletedMessage(requestId2, messageCaptor.getAllValues().get(1)); in verifyMultipleSingleScanResults()
331 messageCaptor.getAllValues().get(2)); in verifyMultipleSingleScanResults()
332 assertSingleScanCompletedMessage(requestId1, messageCaptor.getAllValues().get(3)); in verifyMultipleSingleScanResults()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAlarmManagerServiceTest.java664 final ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in assertAndHandleBucketChanged() local
665 verify(mService.mHandler, atLeastOnce()).sendMessage(messageCaptor.capture()); in assertAndHandleBucketChanged()
666 final Message lastMessage = messageCaptor.getValue(); in assertAndHandleBucketChanged()
728 final ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in assertAndHandleParoleChanged() local
729 verify(mService.mHandler, atLeastOnce()).sendMessage(messageCaptor.capture()); in assertAndHandleParoleChanged()
730 final Message lastMessage = messageCaptor.getValue(); in assertAndHandleParoleChanged()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java1904 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in verifyUnfullfillableDispatched() local
1906 verify(messenger, atLeastOnce()).send(messageCaptor.capture()); in verifyUnfullfillableDispatched()
1907 assertEquals(NetworkFactory.EVENT_UNFULFILLABLE_REQUEST, messageCaptor.getValue().what); in verifyUnfullfillableDispatched()