diff options
| author | 2023-03-29 12:54:37 +0000 | |
|---|---|---|
| committer | 2023-04-04 09:27:09 +0000 | |
| commit | 89e8322fd122919efd033f6b8499f07dcef4c1cd (patch) | |
| tree | af521350926cd89ecc949cca09058edf9e691fac /tests/DynamicCodeLoggerIntegrationTests/src | |
| parent | d9fc7a578557cefd28c9b90eb2ee3de98972e753 (diff) | |
(1/N)[MediaProjection] Throw exception if token re-used
Validate if the IMediaProjection token (representing
the user's consent) is used to get more than one
MediaProjection instance, or if client app is trying to
invoke MediaProjection#createVirtualDisplay more than
once.
Throw an exception for target SDK U+.
Follow-on CLs will:
* Re-show the permission dialog for re-used consent,
when the target SDk is below U.
* Black out recording when waiting for consent
Bug: 242833866
Test: atest FrameworksServicesTests:MediaProjectionManagerServiceTest
Test: atest FrameworksServicesTests:DisplayManagerServiceTest
Change-Id: I1fc7c9afde63ea1fc849015932a66b9321879fd9
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src')
0 files changed, 0 insertions, 0 deletions