/cts/tests/tests/content/src/android/content/cts/ |
D | ContentProviderClientTest.java | 19 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/ |
D | BasePrintTest.java | 30 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/ |
D | AppWidgetTest.java | 30 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 …]
|
D | DarkTextThemeTest.java | 23 import static org.mockito.Mockito.doAnswer; 207 doAnswer(invocation -> { in setupAndAwaitCollectionWidget()
|
D | WidgetTransitionTest.java | 25 import static org.mockito.Mockito.doAnswer; 212 doAnswer(invocation -> { in testCollection_sendBroadcast()
|
D | CollectionAppWidgetTest.java | 25 import static org.mockito.Mockito.doAnswer; 153 doAnswer(new Answer<RemoteViews>() { in setup()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | SceneTest.java | 23 import static org.mockito.Mockito.doAnswer; 51 doAnswer((InvocationOnMock invocation) -> mActivity.getLayoutInflater().inflate( in testDynamicConstructor()
|
D | TransitionTest.java | 33 import static org.mockito.Mockito.doAnswer; 593 doAnswer( in testForceToEndTransitionsDependedEachOther() method 603 doAnswer( in testForceToEndTransitionsDependedEachOther() method
|
/cts/tests/tests/view/src/android/view/cts/ |
D | View_UsingViewsTest.java | 28 import static org.mockito.Mockito.doAnswer; 136 doAnswer((InvocationOnMock invocation) -> { in testSetProperties() method 375 doAnswer((InvocationOnMock invocation) -> { in testSetupListeners() method
|
D | KeyEventTest.java | 25 import static org.mockito.Mockito.doAnswer; 194 doAnswer((InvocationOnMock invocation) -> { in testDispatch() method
|
D | ViewTest.java | 31 import static org.mockito.Mockito.doAnswer; 4568 doAnswer(a -> { in createDragShadowBuidler()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | LayerDrawableTest.java | 31 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()
|
D | DrawableContainerTest.java | 30 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/ |
D | AbsListViewTest.java | 30 import static org.mockito.Mockito.doAnswer; 1017 doAnswer((InvocationOnMock invocation) -> { in configureMultiChoiceModalState() method
|
D | TextViewTest.java | 31 import static org.mockito.Mockito.doAnswer; 3262 doAnswer((InvocationOnMock invocation) -> { in testPerformLongClick() method
|