Home
last modified time | relevance | path

Searched refs:captureArgs (Results 1 – 23 of 23) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/
DTextureFiltering_test.cpp83 gui::LayerCaptureArgs captureArgs; member in android::TextureFilteringTest
87 captureArgs.sourceCrop = Rect{0, 0, 100, 100}; in TEST_F()
88 captureArgs.layerHandle = mParent->getHandle(); in TEST_F()
89 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
96 captureArgs.sourceCrop = Rect{0, 0, 100, 100}; in TEST_F()
97 captureArgs.layerHandle = mParent->getHandle(); in TEST_F()
98 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
108 captureArgs.sourceCrop = Rect{0, 0, 100, 100}; in TEST_F()
109 captureArgs.layerHandle = mParent->getHandle(); in TEST_F()
110 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
[all …]
DScreenCapture_test.cpp199 LayerCaptureArgs captureArgs; in TEST_F() local
200 captureArgs.layerHandle = childLayer->getHandle(); in TEST_F()
201 captureArgs.sourceCrop = size; in TEST_F()
202 captureArgs.captureSecureLayers = false; in TEST_F()
205 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(captureArgs, mCaptureResults)); in TEST_F()
211 captureArgs.captureSecureLayers = true; in TEST_F()
214 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(captureArgs, mCaptureResults)); in TEST_F()
221 captureArgs.captureSecureLayers = false; in TEST_F()
224 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(captureArgs, mCaptureResults)); in TEST_F()
230 captureArgs.captureSecureLayers = true; in TEST_F()
[all …]
DLayerTypeTransaction_test.cpp65 LayerCaptureArgs captureArgs; in TEST_P() local
66 captureArgs.layerHandle = parent->getHandle(); in TEST_P()
67 captureArgs.sourceCrop = {0, 0, 32, 32}; in TEST_P()
68 ScreenCapture::captureLayers(&screenshot, captureArgs); in TEST_P()
DCredentials_test.cpp280 LayerCaptureArgs captureArgs; in TEST_F() local
281 captureArgs.layerHandle = mBGSurfaceControl->getHandle(); in TEST_F()
282 captureArgs.sourceCrop = {0, 0, 1, 1}; in TEST_F()
285 return ScreenCapture::captureLayers(captureArgs, captureResults); in TEST_F()
DMirrorLayer_test.cpp351 LayerCaptureArgs captureArgs; in TEST_F() local
352 captureArgs.layerHandle = mirrorParent->getHandle(); in TEST_F()
353 captureArgs.sourceCrop = childBounds; in TEST_F()
355 ScreenCapture::captureLayers(&shot, captureArgs); in TEST_F()
/frameworks/base/core/jni/
Dandroid_window_ScreenCapture.cpp143 static void getCaptureArgs(JNIEnv* env, jobject captureArgsObject, CaptureArgs& captureArgs) { in getCaptureArgs() argument
144 captureArgs.pixelFormat = static_cast<ui::PixelFormat>( in getCaptureArgs()
146 captureArgs.sourceCrop = in getCaptureArgs()
150 captureArgs.frameScaleX = in getCaptureArgs()
152 captureArgs.frameScaleY = in getCaptureArgs()
154 captureArgs.captureSecureLayers = in getCaptureArgs()
156 captureArgs.allowProtected = in getCaptureArgs()
158 captureArgs.uid = env->GetLongField(captureArgsObject, gCaptureArgsClassInfo.uid); in getCaptureArgs()
159 captureArgs.grayscale = in getCaptureArgs()
167 captureArgs.excludeHandles.reserve(len); in getCaptureArgs()
[all …]
/frameworks/base/core/java/android/window/
DScreenCapture.java50 private static native int nativeCaptureDisplay(DisplayCaptureArgs captureArgs, in nativeCaptureDisplay() argument
52 private static native int nativeCaptureLayers(LayerCaptureArgs captureArgs, in nativeCaptureLayers() argument
65 public static int captureDisplay(@NonNull DisplayCaptureArgs captureArgs, in captureDisplay() argument
67 return nativeCaptureDisplay(captureArgs, captureListener.mNativeObject); in captureDisplay()
77 DisplayCaptureArgs captureArgs) { in captureDisplay() argument
79 int status = captureDisplay(captureArgs, syncScreenCapture); in captureDisplay()
125 LayerCaptureArgs captureArgs = new LayerCaptureArgs.Builder(layer) in captureLayers() local
131 return captureLayers(captureArgs); in captureLayers()
137 public static ScreenshotHardwareBuffer captureLayers(LayerCaptureArgs captureArgs) { in captureLayers() argument
139 int status = nativeCaptureLayers(captureArgs, syncScreenCapture.mNativeObject, in captureLayers()
[all …]
/frameworks/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h37 static status_t captureDisplay(DisplayCaptureArgs& captureArgs, in captureDisplay() argument
42 captureArgs.dataspace = ui::Dataspace::V0_SRGB; in captureDisplay()
44 binder::Status status = sf->captureDisplay(captureArgs, captureListener); in captureDisplay()
68 DisplayCaptureArgs& captureArgs) { in captureDisplay() argument
70 ASSERT_EQ(NO_ERROR, captureDisplay(captureArgs, captureResults)); in captureDisplay()
75 static status_t captureLayers(LayerCaptureArgs& captureArgs, in captureLayers() argument
80 captureArgs.dataspace = ui::Dataspace::V0_SRGB; in captureLayers()
82 binder::Status status = sf->captureLayers(captureArgs, captureListener); in captureLayers()
91 static void captureLayers(std::unique_ptr<ScreenCapture>* sc, LayerCaptureArgs& captureArgs) { in captureLayers() argument
93 ASSERT_EQ(NO_ERROR, captureLayers(captureArgs, captureResults)); in captureLayers()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DImageCaptureImpl.kt41 val captureArgs = CaptureArgs.Builder() in captureDisplay() constant
45 windowManager.captureDisplay(displayId, captureArgs, syncScreenCapture) in captureDisplay()
/frameworks/base/cmds/screencap/
Dscreencap.cpp154 const gui::CaptureArgs& captureArgs, in capture() argument
157 ScreenshotClient::captureDisplay(displayId, captureArgs, captureListener); in capture()
260 gui::CaptureArgs captureArgs; in main() local
299 captureArgs.hintForSeamlessTransition = true; in main()
365 capture(displaysToCapture[i], captureArgs, result) != 0) { in main()
/frameworks/base/services/core/java/com/android/server/wm/
DScreenRotationAnimation.java192 final ScreenCapture.DisplayCaptureArgs captureArgs = in ScreenRotationAnimation() local
199 screenshotBuffer = ScreenCapture.captureDisplay(captureArgs); in ScreenRotationAnimation()
204 ScreenCapture.LayerCaptureArgs captureArgs = in ScreenRotationAnimation() local
212 screenshotBuffer = ScreenCapture.captureLayers(captureArgs); in ScreenRotationAnimation()
214 ScreenCapture.LayerCaptureArgs captureArgs = in ScreenRotationAnimation() local
222 screenshotBuffer = ScreenCapture.captureLayers(captureArgs); in ScreenRotationAnimation()
DSurfaceFreezer.java194 ScreenCapture.LayerCaptureArgs captureArgs = in createSnapshotBuffer() local
200 return ScreenCapture.captureLayers(captureArgs); in createSnapshotBuffer()
DSurfaceAnimationRunner.java449 ScreenCapture.LayerCaptureArgs captureArgs = in doCreateExtensionSurface() local
459 ScreenCapture.captureLayers(captureArgs); in doCreateExtensionSurface()
DWindowManagerService.java4240 ScreenCapture.LayerCaptureArgs captureArgs; in takeAssistScreenshot() local
4248 captureArgs = null; in takeAssistScreenshot()
4250 captureArgs = displayContent.getLayerCaptureArgs(windowTypesToExclude); in takeAssistScreenshot()
4255 if (captureArgs != null) { in takeAssistScreenshot()
4259 ScreenCapture.captureLayers(captureArgs, syncScreenCapture); in takeAssistScreenshot()
8668 public void captureDisplay(int displayId, @Nullable ScreenCapture.CaptureArgs captureArgs, in captureDisplay() argument
8670 WindowManagerService.this.captureDisplay(displayId, captureArgs, listener); in captureDisplay()
9981 public void captureDisplay(int displayId, @Nullable ScreenCapture.CaptureArgs captureArgs, in captureDisplay() argument
9988 ScreenCapture.LayerCaptureArgs layerCaptureArgs = getCaptureArgs(displayId, captureArgs); in captureDisplay()
10000 @Nullable ScreenCapture.CaptureArgs captureArgs) { in getCaptureArgs() argument
[all …]
DTransition.java3896 ScreenCapture.LayerCaptureArgs captureArgs = in freeze() local
3904 ScreenCapture.captureLayers(captureArgs); in freeze()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowManagerServiceTests.java1118 ScreenCapture.CaptureArgs captureArgs = new ScreenCapture.CaptureArgs.Builder<>().build(); in testCaptureDisplay() local
1119 resultingArgs = mWm.getCaptureArgs(DEFAULT_DISPLAY, captureArgs); in testCaptureDisplay()
1123 captureArgs = new ScreenCapture.CaptureArgs.Builder<>() in testCaptureDisplay()
1126 resultingArgs = mWm.getCaptureArgs(DEFAULT_DISPLAY, captureArgs); in testCaptureDisplay()
1130 captureArgs = new ScreenCapture.CaptureArgs.Builder<>() in testCaptureDisplay()
1133 resultingArgs = mWm.getCaptureArgs(DEFAULT_DISPLAY, captureArgs); in testCaptureDisplay()
1138 captureArgs = new ScreenCapture.CaptureArgs.Builder<>() in testCaptureDisplay()
1141 resultingArgs = mWm.getCaptureArgs(DEFAULT_DISPLAY, captureArgs); in testCaptureDisplay()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DTransitionAnimationHelper.java384 final ScreenCapture.LayerCaptureArgs captureArgs = in createExtensionSurface() local
394 ScreenCapture.captureLayers(captureArgs); in createExtensionSurface()
/frameworks/base/core/java/android/app/
DUiAutomationConnection.java240 final CaptureArgs captureArgs = new CaptureArgs.Builder<>() in takeScreenshot() local
243 mWindowManager.captureDisplay(DEFAULT_DISPLAY, captureArgs, listener); in takeScreenshot()
/frameworks/base/core/java/android/view/
DIWindowManager.aidl1021 oneway void captureDisplay(int displayId, in @nullable ScreenCapture.CaptureArgs captureArgs, in captureDisplay() argument
DAccessibilityInteractionController.java622 final ScreenCapture.LayerCaptureArgs captureArgs = in takeScreenshotOfWindowUiThread() local
625 if (ScreenCapture.captureLayers(captureArgs, listener) != 0) { in takeScreenshotOfWindowUiThread()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp3135 status_t ScreenshotClient::captureDisplay(const DisplayCaptureArgs& captureArgs, in captureDisplay() argument
3140 binder::Status status = s->captureDisplay(captureArgs, captureListener); in captureDisplay()
3144 status_t ScreenshotClient::captureDisplay(DisplayId displayId, const gui::CaptureArgs& captureArgs, in captureDisplay() argument
3149 binder::Status status = s->captureDisplayById(displayId.value, captureArgs, captureListener); in captureDisplay()
3153 status_t ScreenshotClient::captureLayers(const LayerCaptureArgs& captureArgs, in captureLayers() argument
3162 status = s->captureLayersSync(captureArgs, &captureResults); in captureLayers()
3165 status = s->captureLayers(captureArgs, captureListener); in captureLayers()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java2874 final ScreenCapture.DisplayCaptureArgs captureArgs; in systemScreenshotInternal() local
2886 captureArgs = new ScreenCapture.DisplayCaptureArgs.Builder(token) in systemScreenshotInternal()
2892 return ScreenCapture.captureDisplay(captureArgs); in systemScreenshotInternal()
2896 final ScreenCapture.DisplayCaptureArgs captureArgs; in userScreenshotInternal() local
2903 captureArgs = new ScreenCapture.DisplayCaptureArgs.Builder(token) in userScreenshotInternal()
2906 return ScreenCapture.captureDisplay(captureArgs); in userScreenshotInternal()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp7838 static status_t validateScreenshotPermissions(const CaptureArgs& captureArgs) { in validateScreenshotPermissions() argument
7848 if (captureArgs.uid == uid) { in validateScreenshotPermissions()