Home
last modified time | relevance | path

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

/cts/tests/tests/content/src/android/content/cts/
DContentProviderClientTest.java19 import static org.mockito.Mockito.doAnswer;
115 doAnswer(ANSWER_SLEEP).when(mIContentProvider).query(PACKAGE_NAME, URI, null, ARGS, in testQueryTimeout()
136 doAnswer(ANSWER_SLEEP).when(mIContentProvider).getType(URI); in testGetTypeTimeout()
149 doAnswer(ANSWER_SLEEP).when(mIContentProvider).getStreamTypes(URI, ""); in testGetStreamTypesTimeout()
162 doAnswer(ANSWER_SLEEP).when(mIContentProvider).canonicalize(PACKAGE_NAME, URI); in testCanonicalizeTimeout()
175 doAnswer(ANSWER_SLEEP).when(mIContentProvider).uncanonicalize(PACKAGE_NAME, URI); in testUncanonicalizeTimeout()
188 doAnswer(ANSWER_SLEEP).when(mIContentProvider).refresh(PACKAGE_NAME, URI, ARGS, in testRefreshTimeout()
207 doAnswer(ANSWER_SLEEP).when(mIContentProvider).insert(PACKAGE_NAME, URI, VALUES); in testInsertTimeout()
220 doAnswer(ANSWER_SLEEP).when(mIContentProvider).bulkInsert(PACKAGE_NAME, URI, VALUES_ARRAY); in testBulkInsertTimeout()
233 doAnswer(ANSWER_SLEEP).when(mIContentProvider).delete(PACKAGE_NAME, URI, SELECTION, in testDeleteTimeout()
[all …]
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java30 import static org.mockito.Mockito.doAnswer;
842 doAnswer(layoutAnswer).when(adapter).onLayout(any(PrintAttributes.class), in createMockPrintDocumentAdapter()
847 doAnswer(writeAnswer).when(adapter).onWrite(any(PageRange[].class), in createMockPrintDocumentAdapter()
852 doAnswer(finishAnswer).when(adapter).onFinish(); in createMockPrintDocumentAdapter()
910 doAnswer(onStartPrinterDiscovery).when(callbacks).onStartPrinterDiscovery( in createMockPrinterDiscoverySessionCallbacks()
914 doAnswer(onStopPrinterDiscovery).when(callbacks).onStopPrinterDiscovery(); in createMockPrinterDiscoverySessionCallbacks()
917 doAnswer(onValidatePrinters).when(callbacks).onValidatePrinters( in createMockPrinterDiscoverySessionCallbacks()
921 doAnswer(onStartPrinterStateTracking).when(callbacks).onStartPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
925 doAnswer(onRequestCustomPrinterIcon).when(callbacks).onRequestCustomPrinterIcon( in createMockPrinterDiscoverySessionCallbacks()
930 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/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