/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | BlurTests.java | 121 final Bitmap screenshot = takeScreenshot(); in testBlurBehindSimple() local 123 assertBlurBehind(screenshot, windowFrame); in testBlurBehindSimple() 124 assertNoBackgroundBlur(screenshot, windowFrame); in testBlurBehindSimple() 168 Bitmap screenshot = takeScreenshot(); in testBackgroundBlurActivatesFallbackDynamically() local 170 assertNoBlurBehind(screenshot, windowFrame); in testBackgroundBlurActivatesFallbackDynamically() 175 screenshot = takeScreenshot(); in testBackgroundBlurActivatesFallbackDynamically() 176 assertNoBackgroundBlur(screenshot, windowFrame); in testBackgroundBlurActivatesFallbackDynamically() 177 assertNoBlurBehind(screenshot, windowFrame); in testBackgroundBlurActivatesFallbackDynamically() 182 screenshot = takeScreenshot(); in testBackgroundBlurActivatesFallbackDynamically() 184 assertNoBlurBehind(screenshot, windowFrame); in testBackgroundBlurActivatesFallbackDynamically() [all …]
|
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 | 102 Bitmap screenshot = getInstrumentation().getUiAutomation().takeScreenshot(); in runTest() local 103 final int center = screenshot.getWidth() / 2; in runTest() 104 int imePositionApp = lowestPixelWithColor(APP_COLOR, 1, screenshot); in runTest() 105 int contentBottomMiddle = lowestPixelWithColor(APP_COLOR, center, screenshot); in runTest() 107 lowestPixelWithColor(BEHIND_IME_COLOR, center, screenshot); in runTest()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | ScreenCaptureDisabledTest.java | 83 Bitmap screenshot = null; in testScreenCaptureImpossible() local 87 screenshot = takeScreenshot(); in testScreenCaptureImpossible() 88 if (screenshot == null) break; in testScreenCaptureImpossible() 90 assertWithMessage("screenshot").that(screenshot).isNull(); in testScreenCaptureImpossible() 94 Bitmap screenshot = null; in testScreenCapturePossible() local 98 screenshot = takeScreenshot(); in testScreenCapturePossible() 99 if (screenshot != null) break; in testScreenCapturePossible() 101 assertWithMessage("screenshot").that(screenshot).isNotNull(); in testScreenCapturePossible() 105 Bitmap screenshot = getInstrumentation().getUiAutomation().takeScreenshot(); in takeScreenshot() local 106 Log.d(TAG, "takeScreenshot(): got " + screenshot); in takeScreenshot() [all …]
|
/cts/tests/bugreport/src/android/bugreport/cts/ |
D | BugreportManagerTest.java | 97 String screenshot = brFiles.second; in testTelephonyBugreport() local 102 assertThat(screenshot).isNull(); in testTelephonyBugreport() 110 String screenshot = brFiles.second; in testFullBugreport() local 115 assertScreenshotFileNameCorrect(screenshot); in testFullBugreport() 116 assertThatFileisNotEmpty(screenshot); in testFullBugreport() 124 String screenshot = brFiles.second; in testInteractiveBugreport() local 131 assertScreenshotFileNameCorrect(screenshot); in testInteractiveBugreport() 132 assertThatFileisNotEmpty(screenshot); in testInteractiveBugreport() 134 assertThat(screenshot).isNull(); in testInteractiveBugreport() 143 String screenshot = brFiles.second; in testWifiBugreport() local [all …]
|
/cts/tests/tests/assist/service/src/android/assist/service/ |
D | MainInteractionSession.java | 187 public void onHandleScreenshot(/*@Nullable*/ Bitmap screenshot) { in onHandleScreenshot() argument 188 Log.i(TAG, String.format("onHandleScreenshot - Screenshot: %s", screenshot)); in onHandleScreenshot() 189 super.onHandleScreenshot(screenshot); in onHandleScreenshot() 191 if (screenshot != null) { in onHandleScreenshot() 195 boolean screenshotMatches = compareScreenshot(screenshot, mCurColor); in onHandleScreenshot() 207 private boolean compareScreenshot(Bitmap screenshot, int color) { in compareScreenshot() argument 210 if (screenshot.getWidth() != size.x || screenshot.getHeight() != size.y) { in compareScreenshot() 211 Log.i(TAG, "width or height didn't match: " + size + " vs " + screenshot.getWidth() in compareScreenshot() 212 + "," + screenshot.getHeight()); in compareScreenshot() 216 screenshot.getPixels(pixels, 0, size.x, 0, 0, size.x, size.y); in compareScreenshot() [all …]
|
/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 | 161 Bitmap screenshot = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testRotateScale() local 162 int result = new SynchronousPixelCopy().request(window, viewPos, screenshot); in testRotateScale() 165 assertBitmapQuadColor(screenshot, in testRotateScale() 203 Bitmap screenshot = Bitmap.createBitmap(viewPos.width(), viewPos.height(), in testTransformScale() local 205 int result = new SynchronousPixelCopy().request(window, viewPos, screenshot); in testTransformScale() 215 screenshot.getPixel(10, texturePos.top - 10)); in testTransformScale() 217 screenshot.getPixel(10, texturePos.bottom + 10)); in testTransformScale() 219 screenshot.getPixel(texturePos.left + 10, texturePos.top + 10)); in testTransformScale() 221 screenshot.getPixel(texturePos.right - 10, texturePos.top + 10)); in testTransformScale() 223 screenshot.getPixel(texturePos.left + 10, texturePos.bottom - 10)); in testTransformScale() [all …]
|
D | OWNERS | 4 ….java = file:platform/frameworks/base:/packages/SystemUI/src/com/android/systemui/screenshot/OWNERS
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTakeScreenshotTest.java | 238 … private boolean doesBitmapDisplaySecureContent(Activity activity, Bitmap screenshot, int color) { in doesBitmapDisplaySecureContent() argument 244 final Bitmap bitmap = screenshot.copy(Bitmap.Config.ARGB_8888, false); in doesBitmapDisplaySecureContent() 264 private void verifyScreenshotResult(AccessibilityService.ScreenshotResult screenshot) { in verifyScreenshotResult() argument 265 assertNotNull(screenshot); in verifyScreenshotResult() 266 final HardwareBuffer hardwareBuffer = screenshot.getHardwareBuffer(); in verifyScreenshotResult() 271 final ColorSpace colorSpace = screenshot.getColorSpace(); in verifyScreenshotResult() 274 final long finishTestingTime = screenshot.getTimestamp(); in verifyScreenshotResult()
|
D | AccessibilityFocusAndInputFocusSyncTest.java | 377 final Bitmap screenshot = sUiAutomation.takeScreenshot(); in screenshotAfterChangeFocusColor() local 386 return screenshot; in screenshotAfterChangeFocusColor()
|
/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 | 87 Bitmap screenshot = InstrumentationRegistry.getInstrumentation() in onFailure() local 89 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 | 586 ScreenshotEnabled screenshot) { in setFeaturesEnabled() argument 587 Log.i(TAG, "setFeaturesEnabled(" + structure + ", " + screenshot + ")"); in setFeaturesEnabled() 589 sScreenshotEnabledMgr.set(screenshot.value); in setFeaturesEnabled()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | UiBot.java | 1196 final Bitmap screenshot = takeScreenshot(); 1197 Helper.dumpBitmap(screenshot, file);
|
/cts/tools/release-parser/tests/resources/ |
D | Shell.apk.pb.txt | 5593 name: "screenshot"
|