Home
last modified time | relevance | path

Searched refs:cb2 (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DModelMultiCallbacksTest.java94 MyCallbacks cb2 = spy(MyCallbacks.class); in testTwoCallbacks_loadedTogether() local
95 cb2.mPageToBindSync = 2; in testTwoCallbacks_loadedTogether()
96 mModelHelper.getModel().addCallbacksAndLoad(cb2); in testTwoCallbacks_loadedTogether()
100 cb2.verifySynchronouslyBound(3); in testTwoCallbacks_loadedTogether()
104 cb2.reset(); in testTwoCallbacks_loadedTogether()
107 mModelHelper.getModel().removeCallbacks(cb2); in testTwoCallbacks_loadedTogether()
110 assertNull(cb2.mDeferredExecutor); in testTwoCallbacks_loadedTogether()
116 assertNull(cb2.mDeferredExecutor); in testTwoCallbacks_loadedTogether()
124 MyCallbacks cb2 = spy(MyCallbacks.class); in testTwoCallbacks_receiveUpdates() local
126 mModelHelper.getModel().addCallbacksAndLoad(cb2); in testTwoCallbacks_receiveUpdates()
[all …]
/packages/modules/StatsD/statsd/tests/external/
DStatsPullerManager_test.cpp93 shared_ptr<FakePullAtomCallback> cb2 = SharedRefBase::make<FakePullAtomCallback>(uid2); in createPullerManagerAndRegister() local
94 pullerManager->RegisterPullAtomCallback(uid2, pullTagId1, coolDownNs, timeoutNs, {}, cb2); in createPullerManagerAndRegister()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkProviderTest.kt285 val cb2 = ConnectivityManager.NetworkCallback() in <lambda>() constant
286 mCm.requestNetwork(nrNotVcn, cb2) in <lambda>()
346 mCm.unregisterNetworkCallback(cb2) in <lambda>()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/source/
DMediaBrowserConnectorTest.java171 MediaBrowserCompat.ConnectionCallback cb2 = mConnectionCallback; in testConnectionCallback_onConnectedIgnoredWhenLate() local
173 cb2.onConnected(); in testConnectionCallback_onConnectedIgnoredWhenLate()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DHalDeviceManagerTest.java588 HalDeviceManager.InterfaceRttControllerLifecycleCallback cb2 = mock( in testAndTriggerRttLifecycleCallbacksMultiModeChip() local
592 InOrder io2 = inOrder(cb2); in testAndTriggerRttLifecycleCallbacksMultiModeChip()
621 mDut.registerRttControllerLifecycleCallback(cb2, mHandler); in testAndTriggerRttLifecycleCallbacksMultiModeChip()
624 io2.verify(cb2).onNewRttController(mRttControllerMock); in testAndTriggerRttLifecycleCallbacksMultiModeChip()
640 io2.verify(cb2).onRttControllerDestroyed(); in testAndTriggerRttLifecycleCallbacksMultiModeChip()
656 io2.verify(cb2).onNewRttController(mRttControllerMock); in testAndTriggerRttLifecycleCallbacksMultiModeChip()
658 verifyNoMoreInteractions(cb1, cb2); in testAndTriggerRttLifecycleCallbacksMultiModeChip()