/cts/tests/location/location_fine/src/android/location/cts/fine/ |
D | LocationManagerFineTest.java | 249 try (GetCurrentLocationCapture capture = new GetCurrentLocationCapture()) { in testGetCurrentLocation() argument 250 mManager.getCurrentLocation(TEST_PROVIDER, capture.getCancellationSignal(), in testGetCurrentLocation() 251 Executors.newSingleThreadExecutor(), capture); in testGetCurrentLocation() 253 assertThat(capture.getLocation(TIMEOUT_MS)).isEqualTo(loc); in testGetCurrentLocation() 267 try (GetCurrentLocationCapture capture = new GetCurrentLocationCapture()) { in testGetCurrentLocation_Timeout() argument 271 capture.getCancellationSignal(), in testGetCurrentLocation_Timeout() 273 capture); in testGetCurrentLocation_Timeout() 274 assertThat(capture.getLocation(1000)).isNull(); in testGetCurrentLocation_Timeout() 291 try (GetCurrentLocationCapture capture = new GetCurrentLocationCapture()) { in testGetCurrentLocation_FreshOldLocation() argument 292 mManager.getCurrentLocation(TEST_PROVIDER, capture.getCancellationSignal(), in testGetCurrentLocation_FreshOldLocation() [all …]
|
D | GeofencingTest.java | 122 try (ProximityPendingIntentCapture capture = new ProximityPendingIntentCapture(mContext)) { in testAddProximityAlert() argument 123 mManager.addProximityAlert(0, 0, 1000, -1, capture.getPendingIntent()); in testAddProximityAlert() 127 assertThat(capture.getNextProximityChange(TIMEOUT_MS)).isEqualTo(Boolean.TRUE); in testAddProximityAlert() 131 assertThat(capture.getNextProximityChange(TIMEOUT_MS)).isEqualTo(Boolean.FALSE); in testAddProximityAlert() 155 try (ProximityPendingIntentCapture capture = new ProximityPendingIntentCapture(mContext)) { in testAddProximityAlert() argument 157 mManager.addProximityAlert(0, 0, 0, -1, capture.getPendingIntent()); in testAddProximityAlert() 164 mManager.addProximityAlert(0, 0, -1, -1, capture.getPendingIntent()); in testAddProximityAlert() 171 mManager.addProximityAlert(1000, 1000, 1000, -1, capture.getPendingIntent()); in testAddProximityAlert() 200 try (ProximityPendingIntentCapture capture = new ProximityPendingIntentCapture(mContext)) { in testRemoveProximityAlert() argument 201 mManager.addProximityAlert(0, 0, 1000, -1, capture.getPendingIntent()); in testRemoveProximityAlert() [all …]
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | ScreenshotTestRule.java | 63 private void capture(String fileName) { in capture() method in ScreenshotTestRule 64 ScreenCapture screenCapture = Screenshot.capture(); in capture() 75 private void capture(Description description, String result) { in capture() method in ScreenshotTestRule 78 capture(fileName + "_" + result); in capture() 81 public void capture() { in capture() method in ScreenshotTestRule 82 capture(mClassName + "#" + mTestMethod); in capture() 99 capture(description, "failed"); in failed()
|
/cts/tests/location/location_none/src/android/location/cts/none/ |
D | NoLocationPermissionTest.java | 57 try (LocationListenerCapture capture = new LocationListenerCapture(mContext)) { in testRequestLocationUpdates() argument 58 mLocationManager.requestLocationUpdates(provider, 0, 0, capture, in testRequestLocationUpdates() 65 try (LocationListenerCapture capture = new LocationListenerCapture(mContext)) { in testRequestLocationUpdates() argument 66 mLocationManager.requestLocationUpdates(provider, 0, 0, Runnable::run, capture); in testRequestLocationUpdates() 72 try (LocationPendingIntentCapture capture = new LocationPendingIntentCapture( in testRequestLocationUpdates() argument 74 mLocationManager.requestLocationUpdates(provider, 0, 0, capture.getPendingIntent()); in testRequestLocationUpdates() 84 try (ProximityPendingIntentCapture capture = new ProximityPendingIntentCapture(mContext)) { in testAddProximityAlert() argument 85 mLocationManager.addProximityAlert(0, 0, 100, -1, capture.getPendingIntent()); in testAddProximityAlert()
|
/cts/tests/location/location_coarse/src/android/location/cts/coarse/ |
D | LocationManagerCoarseTest.java | 174 try (LocationListenerCapture capture = new LocationListenerCapture(mContext)) { in testRequestLocationUpdates() argument 180 capture); in testRequestLocationUpdates() 182 assertThat(capture.getNextLocation(TIMEOUT_MS)).isNearby(loc, mMaxCoarseFudgeDistanceM); in testRequestLocationUpdates() 184 assertThat(capture.getNextLocation(TIMEOUT_MS)).isNull(); in testRequestLocationUpdates() 197 try (LocationListenerCapture capture = new LocationListenerCapture(mContext)) { in testRequestLocationUpdates_Passive() argument 204 capture); in testRequestLocationUpdates_Passive() 206 assertThat(capture.getNextLocation(TIMEOUT_MS)).isNearby(loc, mMaxCoarseFudgeDistanceM); in testRequestLocationUpdates_Passive() 208 assertThat(capture.getNextLocation(TIMEOUT_MS)).isNull(); in testRequestLocationUpdates_Passive() 221 try (LocationPendingIntentCapture capture = new LocationPendingIntentCapture(mContext)) { in testRequestLocationUpdates_PendingIntent() argument 222 mManager.requestLocationUpdates(TEST_PROVIDER, 0, 0, capture.getPendingIntent()); in testRequestLocationUpdates_PendingIntent() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | EmojiTest.java | 125 bitmapA = ccanvas.capture(Character.toChars(sComparedCodePoints[i][0])); in testEmojiGlyph() 126 bitmapB = ccanvas.capture(Character.toChars(sComparedCodePoints[i][1])); in testEmojiGlyph() 133 bitmapA = cviewA.capture(Character.toChars(sComparedCodePoints[i][0])); in testEmojiGlyph() 135 bitmapB = cviewB.capture(Character.toChars(sComparedCodePoints[i][1])); in testEmojiGlyph() 141 bitmapA = cedittextA.capture(Character.toChars(sComparedCodePoints[i][0])); in testEmojiGlyph() 143 bitmapB = cedittextB.capture(Character.toChars(sComparedCodePoints[i][1])); in testEmojiGlyph() 168 bitmapA = cwebview.capture(Character.toChars(sComparedCodePoints[i][0])); in testEmojiGlyphWebView() 169 bitmapB = cwebview.capture(Character.toChars(sComparedCodePoints[i][1])); in testEmojiGlyphWebView() 227 Bitmap capture(char c[]) { in capture() method in EmojiTest.CaptureCanvas 250 Bitmap capture(char c[]) { in capture() method in EmojiTest.CaptureTextView [all …]
|
D | MyanmarTest.java | 204 final Bitmap bitmapCorrect = CaptureTextView.capture(context, localeList, in isUnicodeRendersCorrectly() 206 final Bitmap bitmapWrong = CaptureTextView.capture(context, localeList, in isUnicodeRendersCorrectly() 213 final Bitmap bitmapCorrect = CaptureTextView.capture(context, localeList, in isZawgyiRendersCorrectly() 215 final Bitmap bitmapWrong = CaptureTextView.capture(context, localeList, in isZawgyiRendersCorrectly() 235 private Bitmap capture(String text) { in capture() method in MyanmarTest.CaptureTextView 250 static Bitmap capture(Context context, LocaleList localeList, String string) { in capture() method in MyanmarTest.CaptureTextView 253 return textView.capture(string); in capture()
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | BitmapDumper.java | 107 File capture = getFile(className, testName, TYPE_SINGULAR); in dumpBitmap() local 108 saveBitmap(bitmap, capture); in dumpBitmap() 109 Log.d(TAG, testName + " saved " + capture.getAbsolutePath()); in dumpBitmap() 111 report.putString(KEY_PREFIX + TYPE_SINGULAR, bypassContentProvider(capture)); in dumpBitmap()
|
/cts/tests/app/src/android/app/cts/ |
D | FragmentReceiveResultTest.java | 61 .onActivityResult(eq(10), eq(Activity.RESULT_OK), captor.capture()); in testStartActivityForResultOk() 73 .onActivityResult(eq(20), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartActivityForResultCanceled() 85 .onActivityResult(eq(30), eq(Activity.RESULT_OK), captor.capture()); in testStartIntentSenderForResultOk() 97 .onActivityResult(eq(40), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartIntentSenderForResultCanceled()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | IdleUidTest.java | 140 .times(1)).onOpened(captor.capture()); in assertCameraAccess() 145 .times(1)).onError(captor.capture(), in assertCameraAccess() 173 .times(1)).onOpened(captor.capture()); in testCameraAccessBecomingInactiveUidByCamera() 184 .times(1)).onError(captor.capture(), in testCameraAccessBecomingInactiveUidByCamera()
|
D | FastBasicsTest.java | 118 CaptureRequest capture = stillCaptureRequest.build(); in camera2TestByCamera() local 119 mSession.capture(capture, resultListener, mHandler); in camera2TestByCamera() 122 resultListener.getTotalCaptureResultForRequest(capture, FRAMES_TO_WAIT_FOR_CAPTURE); in camera2TestByCamera()
|
D | SurfaceViewPreviewTest.java | 529 mSession.capture(request.build(), resultListener, mHandler); in testDeferredSurfacesByCamera() 539 mSession.capture(request.build(), resultListener, mHandler); in testDeferredSurfacesByCamera() 582 mSession.capture(request.build(), resultListener, mHandler); in testDeferredSurfacesByCamera() 591 mSession.capture(request.build(), resultListener, mHandler); in testDeferredSurfacesByCamera() 607 mSession.capture(request.build(), resultListener, mHandler); in testDeferredSurfacesByCamera() 894 timestamps.capture(), in verifyCaptureResults() 895 frameNumbers.capture()); in verifyCaptureResults()
|
D | StillCaptureTest.java | 680 mSession.capture(request, resultListener, mHandler); in focalLengthTestByCamera() 718 mSession.capture(request, stillResultListener, mHandler); in previewPersistenceTestByCamera() 889 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() 897 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() 904 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() 929 mSession.capture(request, resultListener, mHandler); in takePictureTestByCamera() 1025 mSession.capture(stillRequest.build(), resultListener, mHandler); in previewStillCombinationTestByCamera() 1065 mSession.capture(rawRequest, resultListener, mHandler); in rawCaptureTestByCamera() 1141 mSession.capture(multiRequest, resultListener, mHandler); in fullRawCaptureTestByCamera() 1324 mSession.capture(request, resultListener, mHandler); in stillExifTestByCamera() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ChoreographerTest.java | 210 .doFrame(frameTimeNanosCaptor1.capture()); in testPostFrameCallbackWithoutDelay() 211 verify(addedFrameCallback2, times(1)).doFrame(frameTimeNanosCaptor2.capture()); in testPostFrameCallbackWithoutDelay() 227 .doFrame(frameTimeNanosCaptor1.capture()); in testPostFrameCallbackWithoutDelay() 228 verify(addedFrameCallback2, times(1)).doFrame(frameTimeNanosCaptor2.capture()); in testPostFrameCallbackWithoutDelay() 262 .doFrame(frameTimeNanosCaptor.capture()); in testPostFrameCallbackWithDelay()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTakeScreenshotTest.java | 134 mSuccessResultArgumentCaptor.capture()); in testTakeScreenshot_GetScreenshotResult() 143 mSuccessResultArgumentCaptor.capture()); in testTakeScreenshot_RequestIntervalTime() 158 mSuccessResultArgumentCaptor.capture()); in testTakeScreenshot_RequestIntervalTime() 175 mSuccessResultArgumentCaptor.capture()); in testTakeScreenshotOnVirtualDisplay_GetScreenshotResult() 228 mSuccessResultArgumentCaptor.capture()); in testTakeScreenshotWithSecureWindow_GetScreenshotAndVerifyBitmap()
|
/cts/tests/devicestate/src/android/hardware/devicestate/cts/ |
D | DeviceStateManagerTests.java | 87 verify(callback, atLeastOnce()).onStateChanged(intAgumentCaptor.capture()); in testRequestAllSupportedStates() 246 verify(callback, timeout(CALLBACK_TIMEOUT_MS)).onStateChanged(intAgumentCaptor.capture()); in testRegisterCallbackSuppliesInitialValue() 250 .onBaseStateChanged(intAgumentCaptor.capture()); in testRegisterCallbackSuppliesInitialValue() 254 .onSupportedStatesChanged(intArrayAgumentCaptor.capture()); in testRegisterCallbackSuppliesInitialValue()
|
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/ |
D | poc.cpp | 165 outMsg->body.capture.eventId = msg.body.capture.eventId; in sanitizeMessage() 166 outMsg->body.capture.pointerCaptureEnabled = msg.body.capture.pointerCaptureEnabled; in sanitizeMessage() 170 outMsg->body.capture.eventId = msg.body.capture.eventId; in sanitizeMessage()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | DeferSyncTest.java | 124 extrasCaptor.capture(), any(), any(), any()); in deferSyncAndMakeSyncable() 150 extrasCaptor.capture(), any(), any(), any()); in deferSyncAndReportIsReady() 175 extrasCaptor.capture(), any(), any(), any()); in deferSyncAndReportIsReadyAlwaysSyncable() 199 extrasCaptor.capture(), any(), any(), any()); in onNewAccountForEachAccount()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | BitmapDumper.java | 156 File capture = getFile(className, testName, TYPE_SINGULAR); in dumpBitmap() local 157 saveBitmap(bitmap, capture); in dumpBitmap() 159 report.putString(KEY_PREFIX + TYPE_SINGULAR, bypassContentProvider(capture)); in dumpBitmap()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputConnectionWrapperTest.java | 80 verify(inputConnection, times(1)).commitCompletion(completionInfoCaptor.capture()); in testInputConnectionWrapper() 88 verify(inputConnection, times(1)).commitCorrection(correctionInfoCaptor.capture()); in testInputConnectionWrapper() 135 verify(inputConnection, times(1)).sendKeyEvent(keyEventCaptor.capture()); in testInputConnectionWrapper()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | Camera2Focuser.java | 220 mSession.capture(requestBuilder.build(), listener, mHandler); in cancelAutoFocus() 257 mSession.capture(requestBuilder.build(), listener, mHandler); in startAutoFocusLocked() 281 mSession.capture(requestBuilder.build(), listener, mHandler); in startAutoFocusFullActiveLocked()
|
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | SurfacePixelValidator2.java | 85 Bitmap capture = Bitmap.wrapHardwareBuffer( 88 mFirstFailures.put(totalFramesSeen, capture);
|
/cts/tests/searchui/src/android/searchuiservice/cts/ |
D | SearchUiManagerTest.java | 187 .onNotifyEvent(any(), queryArg.capture(), eventArg.capture()); in testNotifyEvent() 236 .onQuery(any(), queryArg.capture(), callbackArg.capture()); in testQuery_params()
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentTransitionTest.java | 285 verify(enterCallback).onSharedElementStart(names.capture(), views.capture(), in callStartEndWithSharedElements() 286 snapshots.capture()); in callStartEndWithSharedElements() 295 verify(enterCallback).onSharedElementEnd(names.capture(), views.capture(), in callStartEndWithSharedElements() 296 snapshots.capture()); in callStartEndWithSharedElements() 307 verify(enterCallback).onSharedElementStart(names.capture(), views.capture(), in callStartEndWithSharedElements() 308 snapshots.capture()); in callStartEndWithSharedElements() 317 verify(enterCallback).onSharedElementEnd(names.capture(), views.capture(), in callStartEndWithSharedElements() 318 snapshots.capture()); in callStartEndWithSharedElements()
|
/cts/tests/contentsuggestions/src/android/contentsuggestions/cts/ |
D | ContentSuggestionsManagerTest.java | 134 verifyService().onProcessContextImage(eq(taskId), bitmapArg.capture(), in managerForwards_provideContextBitmap() 135 bundleArg.capture()); in managerForwards_provideContextBitmap()
|