Home
last modified time | relevance | path

Searched refs:listener1 (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tests/net/java/android/net/nsd/
DNsdManagerTest.java111 NsdManager.ResolveListener listener1 = mock(NsdManager.ResolveListener.class); in testParallelResolveService() local
114 manager.resolveService(request, listener1); in testParallelResolveService()
123 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testParallelResolveService()
135 NsdManager.RegistrationListener listener1 = mock(NsdManager.RegistrationListener.class); in testRegisterService() local
139 manager.registerService(request1, PROTOCOL, listener1); in testRegisterService()
151 verify(listener1, timeout(mTimeoutMs).times(1)).onRegistrationFailed(request1, err); in testRegisterService()
154 manager.registerService(request1, PROTOCOL, listener1); in testRegisterService()
158 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceRegistered(request1); in testRegisterService()
161 manager.unregisterService(listener1); in testRegisterService()
166 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceUnregistered(request1); in testRegisterService()
[all …]
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_smoke_test.cpp518 sp<DumpstateListener> listener1(new DumpstateListener(dup(fileno(stdout)))); in TEST_F() local
521 Dumpstate::BugreportMode::BUGREPORT_INTERACTIVE, listener1); in TEST_F()
534 WaitTillExecutionComplete(listener1.get()); in TEST_F()
539 listener1->getErrorCode() == IDumpstateListener::BUGREPORT_ERROR_USER_DENIED_CONSENT || in TEST_F()
540 listener1->getErrorCode() == IDumpstateListener::BUGREPORT_ERROR_USER_CONSENT_TIMED_OUT); in TEST_F()
/frameworks/base/tests/net/java/com/android/server/
DNsdServiceTest.java122 NsdManager.RegistrationListener listener1 = mock(NsdManager.RegistrationListener.class); in testClientRequestsAreGCedAtDisconnection() local
123 client.registerService(request, PROTOCOL, listener1); in testClientRequestsAreGCedAtDisconnection()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanRequestProxyTest.java507 WifiScanner.ScanListener listener1; in testSuccessiveScanRequestsDontUseSameListener() local
513 listener1 = mScanRequestListenerArgumentCaptor.getValue(); in testSuccessiveScanRequestsDontUseSameListener()
521 assertNotEquals(listener1, listener2); in testSuccessiveScanRequestsDontUseSameListener()