This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move MediaProjectionGlobal API to DisplayManager
Add a static method in DisplayManager that allows the caller to create a VirtualDisplay without having an instance of DisplayManager (which requires a context). This can only be used from a process that has the CAPTURE_VIDEO_OUTPUT permission. Also added RequiresPermission(CAPTURE_VIDEO_OUTPUT) annotation for the new API. Test: DisplayManagerTest Bug: 247776252 Change-Id: I1eb94ab1063d89860cdfb2a58d4653d9a77eec98
- Loading branch information
Chavi Weingarten
committed
Sep 23, 2022
1 parent
51847be
commit c6f10b4
Showing
4 changed files
with
62 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 0 additions & 120 deletions
120
media/java/android/media/projection/MediaProjectionGlobal.java
This file was deleted.
Oops, something went wrong.