The cameraservice is only registered to service manager after onFirstRef
is returned. To reduce the probability of getBinderService() call
returning null, move pingCameraServiceProxy to end of onFirstRef().
Also add debug messages in onFirstRef and main() for better diagnoses.
Test: Camera CTS
Bug: 140414594
Change-Id: I52defd1c138ade57ebc5181c42aff30921fbeaeb
Apps cannot connect to hidden secure cameras. Do not include them in the
number of cameras reported by camera1 api.
Bug: 141247926
Test: Without CL -> mark all cameras as hidden secure cameras;
atest FastBasicsTest.java#testCamera1 fails
With CL -> mark all cameras as hidden secure cameras;
atest FastBasicsTest.java#testCamera1 passes
Test: camera CTS
Merged-In: I9d1721fd5e94fa7f692c3da52aa667ae9247d368
Change-Id: I229a336bed6b2695e16c1457cb8f74c26b07f7e8
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
Only one system server seems to exist across multiple-users; however,
when the primary user is backgrounded, system server loses its
RECORD_AUDIO permission. Through a number of steps this prevents the
secondary user from starting any services that use the SoundTrigger HAL;
specifically, this was found because it prevents Oslo from functioning
when a secondary user is active.
Bug: 139839188
Test: Oslo use cases pass
Change-Id: Ia0dd5fd3b6992cb18279b81146b35ed040771245
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
special case the g711 test to know that it is a 1-channel input.
Test case itself can't infer the channel count from the g711 stream
since there is no header/control info within the g711 stream.
Bug: 140773833
Test: vts-tradefed run vts --module VtsHalMediaC2V1_0Host
Change-Id: I9ac1f4d3ee0ccc42ffc8c199fcb88dc5c7122c0e
(cherry picked from commit 72b55c5e31)
OMX allowed 6, but codec2 was restricting to 1 channel.
Bug: 140469404
Test: playback clip from bug
(cherry picked from commit edba5005d9)
Change-Id: I9d86c40741f1442ca8147e2802a9ce54df31bbd1
OUTPUT_DELAY was set as 8 for avc and hevc c2 decoder plugins.
It is now set based on the value present in SPS
Bug: 138627015
Test: poc in bug
Test: atest android.media.cts.DecoderTest
Test: atest android.media.cts.AdaptivePlaybackTest
Change-Id: I50f7b3e8bd08c9d3b19e84c3c25acaa4eb767226
Make the vndk module "libstagefright_bufferpool@2.0" work with existing
Codec2 HALs, and create a new vendor (non-vndk) module
"libstagefright_bufferpool@2.0.1" that new Codec2 HALs can use.
Test: atest CtsMediaTestCases -- \
--module-arg CtsMediaTestCases:size:small
Bug: 138171841
Bug: 140471279
Change-Id: I2886432afef86ef66fbd48ee744e5fd8de2d1e21
bug: 138397508
test: cts HeifWriterTest on devices that can enable OMX HEIC encoder.
Change-Id: I6e8437c0b8cc4901e943f2ed7cb23cb16ed096fe
(cherry picked from commit 7b0ff1953d)
Since secure buffers are limited resources, use less buffers for secure
output display.
Bug: 138295327
Bug: 140087403
Change-Id: If763bed99cecc0acdd88d0111d30aa4ab98bce71
There is no change on functionality, only refactoring
to allow unit testing.
bug: 138381810
bug: 139440234
Change-Id: Id927c091607d9ea5ea84b6e292d53154ef5171a6
Refactor the calls to other system services to an interface
to allow more testing.
Add test for callbacks to BatteryStatsService and
SchedulingPolicyService.
bug: 138381810
bug: 139440234
test: presubmit
Change-Id: I04408ad5a126e9f4083b5806b228449cb432acf6
* changes:
Switch av1 implementations from aom to gav1
stagefright: Use libgav1 for AV1 decoding
codec2: Add log message for the AV1 decoder
codec2: Implement gav1 decoder component
codec2: libgav1 integration part 1
The Quirk, Attribute, Alias, Limit and Feature elements are added to
"Variant" type for fixing VTS error.
Bug: 139506623
Test: m -j40 vts && vts-tradefed run vts -m VtsValidateMediaCodecs
Change-Id: I55066cc1de8b820c24faccdfb469377c897e9808
Some devices make /sdcard a symbolic link to a non-constant target. The
target changes between the setup and the execution, so files pushed to
/sdcard during the setup cannot be found when the test runs.
Test: vts-tradefed run vts -m VtsHalMediaC2V1_0Host
Bug: 138388013
Change-Id: Ia27bd9eedfc6f97225abb553c4b8efbb8957966e
Use the c2.android.gav1.decoder component instead of
c2.android.av1.decoder component.
All the AV1 related CTS tests still pass.
Bug: 131989882
Bug: 130249450
Test: cts-tradefed run commandAndExit cts-dev --include-filter CtsMediaTestCases --module-arg "CtsMediaTestCases:include-filter:android.media.cts.DecoderTest#testAV1*" --module-arg "CtsMediaTestCases:include-filter:android.media.cts.AdaptivePlaybackTest#testAV1*"
Merged-In: I519040c7a7974058d1d2a4f210bb93f1c8f50ea1
Change-Id: I519040c7a7974058d1d2a4f210bb93f1c8f50ea1
Add a log message about which AV1 decoder is being used.
Also remove the TODO for renaming the gav1 component.
Bug: 131989882
Bug: 130249450
Test: cts-tradefed run commandAndExit cts-dev --include-filter CtsMediaTestCases --module-arg "CtsMediaTestCases:include-filter:android.media.cts.DecoderTest#testAV1*" --module-arg "CtsMediaTestCases:include-filter:android.media.cts.AdaptivePlaybackTest#testAV1*"
Merged-In: I3eec15cc74d8ab8f9e6d4539a25407cf93d4efeb
Change-Id: I3eec15cc74d8ab8f9e6d4539a25407cf93d4efeb
Note that this CL does not switch the default AV1 decoder to gav1
yet. That will be done in a follow-up.
Test: CTS media tests related to AV1 still pass.
Bug: 131989882
Bug: 130249450
Merged-In: Ifb88d0f51d85e59fa37d5cead8a5d4757067fedd
Change-Id: Ifb88d0f51d85e59fa37d5cead8a5d4757067fedd