/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 | 19 import static org.mockito.Mockito.doAnswer; 127 doAnswer(ANSWER_SLEEP).when(mIContentProvider).query(mAttributionSource, URI, null, in testQueryTimeout() 149 doAnswer(ANSWER_SLEEP).when(mIContentProvider).getType(URI); in testGetTypeTimeout() 162 doAnswer(ANSWER_SLEEP).when(mIContentProvider).getStreamTypes(URI, ""); in testGetStreamTypesTimeout() 175 doAnswer(ANSWER_SLEEP).when(mIContentProvider).canonicalize(mAttributionSource, URI); in testCanonicalizeTimeout() 188 doAnswer(ANSWER_SLEEP).when(mIContentProvider).uncanonicalize(mAttributionSource, URI); in testUncanonicalizeTimeout() 202 doAnswer(ANSWER_SLEEP).when(mIContentProvider).refresh(mAttributionSource, URI, ARGS, in testRefreshTimeout() 223 doAnswer(ANSWER_SLEEP).when(mIContentProvider).insert(mAttributionSource, URI, in testInsertTimeout() 237 doAnswer(ANSWER_SLEEP).when(mIContentProvider).bulkInsert(mAttributionSource, URI, in testBulkInsertTimeout() 251 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/uwb/src/android/uwb/cts/ |
D | RangingSessionTest.java | 26 import static org.mockito.Mockito.doAnswer; 152 doAnswer(new StartAnswer(session)).when(adapter).startRanging(any(), any()); in testStart_CannotStartIfAlreadyStarted() 169 doAnswer(new StartAnswer(session)).when(adapter).startRanging(any(), any()); in testStop_CannotStopIfAlreadyStopped() 170 doAnswer(new StopAnswer(session)).when(adapter).stopRanging(any()); in testStop_CannotStopIfAlreadyStopped() 188 doAnswer(new StartAnswer(session)).when(adapter).startRanging(any(), any()); in testReconfigure_OnlyWhenOpened() 189 doAnswer(new ReconfigureAnswer(session)).when(adapter).reconfigureRanging(any(), any()); in testReconfigure_OnlyWhenOpened() 252 doAnswer(new CloseAnswer(session)).when(adapter).closeRanging(any()); in testClose_OnClosedCalled() 265 doAnswer(new CloseAnswer(session)).when(adapter).closeRanging(any()); in testClose_CannotInteractFurther()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 32 import static org.mockito.Mockito.doAnswer; 890 doAnswer(new Answer<Void>() { in testUpdateAppWidgetViaComponentName() 967 doAnswer(new Answer<Void>() { in testUpdateAppWidgetViaWidgetId() 1054 doAnswer(new Answer<Void>() { in testUpdateAppWidgetViaWidgetIds() 1133 doAnswer(new Answer<Void>() { in testPartiallyUpdateAppWidgetViaWidgetId() 1211 doAnswer(new Answer<Void>() { in testPartiallyUpdateAppWidgetViaWidgetIds() 1235 doAnswer(new Answer<Void>() { in testPartiallyUpdateAppWidgetViaWidgetIds() 1303 doAnswer(new Answer<Void>() { in testCollectionWidgets() 1344 doAnswer(new Answer<Integer>() { in testCollectionWidgets() 1350 doAnswer(new Answer<RemoteViews>() { in testCollectionWidgets() [all …]
|
D | DarkTextThemeTest.java | 23 import static org.mockito.Mockito.doAnswer; 207 doAnswer(invocation -> { in setupAndAwaitCollectionWidget()
|
D | CollectionAppWidgetTest.java | 26 import static org.mockito.Mockito.doAnswer; 157 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; 200 doAnswer((InvocationOnMock invocation) -> { in testDispatch() method
|
D | ViewTest.java | 31 import static org.mockito.Mockito.doAnswer; 4637 doAnswer(a -> { in createDragShadowBuidler()
|
/cts/tests/searchui/src/android/searchuiservice/cts/ |
D | SearchUiManagerTest.java | 34 import static org.mockito.Mockito.doAnswer; 214 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; 1032 doAnswer((InvocationOnMock invocation) -> { in configureMultiChoiceModalState() method
|
D | TextViewTest.java | 31 import static org.mockito.Mockito.doAnswer; 3402 doAnswer((InvocationOnMock invocation) -> { in testPerformLongClick() method
|