Searched refs:screenshot (Results 1 - 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
H A DScreenshotStubActivity.java16 package com.android.systemui.screenshot;
H A DScreenshotTest.java16 package com.android.systemui.screenshot;
30 * Functional tests for the global screenshot feature.
44 * to trigger the screenshot, and verifies the screenshot was taken successfully.
61 // unlikely, but check if a new screenshot file was already created
63 // wait for screenshot to be created
68 assertNotNull(String.format("Could not find screenshot after %d seconds",
73 assertTrue(String.format("Detected new screenshot %s but its not a file",
75 assertTrue(String.format("Detected new screenshot %s but its not an image",
105 * Inject the key sequence to take a screenshot
[all...]
/frameworks/base/cmds/screencap/
H A Dscreencap.cpp142 ScreenshotClient screenshot; local
144 if (display != NULL && screenshot.update(display, Rect(), false) == NO_ERROR) {
145 base = screenshot.getPixels();
146 w = screenshot.getWidth();
147 h = screenshot.getHeight();
148 s = screenshot.getStride();
149 f = screenshot.getFormat();
150 size = screenshot.getSize();
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiAutomatorBridge.java109 Bitmap screenshot = mUiAutomation.takeScreenshot();
110 if (screenshot == null) {
117 screenshot.compress(Bitmap.CompressFormat.PNG, quality, bos);
131 screenshot.recycle();
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DTakeScreenshotService.java17 package com.android.systemui.screenshot;
H A DGlobalScreenshot.java17 package com.android.systemui.screenshot;
175 // omit the actual screenshot image.
217 // Create screenshot directory if it doesn't exist
224 // Save the screenshot to the MediaStore
295 // Show the final notification to indicate screenshot saved
298 // Create the intent to show the screenshot in gallery
394 // Inflate the screenshot layout
453 * Creates a new worker thread and saves the screenshot to the media store.
486 * Takes a screenshot of the current display and shows an animation.
489 // We need to orient the screenshot correctl
[all...]
/frameworks/base/core/java/android/view/
H A DSurfaceControl.java624 * @param display The display to take the screenshot of.
625 * @param consumer The {@link Surface} to take the screenshot into.
631 * include in the screenshot.
633 * include in the screenshot.
636 * identity transformation while taking the screenshot.
638 public static void screenshot(IBinder display, Surface consumer, method in class:SurfaceControl
641 screenshot(display, consumer, new Rect(), width, height, minLayer, maxLayer,
648 * @param display The display to take the screenshot of.
649 * @param consumer The {@link Surface} to take the screenshot into.
655 public static void screenshot(IBinde method in class:SurfaceControl
666 public static void screenshot(IBinder display, Surface consumer) { method in class:SurfaceControl
700 public static Bitmap screenshot(Rect sourceCrop, int width, int height, method in class:SurfaceControl
722 public static Bitmap screenshot(int width, int height) { method in class:SurfaceControl
730 private static void screenshot(IBinder display, Surface consumer, Rect sourceCrop, method in class:SurfaceControl
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_SurfaceControl.cpp75 // Implements SkMallocPixelRef::ReleaseProc, to delete the screenshot on unref.
133 SkAutoTDelete<ScreenshotClient> screenshot(new ScreenshotClient());
140 res = screenshot->update(displayToken, sourceCrop, width, height,
147 screenshotInfo.fWidth = screenshot->getWidth();
148 screenshotInfo.fHeight = screenshot->getHeight();
150 switch (screenshot->getFormat()) {
172 screenshot->getStride() * android::bytesPerPixel(screenshot->getFormat());
179 (size_t) rowBytes, NULL, (void*) screenshot->getPixels(), &DeleteScreenshot,
180 (void*) (screenshot
[all...]
/frameworks/base/core/java/android/app/
H A DUiAutomationConnection.java153 return SurfaceControl.screenshot(width, height);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DSystemServicesProxy.java288 Log.e(TAG, "Invalid screenshot detected from getTaskThumbnail()");
540 * Takes a screenshot of the current surface.
545 return SurfaceControl.screenshot(di.getNaturalWidth(), di.getNaturalHeight());
549 * Takes a screenshot of the current app.
/frameworks/base/services/core/java/com/android/server/display/
H A DColorFade.java56 * some GL transformations to a screenshot.
97 // Texture names. We only use one texture, which contains the screenshot.
183 // painting the screenshot as-is.
465 SurfaceControl.screenshot(SurfaceControl.getBuiltInDisplay(
/frameworks/base/services/core/java/com/android/server/wm/
H A DScreenRotationAnimation.java261 // capture a screenshot into the surface we just created
265 SurfaceControl.screenshot(SurfaceControl.getBuiltInDisplay(
921 if (DEBUG_STATE) Slog.v(TAG, "Exit animations done, hiding screenshot surface");
H A DWindowManagerService.java6059 * @param displayId the Display to take a screenshot of.
6120 // Reset max/min layers on retries so we don't accidentally take a screenshot of a
6150 // include the wallpaper layer in the screenshot as it will coverup
6155 // case we want to include the wallpaper layer in the screenshot because
6160 // screenshot app.
6218 // because we don't want to release the mWindowMap lock until the screenshot is
6241 // The screenshot API does not apply the current screen rotation.
6268 "Taking screenshot while rotating");
6270 bm = SurfaceControl.screenshot(crop, width, height, minLayer, maxLayer,
6273 Slog.w(TAG, "Screenshot failure taking screenshot fo
[all...]

Completed in 4129 milliseconds