Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.
For now setting min_sdk_version doesn't change build outputs.
But build-time checks will be added soon.
This is one of two parts: covers mainline-related files.
Bug: 152655956
Test: m
Change-Id: I558b2d717d6cbae920db008d1b0f3ed61958937b
If outBuffer is specificed, displayStride is the stride of the
outBuffer (line 595). Then, the "Output buffer too small" check
ends up comparing a buffer's width to the buffer's own stride
which effectively requires that a buffer's width is equal to it's stride.
Bug: 155485791
Test: cts -t android.media.cts.DecoderTest
Change-Id: Ia66591f816aac0d8aad5c1b5b9a0aeff2cc80185
Merged-In: Ia66591f816aac0d8aad5c1b5b9a0aeff2cc80185
If outBuffer is specificed, displayStride is the stride of the
outBuffer (line 526 for avc and line 521 for hevc). Then, the
"Output buffer too small" check ends up comparing a buffer's width
to the buffer's own stride which effectively requires that a
buffer's width is equal to it's stride.
For android.media.cts.DecoderTest#testCodecBasicHEVC, the test
has an outBuffer with width 720 and stride 768 which fails the
check.
Bug: b/146515640
Test: cts -t android.media.cts.DecoderTest
Change-Id: I732f77445cad5390895c8e43f46d11c423c9b2e4
An app (B) that asks for an exclusive stream can steal
an exclusive stream from an earlier app (A).
App B will be given the MMAP resource as a SHARED stream.
The stream for app A will be disconnected and released
by the service.
If app A reopens a stream then it will get a SHARED
stream.
The order of the opening of the streams is controlled by using a
recursive_mutex in AAudioService::openStream().
Bug: 129846760
Test: media/libaaudio/tests/test_steal_exclusive.cpp
Test: also
Test: Launch AudioTroubleMaker. It should say "EXCLUSIVE".
Test: Press Home button.
Test: Siren sound from AudioTroubleMaker should continue.
Test: Launch OboeTester
Test: TEST OUTPUT, then Open, Start
Test: You should get an MMAP SHARED stream on Pixel.
Test: Go back to AudioTroubleMaker. It should say "SHARED".
Change-Id: I7f8339d8ed62546520a9b46ed398418b41ca2832
This test starts an exclusive stream.
Then a few seconds later it starts a second exclusive stream.
The first stream should get stolen and they should both end up
as SHARED streams.
See comment at start of test_steal_exclusive.cpp for more information.
Bug: 129846760
Test: this is a test
Test: adb shell test_steal_exclusive
Change-Id: Idff0c394ccee2310dd2d38e7715f823e50955e73
Shifting a signed 32-bit value by 31 bits is implementation-defined
behavior, so we change the value to unsigned.
Bug: 147147992
Test: TreeHugger
Change-Id: Iaefb85f77e5a9f8e7cd361a25a1c05fffc35ccb1
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.
Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Id00370b25af973a4b3813a4a1d6ccbd1e555c87f
Merged-In: Id00370b25af973a4b3813a4a1d6ccbd1e555c87f
Release all buffers on Codec2 stop() in order to quick release in case
of using multiple Codec's from application.
Bug: 146679370
Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small
Change-Id: I7a025c2d349442f93dbfab0bd1892df46229ef56
A packet with size 0 would never be removed from the queue,
and thus processed over and over again.
Bug: 129282427
Test: PoC, manual
Change-Id: Ia03a2b23df555a3c8ab53aac4589cb9b0a1b45a8
This is done to trigger CSD without 1st encoded frame.
Test: atest VtsHalMediaC2V1_0TargetVideoEncTest
Bug: 133463875
Change-Id: I723eabbf0c942bfdfa5601d568f0c273f4f00647
Compute summary statistics based on the current device
rather than the entire AudioTrack or AudioRecord duration.
Test: adb shell dumpsys media.metrics
Bug: 149850236
Change-Id: Ia3a5707c43c4530f5a6ac90f52901bd2e0bd0bab
Goal is to cover the following two areas with
the additions of three classes of presubmit tests:
- decrypt 0-length CryptoInfo
coverage by CtsMediaTestCases in av/drm/mediadrm/plugins
coverage by exoplayer.gts.DashTest
coverage by media.gts.WidevineGenericOpsTests
Bug: 152407075
Test: atest
Summary
-------
arm64-v8a CtsMediaTestCases: Passed: 18, Failed: 0, Ignored: 0, Assumption Failed: 0
arm64-v8a GtsExoPlayerTestCases: Passed: 1, Failed: 0, Ignored: 0, Assumption Failed: 0
arm64-v8a GtsMediaTestCases: Passed: 2, Failed: 0, Ignored: 0, Assumption Failed: 0
Change-Id: Ic10759d2e61db3935420e7b7b12f5c15e9a28012
Merged-In: Ic10759d2e61db3935420e7b7b12f5c15e9a28012
move member default initialization to declaration of the member data
instead of as an argument in the constructor.
Bug: 155171907
Test: Mp3DecoderTest, re-fuzzing
Change-Id: I316210b1cc5d185cb8760835b5cd2c958bbcc085
use stoul instead of stol as the data being converted is unsigned.
Bug: 155138755
Test: VtsHalMediaC2V1_0TargetComponentTest
Change-Id: I5d7079538b5707c68454fa453667744758c9122a
Add missing "Added in API level 29 annotation" to
AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE input preset.
Bug: 138776432
Test: make
Change-Id: I2362ebd1520c95e81dfe8ea43105ea7b39cc04eb