summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/AbstractInputMethodService.java
diff options
context:
space:
mode:
authorNaomi Musgrave <nmusgrave@google.com>2021-08-05 12:42:18 +0000
committerNaomi Musgrave <nmusgrave@google.com>2021-08-09 15:20:32 +0000
commitfd5715bb319484c4ab5f7632f012227b43a9a5a2 (patch)
tree71831f70ffc9e830932d1f465777f75407fcaed0 /core/java/android/inputmethodservice/AbstractInputMethodService.java
parentda38617955f2ebad65c6cc67efb1dd22571fa153 (diff)
MediaProjection captures DisplayArea
MediaProjection is used by apps to capture the contents of a display. Apps consume the content from a surface passed in to MediaProjection#createVirtualDisplay. The images written out to the surface can be used for saving screenshots of the current display, screen recording, or casting to a different display. MediaProjection is currently tied to capturing a physical display. This change instead captures the DisplayArea the app is launched on. This is consistent with Display API sandboxing, which returns the DisplayArea bounds rather than the physical display bounds. Note that apps use the Display APIs to size the VirtualDisplay and output surface. Verified: screenshots, screen recording, and casting Bug: 180624777 Bug: 195280234 Test: atest WmTests:DisplayContentTests Change-Id: I086fa1ae668dbdf0f25252c13614445af04d86f3
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions