Use AppOpsManager.checkOp() instead of AppOpsManager.noteOp() to verify
capture audio permission when creating an AudioRecord client.
This avoid false triggering of mic use UI indication if capture is not
actually active.
Test: verify main audio capture use cases
Change-Id: I38c7429bf2c8cdeaba907c868b94e39b69626c55
Currently C2_TIMED_OUT is used for WOULD_BLOCK cases inside BlockPool.
Use C2_BLOCKING instead of C2_TIMED_OUT.
Bug: 123711537
Bug: 123951795
Change-Id: I3c250b9e50c8aed7eb8bcc4a974ff6dd0b54083f
Bug: http://b/116873221
Bug: http://b/124522995
libmediandk has linker errors when built with coverage:
ld.lld: error: undefined symbol: VTT for
android::hidl::base::V1_0::IBase
>>> referenced by IBase.h:0
(out/soong/.intermediates/system/libhidl/transport/base/1.0/android.hidl.base@1.0_genc++_headers/gen/android/hidl/base/1.0/IBase.h:0)
>>>
out/soong/.intermediates/frameworks/av/media/ndk/libmediandk/android_arm_armv8-a_core_shared_cov/obj/frameworks/av/media/ndk/NdkImageReader.o:(android::hidl::base::V1_0::IBase::~IBase())
Other symbols from the IBase struct (debug(), getHashChain, for e.g.)
are also reported as undefined.
Test: Build with native_coverage
Change-Id: I648bfa658d389b4483eeb7dd90546df2672bc67c
Use static and dynamic metadata to override Exif tags.
Also added back a missing ATRACE_ASYNC_ENDs statement.
Test: Camera CTS
Test: ERROR_BUFFER of internal streams is propagated to app
Test: ERROR_RESULT only results in EXIF not being overridden
Bug: 124066183
Change-Id: Id2c69c6bee04ae724ff5f190b2dd96d0159700c9
Bug: http://b/116873221
Mark the functions in this class that aren't defined as pure virtual.
If not, Clang assumes that the TU which defines the first undefined
function will contain the vtable for the class as well. Since there's
no out-of-line definition of this funciton, no TU ends up with the
vtable.
This causes a problem with coverage builds, which are built with -O0,
where calls don't get inlined, thereby requiring a definition of the
vtable. For non -O0 builds, the vtable is not required since the
virtual calls get inlined/optimized-out.
Test: Build with and without coverage
Change-Id: I4644dcd892c5f47031f1603b0f809c1da95314db
Use the constant from IExternalVibratorService.
Bug: 124318236
Test: play audio-haptic coupled file
Change-Id: Ice2ac13d0f6a6a749bb6243230524336144fa5f4
This reverts commit ddd87af881.
Reason for revert: Turning down diagnostics mode in codecs.
Bug: 111498295
Change-Id: Ida7302ec70f31b79931e2a5df424a5ab4e3d5d62
Each APEX is signed with different certificate. The test certificate
(along with the private key) is com.android.<name>.x509.pem and
com.android.<name>.pk8. The files are in the same directory as the APEX
is defined and is referenced via android_app_certificate module named
com.android.<name>.certificate.
The test certificate could then be overridden via
PRODUCT_CERTIFICATE_OVERRIDES := <apex_module_name>:<new_cert_module_name>
Test: jarsigner -verify -verbose -certs out/target/product/blueline/system/apex/com.android.media.swcodec.apex shows
...
X.509, CN=com.android.media.swcodec, OU=Android, O=Android, L=Mountain View, ST=California, C=US
Change-Id: I3a967fa640ce77177763b78a34a2df05f70ce60f
Each APEX is signed with different certificate. The test certificate
(along with the private key) is com.android.<name>.x509.pem and
com.android.<name>.pk8. The files are in the same directory as the APEX
is defined and is referenced via android_app_certificate module named
com.android.<name>.certificate.
The test certificate could then be overridden via
PRODUCT_CERTIFICATE_OVERRIDES := <apex_module_name>:<new_cert_module_name>
Test: jarsigner -verify -verbose -certs out/target/product/blueline/system/apex/com.android.media.apex shows
...
X.509, CN=com.android.media, OU=Android, O=Android, L=Mountain View, ST=California, C=US
Change-Id: Ic61a7d2ca41254bda79ee5bdd3faf6d429a24e39
The output for a 3 channel input is not bit-exact with that of
2 channel input when concert surround is enabled and tested using lvmtest.
Test: local native test (lvmtest)
Bug: 124085228
Change-Id: Icb2d1d5d858be0c37cb11dd3734f8a6244d3cc1c
am: 3bbcabbb55 -s ours
am skip reason: change_id Ibbf5dede1f503e86484f805b252d4ced779445cb with SHA1 2334e00184 is in history
Change-Id: I9b45843a019a6f04d9fc4ea1e687eda0d75bc4f6
ACodec used to ignore "video-bitrate" for initial config and
"bitrate" for on-demand bitrate change. Let CCodec behave the
same way.
Bug: 121047280
Test: manual
Change-Id: Ief9cbb3e26f888c577d416d2887eb615f80f3dd0
If the client pauses pushing input to the component, work items inside
total delay may sit in the pipeline indefinitely. We don't want to
error out for those work. Once the client pushes EOS, ensure all work
items finishes within reasonable time regardless of delay.
Bug: 124355114
Test: manual
Test: atest CtsSecurityTestCases:StagefrightTest
Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small
Change-Id: I0e95b2ddb94482da855d70cbe75f6bffaaffe279
1. Fix off by one error in signalStreamFlush call
2. Make sure signalStreamFlush is called before we toggle request
thread idle (which might cause another thread finishing
waitUntilIdle() and thus start calling configureStreams)
Test: Pixel 3 + camera CTS
Bug: 120986771
Change-Id: Ifd6f77ef628ee200c024c7c6a05bde20937c745d