/cts/tests/tests/database/src/android/database/cts/ |
D | AbstractCursorTest.java | 152 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/ |
D | SearchRecentSuggestionsProviderTest.java | 26 import android.test.mock.MockContentResolver; 27 import android.test.mock.MockContext;
|
/cts/tests/tests/location/ |
D | README.txt | 2 Note you must enable "Allow mock locations" at Settings > Developer options.
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | CameraManagerTest.java | 211 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()
|
D | FlashlightTest.java | 73 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()
|
D | SurfaceViewPreviewTest.java | 192 mock(CameraCaptureSession.StateCallback.class); in preparePerformanceTestByCamera() 418 mock(CameraCaptureSession.CaptureCallback.class); in previewTestByCamera() 444 mockCaptureCallback = mock(CaptureCallback.class); in previewTestPatternTestByCamera()
|
D | RobustnessTest.java | 120 mock(CameraCaptureSession.StateCallback.class); in testBadSurfaceDimensions() 133 mock(CameraCaptureSession.CaptureCallback.class); in testBadSurfaceDimensions() 1378 mock(CameraCaptureSession.CaptureCallback.class); in testOutputCombination()
|
D | CameraDeviceTest.java | 1064 mock(CameraCaptureSession.CaptureCallback.class); in captureSingleShot() 1116 mock(CameraCaptureSession.CaptureCallback.class); in captureBurstShot()
|
D | CameraTestUtils.java | 1361 public static MockStateCallback mock() { in mock() method in CameraTestUtils.MockStateCallback
|
/cts/tests/tests/location2/ |
D | README.txt | 2 "android.permission.ACCESS_FINE_LOCATION". Note you must enable "Allow mock locations"
|
/cts/tests/tests/print/src/android/print/cts/ |
D | BasePrintTest.java | 24 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()
|
D | PageRangeAdjustmentTest.java | 639 PrinterDiscoverySessionCallbacks mock = (PrinterDiscoverySessionCallbacks) in createMockFirstPrinterDiscoverySessionCallbacks() 642 StubbablePrinterDiscoverySession session = mock.getSession(); in createMockFirstPrinterDiscoverySessionCallbacks()
|
D | PrintDocumentAdapterContractTest.java | 1571 PrinterDiscoverySessionCallbacks mock = (PrinterDiscoverySessionCallbacks) in createFirstMockPrintServiceCallbacks() 1574 StubbablePrinterDiscoverySession session = mock.getSession(); in createFirstMockPrintServiceCallbacks()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 26 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/ |
D | CameraEvictionTest.java | 153 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/ |
D | KeyChainTest.java | 358 KeyChainAliasCallback aliasCallback = Mockito.mock(KeyChainAliasCallback.class); in chooseClientAlias()
|