Home
last modified time | relevance | path

Searched refs:captor (Results 1 – 5 of 5) sorted by relevance

/cts/tests/app/src/android/app/cts/
DFragmentReceiveResultTest.java57 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in testStartActivityForResultOk() local
59 .onActivityResult(eq(10), eq(Activity.RESULT_OK), captor.capture()); in testStartActivityForResultOk()
60 final String data = captor.getValue() in testStartActivityForResultOk()
69 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in testStartActivityForResultCanceled() local
71 .onActivityResult(eq(20), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartActivityForResultCanceled()
72 final String data = captor.getValue() in testStartActivityForResultCanceled()
81 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in testStartIntentSenderForResultOk() local
83 .onActivityResult(eq(30), eq(Activity.RESULT_OK), captor.capture()); in testStartIntentSenderForResultOk()
84 final String data = captor.getValue() in testStartIntentSenderForResultOk()
93 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in testStartIntentSenderForResultCanceled() local
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DIdleUidTest.java134 final ArgumentCaptor<CameraDevice> captor = ArgumentCaptor.forClass(CameraDevice.class); in assertCameraAccess() local
139 .times(1)).onOpened(captor.capture()); in assertCameraAccess()
144 .times(1)).onError(captor.capture(), in assertCameraAccess()
149 final CameraDevice cameraDevice = captor.getValue(); in assertCameraAccess()
168 final ArgumentCaptor<CameraDevice> captor = ArgumentCaptor.forClass(CameraDevice.class); in testCameraAccessBecomingInactiveUidByCamera() local
172 .times(1)).onOpened(captor.capture()); in testCameraAccessBecomingInactiveUidByCamera()
183 .times(1)).onError(captor.capture(), in testCameraAccessBecomingInactiveUidByCamera()
190 final CameraDevice cameraDevice = captor.getValue(); in testCameraAccessBecomingInactiveUidByCamera()
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsDownloadFlowTest.java61 MbmsDownloadReceiverTest.AppIntentCapture captor = in testSingleFileDownloadFlow() local
69 Uri fileUri = checkReceivedDownloadCompleteIntent(captor.getIntent(), request, in testSingleFileDownloadFlow()
77 MbmsDownloadReceiverTest.AppIntentCapture captor = in testFileInSubdirectoryDownloadFlow() local
88 Uri fileUri = checkReceivedDownloadCompleteIntent(captor.getIntent(), request, in testFileInSubdirectoryDownloadFlow()
101 MbmsDownloadReceiverTest.AppIntentCapture captor = in testMultiFileDownloadFlow() local
112 for (Intent i : captor.getIntents(2)) { in testMultiFileDownloadFlow()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DEdgeEffectTests.java209 ArgumentCaptor<Paint> captor = ArgumentCaptor.forClass(Paint.class); in verifyAlpha() local
214 verify(canvas).drawCircle(anyFloat(), anyFloat(), anyFloat(), captor.capture()); in verifyAlpha()
215 int oldAlpha = captor.getValue().getAlpha(); in verifyAlpha()
220 verify(canvas).drawCircle(anyFloat(), anyFloat(), anyFloat(), captor.capture()); in verifyAlpha()
221 int newAlpha = captor.getValue().getAlpha(); in verifyAlpha()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java1167 ArgumentCaptor<Transition> captor = ArgumentCaptor.forClass(Transition.class); in verifyTransitionEpicenterChange() local
1172 verify(enterListener, times(1)).onTransitionStart(captor.capture()); in verifyTransitionEpicenterChange()
1173 final Rect oldEpicenterStart = new Rect(captor.getValue().getEpicenter()); in verifyTransitionEpicenterChange()
1178 verify(exitListener, times(1)).onTransitionStart(captor.capture()); in verifyTransitionEpicenterChange()
1179 final Rect oldEpicenterExit = new Rect(captor.getValue().getEpicenter()); in verifyTransitionEpicenterChange()
1185 verify(enterListener, times(2)).onTransitionStart(captor.capture()); in verifyTransitionEpicenterChange()
1186 final Rect newEpicenterStart = new Rect(captor.getValue().getEpicenter()); in verifyTransitionEpicenterChange()
1191 verify(exitListener, times(2)).onTransitionStart(captor.capture()); in verifyTransitionEpicenterChange()
1193 final Rect newEpicenterExit = new Rect(captor.getValue().getEpicenter()); in verifyTransitionEpicenterChange()