Home
last modified time | relevance | path

Searched refs:screenshot (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/assist/service/src/android/assist/service/
DMainInteractionSession.java159 public void onHandleScreenshot(/*@Nullable*/ Bitmap screenshot) { in onHandleScreenshot() argument
160 Log.i(TAG, String.format("onHandleScreenshot - Screenshot: %s", screenshot)); in onHandleScreenshot()
161 super.onHandleScreenshot(screenshot); in onHandleScreenshot()
163 if (screenshot != null) { in onHandleScreenshot()
167 boolean screenshotMatches = compareScreenshot(screenshot, mCurColor); in onHandleScreenshot()
179 private boolean compareScreenshot(Bitmap screenshot, int color) { in compareScreenshot() argument
182 if (screenshot.getWidth() != size.x || screenshot.getHeight() != size.y) { in compareScreenshot()
183 Log.i(TAG, "width or height didn't match: " + size + " vs " + screenshot.getWidth() in compareScreenshot()
184 + "," + screenshot.getHeight()); in compareScreenshot()
188 screenshot.getPixels(pixels, 0, size.x, 0, 0, size.x, size.y); in compareScreenshot()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLocationOnScreenTests.java157 final Bitmap screenshot = getInstrumentation().getUiAutomation().takeScreenshot(); in findTestColorsInScreenshot() local
162 if (isTestColors(screenshot, guess.x, guess.y)) { in findTestColorsInScreenshot()
166 for (int y = 0; y < screenshot.getHeight(); y++) { in findTestColorsInScreenshot()
167 for (int x = 0; x < screenshot.getWidth() - 1; x++) { in findTestColorsInScreenshot()
168 if (isTestColors(screenshot, x, y)) { in findTestColorsInScreenshot()
175 BitmapUtils.saveBitmap(screenshot, path, file); in findTestColorsInScreenshot()
181 private boolean isTestColors(Bitmap screenshot, int x, int y) { in isTestColors() argument
182 return sameColorWithinTolerance(screenshot.getPixel(x, y), TEST_COLOR_1) in isTestColors()
183 && sameColorWithinTolerance(screenshot.getPixel(x + 1, y), TEST_COLOR_2); in isTestColors()
/cts/hostsidetests/devicepolicy/app/Assistant/src/com/android/cts/devicepolicy/assistapp/
DMyInteractionSessionService.java45 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/
DTextureViewTest.java157 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/tests/systemui/src/android/systemui/cts/
DScreenshotTestRule.java21 import androidx.test.runner.screenshot.BasicScreenCaptureProcessor;
22 import androidx.test.runner.screenshot.ScreenCapture;
23 import androidx.test.runner.screenshot.Screenshot;
/cts/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java518 protected void setFeaturesEnabled(StructureEnabled structure, ScreenshotEnabled screenshot) { in setFeaturesEnabled() argument
519 Log.i(TAG, "setFeaturesEnabled(" + structure + ", " + screenshot + ")"); in setFeaturesEnabled()
521 SettingsUtils.syncSet(mContext, ASSIST_SCREENSHOT_ENABLED, screenshot.value); in setFeaturesEnabled()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DUiBot.java1028 final Bitmap screenshot = takeScreenshot();
1029 Helper.dumpBitmap(screenshot, file);
/cts/tools/release-parser/tests/resources/
DShell.apk.pb.txt5593 name: "screenshot"