Home
last modified time | relevance | path

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

1234

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScrollCaptureControllerTest.java17 package com.android.systemui.screenshot;
38 import com.android.systemui.screenshot.ScrollCaptureClient.Session;
63 ScrollCaptureController.LongScreenshot screenshot = in testInfinite() local
66 assertEquals("top", -90, screenshot.getTop()); in testInfinite()
67 assertEquals("bottom", 160, screenshot.getBottom()); in testInfinite()
71 float topPortion = abs(screenshot.getTop()) / abs((float) screenshot.getBottom()); in testInfinite()
89 ScrollCaptureController.LongScreenshot screenshot = in testInfiniteWithPartialResultsTop() local
103 assertEquals("top", -85, screenshot.getTop()); in testInfiniteWithPartialResultsTop()
104 assertEquals("bottom", 210, screenshot.getBottom()); in testInfiniteWithPartialResultsTop()
117 ScrollCaptureController.LongScreenshot screenshot = in testInfiniteWithPartialResultsBottom() local
[all …]
DDeleteScreenshotReceiverTest.java17 package com.android.systemui.screenshot;
19 import static com.android.systemui.screenshot.ScreenshotController.ACTION_TYPE_DELETE;
20 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_ID;
21 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_SMART_ACTIONS_ENABLED;
22 import static com.android.systemui.screenshot.ScreenshotController.SCREENSHOT_URI_ID;
DSmartActionsReceiverTest.java17 package com.android.systemui.screenshot;
19 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_ACTION_TYPE;
20 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_ID;
DActionProxyReceiverTest.java17 package com.android.systemui.screenshot;
19 import static com.android.systemui.screenshot.ScreenshotController.ACTION_TYPE_SHARE;
20 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_ID;
21 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_SMART_ACTIONS_ENABLED;
DScrollCaptureClientTest.java17 package com.android.systemui.screenshot;
40 import com.android.systemui.screenshot.ScrollCaptureClient.CaptureResult;
41 import com.android.systemui.screenshot.ScrollCaptureClient.Session;
/frameworks/native/services/surfaceflinger/tests/
DLayerTypeTransaction_test.cpp63 std::unique_ptr<ScreenCapture> screenshot; in TEST_P() local
68 ScreenCapture::captureLayers(&screenshot, captureArgs); in TEST_P()
69 screenshot->expectColor(Rect(0, 0, 32, 32), Color::BLUE); in TEST_P()
97 std::unique_ptr<ScreenCapture> screenshot; in TEST_P() local
98 ScreenCapture::captureScreen(&screenshot); in TEST_P()
99 screenshot->expectColor(Rect(0, 0, 20, 30), Color::RED); in TEST_P()
107 std::unique_ptr<ScreenCapture> screenshot; in TEST_P() local
108 ScreenCapture::captureScreen(&screenshot); in TEST_P()
109 screenshot->expectColor(Rect(0, 0, 20, 30), Color::BLACK); in TEST_P()
144 std::unique_ptr<ScreenCapture> screenshot; in TEST_P() local
[all …]
DMirrorLayer_test.cpp80 auto shot = screenshot(); in TEST_F()
91 auto shot = screenshot(); in TEST_F()
102 auto shot = screenshot(); in TEST_F()
113 auto shot = screenshot(); in TEST_F()
124 auto shot = screenshot(); in TEST_F()
135 auto shot = screenshot(); in TEST_F()
146 auto shot = screenshot(); in TEST_F()
169 auto shot = screenshot(); in TEST_F()
179 auto shot = screenshot(); in TEST_F()
189 auto shot = screenshot(); in TEST_F()
[all …]
DLayerUpdate_test.cpp241 mCapture = screenshot(); in SetUp()
262 mCapture = screenshot(); in TEST_F()
274 mCapture = screenshot(); in TEST_F()
293 mCapture = screenshot(); in TEST_F()
308 mCapture = screenshot(); in TEST_F()
323 mCapture = screenshot(); in TEST_F()
333 mCapture = screenshot(); in TEST_F()
350 mCapture = screenshot(); in TEST_F()
360 mCapture = screenshot(); in TEST_F()
380 mCapture = screenshot(); in TEST_F()
[all …]
DDereferenceSurfaceControl_test.cpp40 auto shot = screenshot(); in SetUp()
58 auto shot = screenshot(); in TEST_F()
68 auto shot = screenshot(); in TEST_F()
DEffectLayer_test.cpp64 auto shot = screenshot(); in TEST_F()
85 auto shot = screenshot(); in TEST_F()
109 auto shot = screenshot(); in TEST_F()
139 auto shot = screenshot(); in TEST_F()
157 auto shot = screenshot(); in TEST_F()
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DSurfaceTracingTestBase.kt92 val screenshot = instrumentation.getUiAutomation().takeScreenshot() in <lambda>() constant
93 val pixels = IntArray(screenshot.width * screenshot.height) in <lambda>()
94 screenshot.getPixels(pixels, 0, screenshot.width, 0, 0, screenshot.width, screenshot.height) in <lambda>()
97 val actualColor = pixels[j * screenshot.width + i] in <lambda>()
103 screenshot.compress(Bitmap.CompressFormat.PNG, 100, out) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DActionProxyReceiver.java17 package com.android.systemui.screenshot;
21 import static com.android.systemui.screenshot.ScreenshotController.ACTION_TYPE_EDIT;
22 import static com.android.systemui.screenshot.ScreenshotController.ACTION_TYPE_SHARE;
23 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_ACTION_INTENT;
24 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_DISALLOW_ENTER_PIP;
25 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_ID;
26 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_SMART_ACTIONS_ENABLED;
DDeleteScreenshotReceiver.java17 package com.android.systemui.screenshot;
19 import static com.android.systemui.screenshot.ScreenshotController.ACTION_TYPE_DELETE;
20 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_ID;
21 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_SMART_ACTIONS_ENABLED;
22 import static com.android.systemui.screenshot.ScreenshotController.SCREENSHOT_URI_ID;
DSmartActionsReceiver.java17 package com.android.systemui.screenshot;
19 import static com.android.systemui.screenshot.LogConfig.DEBUG_ACTIONS;
20 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_ACTION_INTENT;
21 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_ACTION_TYPE;
22 import static com.android.systemui.screenshot.ScreenshotController.EXTRA_ID;
DTakeScreenshotService.java17 package com.android.systemui.screenshot;
23 import static com.android.systemui.screenshot.LogConfig.DEBUG_CALLBACK;
24 import static com.android.systemui.screenshot.LogConfig.DEBUG_DISMISS;
25 import static com.android.systemui.screenshot.LogConfig.DEBUG_SERVICE;
26 import static com.android.systemui.screenshot.LogConfig.logTag;
208 Bitmap screenshot = BitmapUtil.bundleToHardwareBitmap( in handleMessage() local
216 if (screenshot == null) { in handleMessage()
222 mScreenshot.handleImageAsScreenshot(screenshot, screenBounds, insets, in handleMessage()
DScreenshotController.java17 package com.android.systemui.screenshot;
24 import static com.android.systemui.screenshot.LogConfig.DEBUG_ANIM;
25 import static com.android.systemui.screenshot.LogConfig.DEBUG_CALLBACK;
26 import static com.android.systemui.screenshot.LogConfig.DEBUG_DISMISS;
27 import static com.android.systemui.screenshot.LogConfig.DEBUG_INPUT;
28 import static com.android.systemui.screenshot.LogConfig.DEBUG_UI;
29 import static com.android.systemui.screenshot.LogConfig.DEBUG_WINDOW;
30 import static com.android.systemui.screenshot.LogConfig.logTag;
90 import com.android.systemui.screenshot.ScreenshotController.SavedImageData.ActionTransition;
91 import com.android.systemui.screenshot.TakeScreenshotService.RequestCallback;
[all …]
DScreenshotNotificationSmartActionsProvider.java17 package com.android.systemui.screenshot;
19 import static com.android.systemui.screenshot.LogConfig.DEBUG_ACTIONS;
20 import static com.android.systemui.screenshot.LogConfig.logTag;
DScreenshotSmartActions.java17 package com.android.systemui.screenshot;
21 import static com.android.systemui.screenshot.LogConfig.DEBUG_ACTIONS;
22 import static com.android.systemui.screenshot.LogConfig.logTag;
23 import static com.android.systemui.screenshot.ScreenshotNotificationSmartActionsProvider.Screenshot…
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DDefaultBroadcastReceiverBinder.java24 import com.android.systemui.screenshot.ActionProxyReceiver;
25 import com.android.systemui.screenshot.DeleteScreenshotReceiver;
26 import com.android.systemui.screenshot.SmartActionsReceiver;
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiAutomatorBridge.java109 Bitmap screenshot = mUiAutomation.takeScreenshot(); in takeScreenshot() local
110 if (screenshot == null) { in takeScreenshot()
117 screenshot.compress(Bitmap.CompressFormat.PNG, quality, bos); in takeScreenshot()
131 screenshot.recycle(); in takeScreenshot()
/frameworks/base/core/tests/coretests/src/com/android/internal/view/
DOWNERS2 per-file *ScrollCapture*.java = file:/packages/SystemUI/src/com/android/systemui/screenshot/OWNERS
3 per-file *CaptureHelper*.java = file:/packages/SystemUI/src/com/android/systemui/screenshot/OWNERS
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/dagger/
DScreenshotModule.java17 package com.android.systemui.screenshot.dagger;
21 import com.android.systemui.screenshot.TakeScreenshotService;
/frameworks/base/services/core/java/com/android/server/am/
DAssistDataRequester.java103 default void onAssistScreenshotReceivedLocked(Bitmap screenshot) { in onAssistScreenshotReceivedLocked() argument
380 public void onHandleAssistScreenshot(Bitmap screenshot) { in onHandleAssistScreenshot() argument
390 dispatchAssistScreenshotReceived(screenshot); in onHandleAssistScreenshot()
394 mAssistScreenshot.add(screenshot); in onHandleAssistScreenshot()
411 private void dispatchAssistScreenshotReceived(Bitmap screenshot) { in dispatchAssistScreenshotReceived() argument
412 mCallbacks.onAssistScreenshotReceivedLocked(screenshot); in dispatchAssistScreenshotReceived()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DScreenshotTests.java108 Bitmap screenshot = hardwareBuffer.asBitmap(); in testScreenshotSecureLayers() local
109 assertNotNull(screenshot); in testScreenshotSecureLayers()
111 Bitmap swBitmap = screenshot.copy(Bitmap.Config.ARGB_8888, false); in testScreenshotSecureLayers()
112 screenshot.recycle(); in testScreenshotSecureLayers()
/frameworks/base/services/core/java/com/android/server/wm/
DAssistDataReceiverProxy.java67 public void onAssistScreenshotReceivedLocked(Bitmap screenshot) { in onAssistScreenshotReceivedLocked() argument
70 mReceiver.onHandleAssistScreenshot(screenshot); in onAssistScreenshotReceivedLocked()

1234