/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | DumpControllerTest.kt | 38 @Mock private lateinit var callback1: Dumpable variable in com.android.systemui.DumpControllerTest 55 addListener(callback1) in testListenerOnlyAddedOnce() 56 addListener(callback1) in testListenerOnlyAddedOnce() 61 verify(callback1 /* only once */).dump(fd, pw, args) in testListenerOnlyAddedOnce() 67 addListener(callback1) in testListenersCalledOnDump() 73 verify(callback1 /* only once */).dump(fd, pw, args) in testListenersCalledOnDump() 80 addListener(callback1) in testRemoveListener() 82 removeListener(callback1) in testRemoveListener() 87 verify(callback1, never()).dump(any(), any(), any()) in testRemoveListener()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | CallbackRegistryTest.java | 31 final Integer callback1 = 1; field in CallbackRegistryTest 42 if (callback == callback1) { in addNotifyCount() 117 if (callback == callback1) { in testRemoveWhileNotifying() 118 registry.remove(callback1); in testRemoveWhileNotifying() 124 registry.add(callback1); in testRemoveWhileNotifying() 149 registry.add(callback1); in testDeepRemoveWhileNotifying() 169 if (callback == callback1) { in testAddRemovedListener() 178 registry.add(callback1); in testAddRemovedListener() 185 assertEquals(callback1, callbacks.get(0)); in testAddRemovedListener()
|
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/ |
D | ClientTransactionTests.java | 49 ClientTransactionItem callback1 = mock(ClientTransactionItem.class); in testPreExecute() local 57 transaction.addCallback(callback1); in testPreExecute() 63 verify(callback1, times(1)).preExecute(clientTransactionHandler, token); in testPreExecute()
|
D | TransactionExecutorTests.java | 222 ClientTransactionItem callback1 = mock(ClientTransactionItem.class); in testTransactionResolution() local 223 when(callback1.getPostExecutionState()).thenReturn(UNDEFINED); in testTransactionResolution() 231 transaction.addCallback(callback1); in testTransactionResolution() 238 InOrder inOrder = inOrder(mTransactionHandler, callback1, callback2, stateRequest); in testTransactionResolution() 239 inOrder.verify(callback1, times(1)).execute(eq(mTransactionHandler), eq(token), any()); in testTransactionResolution()
|
D | TransactionParcelTests.java | 316 WindowVisibilityItem callback1 = WindowVisibilityItem.obtain(true); in testClientTransaction() local 327 transaction.addCallback(callback1); in testClientTransaction() 343 WindowVisibilityItem callback1 = WindowVisibilityItem.obtain(true); in testClientTransactionCallbacksOnly() local 351 transaction.addCallback(callback1); in testClientTransactionCallbacksOnly()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | DozeScrimControllerTest.java | 70 DozeHost.PulseCallback callback1 = mock(DozeHost.PulseCallback.class); in secondPulseIsSuppressed() local 72 mDozeScrimController.pulse(callback1, 0); in secondPulseIsSuppressed() 75 verify(callback1, never()).onPulseFinished(); in secondPulseIsSuppressed()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | Transaction_test.cpp | 3481 CallbackHelper callback1, callback2; in TEST_F() local 3482 int err = fillTransaction(transaction1, &callback1, layer1); in TEST_F() 3498 EXPECT_NO_FATAL_FAILURE(waitForCallback(callback1, expected, true)); in TEST_F() 3508 CallbackHelper callback1, callback2; in TEST_F() local 3509 int err = fillTransaction(transaction1, &callback1, layer1, false, true); in TEST_F() 3526 EXPECT_NO_FATAL_FAILURE(waitForCallback(callback1, expected, true)); in TEST_F() 3536 CallbackHelper callback1, callback2; in TEST_F() local 3537 int err = fillTransaction(transaction1, &callback1, layer1); in TEST_F() 3555 EXPECT_NO_FATAL_FAILURE(waitForCallback(callback1, expected, true)); in TEST_F() 3589 CallbackHelper callback1, callback2; in TEST_F() local [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | TetheringTest.java | 948 TestTetheringEventCallback callback1 = new TestTetheringEventCallback(); in testRegisterTetheringEventCallback() local 952 mTethering.registerTetheringEventCallback(callback1); in testRegisterTetheringEventCallback() 954 callback1.expectUpstreamChanged(new Network[] {null}); in testRegisterTetheringEventCallback() 957 callback1.expectUpstreamChanged(upstreamState.network); in testRegisterTetheringEventCallback() 967 callback1.expectUpstreamChanged(new Network[] {null}); in testRegisterTetheringEventCallback() 970 mTethering.unregisterTetheringEventCallback(callback1); in testRegisterTetheringEventCallback() 981 callback1.assertNoCallback(); in testRegisterTetheringEventCallback()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | HalDeviceManagerTest.java | 215 HalDeviceManager.ManagerStatusListener callback1 = mock( in testMultipleCallbackRegistrations() local 220 mDut.registerStatusListener(callback1, mHandler); in testMultipleCallbackRegistrations() 227 verify(callback1).onStatusChanged(); in testMultipleCallbackRegistrations() 230 verifyNoMoreInteractions(mManagerStatusListenerMock, callback1, callback2); in testMultipleCallbackRegistrations()
|