Bug: 136595429
Test: atest CtsAppOpsTestCases (now including two new test cases that
open a camera with a null and a non-null feature)
Change-Id: Idfb8f8049dff536525d4f081151c79d980d76c69
Align playback permission checks implementation in getOutputforAttr() on
capture checks in getInputForAttr(): use an "output type" returned by
audio policy manager and check permission accordingly.
- Do not modify but reject request to play to call uplink when permission
is denied.
- Add missing permission check for injection to remote submix.
- Clarify permission check for record from remote submix by using the
uid/pid of client explicitly.
Bug:
Test: CTS test for AudioTrack and AudioREcord.
Test: GTS tests for dynamic policies and playback capture
Change-Id: Ic0eb3b9921a491e97c58fa8f637583059a54b3a2
Add request to create tombstones of audio HAL servers before restarting
audioserver process when the watchdog triggers.
Add audio device factory HAL interface API to retrieve HAL process pids when
possible (on debug builds).
Add AudioFlinger service API to set audio HAL process pids from
JAVA AudioService.
Bug: 141528385
Test: Force watchdog and verify tombstone creation
Change-Id: I68c1e8fb4db23e5952ad0c93d7d0b9d121b8ec18
As audio device type must not be used as a bit mask, there is a
requirement to refactor the code in audio flinger. This CL includes:
1. Use DeviceTypeSet for recording output devices in Threads. The input
and output device types in Threads will only be updated when creating
an audio patch.
2. Use helper functions in audio flinger for checking whether an audio
device type is a certain category.
3. Use DeviceDescriptorBaseVector as vector of DeviceDescriptorBase.
DeviceDescriptorBaseVector will be used in RecordThread to record output
devices, which will be used in audio effect.
4. Do not use set parameters when communicating output devices to
RecordThread. Instead, adding a new event in Thread to update output
devices directly.
Bug: 135621476
Test: atest AudioTrackTest AudioRecordTest AudioPlaybackCaptureTest
Test: atest AudioHostTest AudioServiceHostTest RoutingTest
Test: atest AudioEffectTest BassBoostTest DynamicsProcessingTest
Test: atest AAudioTests
Test: audio smoke test, run OboeTester
Change-Id: I87f3e59fd01b0b100232d61a9abbc471c61110c4
Type and address are used to distinguish a device, it makes more
sense to set device type and address when creating a DeviceDescriptor.
Bug: 135621476
Test: make, atest audiopolicy_tests
Change-Id: I5f9063bd8c756ace77c162e86a8c0dd685da79b4
* changes:
[automerger skipped] Merge changes from topic "upstream-hal-v6" am: 82d6654ade am: 8b7e1af6ee am: 430c4038af -s ours am skip reason: change_id I3347ee3aabe753d34c69dacbd707c60105d80a47 with SHA1 c5b098a76b is in history
[automerger skipped] Support Audio HAL V6 am: f22253bc9f am: ae6fa514a8 am: 9f0d07f548 -s ours am skip reason: change_id Ied5aeccdf8f1e9a085ed9cac9d696271b7a1bb63 with SHA1 a4026674ce is in history
[automerger skipped] libaudioHAL: reduce version specific code am: 00538f18b8 am: ddfa210b93 am: 577cae5d3f -s ours am skip reason: change_id Ia8c99c0600425321b4b30ac341168101960eed59 with SHA1 f419435ea9 is in history
[automerger skipped] Avoid querying the audio service twice am: a8f139322e am: 182ee54371 am: 257cf23fc9 -s ours am skip reason: change_id Ia884d0e926569d983ba12952817d2cecc8d8d34f with SHA1 b9448c72d5 is in history
am: 430c4038af -s ours
am skip reason: change_id I3347ee3aabe753d34c69dacbd707c60105d80a47 with SHA1 c5b098a76b is in history
Change-Id: I20e344d2ff8e98387fbb2aae019e43bcc8fc6c38
am: 9f0d07f548 -s ours
am skip reason: change_id Ied5aeccdf8f1e9a085ed9cac9d696271b7a1bb63 with SHA1 a4026674ce is in history
Change-Id: I2fe8fa5359a0526b7eb7e3194fa435798ddacf6e
am: 577cae5d3f -s ours
am skip reason: change_id Ia8c99c0600425321b4b30ac341168101960eed59 with SHA1 f419435ea9 is in history
Change-Id: Ia9c2d8b624fbec9f8dc873f59e87b4fb8ec7c7ab
am: 257cf23fc9 -s ours
am skip reason: change_id Ia884d0e926569d983ba12952817d2cecc8d8d34f with SHA1 b9448c72d5 is in history
Change-Id: I63ddfa369babc9aab4fb8f1906e47f650c5d6295
CDD requires that the track is the same for compability track and the
actual Dolby Vision track, so we need to pass that back to the app.
Bug: 129367182
Test: CTS
Change-Id: Iab1ad3c4a593923ec6fc4231a4208806bf0159b7
use @include to bring in the minijail policy information needed so that
we can write out code coverage information on such builds; the included
code coverage policy files is appropriate full/empty based on code
coverage flags.
Bug: 139313557
Test: 'kill -37' on processes in a code-coverage-enabled build
Test: 'kill -37' on processes in a NON code-coverage-enabled build
Change-Id: I9d5880343347ddc586e50f9eafb65e1ff7ba3748
Test: push V6 to device and check audio works fine
Kill the audioserver and check that the HAL restarts
Bug: 134940862
Change-Id: I3347ee3aabe753d34c69dacbd707c60105d80a47
Merged-In: I3347ee3aabe753d34c69dacbd707c60105d80a47
Signed-off-by: Kevin Rocard <krocard@google.com>
Test: push V6 to device and check audio works fine
Bug: 134940862
Change-Id: Ied5aeccdf8f1e9a085ed9cac9d696271b7a1bb63
Merged-In: Ied5aeccdf8f1e9a085ed9cac9d696271b7a1bb63
Signed-off-by: Kevin Rocard <krocard@google.com>
Bug: 134940862
Test: run on target
Change-Id: Ia884d0e926569d983ba12952817d2cecc8d8d34f
Merged-In: Ia884d0e926569d983ba12952817d2cecc8d8d34f
Signed-off-by: Kevin Rocard <krocard@google.com>
am: 69b422b578 -s ours
am skip reason: change_id I7954f8543c09538adad0c1eac8a70f7be48e6092 with SHA1 5d3e32b69b is in history
Change-Id: I49ebe79652ad923b5acb6f203afa7b00fe6d1754