Home
last modified time | relevance | path

Searched refs:ScreenCapture (Results 1 – 25 of 73) sorted by relevance

123

/frameworks/native/services/surfaceflinger/tests/
DScreenCapture_test.cpp81 std::unique_ptr<ScreenCapture> mCapture;
99 ASSERT_EQ(PERMISSION_DENIED, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
107 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
117 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
119 ScreenCapture sc(mCaptureResults.buffer, mCaptureResults.capturedHdrLayers); in TEST_F()
127 ASSERT_EQ(PERMISSION_DENIED, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
136 ASSERT_EQ(PERMISSION_DENIED, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
168 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
170 ScreenCapture sc(mCaptureResults.buffer, mCaptureResults.capturedHdrLayers); in TEST_F()
205 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(captureArgs, mCaptureResults)); in TEST_F()
[all …]
DRelativeZ_test.cpp67 std::unique_ptr<ScreenCapture> sc; in TEST_F()
79 ScreenCapture::captureScreen(&sc); in TEST_F()
94 ScreenCapture::captureScreen(&sc); in TEST_F()
102 std::unique_ptr<ScreenCapture> sc; in TEST_F()
128 ScreenCapture::captureScreen(&sc); in TEST_F()
146 ScreenCapture::captureScreen(&sc); in TEST_F()
152 std::unique_ptr<ScreenCapture> sc; in TEST_F()
171 ScreenCapture::captureScreen(&sc); in TEST_F()
184 ScreenCapture::captureScreen(&sc); in TEST_F()
194 ScreenCapture::captureScreen(&sc); in TEST_F()
[all …]
DLayerTypeTransaction_test.cpp63 std::unique_ptr<ScreenCapture> screenshot; in TEST_P()
68 ScreenCapture::captureLayers(&screenshot, captureArgs); in TEST_P()
97 std::unique_ptr<ScreenCapture> screenshot; in TEST_P()
98 ScreenCapture::captureScreen(&screenshot); in TEST_P()
107 std::unique_ptr<ScreenCapture> screenshot; in TEST_P()
108 ScreenCapture::captureScreen(&screenshot); in TEST_P()
144 std::unique_ptr<ScreenCapture> screenshot; in TEST_P()
145 ScreenCapture::captureScreen(&screenshot); in TEST_P()
154 std::unique_ptr<ScreenCapture> screenshot; in TEST_P()
155 ScreenCapture::captureScreen(&screenshot); in TEST_P()
[all …]
DTextureFiltering_test.cpp82 std::unique_ptr<ScreenCapture> mCapture;
89 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
98 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
110 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
121 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
134 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
144 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
153 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
166 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
176 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
[all …]
DMultiDisplayLayerBounds_test.cpp108 std::unique_ptr<ScreenCapture> sc; in TEST_F()
109 ScreenCapture::captureScreen(&sc, mMainDisplay); in TEST_F()
114 ScreenCapture::captureScreen(&sc, mVirtualDisplay); in TEST_F()
135 std::unique_ptr<ScreenCapture> sc; in TEST_F()
136 ScreenCapture::captureScreen(&sc, mMainDisplay); in TEST_F()
140 ScreenCapture::captureScreen(&sc, mVirtualDisplay); in TEST_F()
166 std::unique_ptr<ScreenCapture> sc; in TEST_F()
167 ScreenCapture::captureScreen(&sc, mMainDisplay); in TEST_F()
171 ScreenCapture::captureScreen(&sc, mVirtualDisplay); in TEST_F()
DSetGeometry_test.cpp37 ScreenCapture::captureScreen(&sc); in SetUp()
49 std::unique_ptr<ScreenCapture> sc;
62 ScreenCapture::captureScreen(&sc); in TEST_F()
75 ScreenCapture::captureScreen(&sc); in TEST_F()
88 ScreenCapture::captureScreen(&sc); in TEST_F()
97 ScreenCapture::captureScreen(&sc); in TEST_F()
DLayerUpdate_test.cpp112 ScreenCapture::captureScreen(&sc); in EXPECT_INITIAL_STATE()
133 std::unique_ptr<ScreenCapture> sc;
140 ScreenCapture::captureScreen(&sc); in EXPECT_CROPPED_STATE()
149 ScreenCapture::captureScreen(&sc); in EXPECT_RESIZE_STATE()
158 std::unique_ptr<ScreenCapture> sc; in TEST_F()
172 ScreenCapture::captureScreen(&sc); in TEST_F()
178 ScreenCapture::captureScreen(&sc); in TEST_F()
185 std::unique_ptr<ScreenCapture> sc; in TEST_F()
188 ScreenCapture::captureScreen(&sc); in TEST_F()
203 ScreenCapture::captureScreen(&sc); in TEST_F()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DScreenshotUtils.java22 import android.window.ScreenCapture;
39 Consumer<ScreenCapture.ScreenshotHardwareBuffer> consumer) { in captureLayer()
40 consumer.accept(ScreenCapture.captureLayers( in captureLayer()
41 new ScreenCapture.LayerCaptureArgs.Builder(sc) in captureLayer()
49 Consumer<ScreenCapture.ScreenshotHardwareBuffer> {
65 public void accept(ScreenCapture.ScreenshotHardwareBuffer buffer) { in accept()
/frameworks/base/packages/Shell/src/com/android/shell/
DScreenshooter.java25 import android.window.ScreenCapture;
26 import android.window.ScreenCapture.ScreenshotHardwareBuffer;
27 import android.window.ScreenCapture.SynchronousScreenCaptureListener;
48 ScreenCapture.createSyncCaptureListener(); in takeScreenshot()
/frameworks/base/core/java/android/window/
DScreenCapture.aidl20 parcelable ScreenCapture.CaptureArgs;
23 parcelable ScreenCapture.ScreenshotHardwareBuffer;
26 parcelable ScreenCapture.ScreenCaptureListener;
/frameworks/base/services/core/java/com/android/server/wm/
DSurfaceFreezer.java31 import android.window.ScreenCapture;
93 ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer = createSnapshotBufferInner( in freeze()
187 private static ScreenCapture.ScreenshotHardwareBuffer createSnapshotBuffer( in createSnapshotBuffer()
194 ScreenCapture.LayerCaptureArgs captureArgs = in createSnapshotBuffer()
195 new ScreenCapture.LayerCaptureArgs.Builder(target) in createSnapshotBuffer()
200 return ScreenCapture.captureLayers(captureArgs); in createSnapshotBuffer()
204 ScreenCapture.ScreenshotHardwareBuffer createSnapshotBufferInner( in createSnapshotBufferInner()
211 ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer) { in createFromHardwareBufferInner()
224 ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer, SurfaceControl parent) { in Snapshot()
DTaskSnapshotController.java33 import android.window.ScreenCapture;
222 private ScreenCapture.ScreenshotHardwareBuffer createImeSnapshot(@NonNull Task task, in createImeSnapshot()
231 ScreenCapture.ScreenshotHardwareBuffer imeBuffer = null; in createImeSnapshot()
235 imeBuffer = ScreenCapture.captureLayersExcluding(imeWindow.getSurfaceControl(), in createImeSnapshot()
246 ScreenCapture.ScreenshotHardwareBuffer snapshotImeFromAttachedTask(@NonNull Task task) { in snapshotImeFromAttachedTask()
DScreenRotationAnimation.java56 import android.window.ScreenCapture;
173 final ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer; in ScreenRotationAnimation()
192 final ScreenCapture.DisplayCaptureArgs captureArgs = in ScreenRotationAnimation()
193 new ScreenCapture.DisplayCaptureArgs.Builder(displayToken) in ScreenRotationAnimation()
199 screenshotBuffer = ScreenCapture.captureDisplay(captureArgs); in ScreenRotationAnimation()
204 ScreenCapture.LayerCaptureArgs captureArgs = in ScreenRotationAnimation()
205 new ScreenCapture.LayerCaptureArgs.Builder( in ScreenRotationAnimation()
212 screenshotBuffer = ScreenCapture.captureLayers(captureArgs); in ScreenRotationAnimation()
214 ScreenCapture.LayerCaptureArgs captureArgs = in ScreenRotationAnimation()
215 new ScreenCapture.LayerCaptureArgs.Builder( in ScreenRotationAnimation()
[all …]
DWindowManagerInternal.java52 import android.window.ScreenCapture;
53 import android.window.ScreenCapture.ScreenshotHardwareBuffer;
1055 @Nullable ScreenCapture.CaptureArgs captureArgs, in captureDisplay()
1056 ScreenCapture.ScreenCaptureListener listener); in captureDisplay()
/frameworks/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h35 class ScreenCapture : public RefBase {
53 static void captureScreen(std::unique_ptr<ScreenCapture>* sc) { in captureScreen()
61 static void captureScreen(std::unique_ptr<ScreenCapture>* sc, sp<IBinder> displayToken) { in captureScreen()
67 static void captureDisplay(std::unique_ptr<ScreenCapture>* sc, in captureDisplay()
71 *sc = std::make_unique<ScreenCapture>(captureResults.buffer, in captureDisplay()
91 static void captureLayers(std::unique_ptr<ScreenCapture>* sc, LayerCaptureArgs& captureArgs) { in captureLayers()
94 *sc = std::make_unique<ScreenCapture>(captureResults.buffer, in captureLayers()
197 explicit ScreenCapture(const sp<GraphicBuffer>& outBuffer, bool containsHdr) in ScreenCapture() function
204 ~ScreenCapture() { in ~ScreenCapture()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DImageCaptureImpl.kt23 import android.window.ScreenCapture
24 import android.window.ScreenCapture.CaptureArgs
44 val syncScreenCapture = ScreenCapture.createSyncCaptureListener() in captureDisplay()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DScreenshotTests.java54 import android.window.ScreenCapture;
55 import android.window.ScreenCapture.ScreenshotHardwareBuffer;
136 ScreenCapture.LayerCaptureArgs args = new ScreenCapture.LayerCaptureArgs.Builder(secureSC) in testScreenshotSecureLayers()
146 ScreenCapture.captureLayers(args, new ScreenCapture.ScreenCaptureListener( in testScreenshotSecureLayers()
223 new ScreenCapture.ScreenCaptureListener( in testCaptureDisplay()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/appclips/
DAppClipsScreenshotHelperService.java22 import android.window.ScreenCapture.ScreenshotHardwareBuffer;
23 import android.window.ScreenCapture.SynchronousScreenCaptureListener;
/frameworks/base/core/java/android/app/
DIUiAutomationConnection.aidl27 import android.window.ScreenCapture.ScreenCaptureListener;
28 import android.window.ScreenCapture.LayerCaptureArgs;
DUiAutomationConnection.java52 import android.window.ScreenCapture;
53 import android.window.ScreenCapture.CaptureArgs;
231 public boolean takeScreenshot(Rect crop, ScreenCapture.ScreenCaptureListener listener) { in takeScreenshot()
256 ScreenCapture.ScreenCaptureListener listener) { in takeSurfaceControlScreenshot()
265 ScreenCapture.LayerCaptureArgs args = in takeSurfaceControlScreenshot()
266 new ScreenCapture.LayerCaptureArgs.Builder(surfaceControl) in takeSurfaceControlScreenshot()
269 int status = ScreenCapture.captureLayers(args, listener); in takeSurfaceControlScreenshot()
/frameworks/base/core/java/android/view/accessibility/
DIAccessibilityInteractionConnection.aidl26 import android.window.ScreenCapture;
67 in ScreenCapture.ScreenCaptureListener listener, in takeScreenshotOfWindow()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/appclips/
DAppClipsScreenshotHelperServiceTest.java28 import android.window.ScreenCapture.ScreenshotHardwareBuffer;
29 import android.window.ScreenCapture.SynchronousScreenCaptureListener;
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DScreenRotationAnimation.java44 import android.window.ScreenCapture;
142 ScreenCapture.LayerCaptureArgs args = in ScreenRotationAnimation()
143 new ScreenCapture.LayerCaptureArgs.Builder(mSurfaceControl) in ScreenRotationAnimation()
149 ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer = in ScreenRotationAnimation()
150 ScreenCapture.captureLayers(args); in ScreenRotationAnimation()
DTransitionAnimationHelper.java52 import android.window.ScreenCapture;
384 final ScreenCapture.LayerCaptureArgs captureArgs = in createExtensionSurface()
385 new ScreenCapture.LayerCaptureArgs.Builder(surfaceToExtend) in createExtensionSurface()
393 final ScreenCapture.ScreenshotHardwareBuffer edgeBuffer = in createExtensionSurface()
394 ScreenCapture.captureLayers(captureArgs); in createExtensionSurface()
/frameworks/native/libs/gui/tests/
DBLASTBufferQueue_test.cpp464 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
549 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
600 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
653 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
710 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
760 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
796 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
831 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
836 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
876 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(mCaptureArgs, mCaptureResults)); in TEST_F()
[all …]

123