Home
last modified time | relevance | path

Searched refs:doAnswer (Results 1 – 15 of 15) sorted by relevance

/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java30 import static org.mockito.Mockito.doAnswer;
841 doAnswer(layoutAnswer).when(adapter).onLayout(any(PrintAttributes.class), in createMockPrintDocumentAdapter()
846 doAnswer(writeAnswer).when(adapter).onWrite(any(PageRange[].class), in createMockPrintDocumentAdapter()
851 doAnswer(finishAnswer).when(adapter).onFinish(); in createMockPrintDocumentAdapter()
909 doAnswer(onStartPrinterDiscovery).when(callbacks).onStartPrinterDiscovery( in createMockPrinterDiscoverySessionCallbacks()
913 doAnswer(onStopPrinterDiscovery).when(callbacks).onStopPrinterDiscovery(); in createMockPrinterDiscoverySessionCallbacks()
916 doAnswer(onValidatePrinters).when(callbacks).onValidatePrinters( in createMockPrinterDiscoverySessionCallbacks()
920 doAnswer(onStartPrinterStateTracking).when(callbacks).onStartPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
924 doAnswer(onRequestCustomPrinterIcon).when(callbacks).onRequestCustomPrinterIcon( in createMockPrinterDiscoverySessionCallbacks()
929 doAnswer(onStopPrinterStateTracking).when(callbacks).onStopPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
[all …]
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java30 import static org.mockito.Mockito.doAnswer;
793 doAnswer(new Answer<Void>() { in testUpdateAppWidgetViaComponentName()
870 doAnswer(new Answer<Void>() { in testUpdateAppWidgetViaWidgetId()
957 doAnswer(new Answer<Void>() { in testUpdateAppWidgetViaWidgetIds()
1036 doAnswer(new Answer<Void>() { in testPartiallyUpdateAppWidgetViaWidgetId()
1114 doAnswer(new Answer<Void>() { in testPartiallyUpdateAppWidgetViaWidgetIds()
1138 doAnswer(new Answer<Void>() { in testPartiallyUpdateAppWidgetViaWidgetIds()
1206 doAnswer(new Answer<Void>() { in testCollectionWidgets()
1247 doAnswer(new Answer<Integer>() { in testCollectionWidgets()
1253 doAnswer(new Answer<RemoteViews>() { in testCollectionWidgets()
[all …]
DDarkTextThemeTest.java23 import static org.mockito.Mockito.doAnswer;
207 doAnswer(invocation -> { in setupAndAwaitCollectionWidget()
DWidgetTransitionTest.java25 import static org.mockito.Mockito.doAnswer;
212 doAnswer(invocation -> { in testCollection_sendBroadcast()
DCollectionAppWidgetTest.java25 import static org.mockito.Mockito.doAnswer;
153 doAnswer(new Answer<RemoteViews>() { in setup()
/cts/tests/tests/transition/src/android/transition/cts/
DSceneTest.java23 import static org.mockito.Mockito.doAnswer;
51 doAnswer((InvocationOnMock invocation) -> mActivity.getLayoutInflater().inflate( in testDynamicConstructor()
DTransitionTest.java33 import static org.mockito.Mockito.doAnswer;
593 doAnswer( in testForceToEndTransitionsDependedEachOther() method
603 doAnswer( in testForceToEndTransitionsDependedEachOther() method
/cts/tests/tests/view/src/android/view/cts/
DView_UsingViewsTest.java28 import static org.mockito.Mockito.doAnswer;
136 doAnswer((InvocationOnMock invocation) -> { in testSetProperties() method
375 doAnswer((InvocationOnMock invocation) -> { in testSetupListeners() method
DKeyEventTest.java25 import static org.mockito.Mockito.doAnswer;
194 doAnswer((InvocationOnMock invocation) -> { in testDispatch() method
DViewTest.java31 import static org.mockito.Mockito.doAnswer;
4568 doAnswer(a -> { in createDragShadowBuidler()
/cts/tests/tests/content/src/android/content/cts/
DContentProviderClientTest.java19 import static org.mockito.Mockito.doAnswer;
374 doAnswer(invocation -> { in testTimeout()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DLayerDrawableTest.java31 import static org.mockito.Mockito.doAnswer;
749 doAnswer(invocation -> { in testSetBounds()
754 doAnswer(invocation -> { in testSetBounds()
807 doAnswer(invocation -> { in testGetIntrinsicWidth()
812 doAnswer(invocation -> { in testGetIntrinsicWidth()
850 doAnswer(invocation -> { in testGetIntrinsicHeight()
855 doAnswer(invocation -> { in testGetIntrinsicHeight()
DDrawableContainerTest.java30 import static org.mockito.Mockito.doAnswer;
183 doAnswer((InvocationOnMock invocation) -> { in testGetPadding() method
190 doAnswer((InvocationOnMock invocation) -> { in testGetPadding() method
/cts/tests/tests/widget/src/android/widget/cts/
DAbsListViewTest.java30 import static org.mockito.Mockito.doAnswer;
1017 doAnswer((InvocationOnMock invocation) -> { in configureMultiChoiceModalState() method
DTextViewTest.java31 import static org.mockito.Mockito.doAnswer;
3262 doAnswer((InvocationOnMock invocation) -> { in testPerformLongClick() method