Searched refs:captor (Results 1 – 7 of 7) sorted by relevance
/cts/tests/app/src/android/app/cts/ |
D | FragmentReceiveResultTest.java | 60 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in testStartActivityForResultOk() local 62 .onActivityResult(eq(10), eq(Activity.RESULT_OK), captor.capture()); in testStartActivityForResultOk() 63 final String data = captor.getValue() in testStartActivityForResultOk() 72 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in testStartActivityForResultCanceled() local 74 .onActivityResult(eq(20), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartActivityForResultCanceled() 75 final String data = captor.getValue() in testStartActivityForResultCanceled() 84 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in testStartIntentSenderForResultOk() local 86 .onActivityResult(eq(30), eq(Activity.RESULT_OK), captor.capture()); in testStartIntentSenderForResultOk() 87 final String data = captor.getValue() in testStartIntentSenderForResultOk() 96 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in testStartIntentSenderForResultCanceled() local [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | IdleUidTest.java | 135 final ArgumentCaptor<CameraDevice> captor = ArgumentCaptor.forClass(CameraDevice.class); in assertCameraAccess() local 140 .times(1)).onOpened(captor.capture()); in assertCameraAccess() 145 .times(1)).onError(captor.capture(), in assertCameraAccess() 150 final CameraDevice cameraDevice = captor.getValue(); in assertCameraAccess() 169 final ArgumentCaptor<CameraDevice> captor = ArgumentCaptor.forClass(CameraDevice.class); in testCameraAccessBecomingInactiveUidByCamera() local 173 .times(1)).onOpened(captor.capture()); in testCameraAccessBecomingInactiveUidByCamera() 184 .times(1)).onError(captor.capture(), in testCameraAccessBecomingInactiveUidByCamera() 191 final CameraDevice cameraDevice = captor.getValue(); in testCameraAccessBecomingInactiveUidByCamera()
|
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/ |
D | MbmsDownloadFlowTest.java | 61 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/bluetooth/src/android/bluetooth/cts/ |
D | HearingAidProfileTest.java | 123 ArgumentCaptor<BluetoothProfile> captor = ArgumentCaptor.forClass(BluetoothProfile.class); in setUp() local 125 .onServiceConnected(eq(BluetoothProfile.HEARING_AID), captor.capture()); in setUp() 126 mService = (BluetoothHearingAid) captor.getValue(); in setUp() 307 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in getConnectionStateChangedIntent() local 313 .onReceive(any(), captor.capture()); in getConnectionStateChangedIntent() 318 for (Intent intent : captor.getAllValues()) { in getConnectionStateChangedIntent()
|
D | BluetoothHapClientTest.java | 92 ArgumentCaptor<BluetoothProfile> captor = ArgumentCaptor.forClass(BluetoothProfile.class); in setUp() local 94 .onServiceConnected(eq(BluetoothProfile.HAP_CLIENT), captor.capture()); in setUp() 95 mService = (BluetoothHapClient) captor.getValue(); in setUp()
|
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | ActivityInterceptionTest.java | 181 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in assertIntentIntercepted() local 183 .onIntentIntercepted(captor.capture()); in assertIntentIntercepted() 184 Intent capturedIntent = captor.getValue(); in assertIntentIntercepted()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | PopupWindowTest.java | 1237 ArgumentCaptor<Transition> captor = ArgumentCaptor.forClass(Transition.class); in verifyTransitionEpicenterChange() local 1242 verify(enterListener, times(1)).onTransitionStart(captor.capture()); in verifyTransitionEpicenterChange() 1243 final Rect oldEpicenterStart = new Rect(captor.getValue().getEpicenter()); in verifyTransitionEpicenterChange() 1248 verify(exitListener, times(1)).onTransitionStart(captor.capture()); in verifyTransitionEpicenterChange() 1249 final Rect oldEpicenterExit = new Rect(captor.getValue().getEpicenter()); in verifyTransitionEpicenterChange() 1255 verify(enterListener, times(2)).onTransitionStart(captor.capture()); in verifyTransitionEpicenterChange() 1256 final Rect newEpicenterStart = new Rect(captor.getValue().getEpicenter()); in verifyTransitionEpicenterChange() 1261 verify(exitListener, times(2)).onTransitionStart(captor.capture()); in verifyTransitionEpicenterChange() 1263 final Rect newEpicenterExit = new Rect(captor.getValue().getEpicenter()); in verifyTransitionEpicenterChange()
|