/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/ |
D | DevicePolicyManagerWrapper.java | 22 import static org.mockito.Mockito.doAnswer; 64 doAnswer(answer).when(spy).isAdminActive(any()); in getWrapper() 65 doAnswer(answer).when(spy).isDeviceOwnerApp(any()); in getWrapper() 66 doAnswer(answer).when(spy).isManagedProfile(any()); in getWrapper() 67 doAnswer(answer).when(spy).isProfileOwnerApp(any()); in getWrapper() 68 doAnswer(answer).when(spy).isAffiliatedUser(); in getWrapper() 71 doAnswer(answer).when(spy).setTime(any(), anyLong()); in getWrapper() 72 doAnswer(answer).when(spy).setTimeZone(any(), any()); in getWrapper() 73 doAnswer(answer).when(spy).setGlobalSetting(any(), any(), any()); in getWrapper() 76 doAnswer(answer).when(spy).setUserControlDisabledPackages(any(), any()); in getWrapper() [all …]
|
D | WifiManagerWrapper.java | 21 import static org.mockito.Mockito.doAnswer; 62 doAnswer(answer).when(spy).addNetwork(any()); in getWrapper() 63 doAnswer(answer).when(spy).enableNetwork(anyInt(), anyBoolean()); in getWrapper() 64 doAnswer(answer).when(spy).removeNetwork(anyInt()); in getWrapper() 65 doAnswer(answer).when(spy).getConfiguredNetworks(); in getWrapper() 66 doAnswer(answer).when(spy).updateNetwork(any()); in getWrapper() 67 doAnswer(answer).when(spy).saveConfiguration(); in getWrapper() 68 doAnswer(answer).when(spy).isWifiEnabled(); in getWrapper() 69 doAnswer(answer).when(spy).setWifiEnabled(anyBoolean()); in getWrapper() 72 doAnswer(answer).when(spy).getCallerConfiguredNetworks(); in getWrapper()
|
D | HardwarePropertiesManagerWrapper.java | 19 import static org.mockito.Mockito.doAnswer; 62 doAnswer(answer).when(spy).getCpuUsages(); in getWrapper() 63 doAnswer(answer).when(spy).getDeviceTemperatures(anyInt(), anyInt()); in getWrapper() 64 doAnswer(answer).when(spy).getFanSpeeds(); in getWrapper()
|
D | UserManagerWrapper.java | 19 import static org.mockito.Mockito.doAnswer; 60 doAnswer(answer).when(spy).getApplicationRestrictions(any()); in getWrapper()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentProviderClientTest.java | 21 import static org.mockito.Mockito.doAnswer; 129 doAnswer(ANSWER_SLEEP).when(mIContentProvider).query(mAttributionSource, URI, null, in testQueryTimeout() 151 doAnswer(ANSWER_SLEEP).when(mIContentProvider).getType(mAttributionSource, URI); in testGetTypeTimeout() 164 doAnswer(ANSWER_SLEEP).when(mIContentProvider).getStreamTypes(mAttributionSource, in testGetStreamTypesTimeout() 178 doAnswer(ANSWER_SLEEP).when(mIContentProvider).canonicalize(mAttributionSource, URI); in testCanonicalizeTimeout() 191 doAnswer(ANSWER_SLEEP).when(mIContentProvider).uncanonicalize(mAttributionSource, URI); in testUncanonicalizeTimeout() 205 doAnswer(ANSWER_SLEEP).when(mIContentProvider).refresh(mAttributionSource, URI, ARGS, in testRefreshTimeout() 226 doAnswer(ANSWER_SLEEP).when(mIContentProvider).insert(mAttributionSource, URI, in testInsertTimeout() 240 doAnswer(ANSWER_SLEEP).when(mIContentProvider).bulkInsert(mAttributionSource, URI, in testBulkInsertTimeout() 254 doAnswer(ANSWER_SLEEP).when(mIContentProvider).delete(mAttributionSource, URI, EXTRAS); in testDeleteTimeout() [all …]
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
D | BasePrintTest.java | 30 import static org.mockito.Mockito.doAnswer; 695 doAnswer(layoutAnswer).when(adapter).onLayout(any(PrintAttributes.class), in createMockPrintDocumentAdapter() 700 doAnswer(writeAnswer).when(adapter).onWrite(any(PageRange[].class), in createMockPrintDocumentAdapter() 705 doAnswer(finishAnswer).when(adapter).onFinish(); in createMockPrintDocumentAdapter() 763 doAnswer(onStartPrinterDiscovery).when(callbacks).onStartPrinterDiscovery( in createMockPrinterDiscoverySessionCallbacks() 767 doAnswer(onStopPrinterDiscovery).when(callbacks).onStopPrinterDiscovery(); in createMockPrinterDiscoverySessionCallbacks() 770 doAnswer(onValidatePrinters).when(callbacks).onValidatePrinters( in createMockPrinterDiscoverySessionCallbacks() 774 doAnswer(onStartPrinterStateTracking).when(callbacks).onStartPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks() 778 doAnswer(onRequestCustomPrinterIcon).when(callbacks).onRequestCustomPrinterIcon( in createMockPrinterDiscoverySessionCallbacks() 783 doAnswer(onStopPrinterStateTracking).when(callbacks).onStopPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks() [all …]
|
/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/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 35 import static org.mockito.Mockito.doAnswer; 914 doAnswer(new Answer<Void>() { in testUpdateAppWidgetViaComponentName() 991 doAnswer(new Answer<Void>() { in testUpdateAppWidgetViaWidgetId() 1078 doAnswer(new Answer<Void>() { in testUpdateAppWidgetViaWidgetIds() 1157 doAnswer(new Answer<Void>() { in testPartiallyUpdateAppWidgetViaWidgetId() 1235 doAnswer(new Answer<Void>() { in testPartiallyUpdateAppWidgetViaWidgetIds() 1259 doAnswer(new Answer<Void>() { in testPartiallyUpdateAppWidgetViaWidgetIds() 1327 doAnswer(new Answer<Void>() { in testCollectionWidgets() 1368 doAnswer(new Answer<Integer>() { in testCollectionWidgets() 1374 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; 213 doAnswer(invocation -> { in testCollection_sendBroadcast()
|
D | CollectionAppWidgetTest.java | 26 import static org.mockito.Mockito.doAnswer; 158 doAnswer(new Answer<RemoteViews>() { in setup()
|
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/ |
D | VirtualSensorTest.java | 33 import static org.mockito.Mockito.doAnswer; 559 doAnswer((Answer<Void>) i -> { in directConnection_memoryFile_triggersVirtualSensorCallback() 598 doAnswer((Answer<Void>) i -> { in directConnection_memoryFile_stopAll_triggersVirtualSensorCallback() 631 doAnswer((Answer<Void>) i -> { in directConnection_memoryFile_injectEvents() 643 doAnswer((Answer<Void>) i -> { in directConnection_memoryFile_injectEvents() 654 doAnswer((Answer<Void>) i -> { in directConnection_memoryFile_injectEvents_withHelperWriter() 661 doAnswer((Answer<Void>) i -> { in directConnection_memoryFile_injectEvents_withHelperWriter() 667 doAnswer((Answer<Void>) i -> { in directConnection_memoryFile_injectEvents_withHelperWriter()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | View_UsingViewsTest.java | 28 import static org.mockito.Mockito.doAnswer; 150 doAnswer((InvocationOnMock invocation) -> { in testSetProperties() method 389 doAnswer((InvocationOnMock invocation) -> { in testSetupListeners() method
|
D | KeyEventTest.java | 27 import static org.mockito.Mockito.doAnswer; 214 doAnswer((InvocationOnMock invocation) -> { in testDispatch() method
|
D | ViewTest.java | 34 import static org.mockito.Mockito.doAnswer; 4792 doAnswer(a -> { in createDragShadowBuidler()
|
/cts/tests/searchui/src/android/searchuiservice/cts/ |
D | SearchUiManagerTest.java | 34 import static org.mockito.Mockito.doAnswer; 216 doAnswer(answer -> { in testQuery_mockCallback()
|
/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; 1097 doAnswer((InvocationOnMock invocation) -> { in configureMultiChoiceModalState() method
|
D | TextViewTest.java | 41 import static org.mockito.Mockito.doAnswer; 3484 doAnswer((InvocationOnMock invocation) -> { in testPerformLongClick() method
|