summaryrefslogtreecommitdiff
path: root/services/coverage/java
diff options
context:
space:
mode:
author Jan Sebechlebsky <jsebechlebsky@google.com> 2023-01-09 14:29:19 +0100
committer Jan Sebechlebsky <jsebechlebsky@google.com> 2023-01-12 14:15:17 +0100
commit0bbdb71a121566eecb8d7125403be0bdca9c5e93 (patch)
tree53f0a91b8cde1bedf2e2dea67764ddcbdb514553 /services/coverage/java
parent714a0f9067d04b94c796d287c3f928c4edc03376 (diff)
Fix MediaPlayer construction with AUDIO_SESSION_ALLOCATE.
When AUDIO_SESSION_ALLOCATE is used during construction, the media player should allocate new unique session id. However, the previous call to native_set_session id tried to acquire session_id with value 0, which correspond to restricted OUTPUT_MIX session and caused failure during initialization. The topic also modifies the native initizalization code, so it's possible to pass explicit session id during construction of native MediaPlayer instance (prior to this change, the native constructor would always allocate new session id from audio server, even though in some cases it might have been immediately changed to exliplicitly requested session id). Bug: 263373078 Bug: 263362598 Test: atest MediaPlayerUnitTest Test: atest CtsMediaAudioTestCases CtsMediaPlayerTestCases Change-Id: I92b085e23c72e0b9d21e12792bf67c2497aa0e25
Diffstat (limited to 'services/coverage/java')
0 files changed, 0 insertions, 0 deletions