Hidl will crash if hidl call failed and return value was not checked.
Check hidl call return values.
Bug: 132182836
Change-Id: I910025a7b3c508b3c8f289a5286abbcc77e2d9b8
Fix regression in camera shutter sound when system stream
volume is 0.
Bug: 132696227
Test: repro steps in bug.
Test: regressions when camera sound is enforced
Change-Id: I76b4a5ee041f97c5f771c003bf4f99327d797096
In ACELP_4t64_fx, when iterating over ind array, check index against
array size to prevent OOB write, log an error if such an access
was about to happen.
Bug: 132647222
Test: atest EncoderTest#testAMRWBEncoders
Change-Id: I33f476d94baec2feffc7bcccd0ad0481b8452518
This patch fixes several issues:
* Change the timing the acquire fence FD is closed: we used to
close the FD when the buffer is returned from HAL. This patch
changes that to after the request is sent to HAL (or failed
to send to HAL)
* Cleanup inflight buffer map if the request fails to be sent to
HAL
* With the CL, the acquire fence FDs are now closed by
- HalInterface::processBatchCaptureRequests if the HIDL
processCaptureRequests call succeeds and HAL is running
in binderized mode (for passthrough mode the FD is owned
by HAL if the HIDL call succeeds)
- Camera3Device::cleanupFailedRequests otherwise
Test: Camera CTS tests
Bug: 132594861
Change-Id: I5f67ae9e7b8008738bd9a24246d754a6a3669b0c
This reverts commit 596250cb84.
Reason for revert: we can disable on cuttlefish specifically
Bug: 129710438
Change-Id: I65bc168661f46314a0263e6aab77c7f6f1b5953f
remove references that pull xaac codec into the build; the codec is
still considered experimental and not to be included in product.
Bug: 131342273
Test: compilation
Change-Id: Ic7ff3871c88555bd006c0c79beebada3732a8b8e
am: 35cce3f4c4 -s ours
am skip reason: change_id Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a with SHA1 a306e2a357 is in history
Change-Id: If25faa6f56b8a8ce50c64dfd009a70295269a4e8
am: 155ffdba2c -s ours
am skip reason: change_id Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a with SHA1 0899a9f97b is in history
Change-Id: Ibe5b5bcc47794c2dcbd9f636c4482f1db8975cad
This reverts commit 3c4b455145.
Reason for revert: Possibly causing b/132887737 and blocking presubmit
Change-Id: Ib6da7c3e1506965a5d2c202e8bd6cf0e4a81dc3c
am: d13505b1a3 -s ours
am skip reason: change_id Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a with SHA1 0899a9f97b is in history
Change-Id: I2603d7c8fbe95bc54643fb3637e8481b73da6a6d
am: addeb8ea10 -s ours
am skip reason: change_id Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a with SHA1 0899a9f97b is in history
Change-Id: I8624e2a0838aa3ec40b7b9250c6a7d4bfad664f1
am: 9c30405685 -s ours
am skip reason: change_id Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a with SHA1 5d482c1ac0 is in history
Change-Id: I902a63320ddda12b7594d54f9faabd5b8722249b
* changes:
[automerger] DO NOT MERGE: audiopolicy: Remove raw pointer references to AudioMix am: 24ea472772 am: ffd550a634 am: 26fe734207 am: e6fabf9be7 skipped: 56b857516b
[automerger] DO NOT MERGE: audiopolicy: Remove raw pointer references to AudioMix am: 24ea472772 am: ffd550a634 am: 26fe734207 am: e6fabf9be7
[automerger] DO NOT MERGE: audiopolicy: Remove raw pointer references to AudioMix am: 24ea472772 am: ffd550a634 am: 26fe734207
[automerger] DO NOT MERGE: audiopolicy: Remove raw pointer references to AudioMix am: 24ea472772 am: ffd550a634
[automerger] DO NOT MERGE: audiopolicy: Remove raw pointer references to AudioMix am: 24ea472772
DO NOT MERGE: audiopolicy: Remove raw pointer references to AudioMix
Set dequeue timeout of surface to -1 during ACodec configuration.
Test: atest CtsMediaTestCases:VideoEncoderTest#testGoogH264SurfQCIF
Bug: 132699263
Change-Id: Id28a16d72f38be89edb0bbebebf91dfe915d36e0
We no longer have code path running non-HIDL interface.
This cleanup also simplifies some logic needed for fixing
b/132594861
Bug: 132594861
Test: Camera CTS
Change-Id: If15ea359a1a59c5a8e7a59818ce4db8120000bc4
kKeyBitsPerSample information from input was not passed to
audioTrackEntry while remuxing. Hence, the metadata of input file and
muxed file didn't match. Now kKeyBitsPerSample is passed as it is in
the input to muxed file.
Bug: 131842669
Test: cts-tradefed run cts-dev -m CtsMediaTestCases --compatibility:module-arg
CtsMediaTestCases:include-annotation:android.platform.test.annotations.RequiresDevice
Change-Id: I04ab296c39596d02c3f2cd9e219d8d80fe2f9185
When we play the mp4 file whose pcm audio's sample size of stsz box
is not correct, it will stuck. The root cause is it may take wrong
buffer to pcm decoder, and AudioTrack might not be able to play the
decoded pcm data and cannot get right timestamp, so video will stuck
by audio.
Bug: 132042434
Test: test with the mp4 file whose pcm audio sampleSize is abnormal
and check if the video can be played normally.
Change-Id: I06c69e43922512f43d996fafcbe8b9c23ce3e7dd
Soft omx plugins are already removed from vndk,
these should have been removed together. Keeping
them in vndk with have both 32 and 64 bit on system,
but soft omx only uses one set.
bug: 132466615
test: build and check these libs are now on vendor/lib.
Change-Id: I09ce20820ca96d71ddd02a45b68147c8388c841d
We add permissions for 'readlink' and 'open' for 32-bit targets.
These are used when grabbing bug reports, at least on some
32-bit devices.
Test: Tried this change on a 32-bit device that was getting fatal
aborts when taking bugreports, and confirm we no longer get fatal
aborts.
Bug: 132807384
Change-Id: I526217e9201d2a709baa2a6d9f078244578d678d
Test: Record a video while running logcat
Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small
Bug: 132461433
Change-Id: I996fa9d469bc395afb2589c6c0d9e43c8f4b0d69