Home
last modified time | relevance | path

Searched refs:listener2 (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/tests/net/java/android/net/nsd/
DNsdManagerTest.java112 NsdManager.ResolveListener listener2 = mock(NsdManager.ResolveListener.class); in testParallelResolveService() local
117 manager.resolveService(request, listener2); in testParallelResolveService()
124 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testParallelResolveService()
136 NsdManager.RegistrationListener listener2 = mock(NsdManager.RegistrationListener.class); in testRegisterService() local
142 manager.registerService(request2, PROTOCOL, listener2); in testRegisterService()
147 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceRegistered(request2); in testRegisterService()
169 manager.unregisterService(listener2); in testRegisterService()
174 verify(listener2, timeout(mTimeoutMs).times(1)).onUnregistrationFailed(request2, err); in testRegisterService()
269 NsdManager.DiscoveryListener listener2 = mock(NsdManager.DiscoveryListener.class); in testInvalidCalls() local
296 mustFail(() -> { manager.discoverServices(null, PROTOCOL, listener2); }); in testInvalidCalls()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImplTest.kt48 val listener2 = mock(ConfigurationListener::class.java) in testRemoveListenerDuringCallback() constant
49 mConfigurationController.addCallback(listener2) in testRemoveListenerDuringCallback()
52 mConfigurationController.removeCallback(listener2) in testRemoveListenerDuringCallback()
58 verify(listener2, never()).onThemeChanged() in testRemoveListenerDuringCallback()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_smoke_test.cpp525 sp<DumpstateListener> listener2(new DumpstateListener(dup(fileno(stdout)))); in TEST_F() local
527 Dumpstate::BugreportMode::BUGREPORT_INTERACTIVE, listener2); in TEST_F()
529 WaitTillExecutionComplete(listener2.get()); in TEST_F()
530 EXPECT_EQ(listener2->getErrorCode(), in TEST_F()
/frameworks/base/tests/net/java/com/android/server/
DNsdServiceTest.java127 NsdManager.DiscoveryListener listener2 = mock(NsdManager.DiscoveryListener.class); in testClientRequestsAreGCedAtDisconnection() local
128 client.discoverServices("a_type", PROTOCOL, listener2); in testClientRequestsAreGCedAtDisconnection()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanRequestProxyTest.java508 WifiScanner.ScanListener listener2; in testSuccessiveScanRequestsDontUseSameListener() local
519 listener2 = mScanRequestListenerArgumentCaptor.getValue(); in testSuccessiveScanRequestsDontUseSameListener()
521 assertNotEquals(listener1, listener2); in testSuccessiveScanRequestsDontUseSameListener()
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java291 final RegisteredServicesCacheListener<V> listener2 = listener; in notifyListener() local
294 listener2.onServiceChanged(type, userId, removed); in notifyListener()