Support 1-7 channels when writing raw AAC, since that's what the
file format supports.
authored-by: Sachin Mohan Gadag <sgadag@codeaurora.org>
Bug: 123375289
Test: builds
Change-Id: Ibc44fb575ad2897f936ed7f73f99ce481cdadb7d
This is a part of cutting dependency from libmediandk to
libandroid_runtime.
The following function is exported from libandroid_runtime.
* android_hardware_HardwareBuffer_convertToGrallocUsageBits
This function just delegates to libnativewindow's
AHardwareBuffer_convertToGrallocUsageBits function.
This commit is for libmediandk to call libnativewindow's
function directly in order to cut the dependency to libandroid_runtime.
Bug: 124268753
Test: m -j
Change-Id: I5f927fc26829031a8c91a7ba51178a34d737a953
Merged-In: I5f927fc26829031a8c91a7ba51178a34d737a953
Ignore the sync sample list for audio tracks, since some software
writes files with an empty sync sample list, resulting in unseekable
files.
Bug: 112442775
Test: manual
Change-Id: Ib658463143b7d17845c1eb52bbab27106ae66cb7
force mediaserver to 32-bits, 64-bit version failed wider testing.
Bug: 126502613
Bug: 16890215
Test: use camera app to record video
Test: android.media.cts.MediaPlayer2Test#testRecordedVideoPlayback0
Test: android.media.cts.MediaPlayerTest#testRecordedVideoPlayback0
CodecID for MKV MP3 audio is not only A_MPEG/L3, but also
AMS_ACM. When CodecID is AMS_ACM, we should check format ID and
the file is MP3 if format ID is 0x0055. Need to support this
MP3 type.
Bug: 123594233
Test: Test MKV file whose audio CodecID is AMS_ACM and format
ID is 0x0055, and check if the MP3 audio can be played.
Change-Id: I15129e276b19338dc4f3f09eee6020aca5a5fa8e
This is a part of cutting dependency from libmediandk to
libandroid_runtime.
By making a libandroid_runtime to be loaded lazily,
libmediandk won't load libandroid_runtime when it is used as a LL-NDK.
Bug: 124268753
Test: m -j
Change-Id: Ib040856c58d38e11a5f32cd5dd5519910573334b
This is a part of job to cut dependency from libmediandk
to libandroid_runtime. As a LL-NDK, libmediandk desn't have
to depend on libandroid_runtime.
depependcy:
* libmediandk -> libmedia_jni -> libandroid_runtime.
Libmediandk calls three functions defined in libmedia_jni.
However those three functions are independent from libandroid_runtime.
After extracting those utility functions into a new library
(libmedia_jni_utils), libmediandk now depends on it instead of
libmedia_jni.
Bug: 124268753
Test: m -j
Change-Id: If283fefca5cf4e282d1c29876b78037bc9df7625
Merged-In: If283fefca5cf4e282d1c29876b78037bc9df7625
This is a part of job to cut dependency from libmediandk
to libandroid_runtime. As a LL-NDK, libmediandk desn't have
to depend on libandroid_runtime.
depependcy:
* libmediandk -> libandroid -> libandroid_runtime.
Libmediandk uses only one symbol(ANativeWindow_aquire) from
libandroid and it is re-exported from libnativewindow.
So by switching from libandroid to libnativewindow, the dependency
from libmediandk to libandroid is cut easily.
Bug: 124268753
Test: m -j
Change-Id: I5da320780dba7c63ce39679dbf5d40fe9202eb00
Merged-In: I5da320780dba7c63ce39679dbf5d40fe9202eb00
Query the package manager to check if the app has not opt-out of its
playback being captured.
Test: adb shell audiorecorder --target /data/file1.raw &
adb shell am start -a android.intent.action.VIEW -d file:///system/media/audio/ringtones/Lollipop.ogg -t audio/ogg
adb dumpsys media.audio_policy # check playback is not recorded
# change media player manifest to allowPlaybackCapture=true
adb dumpsys media.audio_policy # check playback is recorded
kill %1
adb pull /data/file1.raw && sox -r 48000 -e signed -b 16 -c 2 file1.raw file.wav&& audacity file.wav
# check silence then sound
Bug: 111453086
Change-Id: Id6fb7d0e10c02b0473bcbc0786e8360536996f48
Signed-off-by: Kevin Rocard <krocard@google.com>