diff options
| author | 2025-02-06 09:41:20 +0100 | |
|---|---|---|
| committer | 2025-02-06 09:41:20 +0100 | |
| commit | 2c303494532d007f9dd1494c82a6a8fd53118bee (patch) | |
| tree | c452d1d840f5321e60f67b46184e996d37cb8cf6 /libs/androidfw/AssetsProvider.cpp | |
| parent | cf491a7f94a4ca176f2ee5db29e3fa895e1aa90d (diff) | |
Check if getParameters reply contains the required key
For getAdditionalOutputDeviceDelay and getMaxAdditionalOutputDeviceDelay
the method expects that the AudioSystem.getParameters() returns a reply
in a form: `<key>=<value>`. If the optional parameter is unsupported
it expects that reply string is constructed as `<key>=""` but instead,
it might receive empty string that gives
StringIndexOutOfBoundsException.
Bug: 393338993
Test: run cts -m CtsMediaTestCases -t android.media.cts.AudioManagerTest
Change-Id: I6bc6043f60092e278cc00e3c7c5b5f4974e8e9a5
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions