/cts/tests/tests/assist/service/src/android/assist/service/ |
D | MainInteractionSession.java | 165 public void onHandleScreenshot(/*@Nullable*/ Bitmap screenshot) { in onHandleScreenshot() argument 166 Log.i(TAG, String.format("onHandleScreenshot - Screenshot: %s", screenshot)); in onHandleScreenshot() 167 super.onHandleScreenshot(screenshot); in onHandleScreenshot() 169 if (screenshot != null) { in onHandleScreenshot() 173 boolean screenshotMatches = compareScreenshot(screenshot, mCurColor); in onHandleScreenshot() 185 private boolean compareScreenshot(Bitmap screenshot, int color) { in compareScreenshot() argument 188 if (screenshot.getWidth() != size.x || screenshot.getHeight() != size.y) { in compareScreenshot() 189 Log.i(TAG, "width or height didn't match: " + size + " vs " + screenshot.getWidth() in compareScreenshot() 190 + "," + screenshot.getHeight()); in compareScreenshot() 194 screenshot.getPixels(pixels, 0, size.x, 0, 0, size.x, size.y); in compareScreenshot() [all …]
|
/cts/tests/bugreport/src/android/bugreport/cts/ |
D | BugreportManagerTest.java | 82 String screenshot = brFiles.second; in testTelephonyBugreport() local 91 assertThat(screenshot).isNull(); in testTelephonyBugreport() 98 String screenshot = brFiles.second; in testFullBugreport() local 105 assertThat(screenshot).startsWith( in testFullBugreport() 107 assertThat(screenshot).endsWith("-default.png"); in testFullBugreport() 108 assertThatFileisNotEmpty(screenshot); in testFullBugreport() 173 String screenshot = response.getStringExtra(EXTRA_SCREENSHOT); in triggerBugreport() local 174 return new Pair<String, String>(bugreport, screenshot); in triggerBugreport()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | LocationOnScreenTests.java | 156 final Bitmap screenshot = getInstrumentation().getUiAutomation().takeScreenshot(); in findTestColorsInScreenshot() local 161 if (isTestColors(screenshot, guess.x, guess.y)) { in findTestColorsInScreenshot() 165 for (int y = 0; y < screenshot.getHeight(); y++) { in findTestColorsInScreenshot() 166 for (int x = 0; x < screenshot.getWidth() - 1; x++) { in findTestColorsInScreenshot() 167 if (isTestColors(screenshot, x, y)) { in findTestColorsInScreenshot() 174 BitmapUtils.saveBitmap(screenshot, path, file); in findTestColorsInScreenshot() 180 private boolean isTestColors(Bitmap screenshot, int x, int y) { in isTestColors() argument 181 return sameColorWithinTolerance(screenshot.getPixel(x, y), TEST_COLOR_1) in isTestColors() 182 && sameColorWithinTolerance(screenshot.getPixel(x + 1, y), TEST_COLOR_2); in isTestColors()
|
D | WindowInsetsAnimationSynchronicityTests.java | 98 Bitmap screenshot = getInstrumentation().getUiAutomation().takeScreenshot(); in runTest() local 99 final int center = screenshot.getWidth() / 2; in runTest() 100 int imePositionApp = lowestPixelWithColor(APP_COLOR, 1, screenshot); in runTest() 101 int contentBottomMiddle = lowestPixelWithColor(APP_COLOR, center, screenshot); in runTest() 103 lowestPixelWithColor(BEHIND_IME_COLOR, center, screenshot); in runTest()
|
/cts/hostsidetests/devicepolicy/app/Assistant/src/com/android/cts/devicepolicy/assistapp/ |
D | MyInteractionSessionService.java | 45 public void onHandleScreenshot(Bitmap screenshot) { in onHandleScreenshot() argument 46 Log.d(TAG, "onHandleScreenshot() called with: screenshot = [" + screenshot + "]"); in onHandleScreenshot() 49 intent.putExtra(KEY_HAS_SCREENSHOT, screenshot != null); in onHandleScreenshot()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewTest.java | 157 Bitmap screenshot = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testRotateScale() local 158 int result = new SynchronousPixelCopy().request(window, viewPos, screenshot); in testRotateScale() 161 PixelCopyTest.assertBitmapQuadColor(screenshot, in testRotateScale() 199 Bitmap screenshot = Bitmap.createBitmap(viewPos.width(), viewPos.height(), in testTransformScale() local 201 int result = new SynchronousPixelCopy().request(window, viewPos, screenshot); in testTransformScale() 211 screenshot.getPixel(10, texturePos.top - 10)); in testTransformScale() 213 screenshot.getPixel(10, texturePos.bottom + 10)); in testTransformScale() 215 screenshot.getPixel(texturePos.left + 10, texturePos.top + 10)); in testTransformScale() 217 screenshot.getPixel(texturePos.right - 10, texturePos.top + 10)); in testTransformScale() 219 screenshot.getPixel(texturePos.left + 10, texturePos.bottom - 10)); in testTransformScale() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTakeScreenshotTest.java | 235 … private boolean doesBitmapDisplaySecureContent(Activity activity, Bitmap screenshot, int color) { in doesBitmapDisplaySecureContent() argument 241 final Bitmap bitmap = screenshot.copy(Bitmap.Config.ARGB_8888, false); in doesBitmapDisplaySecureContent() 261 private void verifyScreenshotResult(AccessibilityService.ScreenshotResult screenshot) { in verifyScreenshotResult() argument 262 assertNotNull(screenshot); in verifyScreenshotResult() 263 final HardwareBuffer hardwareBuffer = screenshot.getHardwareBuffer(); in verifyScreenshotResult() 268 final ColorSpace colorSpace = screenshot.getColorSpace(); in verifyScreenshotResult() 271 final long finishTestingTime = screenshot.getTimestamp(); in verifyScreenshotResult()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | ScreenshotTestRule.java | 21 import androidx.test.runner.screenshot.BasicScreenCaptureProcessor; 22 import androidx.test.runner.screenshot.ScreenCapture; 23 import androidx.test.runner.screenshot.Screenshot;
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | BitmapAsserter.java | 88 Bitmap screenshot = InstrumentationRegistry.getInstrumentation() in onFailure() local 90 BitmapDumper.dumpBitmap(screenshot, testName + "_fullscreenshot", mClassName); in onFailure()
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | AccessibilityDumper.java | 148 final Bitmap screenshot = automation.takeScreenshot(); in dumpScreen() local 150 BitmapUtils.saveBitmap(screenshot, mRoot.toString(), filename); in dumpScreen()
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | AssistTestBase.java | 568 ScreenshotEnabled screenshot) { in setFeaturesEnabled() argument 569 Log.i(TAG, "setFeaturesEnabled(" + structure + ", " + screenshot + ")"); in setFeaturesEnabled() 571 sScreenshotEnabledMgr.set(screenshot.value); in setFeaturesEnabled()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | UiBot.java | 1180 final Bitmap screenshot = takeScreenshot(); 1181 Helper.dumpBitmap(screenshot, file);
|
/cts/tools/release-parser/tests/resources/ |
D | Shell.apk.pb.txt | 5593 name: "screenshot"
|