/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMonitorTest.java | 85 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 …]
|
D | WificondControlTest.java | 830 ArgumentCaptor<IScanEvent> messageCaptor = ArgumentCaptor.forClass(IScanEvent.class); in testScanResultEvent() local 831 verify(mWifiScannerImpl).subscribeScanEvents(messageCaptor.capture()); in testScanResultEvent() 832 IScanEvent scanEvent = messageCaptor.getValue(); in testScanResultEvent() 846 ArgumentCaptor<IScanEvent> messageCaptor = ArgumentCaptor.forClass(IScanEvent.class); in testScanFailedEvent() local 847 verify(mWifiScannerImpl).subscribeScanEvents(messageCaptor.capture()); in testScanFailedEvent() 848 IScanEvent scanEvent = messageCaptor.getValue(); in testScanFailedEvent() 861 ArgumentCaptor<IPnoScanEvent> messageCaptor = ArgumentCaptor.forClass(IPnoScanEvent.class); in testPnoScanResultEvent() local 862 verify(mWifiScannerImpl).subscribePnoScanEvents(messageCaptor.capture()); in testPnoScanResultEvent() 863 IPnoScanEvent pnoScanEvent = messageCaptor.getValue(); in testPnoScanResultEvent() 874 ArgumentCaptor<IPnoScanEvent> messageCaptor = ArgumentCaptor.forClass(IPnoScanEvent.class); in testPnoScanEventsForMetrics() local [all …]
|
D | WifiNetworkFactoryTest.java | 1076 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testNetworkSpecifierHandleUserSelectionConnectToNetwork() local 1077 verify(mClientModeImpl).sendMessage(messageCaptor.capture()); in testNetworkSpecifierHandleUserSelectionConnectToNetwork() 1079 Message message = messageCaptor.getValue(); in testNetworkSpecifierHandleUserSelectionConnectToNetwork() 1187 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork() local 1188 verify(mClientModeImpl).sendMessage(messageCaptor.capture()); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork() 1190 Message message = messageCaptor.getValue(); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork() 1245 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testNetworkSpecifierHandleUserSelectionConnectToNetworkUsingLiteralSsidAndBssidMatch() local 1246 verify(mClientModeImpl).sendMessage(messageCaptor.capture()); in testNetworkSpecifierHandleUserSelectionConnectToNetworkUsingLiteralSsidAndBssidMatch() 1248 Message message = messageCaptor.getValue(); in testNetworkSpecifierHandleUserSelectionConnectToNetworkUsingLiteralSsidAndBssidMatch() 1304 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testNetworkSpecifierHandleUserSelectionConnectToNetworkMultipleBssidMatches() local [all …]
|
/frameworks/base/tests/utils/testutils/java/android/os/test/ |
D | TestLooperTest.java | 80 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/ |
D | WifiP2pMonitorTest.java | 67 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/ |
D | WifiScanningServiceTest.java | 198 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaPhoneTest.java | 1283 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testReapplyUiccApplicationEnablementSuccess() local 1284 verify(mMockCi, times(1)).enableUiccApplications(eq(true), messageCaptor.capture()); in testReapplyUiccApplicationEnablementSuccess() 1286 AsyncResult.forMessage(messageCaptor.getValue(), null, null); in testReapplyUiccApplicationEnablementSuccess() 1287 messageCaptor.getValue().sendToTarget(); in testReapplyUiccApplicationEnablementSuccess() 1321 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testReapplyUiccApplicationEnablementRetry() local 1322 verify(mMockCi).enableUiccApplications(eq(true), messageCaptor.capture()); in testReapplyUiccApplicationEnablementRetry() 1326 AsyncResult.forMessage(messageCaptor.getValue(), null, new CommandException( in testReapplyUiccApplicationEnablementRetry() 1328 messageCaptor.getValue().sendToTarget(); in testReapplyUiccApplicationEnablementRetry() 1333 verify(mMockCi).enableUiccApplications(eq(true), messageCaptor.capture()); in testReapplyUiccApplicationEnablementRetry() 1338 AsyncResult.forMessage(messageCaptor.getValue(), null, new CommandException( in testReapplyUiccApplicationEnablementRetry() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AlarmManagerServiceTest.java | 671 final ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in assertAndHandleMessageSync() local 672 verify(mService.mHandler, atLeastOnce()).sendMessage(messageCaptor.capture()); in assertAndHandleMessageSync() 673 final Message lastMessage = messageCaptor.getValue(); in assertAndHandleMessageSync()
|