Home
last modified time | relevance | path

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

/cts/tests/tests/print/src/android/print/cts/
DBasePrintTest.java27 import static org.mockito.Mockito.doAnswer;
760 doAnswer(layoutAnswer).when(adapter).onLayout(any(PrintAttributes.class), in createMockPrintDocumentAdapter()
765 doAnswer(writeAnswer).when(adapter).onWrite(any(PageRange[].class), in createMockPrintDocumentAdapter()
770 doAnswer(finishAnswer).when(adapter).onFinish(); in createMockPrintDocumentAdapter()
830 doAnswer(onStartPrinterDiscovery).when(callbacks).onStartPrinterDiscovery( in createMockPrinterDiscoverySessionCallbacks()
834 doAnswer(onStopPrinterDiscovery).when(callbacks).onStopPrinterDiscovery(); in createMockPrinterDiscoverySessionCallbacks()
837 doAnswer(onValidatePrinters).when(callbacks).onValidatePrinters( in createMockPrinterDiscoverySessionCallbacks()
841 doAnswer(onStartPrinterStateTracking).when(callbacks).onStartPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
845 doAnswer(onRequestCustomPrinterIcon).when(callbacks).onRequestCustomPrinterIcon( in createMockPrinterDiscoverySessionCallbacks()
850 doAnswer(onStopPrinterStateTracking).when(callbacks).onStopPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
[all …]
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java23 import static org.mockito.Mockito.doAnswer;
797 doAnswer(new Answer<Void>() { in testUpdateAppWidgetViaComponentName()
876 doAnswer(new Answer<Void>() { in testUpdateAppWidgetViaWidgetId()
965 doAnswer(new Answer<Void>() { in testUpdateAppWidgetViaWidgetIds()
1046 doAnswer(new Answer<Void>() { in testPartiallyUpdateAppWidgetViaWidgetId()
1126 doAnswer(new Answer<Void>() { in testPartiallyUpdateAppWidgetViaWidgetIds()
1150 doAnswer(new Answer<Void>() { in testPartiallyUpdateAppWidgetViaWidgetIds()
1220 doAnswer(new Answer<Void>() { in testCollectionWidgets()
1261 doAnswer(new Answer<Integer>() { in testCollectionWidgets()
1267 doAnswer(new Answer<RemoteViews>() { in testCollectionWidgets()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DSceneTest.java21 import static org.mockito.Mockito.doAnswer;
48 doAnswer((InvocationOnMock invocation) -> mActivity.getLayoutInflater().inflate( in testDynamicConstructor()
/cts/tests/tests/view/src/android/view/cts/
DView_UsingViewsTest.java28 import static org.mockito.Mockito.doAnswer;
135 doAnswer((InvocationOnMock invocation) -> { in testSetProperties() method
374 doAnswer((InvocationOnMock invocation) -> { in testSetupListeners() method
DKeyEventTest.java25 import static org.mockito.Mockito.doAnswer;
189 doAnswer((InvocationOnMock invocation) -> { in testDispatch() method
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsWidgetTest.java24 import static org.mockito.Mockito.doAnswer;
162 doAnswer(new Answer<RemoteViews>() { in setup()
DAbsListViewTest.java30 import static org.mockito.Mockito.doAnswer;
947 doAnswer((InvocationOnMock invocation) -> { in configureMultiChoiceModalState() method
DTextViewTest.java32 import static org.mockito.Mockito.doAnswer;
3162 doAnswer((InvocationOnMock invocation) -> { in testPerformLongClick() method
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableContainerTest.java30 import static org.mockito.Mockito.doAnswer;
179 doAnswer((InvocationOnMock invocation) -> { in testGetPadding() method
186 doAnswer((InvocationOnMock invocation) -> { in testGetPadding() method
DLayerDrawableTest.java31 import static org.mockito.Mockito.doAnswer;
748 doAnswer(invocation -> { in testSetBounds()
753 doAnswer(invocation -> { in testSetBounds()
806 doAnswer(invocation -> { in testGetIntrinsicWidth()
811 doAnswer(invocation -> { in testGetIntrinsicWidth()
849 doAnswer(invocation -> { in testGetIntrinsicHeight()
854 doAnswer(invocation -> { in testGetIntrinsicHeight()