Home
last modified time | relevance | path

Searched refs:actionListener (Results 1 – 11 of 11) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DServReqClearRequestTestCase.java38 ActionListenerTest actionListener = new ActionListenerTest(); in executeTest() local
55 mP2pMgr.addServiceRequest(mChannel, upnpReq1, actionListener); in executeTest()
56 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
60 mP2pMgr.addServiceRequest(mChannel, upnpReq2, actionListener); in executeTest()
61 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
65 mP2pMgr.addServiceRequest(mChannel, bonjourReq1, actionListener); in executeTest()
66 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
70 mP2pMgr.addServiceRequest(mChannel, bonjourReq2, actionListener); in executeTest()
71 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
79 mP2pMgr.clearServiceRequests(mChannel, actionListener); in executeTest()
[all …]
DServReqRemoveRequestTestCase.java38 ActionListenerTest actionListener = new ActionListenerTest(); in executeTest() local
55 mP2pMgr.addServiceRequest(mChannel, upnpReq1, actionListener); in executeTest()
56 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
60 mP2pMgr.addServiceRequest(mChannel, upnpReq2, actionListener); in executeTest()
61 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
65 mP2pMgr.addServiceRequest(mChannel, bonjourReq1, actionListener); in executeTest()
66 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
70 mP2pMgr.addServiceRequest(mChannel, bonjourReq2, actionListener); in executeTest()
71 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
79 mP2pMgr.removeServiceRequest(mChannel, upnpReq1, actionListener); in executeTest()
[all …]
DServReqMultiClientTestCase03.java38 ActionListenerTest actionListener = new ActionListenerTest(); in executeTest() local
46 mP2pMgr.addServiceRequest(mChannel, bonjourReq, actionListener); in executeTest()
47 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
56 mP2pMgr.removeServiceRequest(mSubChannel, bonjourReq, actionListener); in executeTest()
57 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
66 mP2pMgr.clearServiceRequests(mSubChannel, actionListener); in executeTest()
67 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
99 mP2pMgr.discoverServices(mChannel, actionListener); in executeTest()
100 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
DConnectReqTestCase.java94 ActionListenerTest actionListener = new ActionListenerTest(); in connectTest() local
95 mP2pMgr.discoverPeers(mChannel, actionListener); in connectTest()
96 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in connectTest()
129 mP2pMgr.connect(mChannel, config, actionListener); in connectTest()
130 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in connectTest()
156 mP2pMgr.removeGroup(mChannel, actionListener); in connectTest()
157 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in connectTest()
195 ActionListenerTest actionListener = new ActionListenerTest(); in connectTest() local
196 mP2pMgr.discoverPeers(mChannel, actionListener); in connectTest()
197 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in connectTest()
[all …]
DServReqMultiClientTestCase02.java38 ActionListenerTest actionListener = new ActionListenerTest(); in executeTest() local
51 mP2pMgr.addServiceRequest(mChannel, bonjourIppPtrReq, actionListener); in executeTest()
52 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
60 mP2pMgr.addServiceRequest(mSubChannel, bonjourAfpTxtReq, actionListener); in executeTest()
61 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
93 mP2pMgr.discoverServices(mChannel, actionListener); in executeTest()
94 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
DServReqMultiClientTestCase01.java39 ActionListenerTest actionListener = new ActionListenerTest(); in executeTest() local
51 mP2pMgr.addServiceRequest(mChannel, upnpReq, actionListener); in executeTest()
52 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
60 mP2pMgr.addServiceRequest(mSubChannel, bonjourReq, actionListener); in executeTest()
61 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
93 mP2pMgr.discoverServices(mChannel, actionListener); in executeTest()
94 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
DServReqTestCase.java56 ActionListenerTest actionListener = new ActionListenerTest(); in searchTest() local
68 mP2pMgr.addServiceRequest(mChannel, req, actionListener); in searchTest()
69 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in searchTest()
84 mP2pMgr.discoverServices(mChannel, actionListener); in searchTest()
85 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in searchTest()
DP2pClientPinTestCase.java51 ActionListenerTest actionListener = new ActionListenerTest(); in checkBonjourService() local
58 mP2pMgr.addServiceRequest(mSubChannel, bonjourReq, actionListener); in checkBonjourService()
59 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in checkBonjourService()
83 mP2pMgr.discoverServices(mChannel, actionListener); in checkBonjourService()
84 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in checkBonjourService()
DP2pClientPbcTestCase.java51 ActionListenerTest actionListener = new ActionListenerTest(); in checkUpnpService() local
61 mP2pMgr.addServiceRequest(mChannel, upnpReq, actionListener); in checkUpnpService()
62 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in checkUpnpService()
86 mP2pMgr.discoverServices(mChannel, actionListener); in checkUpnpService()
87 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in checkUpnpService()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DTestHelper.java324 TestActionListener actionListener = new TestActionListener(countDownLatchAl); in testConnectionFlowWithConnect() local
341 mWifiManager.connect(network, actionListener); in testConnectionFlowWithConnect()
346 assertThat(actionListener.onSuccessCalled).isTrue(); in testConnectionFlowWithConnect()
DWifiManagerTest.java2511 TestActionListener actionListener = new TestActionListener(mLock); in testConnect() local
2532 mWifiManager.connect(savedNetworkToConnect.networkId, actionListener); in testConnect()
2534 mWifiManager.connect(savedNetworkToConnect, actionListener); in testConnect()
2542 assertTrue(actionListener.onSuccessCalled); in testConnect()
2651 TestActionListener actionListener = new TestActionListener(mLock); in testSave() local
2695 mWifiManager.save(modSavedNetwork, actionListener); in testSave()
2702 assertTrue(actionListener.onSuccessCalled); in testSave()
2734 TestActionListener actionListener = new TestActionListener(mLock); in testForget() local
2767 mWifiManager.forget(newNetworkId, actionListener); in testForget()
2774 assertTrue(actionListener.onSuccessCalled); in testForget()
[all …]