Allow editing entry names and removing entries to avoid having to
create copies and switch-banks to copy each value type.
Bug: 64121714
Test: unit test
Change-Id: I83aff86f6511cfbcf7c84fcca08f428ed32ede0b
When the device disconnect, all inputs will be closed before calling
releaseInput(). In that case, input route ref count will be wrong due to
route couldn't be removed in releaseInput() since the input is already
closed, that may cause the routing error. Clear input routes to prevent
the routing error when closing all inputs.
Bug: 77520691
Test: Reconnecting the usb device, check the input routing.
Change-Id: I754cf2774c9c38b751f918b32e881b6d464a7a01
Add logic in UidPolicy for handling audioserver restarts as well
as ActivityManager (system server) restarts.
Also, refactor the UidPolicy logic to simplify reasoning about
active state lookup. As a result, 4 layers are considered:
1. Service UIDs--always active.
2. Overrides--controlled via 'adb shell cmd'.
3. Cached UIDs from ActivityManager--also updated via IUidObserver.
4. ActivityManager ground truth.
Bug: 73405145
Bug: 77300296
Test: android.media.cts.AudioRecordTest#testRecordNoDataForIdleUids
manual tests with SoloTester
Change-Id: I426dd5d4d9c9c2570c0e03dde390e18f672c1b1d
Thumbnail tracks are identified by 'tref' box with a 'thmb'
type reference in it. We can't skip a track as soon as a 'tref'
box appears, need to actually parse it and look for 'thmb'.
bug: 77556099
Test: playback of audio files in bug, playback of image sequence
file (bird_burst.heic) with thumbnail reference.
Change-Id: I7d6ec8af218de2f0cba258f8eaaac9b62f9cb020
Hearing Aid uses volume value from -127 to 0dB. Make sure that volume
curve used is able to adjust volume in whole range.
Test: play music using Hearing Aid, try lowering volume to smallest
non-mute value.
Bug: 69623109
Fixes: 76434849
Change-Id: I8b8d64405016252f08ddda823fab74115352de4e
Ported the frequency domain implementation of the effect from the
development sandbox.
Bug: 64161702
Bug: 38266419
Test: manual with Triton app. Cts tests. Listening tests.
Change-Id: I9417beba2f98f2a677f0857c7976bf76a0e0d8e0
Add new "non mutable" default volume curves, use them for alarm
and accessibility.
Volume curves that start at 1 can be muted (at 0, attenuation
is -infinity): modify alarm and a11y curves to start at 0.
Bug: 72403580
Bug: 74985293
Test: try to mute alarms through UI and fail
Change-Id: Ieed1143f392b359198acabf986caa183536761a5
In the onTransact DECRYPT case, the allocated subSamples
are not freed when we encounter an error. Use unique_ptr
to manage memory instead.
Test: Play Movies & TV, Netflix
Test: Gts
bug: 73628269
Change-Id: I36b7deeff0380ee3be31ad5f93a5598cfe02e381
There is a problem when audioserver process restarts where we fail to
reload the list of active UIDs causing silent capture for all apps
until they are restarted.
Bug: 77300296
Bug: 63938985
Test: crash audioserver and check that capture still works.
Change-Id: Ie1a93c496516c1b7208780949054832a8a073044
Connecting to a BT A2DP device supporting multiple codecs causes
a lot of churn on the audio service side, and it can reject
starting playback of a previously created track. As a
workaround, allow restoreTrack_l to retry in this case.
Bug: 74409267
Test: switching between 2 HD BT headsets while playing audio
Change-Id: I5d2ecf4da9ff680af7ae5bb837081b22ecd84f85
When passing an invalid security level to
DrmPlugin::setSecurityLevel, an incorrect error code
was being returned, based on the drm@1.1 DrmPlugin.hal
documentation. This CL corrects the error code.
Change-Id: If560be07f3945320d28c42cb2cf18d8f8c718229
related-to-bug:73330999
bug:77308498
Test:VtsHalDrmV1_1Target
This patch does not propagate the volume.
Bug: 38184704
Bug: 69623109
Test: log metadata in HAL
Change-Id: I313563cafd9f2b29a13839c3c075beb65a170632
Signed-off-by: Kevin Rocard <krocard@google.com>
This patch has not functional changes.
Bug: 38184704
Bug: 69623109
Test: play music and a audio
Change-Id: Ide6ec7de4dbfab4af2653475901c3b3daee36e52
Signed-off-by: Kevin Rocard <krocard@google.com>
This is needed for the earring aid use case.
Bug: 38184704
Bug: 69623109
Test: check that the correct metadata are propagate to the HALs.
Change-Id: I285aac9fbb5431cc32c6fbccebdbff4914e6ab92
Signed-off-by: Kevin Rocard <krocard@google.com>
Due to a typo in an error message.
Bug: 74446193
Test: boot
Change-Id: Ief4150ff335e53c7b08bbc9ec9fd20ee61d4e13a
Signed-off-by: Kevin Rocard <krocard@google.com>
When the flac encoder saw EOS on its input, it would output an empty
buffer with EOS set, without decoding the current buffer or flushing
pending output buffers. The flac encoder also didn't output CSD, making
its output unsuitable for feeding back into the flac decoder.
When the flac decoder saw EOS, it would tag the next output buffer
with EOS, but didn't flush pending output buffers.
Bug: 75963284
Test: CTS
Change-Id: I53ac2f26fe77e50c899587fc62fc66cf0b85d167
track the latency for frames to go through the codec and return to the
caller. Provide min/max/avg/N information for the total and for the
last couple hundred frames. Histogram data is collected, but not yet
emitted.
Bug: 64022743
Test: dumpsys media.metrics
Change-Id: I954f0048997c8f65931c4faa678666eec59aaf86
(cherry picked from commit 44ecf0521f)
deviceAddressFromHal was checking the wrong pointer before dereferencing.
Test: compile
Bug: 77263416
Change-Id: Ic47af7085dd88f451ae81034b84444719f68cfc5
Signed-off-by: Kevin Rocard <krocard@google.com>