Cas framework doesn't work with cas@1.0 hal after cas@1.1 hal was enabled.
Framework code should support all hal version with same major number.
Test: Manual
bug: 124132050
Change-Id: I24d4c87ec643702fd6e7bb3c347d7982a4d12f36
Tests and command line interfaces do not have context, which
artificially prevented them to use the Dynamic Audio Policy API.
Test: adb shell audiorecorder --target /data/file.raw
Bug: 111453086
Change-Id: I3f811f317f7de3282baca308bb5afa5334bf860b
Signed-off-by: Kevin Rocard <krocard@google.com>
Signed-off-by: Robert Berry <robertberry@google.com>
This API allows an app to record what other apps are playing
with some privacy restrictions.
Test: CTS
Bug: 111453086
Change-Id: I98ed789afb792acf90876499aa5eb8a47359b265
The new HwAudioSource (inherits PlayerBase) serves as a player backed by
a hardware audio source device.
Sample usage
```
HwAudioSource player = new HwAudioSource.Builder()
.setAudioDeviceInfo(deviceInfo)
.setAudioAttributes(new AudioAttributes.Builder()
.setUsage(AudioAttributes.USAGE_MEDIA)
.build())
.build();
player.start();
```
Bug: 112161027
Test: Launch FM Tuner application
Change-Id: Id1f49c88cbbdb2b9156137ed8920713aa29b2d1c
Handle many simple, smaller changes in a single CL. Hide
CPC.closeQuietly(), now that it implements AutoCloseable. Add more
details to CR.set/getCache() docs. Add many @Nullable/@NonNull
annotations.
Bug: 124507578, 124447751, 124302519, 123697622
Bug: 123661322, 122887179, 122528742, 122527812, 116224797
Test: manual
Change-Id: Icee556a6ed76bbdf4c8e42b59d69d5580d461b95
Handle ACTION_PACKAGES_SUSPENDED in AudioService.
Send FOCUS_LOSS to any suspended app that is in the focus
stack and remove it from the stack
Annotate nullability of package name, AudioAttributes
and clientId for audio focus.
Bug: 119328282
Test: suspend app with focus, check output of dumpsys audio
Change-Id: I34103f8910146fc573c9efc806e8f1a1ffc722c9
As part of the isolated storage work in Q, some filesystem paths
don't actually exist. It's safer to simply try opening the file
and let FileInputStream throw a FileNotFoundException.
This change results in more descriptive errors to developers,
without changing the behavior of throwing an IOException if the
file doesn't exist.
Bug: 124208701
Test: manual
Change-Id: I4710a55431d8dc6cb96561f551b34892d8c15ba5
- also add a constructor so apps can create their performance points
- remove width and height as they are not by themselves meaningful
(only their product)
- document that we are using macroblocks
Bug: 124061036
Change-Id: I70ff9f059859b83397ba484b9ea9215d1d2751ef
These Extensible Metadata Platform (XMP) tags contain XML data which
is used to communicate rich metadata information beyond EXIF.
TIFF: Tag 700
JPEG: Application segment 1 (0xFFE1) with segment header
"http://ns.adobe.com/xap/1.0/\x00"
Bug: 120791890
Test: atest cts/tests/tests/media/src/android/media/cts/ExifInterfaceTest.java
Change-Id: Iacccbf9b516b3204d99a760eaeb19a41554c3f97
These keys are already used by apps, and we need to
add test to ensure they're not broken.
bug: 80314065
Change-Id: I2f423fd8d5462caf4138f660d452e61b0ab34d66
Use Arrays.equals() instead of equals() methods on the effects
Arrays contained in AudioRecordingConfiguration.
Bug: 123702064
Test: cts-tradefed run cts-dev -m CtsMediaTestCases -t android.media.cts.AudioRecordingConfigurationTest
Change-Id: I11d1321f1a5d8f50c248a4702bbba6a309280b5a