Home
last modified time | relevance | path

Searched refs:callback2 (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DDumpControllerTest.kt39 @Mock private lateinit var callback2: Dumpable variable in com.android.systemui.DumpControllerTest
68 addListener(callback2) in testListenersCalledOnDump()
74 verify(callback2 /* only once */).dump(fd, pw, args) in testListenersCalledOnDump()
81 addListener(callback2) in testRemoveListener()
88 verify(callback2 /* only once */).dump(fd, pw, args) in testRemoveListener()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DCallbackRegistryTest.java32 final Integer callback2 = 2; field in CallbackRegistryTest
44 } else if (callback == callback2) { in addNotifyCount()
103 registry.add(callback2); in testSimpleNotify()
119 registry.remove(callback2); in testRemoveWhileNotifying()
125 registry.add(callback2); in testRemoveWhileNotifying()
150 registry.add(callback2); in testDeepRemoveWhileNotifying()
170 registry.remove(callback2); in testAddRemovedListener()
172 registry.add(callback2); in testAddRemovedListener()
179 registry.add(callback2); in testAddRemovedListener()
187 assertEquals(callback2, callbacks.get(2)); in testAddRemovedListener()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DClientTransactionTests.java50 ClientTransactionItem callback2 = mock(ClientTransactionItem.class); in testPreExecute() local
58 transaction.addCallback(callback2); in testPreExecute()
64 verify(callback2, times(1)).preExecute(clientTransactionHandler, token); in testPreExecute()
DTransactionExecutorTests.java224 ClientTransactionItem callback2 = mock(ClientTransactionItem.class); in testTransactionResolution() local
225 when(callback2.getPostExecutionState()).thenReturn(UNDEFINED); in testTransactionResolution()
232 transaction.addCallback(callback2); in testTransactionResolution()
238 InOrder inOrder = inOrder(mTransactionHandler, callback1, callback2, stateRequest); in testTransactionResolution()
240 inOrder.verify(callback2, times(1)).execute(eq(mTransactionHandler), eq(token), any()); in testTransactionResolution()
DTransactionParcelTests.java317 ActivityConfigurationChangeItem callback2 = ActivityConfigurationChangeItem.obtain( in testClientTransaction() local
328 transaction.addCallback(callback2); in testClientTransaction()
344 ActivityConfigurationChangeItem callback2 = ActivityConfigurationChangeItem.obtain( in testClientTransactionCallbacksOnly() local
352 transaction.addCallback(callback2); in testClientTransactionCallbacksOnly()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DDozeScrimControllerTest.java71 DozeHost.PulseCallback callback2 = mock(DozeHost.PulseCallback.class); in secondPulseIsSuppressed() local
73 mDozeScrimController.pulse(callback2, 0); in secondPulseIsSuppressed()
76 verify(callback2).onPulseFinished(); in secondPulseIsSuppressed()
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractE2ETest.java130 final TestCallback callback2 = new TestCallback(); in typefaceCacheTest() local
134 FontsContract.requestFonts(ctx, request, new Handler(), null, callback2); in typefaceCacheTest()
137 assertEquals(1, callback2.getSuccessCallCount()); in typefaceCacheTest()
138 assertEquals(0, callback2.getFailedCallCount()); in typefaceCacheTest()
139 assertSame(callback.getTypeface(), callback2.getTypeface()); in typefaceCacheTest()
/frameworks/base/core/tests/bugreports/src/android/server/bugreports/
DBugreportManagerTest.java131 BugreportCallbackImpl callback2 = new BugreportCallbackImpl(); in simultaneousBugreportsNotAllowed() local
135 mBrm.startBugreport(bugreportFd2, screenshotFd2, wifi(), mExecutor, callback2); in simultaneousBugreportsNotAllowed()
139 assertThat(callback2.getErrorCode()).isEqualTo( in simultaneousBugreportsNotAllowed()
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp3544 CallbackHelper callback1, callback2; in TEST_F() local
3550 err = fillTransaction(transaction2, &callback2, layer2); in TEST_F()
3562 EXPECT_NO_FATAL_FAILURE(waitForCallback(callback2, expected, true)); in TEST_F()
3571 CallbackHelper callback1, callback2; in TEST_F() local
3577 err = fillTransaction(transaction2, &callback2, layer2, false, true); in TEST_F()
3590 EXPECT_NO_FATAL_FAILURE(waitForCallback(callback2, expected, true)); in TEST_F()
3599 CallbackHelper callback1, callback2; in TEST_F() local
3605 err = fillTransaction(transaction2, &callback2, layer2, false, true); in TEST_F()
3619 EXPECT_NO_FATAL_FAILURE(waitForCallback(callback2, expected, true)); in TEST_F()
3652 CallbackHelper callback1, callback2; in TEST_F() local
[all …]
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java1369 TestTetheringEventCallback callback2 = new TestTetheringEventCallback(); in testRegisterTetheringEventCallback() local
1398 mTethering.registerTetheringEventCallback(callback2); in testRegisterTetheringEventCallback()
1400 callback2.expectUpstreamChanged(upstreamState.network); in testRegisterTetheringEventCallback()
1401 callback2.expectConfigurationChanged( in testRegisterTetheringEventCallback()
1403 tetherState = callback2.pollTetherStatesChanged(); in testRegisterTetheringEventCallback()
1405 callback2.expectOffloadStatusChanged(TETHER_HARDWARE_OFFLOAD_STARTED); in testRegisterTetheringEventCallback()
1413 tetherState = callback2.pollTetherStatesChanged(); in testRegisterTetheringEventCallback()
1416 callback2.expectUpstreamChanged(new Network[] {null}); in testRegisterTetheringEventCallback()
1417 callback2.expectOffloadStatusChanged(TETHER_HARDWARE_OFFLOAD_STOPPED); in testRegisterTetheringEventCallback()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/
DMockWindow.java41 public void takeSurface(SurfaceHolder.Callback2 callback2) { in takeSurface() argument
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DHalDeviceManagerTest.java217 HalDeviceManager.ManagerStatusListener callback2 = mock( in testMultipleCallbackRegistrations() local
219 mDut.registerStatusListener(callback2, mHandler); in testMultipleCallbackRegistrations()
221 mDut.registerStatusListener(callback2, mHandler); in testMultipleCallbackRegistrations()
228 verify(callback2).onStatusChanged(); in testMultipleCallbackRegistrations()
230 verifyNoMoreInteractions(mManagerStatusListenerMock, callback1, callback2); in testMultipleCallbackRegistrations()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java4126 TestKeepaliveCallback callback2 = new TestKeepaliveCallback(); in testPacketKeepalives() local
4128 myNet, validKaInterval, callback2, myIPv4, 6789, dstIPv4); in testPacketKeepalives()
4129 callback2.expectStarted(); in testPacketKeepalives()
4142 callback2.expectStopped(); in testPacketKeepalives()
4309 TestSocketKeepaliveCallback callback2 = new TestSocketKeepaliveCallback(executor); in doTestNattSocketKeepalivesWithExecutor() local
4311 myNet, testSocket2, myIPv4, dstIPv4, executor, callback2)) { in doTestNattSocketKeepalivesWithExecutor() argument
4313 callback2.expectStarted(); in doTestNattSocketKeepalivesWithExecutor()
4319 callback2.expectStopped(); in doTestNattSocketKeepalivesWithExecutor()