This provides a generic 'passthrough' of codec specific data
from extractor to codec, without having to add conversion to/from
a format-specific key in Utils.cpp
Remove unused kKeyFlacMetadata, and unneeded vorbis conversions in Utils.cpp
Test: build, CTS
Change-Id: I177090c0b0cb5174031c68ec7ec2abf6fa15c360
libstagefright, libmedia_ndk and libmedia_omx
Also, fix the reference to HGraphicBufferProducer in
AImageReaderWindowHandleTest.
Test: Builds
Bug: 112508112
Change-Id: I2ce0e4fd395a0c733aaf98b7397d7183c7475672
This CL simplifies call flow to set volume from stream or attributes.
It also removes unused parameter from mute setter and fix a volume
source comparison.
Also refactor logic in setVolumeIndexForAttributes() by removing the
loop on all volume sources on a given output given it was ignoring all
sources not equal to current source anyway.
Bug: 124767636
Test: AudioPolicyTests --gtest_filter=StreamTypeVolumeTest.*
AudioPolicyTests --gtest_filter=AttributeVolume/AttributeVolumeTest.*
AudioPolicyTests --gtest_filter=AudioProductStrategiesPlaybackVolume/AudioProductStrategiesPlaybackVolumeTest.*
Change-Id: Id816de023e917b0c0e34bb0888c8b0ad29029f8b
Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
The RLIMIT_AS limit was introduced as a security mitigation, but it
isn't exactly what the media processes want to control. It is also
problematic under sanitizers which allocate large amounts of address
space as shadow memory, and is especially problematic under shadow
call stack, which requires 16MB of address space per thread. Instead,
use the newly introduced android_mallopt(M_SET_ALLOCATION_LIMIT_BYTES)
to control the allocator's memory limit directly.
Also remove ASAN/HWASAN/CFI specific hacks; they are no longer
necessary because these tools consume address space using mmap and
not the allocator, and remove the 64-bit pointer check before calling
__scudo_set_rss_limit, since otherwise the limit would stop being
enforced in 32-bit mode with Scudo.
Bug: 118642754
Change-Id: Ie66128626976c0b04d5dafd455c375bbfdccc083
MP3 frames of some special mkv files are not complete, so the
frames read by MatroskaSource can't be played normally.
MP3 frameSize for these special files is bigger than the buffer
length of the frame read by readBlock. Read function can't get
a complete MP3 frame which will be sent to MP3 decoder.
Bug: 123590715
Test: Test MKV file whose MP3 audio frameSize in MP3 header is
not consistent with buffer length and check if MP3 audio can
be played normally.
Change-Id: If1deca29fffc50012edb3af63d96ec9e99aa3fba
Fix setGroupVolumeIndex() which was applying
volume for all groups if in call and causing the wrong
index to be used.
when DTMF are muted when entering call, voice call was
also muted.
Bug: 128499415
Test: call with voice volume set to 6
Change-Id: Ie1296a7a48fdfba3710acb3d7a7e4f00e7b576a5
Additionally initializey the stream id to invalid negative
value in case the Hal tries to verify it during stream
combination queries.
Bug: 128450197
Test: Camera CTS
Change-Id: Ife058e22ef72ee84be82799ed397ca49cd8ea99f
Switch to using a dynamically-linked library function to initialize
ICU, not a statically-linked function. This means the knowledge of file
paths stays in the runtime module.
Bug: 120493361
Test: build/boot
Change-Id: Ibe1d5ffd50e5cce76b1b01788954dcfb4762b1c6
Store jobjects and JObjectHolders as backup, delete JObjectHolders after
usage
Bug: 128341809
Test: RoutingTest#test_MediaPlayer2_RoutingChangedCallback
Change-Id: I70b2312519ab0efef0ed40ce721ae8c26dc1aed2
In HEIF files the hvcc for main image and the thumbnail
are separate. Add AMEDIAFORMAT_KEY_THUMBNAIL_CSD_HEVC for
thumbnail hvcc, and set it in ItemTable.
test:
- thumbnail test from the bug;
- manual testing of HEIF image decoding of various files;
- cts MediaMetadataRetriverTest.
bug: 128494513
Change-Id: I219a86cf362f641d546236dda78e8559ffcfa8aa
change from a blanket 'using namespace...' directive to a more
explicit qualification on the entities that prompted adding the using in
the first place.
Bug: 128606338
Test: compilation
Change-Id: Id8c8cfcd18801661b82b73d1c59952d1e75d3c7d
Not required and do not assume it.
Test: no regression with atest CtsNativeMediaAAudioTestCases
Bug: 128615806
Change-Id: I29d77d01aad417cc6aa6f882b7bc0812775e13c6