Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9c30e6bf authored by Jan Sebechlebsky's avatar Jan Sebechlebsky
Browse files

Override getDeviceId() of mock context

... to return DEVICE_ID_DEFAULT.

AudioManager uses device id of context to dispatch sound effects
asociated with virtual devices to virtual device manager and to
bypass audio focus request for playback on virtual devices with
custom audio policy.

DEVICE_ID_DEFAULT corresponds to default (non-virtual) device.

Bug: 267470284
Test: atest CreateConnectionProcessorTest
AOSP: Context#getDeviceId() is not yet merged in AOSP
Change-Id: I21d15d1077e8a7d45c0b48c673b8e668e263f9fc
parent 40286e50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment