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
This reverts commit cdcaed6acb.
Reason for revert: <Verified build locally, CL is fine. original issue may be caused by conflict between merges>
Change-Id: Id9707692a704c3d4475aee1f6c580208eb6ab744
Test: Manual
Bug: 122472761
This reverts commit c1e4316e02.
Reason for revert: Now the circular dependency problem is resolved, this change is now obsolete.
Bug: 123336670
Change-Id: I065d811e9b8a3c7f851fb66d9527d62b417f1420
Fix inconsistent naming of offline license states
bug:120489407
bug:120488811
test:cts and gts media tests
Change-Id: I6cceac233cf8882c5bf7fbef7503764c611125d1
As suggested in API review, change IllegalArgumentException
to NullPointerException for the case when the argument is null.
Bug: 123569725
Test: make
Change-Id: I4f0d6fd609b1c2f2096fe0f610804f49432cb650