This reverts commit 0852ebab41.
Reason for revert: Return and parameter types of added SystemApi are not themselves part of the API.
Bug: 119749862
Change-Id: I9f89abc25d2f3f6cff60c2465fca8e471e7f1f2a
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