This partially reverts ag/6327294.
Since libstagefright_xmlparser is no longer used by libmediandk,
double-loading can't happen with this lib.
Bug: 124268753
Test: m -j
Change-Id: I76c961b2ff03665b9211c3fc8cbdbb073daddbe1
* changes:
codec2: VTS add support for Empty EOS in AudioDectest
codec2: VTS fix Master test for multiple IComponent services
codec2: VTS add support for nSamplesPerFrame in AudioEnctest
codec2: VTS add support for Empty EOS in VideoEnctest
codec2: VTS add support for Empty EOS in VideoDectest
codec2: VTS add support for Empty EOS in AudioEnctest
VTS: Fix DecodeTest For Audio Decoders.
1. support MPEG2 video codec
2. support codecs under V_MS/VFW/FOURCC which include H263, AVC, MPEG2,
MPEG4
3. handle some codec type with no codec private data
4. add codec type "MJPEG, XVID, DIVX, DIVX3" and support them in
matroskaextractor
Bug: 123594230
Test: test with file which has added codec type, and check if the codec
related track can be played normally
Change-Id: I4e0173b80576b1f80bc7a210a8ef029ee3a2af51
List and Create components for all known services.
Test: VtsHidlC2V1_0TargetMasterTest -I default
Test: VtsHidlC2V1_0TargetMasterTest -I software
Bug: 127693385
Change-Id: I25068c746ac95495d45e3f26602d07386413798a
This is useful when there are multiple audio devices in the system.
Test: use aaudio_loopback on a TV device with USB soundcard connected
specify -d<HDMI out device id> -D<USB in device id>
Change-Id: I60e84132f5974db6f4314c58f76705018e22b7db
Lowered limits for when to use shared buffers vs inline data and how
much total data to allow in a mediasource binder transaction. Fix typo
limiting MediaSource / extractor to only 1 mediabuffer as shared memory.
Bug: 115848790
Test: poc from bug
These leaks aren't really consequential since this is a standalone
test. But by putting in simple fixes for these, we reduce the
noise when using static analysis to find leaks in Android code.
Test: TreeHugger
Change-Id: Iace7028f8bc3951abf72ddcec2b741b7a5f61a3e
Combine adjust channels buffer provider and adjust channels non-destructive
buffer provider.
When contracting mono + haptic channels to mono, do not use
adjust_channels to avoid mixing haptic channel into audio channel.
Bug: 125915810
Test: play audio-haptic coupled files
Change-Id: I39916a3e0628a44ed4a148c265564af7135a2176
(1) Change logic of addAudioDeviceCallback() since mJAudioTrack is
likely to be null when this function is called.
(2) Replace add/removeGlobalRef() with JObjectHolder
(3) Replace std::vector with utils/Vector.h
Test: android.media.cts.RoutingTest#test_MediaPlayer2_RoutingChangedCallback with routing change log
Bug: 127314187
Change-Id: I62d9c7600c710b49f0435bd1fc2741d79c928b55
pre_virtualized and add_emdf_substreams should locate
in the same level with single_substream_group checking.
Bug: 127685179
Test: see repro steps
Change-Id: Ic715b316f2b0d0fc86dfd9db03ba7bf01a1f0a2e
Some mkv or mka files don't have any cue point, especially mka file
which is transformed from ffmpeg. When user plays such mkv or mka file,
user cannot seek to correct position.
To handle this issue, we ignore cues and load clusters. When we seek
and find that it has no cue point, we call seekwithoutcue function,
which will find correct position from loaded clusters.
Bug: 123150866
Test: Test with a mkv or mka file without CUES and check if we can
can seek to correct position and play normally.
Change-Id: I77cb64ebee6261545ab3eff6a38538d854408b47
When an AudioTrack or AudioRecord is created by system server,
if restoreTrack_l() or restoreRecord_l() is called from AudioTrackThread
or AudioRecordThread, and that then calls audioserver through binder,
which then calls a Java service, binder recursion may call Java
on the original calling thread.
Test: bluetooth calls don't crash
Bug: 126948865
Bug: 127619936
Change-Id: I41fcb666d07c4ab985f5590e40e0c310709e786d