Home
last modified time | relevance | path

Searched refs:messageCaptor (Results 1 – 9 of 9) 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 …]
DClientModeImplTest.java2574 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in expectUnregisterNetworkAgent() local
2576 verify(mNetworkAgentHandler).handleMessage(messageCaptor.capture()); in expectUnregisterNetworkAgent()
2577 Message message = messageCaptor.getValue(); in expectUnregisterNetworkAgent()
2588 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in expectNetworkAgentUpdateCapabilities() local
2590 verify(mNetworkAgentHandler).handleMessage(messageCaptor.capture()); in expectNetworkAgentUpdateCapabilities()
2591 Message message = messageCaptor.getValue(); in expectNetworkAgentUpdateCapabilities()
/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.java68 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastSupplicantDisconnectionEvent() local
69 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastSupplicantDisconnectionEvent()
70 assertEquals(WifiP2pMonitor.SUP_DISCONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastSupplicantDisconnectionEvent()
84 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastEventToTwoHandlers() local
85 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventToTwoHandlers()
86 assertEquals(WifiP2pMonitor.SUP_CONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastEventToTwoHandlers()
87 verify(mSecondHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventToTwoHandlers()
88 assertEquals(WifiP2pMonitor.SUP_CONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastEventToTwoHandlers()
100 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastEventWhenIfaceIsNull() local
101 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventWhenIfaceIsNull()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/nl80211/
DWifiNl80211ManagerTest.java608 ArgumentCaptor<IScanEvent> messageCaptor = ArgumentCaptor.forClass(IScanEvent.class); in testScanResultEvent() local
609 verify(mWifiScannerImpl).subscribeScanEvents(messageCaptor.capture()); in testScanResultEvent()
610 IScanEvent scanEvent = messageCaptor.getValue(); in testScanResultEvent()
623 ArgumentCaptor<IScanEvent> messageCaptor = ArgumentCaptor.forClass(IScanEvent.class); in testScanFailedEvent() local
624 verify(mWifiScannerImpl).subscribeScanEvents(messageCaptor.capture()); in testScanFailedEvent()
625 IScanEvent scanEvent = messageCaptor.getValue(); in testScanFailedEvent()
638 ArgumentCaptor<IPnoScanEvent> messageCaptor = ArgumentCaptor.forClass(IPnoScanEvent.class); in testPnoScanResultEvent() local
639 verify(mWifiScannerImpl).subscribePnoScanEvents(messageCaptor.capture()); in testPnoScanResultEvent()
640 IPnoScanEvent pnoScanEvent = messageCaptor.getValue(); in testPnoScanResultEvent()
651 ArgumentCaptor<IPnoScanEvent> messageCaptor = ArgumentCaptor.forClass(IPnoScanEvent.class); in testPnoScanEventsForMetrics() local
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java228 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in verifyHandleMessageAndGetMessage() local
229 order.verify(handler).handleMessage(messageCaptor.capture()); in verifyHandleMessageAndGetMessage()
230 return messageCaptor.getValue(); in verifyHandleMessageAndGetMessage()
348 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in verifyMultipleSingleScanResults() local
350 .handleMessage(messageCaptor.capture()); in verifyMultipleSingleScanResults()
351 int firstListenerId = messageCaptor.getAllValues().get(0).arg2; in verifyMultipleSingleScanResults()
357 messageCaptor.getAllValues().get(0)); in verifyMultipleSingleScanResults()
358 assertSingleScanCompletedMessage(requestId2, messageCaptor.getAllValues().get(1)); in verifyMultipleSingleScanResults()
361 messageCaptor.getAllValues().get(2)); in verifyMultipleSingleScanResults()
362 assertSingleScanCompletedMessage(requestId1, messageCaptor.getAllValues().get(3)); in verifyMultipleSingleScanResults()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java1245 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testReapplyUiccApplicationEnablementSuccess() local
1246 verify(mMockCi, times(1)).enableUiccApplications(eq(true), messageCaptor.capture()); in testReapplyUiccApplicationEnablementSuccess()
1248 AsyncResult.forMessage(messageCaptor.getValue(), null, null); in testReapplyUiccApplicationEnablementSuccess()
1249 messageCaptor.getValue().sendToTarget(); in testReapplyUiccApplicationEnablementSuccess()
1283 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testReapplyUiccApplicationEnablementRetry() local
1284 verify(mMockCi).enableUiccApplications(eq(true), messageCaptor.capture()); in testReapplyUiccApplicationEnablementRetry()
1288 AsyncResult.forMessage(messageCaptor.getValue(), null, new CommandException( in testReapplyUiccApplicationEnablementRetry()
1290 messageCaptor.getValue().sendToTarget(); in testReapplyUiccApplicationEnablementRetry()
1295 verify(mMockCi).enableUiccApplications(eq(true), messageCaptor.capture()); in testReapplyUiccApplicationEnablementRetry()
1300 AsyncResult.forMessage(messageCaptor.getValue(), null, new CommandException( in testReapplyUiccApplicationEnablementRetry()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DAppIntegrityManagerServiceImplTest.java515 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in runJobInHandler() local
517 verify(mHandler).sendMessageAtTime(messageCaptor.capture(), anyLong()); in runJobInHandler()
518 messageCaptor.getValue().getCallback().run(); in runJobInHandler()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAlarmManagerServiceTest.java661 final ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in assertAndHandleMessageSync() local
662 verify(mService.mHandler, atLeastOnce()).sendMessage(messageCaptor.capture()); in assertAndHandleMessageSync()
663 final Message lastMessage = messageCaptor.getValue(); in assertAndHandleMessageSync()