/frameworks/native/services/surfaceflinger/tests/ |
D | LayerCallback_test.cpp | 205 CallbackHelper callback1, callback2; in TEST_F() local 211 err = fillTransaction(transaction2, &callback2, layer2); in TEST_F() 223 EXPECT_NO_FATAL_FAILURE(waitForCallback(callback2, expected, true)); in TEST_F() 232 CallbackHelper callback1, callback2; in TEST_F() local 238 err = fillTransaction(transaction2, &callback2, layer2, false, true); in TEST_F() 251 EXPECT_NO_FATAL_FAILURE(waitForCallback(callback2, expected, true)); in TEST_F() 260 CallbackHelper callback1, callback2; in TEST_F() local 266 err = fillTransaction(transaction2, &callback2, layer2, false, true); in TEST_F() 280 EXPECT_NO_FATAL_FAILURE(waitForCallback(callback2, expected, true)); in TEST_F() 313 CallbackHelper callback1, callback2; in TEST_F() local [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ScrollCaptureTargetResolverTest.java | 81 FakeScrollCaptureCallback callback2 = new FakeScrollCaptureCallback(); in testNoValidTargets() local 82 callback2.setScrollBounds(new Rect()); in testNoValidTargets() 83 ScrollCaptureTarget target2 = createTarget(callback2, new Rect(20, 30, 40, 50), in testNoValidTargets() 154 FakeScrollCaptureCallback callback2 = new FakeScrollCaptureCallback(); in testPreferNonEmptyBounds() local 155 callback2.setScrollBounds(new Rect(0, 0, 20, 20)); in testPreferNonEmptyBounds() 156 ScrollCaptureTarget target2 = createTarget(callback2, new Rect(20, 30, 40, 50), in testPreferNonEmptyBounds() 187 FakeScrollCaptureCallback callback2 = new FakeScrollCaptureCallback(); in testPreferHintInclude() local 188 callback2.setScrollBounds(new Rect(1, 1, 19, 19)); in testPreferHintInclude() 189 ScrollCaptureTarget target2 = createTarget(callback2, new Rect(20, 30, 40, 50), in testPreferHintInclude() 232 FakeScrollCaptureCallback callback2 = new FakeScrollCaptureCallback(); in testDescendantPreferred() local [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | CallbackRegistryTest.java | 32 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/ |
D | ClientTransactionTests.java | 50 ClientTransactionItem callback2 = mock(ClientTransactionItem.class); in testPreExecute() local 58 transaction.addCallback(callback2); in testPreExecute() 64 verify(callback2, times(1)).preExecute(clientTransactionHandler, token); in testPreExecute()
|
D | TransactionExecutorTests.java | 224 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()
|
D | TransactionParcelTests.java | 284 ActivityConfigurationChangeItem callback2 = ActivityConfigurationChangeItem.obtain( in testClientTransaction() local 294 transaction.addCallback(callback2); in testClientTransaction() 310 ActivityConfigurationChangeItem callback2 = ActivityConfigurationChangeItem.obtain( in testClientTransactionCallbacksOnly() local 318 transaction.addCallback(callback2); in testClientTransactionCallbacksOnly()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | DozeScrimControllerTest.java | 74 DozeHost.PulseCallback callback2 = mock(DozeHost.PulseCallback.class); in secondPulseIsSuppressed() local 76 mDozeScrimController.pulse(callback2, 0); in secondPulseIsSuppressed() 79 verify(callback2).onPulseFinished(); in secondPulseIsSuppressed()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractE2ETest.java | 130 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/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotifBindPipelineTest.java | 124 BindCallback callback2 = mock(BindCallback.class); in testMultipleCallbacks() local 125 mStage.requestRebind(mEntry, callback2); in testMultipleCallbacks() 133 verify(callback2).onBindFinished(mEntry); in testMultipleCallbacks()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | HdmiControlServiceTest.java | 337 VolumeControlFeatureCallback callback2 = new VolumeControlFeatureCallback(); in addHdmiCecVolumeControlFeatureListener_notifiesStateUpdate_multiple() local 340 mHdmiControlService.addHdmiCecVolumeControlFeatureListener(callback2); in addHdmiCecVolumeControlFeatureListener_notifiesStateUpdate_multiple() 347 assertThat(callback2.mCallbackReceived).isTrue(); in addHdmiCecVolumeControlFeatureListener_notifiesStateUpdate_multiple() 349 assertThat(callback2.mVolumeControlEnabled).isTrue(); in addHdmiCecVolumeControlFeatureListener_notifiesStateUpdate_multiple()
|
/frameworks/base/core/tests/bugreports/src/android/server/bugreports/ |
D | BugreportManagerTest.java | 150 BugreportCallbackImpl callback2 = new BugreportCallbackImpl(); in simultaneousBugreportsNotAllowed() local 155 mBrm.startBugreport(bugreportFd2, screenshotFd2, wifi(), mExecutor, callback2); in simultaneousBugreportsNotAllowed() 159 assertThat(callback2.getErrorCode()).isEqualTo( in simultaneousBugreportsNotAllowed()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/ |
D | MockWindow.java | 41 public void takeSurface(SurfaceHolder.Callback2 callback2) { in takeSurface() argument
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 1369 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/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | HalDeviceManagerTest.java | 218 HalDeviceManager.ManagerStatusListener callback2 = mock( in testMultipleCallbackRegistrations() local 220 mDut.registerStatusListener(callback2, mHandler); in testMultipleCallbackRegistrations() 222 mDut.registerStatusListener(callback2, mHandler); in testMultipleCallbackRegistrations() 229 verify(callback2).onStatusChanged(); in testMultipleCallbackRegistrations() 231 verifyNoMoreInteractions(mManagerStatusListenerMock, callback1, callback2); in testMultipleCallbackRegistrations()
|
D | WifiServiceImplTest.java | 3121 ILocalOnlyHotspotCallback callback2 = mock(ILocalOnlyHotspotCallback.class); in testRegisterLocalOnlyHotspotRequestAfterStoppedNoOnStartedCallback() local 3122 when(callback2.asBinder()).thenReturn(mock(IBinder.class)); in testRegisterLocalOnlyHotspotRequestAfterStoppedNoOnStartedCallback() 3125 callback2, TEST_PACKAGE_NAME, TEST_FEATURE_ID, null); in testRegisterLocalOnlyHotspotRequestAfterStoppedNoOnStartedCallback()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 4118 TestKeepaliveCallback callback2 = new TestKeepaliveCallback(); in testPacketKeepalives() local 4120 myNet, validKaInterval, callback2, myIPv4, 6789, dstIPv4); in testPacketKeepalives() 4121 callback2.expectStarted(); in testPacketKeepalives() 4134 callback2.expectStopped(); in testPacketKeepalives() 4301 TestSocketKeepaliveCallback callback2 = new TestSocketKeepaliveCallback(executor); in doTestNattSocketKeepalivesWithExecutor() local 4303 myNet, testSocket2, myIPv4, dstIPv4, executor, callback2)) { in doTestNattSocketKeepalivesWithExecutor() argument 4305 callback2.expectStarted(); in doTestNattSocketKeepalivesWithExecutor() 4311 callback2.expectStopped(); in doTestNattSocketKeepalivesWithExecutor()
|