Home
last modified time | relevance | path

Searched refs:cb1 (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DModelMultiCallbacksTest.java78 MyCallbacks cb1 = spy(MyCallbacks.class); in testTwoCallbacks_loadedTogether() local
79 Executors.MAIN_EXECUTOR.execute(() -> mModelHelper.getModel().addCallbacksAndLoad(cb1)); in testTwoCallbacks_loadedTogether()
82 cb1.verifySynchronouslyBound(3); in testTwoCallbacks_loadedTogether()
85 cb1.reset(); in testTwoCallbacks_loadedTogether()
91 assertFalse(cb1.bindStarted); in testTwoCallbacks_loadedTogether()
95 cb1.reset(); in testTwoCallbacks_loadedTogether()
101 assertNull(cb1.mPendingTasks); in testTwoCallbacks_loadedTogether()
107 cb1.verifySynchronouslyBound(3); in testTwoCallbacks_loadedTogether()
117 MyCallbacks cb1 = spy(MyCallbacks.class); in testTwoCallbacks_receiveUpdates() local
119 Executors.MAIN_EXECUTOR.execute(() -> mModelHelper.getModel().addCallbacksAndLoad(cb1)); in testTwoCallbacks_receiveUpdates()
[all …]
/packages/modules/Bluetooth/system/common/
Dbase_bind_unittest.cc68 base::Callback<void()> cb1 = base::Bind(&func_a, 1); in TEST_F() local
69 cb1.Run(); in TEST_F()
100 base::Callback<void()> cb1 = base::Bind(&func_a, 1); in TEST_F() local
101 cb1.Run(); in TEST_F()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNsdServiceTest.java150 final INsdManagerCallback cb1 = getCallback(); in testPreSClients() local
151 final IBinder.DeathRecipient deathRecipient1 = verifyLinkToDeath(cb1); in testPreSClients()
183 final INsdManagerCallback cb1 = getCallback(); in testNoDaemonStartedWhenClientsConnect() local
184 final IBinder.DeathRecipient deathRecipient1 = verifyLinkToDeath(cb1); in testNoDaemonStartedWhenClientsConnect()
218 final INsdManagerCallback cb1 = getCallback(); in testClientRequestsAreGCedAtDisconnection() local
219 final IBinder.DeathRecipient deathRecipient = verifyLinkToDeath(cb1); in testClientRequestsAreGCedAtDisconnection()
270 final INsdManagerCallback cb1 = getCallback(); in testCleanupDelayNoRequestActive() local
271 final IBinder.DeathRecipient deathRecipient = verifyLinkToDeath(cb1); in testCleanupDelayNoRequestActive()
/packages/modules/StatsD/statsd/tests/external/
DStatsPullerManager_test.cpp91 shared_ptr<FakePullAtomCallback> cb1 = SharedRefBase::make<FakePullAtomCallback>(uid1); in createPullerManagerAndRegister() local
92 pullerManager->RegisterPullAtomCallback(uid1, pullTagId1, coolDownNs, timeoutNs, {}, cb1); in createPullerManagerAndRegister()
95 pullerManager->RegisterPullAtomCallback(uid1, pullTagId2, coolDownNs, timeoutNs, {}, cb1); in createPullerManagerAndRegister()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DEthernetManagerTest.kt518 val cb1 = requestNetwork(ETH_REQUEST.createCopyWithEthernetSpecifier(iface1.interfaceName)) in testNetworkRequest_withMultipleInterfacesAndRequests() constant
522 cb1.expectAvailable() in testNetworkRequest_withMultipleInterfacesAndRequests()
526 cb1.assertNotLost() in testNetworkRequest_withMultipleInterfacesAndRequests()
530 releaseNetwork(cb1) in testNetworkRequest_withMultipleInterfacesAndRequests()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkProviderTest.kt264 val cb1 = ConnectivityManager.NetworkCallback() in <lambda>() constant
265 mCm.requestNetwork(nrNoNotVcn, cb1) in <lambda>()
271 mCm.unregisterNetworkCallback(cb1) in <lambda>()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DHalDeviceManagerTest.java656 HalDeviceManager.InterfaceRttControllerLifecycleCallback cb1 = mock( in testAndTriggerRttLifecycleCallbacksMultiModeChip() local
666 InOrder io1 = inOrder(cb1); in testAndTriggerRttLifecycleCallbacksMultiModeChip()
690 mDut.registerRttControllerLifecycleCallback(cb1, mHandler); in testAndTriggerRttLifecycleCallbacksMultiModeChip()
693 io1.verify(cb1).onNewRttController(mRttControllerMock); in testAndTriggerRttLifecycleCallbacksMultiModeChip()
697 mDut.registerRttControllerLifecycleCallback(cb1, mHandler); in testAndTriggerRttLifecycleCallbacksMultiModeChip()
716 io1.verify(cb1).onRttControllerDestroyed(); in testAndTriggerRttLifecycleCallbacksMultiModeChip()
733 io1.verify(cb1).onNewRttController(mRttControllerMock); in testAndTriggerRttLifecycleCallbacksMultiModeChip()
736 verifyNoMoreInteractions(cb1, cb2); in testAndTriggerRttLifecycleCallbacksMultiModeChip()