Home
last modified time | relevance | path

Searched refs:mock (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/database/src/android/database/cts/
DAbstractCursorTest.java152 MockDataSetObserver mock = new MockDataSetObserver(); in testRequery() local
153 mDatabaseCursor.registerDataSetObserver(mock); in testRequery()
154 assertFalse(mock.hadCalledOnChanged()); in testRequery()
156 assertTrue(mock.hadCalledOnChanged()); in testRequery()
160 MockContentObserver mock = new MockContentObserver(); in testOnChange() local
161 mTestAbstractCursor.registerContentObserver(mock); in testOnChange()
162 assertFalse(mock.hadCalledOnChange()); in testOnChange()
165 if ( !mock.hadCalledOnChange() ) { in testOnChange()
169 assertTrue(mock.hadCalledOnChange()); in testOnChange()
335 MockDataSetObserver mock = new MockDataSetObserver(); in testDeactivate() local
[all …]
/cts/tests/tests/content/src/android/content/cts/
DSearchRecentSuggestionsProviderTest.java26 import android.test.mock.MockContentResolver;
27 import android.test.mock.MockContext;
/cts/tests/tests/location/
DREADME.txt2 Note you must enable "Allow mock locations" at Settings > Developer options.
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DCameraManagerTest.java211 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerOpenCamerasSerially()
252 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerOpenAllCameras()
417 MockStateCallback mockSuccessListener = MockStateCallback.mock(); in testCameraManagerOpenCameraTwice()
418 MockStateCallback mockFailListener = MockStateCallback.mock(); in testCameraManagerOpenCameraTwice()
522 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerListenerCallbacks()
570 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerListenerCallbacks()
DFlashlightTest.java73 CameraManager.TorchCallback torchListener = mock(CameraManager.TorchCallback.class); in testSetTorchModeOnOff()
98 CameraManager.TorchCallback torchListener = mock(CameraManager.TorchCallback.class); in testSetTorchModeOnOff()
134 CameraManager.TorchCallback torchListener = mock(CameraManager.TorchCallback.class); in testTorchCallback()
169 mock(CameraManager.TorchCallback.class); in testCameraDeviceOpenAfterTorchOn()
DSurfaceViewPreviewTest.java192 mock(CameraCaptureSession.StateCallback.class); in preparePerformanceTestByCamera()
418 mock(CameraCaptureSession.CaptureCallback.class); in previewTestByCamera()
444 mockCaptureCallback = mock(CaptureCallback.class); in previewTestPatternTestByCamera()
DRobustnessTest.java120 mock(CameraCaptureSession.StateCallback.class); in testBadSurfaceDimensions()
133 mock(CameraCaptureSession.CaptureCallback.class); in testBadSurfaceDimensions()
1378 mock(CameraCaptureSession.CaptureCallback.class); in testOutputCombination()
DCameraDeviceTest.java1064 mock(CameraCaptureSession.CaptureCallback.class); in captureSingleShot()
1116 mock(CameraCaptureSession.CaptureCallback.class); in captureBurstShot()
DCameraTestUtils.java1361 public static MockStateCallback mock() { in mock() method in CameraTestUtils.MockStateCallback
/cts/tests/tests/location2/
DREADME.txt2 "android.permission.ACCESS_FINE_LOCATION". Note you must enable "Allow mock locations"
/cts/tests/tests/print/src/android/print/cts/
DBasePrintTest.java24 import static org.mockito.Mockito.mock;
413 protected void verifyLayoutCall(InOrder inOrder, PrintDocumentAdapter mock, in verifyLayoutCall() argument
416 inOrder.verify(mock).onLayout(eq(oldAttributes), eq(newAttributes), in verifyLayoutCall()
436 PrintDocumentAdapter adapter = mock(PrintDocumentAdapter.class); in createMockPrintDocumentAdapter()
458 PrinterDiscoverySessionCallbacks callbacks = mock(PrinterDiscoverySessionCallbacks.class); in createMockPrinterDiscoverySessionCallbacks()
492 final PrintServiceCallbacks service = mock(PrintServiceCallbacks.class); in createMockPrintServiceCallbacks()
DPageRangeAdjustmentTest.java639 PrinterDiscoverySessionCallbacks mock = (PrinterDiscoverySessionCallbacks) in createMockFirstPrinterDiscoverySessionCallbacks()
642 StubbablePrinterDiscoverySession session = mock.getSession(); in createMockFirstPrinterDiscoverySessionCallbacks()
DPrintDocumentAdapterContractTest.java1571 PrinterDiscoverySessionCallbacks mock = (PrinterDiscoverySessionCallbacks) in createFirstMockPrintServiceCallbacks()
1574 StubbablePrinterDiscoverySession session = mock.getSession(); in createFirstMockPrintServiceCallbacks()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java26 import static org.mockito.Mockito.mock;
767 mock(MyAppWidgetHostView.OnUpdateAppWidgetListener.class); in testUpdateAppWidgetViaComponentName()
781 mock(MyAppWidgetHostView.OnUpdateAppWidgetListener.class); in testUpdateAppWidgetViaComponentName()
860 mock(MyAppWidgetHostView.OnUpdateAppWidgetListener.class); in testUpdateAppWidgetViaWidgetId()
935 mock(MyAppWidgetHostView.OnUpdateAppWidgetListener.class); in testUpdateAppWidgetViaWidgetIds()
949 mock(MyAppWidgetHostView.OnUpdateAppWidgetListener.class); in testUpdateAppWidgetViaWidgetIds()
1030 mock(MyAppWidgetHostView.OnUpdateAppWidgetListener.class); in testPartiallyUpdateAppWidgetViaWidgetId()
1110 mock(MyAppWidgetHostView.OnUpdateAppWidgetListener.class); in testPartiallyUpdateAppWidgetViaWidgetIds()
1134 mock(MyAppWidgetHostView.OnUpdateAppWidgetListener.class); in testPartiallyUpdateAppWidgetViaWidgetIds()
1245 RemoteViewsFactory factory = mock(RemoteViewsFactory.class); in testCollectionWidgets()
[all …]
/cts/tests/tests/hardware/src/android/hardware/multiprocess/camera/cts/
DCameraEvictionTest.java153 final Camera.ErrorCallback mockErrorCb1 = mock(Camera.ErrorCallback.class); in testCamera1ActivityEviction()
259 mock(CameraManager.AvailabilityCallback.class); in testBasicCamera2ActivityEviction()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java358 KeyChainAliasCallback aliasCallback = Mockito.mock(KeyChainAliasCallback.class); in chooseClientAlias()