Home
last modified time | relevance | path

Searched refs:takeScreenshot (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DScreenshotUtils.java96 public static SurfaceControl takeScreenshot(SurfaceControl.Transaction t, SurfaceControl sc, in takeScreenshot() method in ScreenshotUtils
98 return takeScreenshot(t, sc, sc /* parentSc */, crop, layer); in takeScreenshot()
112 public static SurfaceControl takeScreenshot(SurfaceControl.Transaction t, SurfaceControl sc, in takeScreenshot() method in ScreenshotUtils
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/appclips/
DAppClipsViewModelTest.java78 when(mAppClipsCrossProcessHelper.takeScreenshot()).thenReturn(null); in performScreenshot_fails_shouldUpdateErrorWithFailed()
83 verify(mAppClipsCrossProcessHelper).takeScreenshot(); in performScreenshot_fails_shouldUpdateErrorWithFailed()
91 when(mAppClipsCrossProcessHelper.takeScreenshot()).thenReturn(FAKE_BITMAP); in performScreenshot_succeeds_shouldUpdateScreenshotWithBitmap()
96 verify(mAppClipsCrossProcessHelper).takeScreenshot(); in performScreenshot_succeeds_shouldUpdateScreenshotWithBitmap()
DAppClipsScreenshotHelperServiceTest.java75 assertThat(getInterface().takeScreenshot(DEFAULT_DISPLAY)).isNull(); in emptyBubbles_shouldReturnNull()
85 assertThat(getInterface().takeScreenshot(DEFAULT_DISPLAY)).isNull(); in bubblesPresent_screenshotFailed_shouldReturnNull()
97 assertThat(getInterface().takeScreenshot(DEFAULT_DISPLAY)).isEqualTo( in bubblesPresent_screenshotSuccess_shouldReturnScreenshot()
/frameworks/base/services/tests/mockingservicestests/src/android/service/games/
DGameSessionTest.java94 gameSession.takeScreenshot(DIRECT_EXECUTOR, in takeScreenshot_attachNotCalled_throwsIllegalStateException()
118 }).when(mMockGameSessionController).takeScreenshot(anyInt(), any()); in takeScreenshot_gameManagerException_returnsInternalError()
122 mGameSession.takeScreenshot(DIRECT_EXECUTOR, in takeScreenshot_gameManagerException_returnsInternalError()
147 }).when(mMockGameSessionController).takeScreenshot(anyInt(), any()); in takeScreenshot_gameManagerError_returnsInternalError()
151 mGameSession.takeScreenshot(DIRECT_EXECUTOR, in takeScreenshot_gameManagerError_returnsInternalError()
176 }).when(mMockGameSessionController).takeScreenshot(anyInt(), any()); in takeScreenshot_gameManagerSuccess()
180 mGameSession.takeScreenshot(DIRECT_EXECUTOR, in takeScreenshot_gameManagerSuccess()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/appclips/
DAppClipsCrossProcessHelper.java61 Bitmap takeScreenshot() { in takeScreenshot() method in AppClipsCrossProcessHelper
67 service.takeScreenshot(mDisplayTracker.getDefaultDisplayId())); in takeScreenshot()
DIAppClipsScreenshotHelperService.aidl28 @nullable ScreenshotHardwareBufferInternal takeScreenshot(in int displayId); in takeScreenshot() method
DAppClipsScreenshotHelperService.java57 public ScreenshotHardwareBufferInternal takeScreenshot(int displayId) { in onBind()
DAppClipsViewModel.java81 Bitmap screenshot = mAppClipsCrossProcessHelper.takeScreenshot(); in performScreenshot()
/frameworks/base/core/tests/screenshothelpertests/src/com/android/internal/util/
DScreenshotHelperTest.java85 mScreenshotHelper.takeScreenshot( in testFullscreenScreenshot()
94 mScreenshotHelper.takeScreenshot(request, mHandler, null); in testFullscreenScreenshotRequest()
111 mScreenshotHelper.takeScreenshot(request, mHandler, null); in testProvidedImageScreenshot()
/frameworks/base/core/java/com/android/internal/util/
DScreenshotHelper.java69 public void takeScreenshot(@ScreenshotSource int source, @NonNull Handler handler, in takeScreenshot() method in ScreenshotHelper
73 takeScreenshot(request, handler, completionConsumer); in takeScreenshot()
87 public void takeScreenshot(ScreenshotRequest request, @NonNull Handler handler, in takeScreenshot() method in ScreenshotHelper
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiAutomatorBridge.java108 public boolean takeScreenshot(File storePath, int quality) { in takeScreenshot() method in UiAutomatorBridge
109 Bitmap screenshot = mUiAutomation.takeScreenshot(); in takeScreenshot()
DUiDevice.java834 public boolean takeScreenshot(File storePath) { in takeScreenshot() method in UiDevice
836 return takeScreenshot(storePath, 1.0f, 90); in takeScreenshot()
850 public boolean takeScreenshot(File storePath, float scale, int quality) { in takeScreenshot() method in UiDevice
852 return getAutomatorBridge().takeScreenshot(storePath, quality); in takeScreenshot()
/frameworks/base/core/java/android/service/games/
DIGameSessionController.aidl27 void takeScreenshot(int taskId, in AndroidFuture gameScreenshotResultFuture); in takeScreenshot() method
DGameSession.java429 public void takeScreenshot(@NonNull Executor executor, @NonNull ScreenshotCallback callback) { in takeScreenshot() method in GameSession
440 mGameSessionController.takeScreenshot(mTaskId, takeScreenshotResult); in takeScreenshot()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DPixelCopyWindow.java40 btn.setOnClickListener((v) -> takeScreenshot()); in onCreate()
82 private void takeScreenshot() { in takeScreenshot() method in PixelCopyWindow
/frameworks/base/packages/Shell/src/com/android/shell/
DScreenshooter.java44 static Bitmap takeScreenshot() { in takeScreenshot() method in Screenshooter
DBugreportProgressService.java571 takeScreenshot(msg.arg1, msg.arg2); in handleMessage()
616 takeScreenshot(id); in handleMessage()
977 private void takeScreenshot(int id) { in takeScreenshot() method in BugreportProgressService
1005 takeScreenshot(id, mScreenshotDelaySec); in takeScreenshot()
1011 private void takeScreenshot(int id, int delay) { in takeScreenshot() method in BugreportProgressService
1057 boolean taken = takeScreenshot(mContext, screenshotFile); in handleScreenshotRequest()
1784 private static boolean takeScreenshot(Context context, String path) { in takeScreenshot() method in BugreportProgressService
1785 final Bitmap bitmap = Screenshooter.takeScreenshot(); in takeScreenshot()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/
DISystemUiProxy.aidl135 oneway void takeScreenshot(in ScreenshotRequest request) = 51;
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DSystemActionPerformer.java304 return takeScreenshot(); in performSystemAction()
411 private boolean takeScreenshot() { in takeScreenshot() method in SystemActionPerformer
414 screenshotHelper.takeScreenshot( in takeScreenshot()
/frameworks/base/core/java/android/app/
DIUiAutomationConnection.aidl48 boolean takeScreenshot(in Rect crop, in ScreenCaptureListener listener); in takeScreenshot() method
/frameworks/base/apct-tests/perftests/surfaceflinger/src/android/surfaceflinger/
DSurfaceFlingerPerfTest.java269 InstrumentationRegistry.getInstrumentation().getUiAutomation().takeScreenshot(); in displayScreenshot()
279 InstrumentationRegistry.getInstrumentation().getUiAutomation().takeScreenshot( in layerScreenshot()
/frameworks/base/services/core/java/com/android/server/app/
DGameServiceProviderInstanceImpl.java206 public void takeScreenshot(int taskId,
211 GameServiceProviderInstanceImpl.this.takeScreenshot(taskId,
844 void takeScreenshot(int taskId, @NonNull AndroidFuture callback) { in takeScreenshot() method in GameServiceProviderInstanceImpl
895 mScreenshotHelper.takeScreenshot( in takeScreenshot()
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DSurfaceTracingTestBase.kt86 val screenshot = instrumentation.getUiAutomation().takeScreenshot() in <lambda>()
/frameworks/base/core/java/android/accessibilityservice/
DIAccessibilityServiceConnection.aidl166 void takeScreenshot(int displayId, in RemoteCallback callback); in takeScreenshot() method
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityServiceConnectionImpl.java187 public void takeScreenshot(int displayId, RemoteCallback callback) {} in takeScreenshot() method in AccessibilityServiceConnectionImpl

123