summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Naomi Musgrave <nmusgrave@google.com> 2023-06-19 15:47:07 +0000
committer Naomi Musgrave <nmusgrave@google.com> 2023-06-21 08:57:51 +0000
commit744507478fd62faea5558d8c2196e8301e5a5e6e (patch)
tree16dcb1c7e2f0381978a6a38fc4cbac0f35e97164 /libs/androidfw/StringPool.cpp
parent9fda153a29a318cd20001b134c731379e4e1ea42 (diff)
[MediaProjection] Clarify createVirtualDisplay exception javadoc
The SecurityException has been present for several releases, but undocumented until earlier in Android U development. Ensure that token re-use throws SecurityException, and only a missing callback results in IllegalStateException. Clarify that the SecurityException is only thrown when an app invokes MediaProjection#stop before attempting to capture again. Since an app does not have to invoke that method to end a recording (for example, they may stop the MediaRecorder instance only), the IllegalStateException is thrown in this scenario. Bug: 286252090 Test: atest FrameworksServicesTests:MediaProjectionManagerServiceTest Change-Id: I2c6f151e806430330a76482d7c6e3c89adfc19a0
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions