The method checks whether the provided AudioFormat can be played
via currently connected output devices w/o SRC or downmixing
by the framework.
Bug: 120044865
Test: atest CtsMediaTestCases:AudioTrackTest#testIsDirectPlaybackSupported
Change-Id: I63e8334a60d48c17999f500d87360f9c71185dfb
The new ACCESS_MEDIA_LOCATION permission is designed to protect
the location metadata of items the caller doesn't own, but we can't
easily perform partial filtering of metadata from returned Cursor
objects based on per-row ownership, so we're forced to outright stop
indexing and returning location metadata via queries.
Apps can still easily obtain location metadata using ExifInterface.
Bug: 111892141
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I4d99e6aa7d94bb0e7a50ce86eb1ab0f1ed142d4a
1) Fix the formula for the 'kth frequency' in getFft method:
since the 'fft' array holds n / 2 frequencies ranging from
0 to Fs / 2, the correct formula is k*Fs/n.
Also fix the last frequency index in the table.
2) Move the sample code for calculating magnitudes and phases
from the fft array from 'onFftDataCapture' to 'getFft', provide
a link.
3) Fix the sample code which wasn't taking into account that
fft[0] is the real part of FFT at DC, and fft[1] is the real part
of FFT at Fs / 2. Improve the sample code by linking the variable
names closer to the variable names in the documentation.
Bug: 113790190
Test: atest CtsMediaTestCases:VisualizerTest
Change-Id: I07cc9cfcda5b8c44aae2742a26173e7a9475120a
Add JNI functions to retrieve unique port IDs allocated by audio policy
manager for AudioTrack and AudioRecord clients.
Test: basic manual playback and capture tests
Bug: 111438757
Change-Id: I41f2679329b76b7b28cf506c64b6ffa9192d940a
Clarify the documentation by specifying the units of
the timestamp for the HWAVSync case
Bug: 63901775
Test: make
Change-Id: Ida39a3ee5e6b4b0d3255bfef95601890afd80709
available() bytes is counted after the last read position,
after the seek to new position, size should be compared
with the avaliable directly (without adding position).
bug: 120086693
test: Open .heic files in Downloads/Photos that's either
very small (b/117625929, b/111897855), or with the meta
at the very end (b/120086693). There shouldn't be error
in ExifInterface.
Change-Id: I37ac57823b26f03bb0ba555ee6213cf999942d21
Since not all KEYCODE_MEDIA_* keycodes return true in isMediaKey(),
the naming can give confusion. This CL renames the method to
isMediaSessionKey() and revises its Javadoc.
Bug: 119789707
Test: make -j
Change-Id: I36786ccf5606977e6d971c13d77d950356561bda
Add monitoring of voice interaction service, assistant and
accessibility services changes and communicate corresponding UIDs
to audio policy service.
Those are needed to implement the concurrent audio capture policy.
Test: enable and disable Google Assistant and Voice Access.
Bug: 111438757
Change-Id: Ia20b54a70c0445113bd53b03b04a325dcf7940fb
An upcoming privacy feature is interesting in knowing the exact
offset and length of specific Exif tags, similar to how the thumbnail
range is already being returned. Detect the case where we've modified
the underlying file, meaning ranges are no longer valid.
Add constructor to accept best-practices File object. Add method to
ask if a given tag has been defined. Add methods to parse additional
timestamp values.
Bug: 115377970, 111892141
Test: atest android.media.cts.ExifInterfaceTest
Change-Id: Iac35bb65ff7b3605d6c32ec3ca3d29b17e65cff8
Adds interface to MediaExtractor JNI to retrieve AudioPresentations
Test: Manual test
Bug: 119312182
Change-Id: I5802ff20b8221aeede25148cb3213b0e9e74f270