History log of /frameworks/av/services/mediacodec/Android.mk
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cbdeea977b79c41910b004cffcb80d81265853e8 27-Jul-2017 Pawin Vongmasa <pawin@google.com> Implement IOmxStore

Separate out MediaCodecsXmlParser and implement IOmxStore and IOMXStore.

Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Test: make cts -j123 && cts-tradefed run cts -m \
CtsMediaTestCases -t android.media.cts.MediaCodecListTest

Bug: 37657124

Merged-In: I8c5a3a8fe6defab4f17c8a49bce57452879193dc
Change-Id: I8c5a3a8fe6defab4f17c8a49bce57452879193dc
/frameworks/av/services/mediacodec/Android.mk
5550640fcb161f8329646ae959034251023884cc 08-Jun-2017 Steven Moreland <smoreland@google.com> Fix OMX dependencies.

Note, filed b/62923763 to cleanup xmlparser includes.

Bug: 37343418
Test: builds with BOARD_VNDK_VERSION=current
Test: (sanity) YouTube on a device
Test: (sanity) Camera on a device
Test: (sanity) watch (part of a) movie on a device
Test: (sanity) YouTube on marlin
Test: (sanity) Camera on marlin
Test: (sanity) watch (part of a) movie on marlin
Test: (sanity) YouTube on angler
Test: (sanity) Camera on angler
Test: (sanity) watch (part of a) movie on angler


Change-Id: I461f999122da56cabb9d4d15b182899ced3b0120
/frameworks/av/services/mediacodec/Android.mk
009578c1aef5f6fe5fa064edf15dc888d32526c0 08-Jun-2017 Steven Moreland <smoreland@google.com> OMX Hal: depend on libavservices_minijail_vendor.

libminijail_vendor was added so that OMX can depend on
it. However, OMX's dependency is actually through the
library libavservices_minijail.

Bug: 37343418
Test: (sanity) YouTube
Test: dependency error no longer shows when compiling with
BOARD_VNDK_VERSION := current
Change-Id: Ife1dc09d8d225adf592829da9cf5603f8f543709
/frameworks/av/services/mediacodec/Android.mk
2ee7aab4a39139a86a24ca14f718eb20a1b355db 25-May-2017 YOUNG HO CHA <ganadist@gmail.com> Android.mk: remove $TOP in LOCAL_C_INCLUDES

Test: make systemimage

Change-Id: I5f83786afe3f2c65819b127b041cb74fc4c989ac
Signed-off-by: YOUNG HO CHA <ganadist@gmail.com>
/frameworks/av/services/mediacodec/Android.mk
4658418c5545763cd0cc81caedb422a97cf78a63 28-Feb-2017 Pawin Vongmasa <pawin@google.com> Move mediacodec to vendor partition.

Test: Camera, Photos, YouTube, and Play Movies apps.
Test: With CtsMediaTestCases.apk installed,
adb shell am instrument -e size small -w
'android.media.cts/android.support.test.runner.AndroidJUnitRunner'

Bug: 35328855
Change-Id: I0f36683b531fc645835a94e449996e5b44d0a3de
/frameworks/av/services/mediacodec/Android.mk
04563aafa0debc95d50951ca944abf37ef2777ce 09-Mar-2017 Pawin Vongmasa <pawin@google.com> Move hybrid interface from libbinder to libhidl/transport.

Also, merge android.hardware.media.omx@1.0-impl into libstagefright_omx.

Test: With CtsMediaTestCases.apk installed,
adb shell am instrument -e size small -w
'android.media.cts/android.support.test.runner.AndroidJUnitRunner'
Test: Manual use of Camera, Photos, Play Movies and YouTube apps.
Test: Manual use of screen mirroring.

Bug: 33854657
Change-Id: Ie927bcafd86dc7e9509bb8b76bb3b51f9a423cc7
/frameworks/av/services/mediacodec/Android.mk
79234e4a1317167b23482024bf060080af04f257 23-Feb-2017 Jeff Vander Stoep <jeffv@google.com> Combine platform and vendor seccomp policy at runtime

Previously, vendor customization to seccomp policy was combined
with the platform's policy at build time. In order to remove
frameworks dependencies on the device folder, this policy
combination is being moved to runtime.

For mediacodec and mediaextractor, platform seccomp policy specified
in the frameworks will be loaded from /system/etc/seccomp_policy.
Optional vendor customizations must reside in
/vendor/etc/seccomp_policy. If the vendor policy exists, it will be
concatenated to the end of the platform policy and loaded, otherwise
just the platform policy will be loaded.

Bug: 34723744
Test: Dragon, Marlin, Muskie build and boot.
Test: Watch videos on youtube no seccomp violations observed.
Test: For both mediacodec and mediaextractor verify
"cat proc/<pid>/status | grep Seccomp" == Seccomp: 2
Change-Id: I08b79b207785df69add31e4662e2c33fa28b4f4d
/frameworks/av/services/mediacodec/Android.mk
0d3a5edf232916e81adbc46fc0f4a1753166b066 22-Feb-2017 Pawin Vongmasa <pawin@google.com> Remove the dependency on passthrough IOmx in media.codec.

Also clean up some other dependencies.

Test: Manual testing with Camera, YouTube and Play Movies apps.
Bug: 35445903
Change-Id: I28562b5fbcc7054cf45c4ec2530bbe2ab4b5645f
/frameworks/av/services/mediacodec/Android.mk
f2832c42cf7d458b6297673bf95c5bc2d22e6519 21-Feb-2017 Steven Moreland <smoreland@google.com> mediacodec: include missing dependency

Test: pass

Change-Id: I937e9118a691ca855c40f7e89fc6509e594be1bd
/frameworks/av/services/mediacodec/Android.mk
bc1713d3b85d7ce656e032da6e4b6b342f14db03 14-Feb-2017 Mathias Agopian <mathias@google.com> fallout of splitting rect.h out of libandroid.

A lot of media makefiles didn’t specify libui or
libgui but included headers from these libraries
directly.

It works because these headers are on the global
include path. With this change, though, rect.h
is not anymore (albeit exported from libui).

Test: built and booted device
Bug: 35164655
Change-Id: I72e8f0b7bd25c6a67eedc17afe52c4c484a147fe
/frameworks/av/services/mediacodec/Android.mk
9c47c97ecac581d66b6febafd156618247e86742 08-Feb-2017 Pawin Vongmasa <pawin@google.com> Enable full migration of OMX to Treble.

1. Toggling between Treble and non-Treble OMX will now be controlled by
two properties: "persist.hal.binderization" and
"persist.media.treble_omx". (Before this CL, this was controlled by
"debug.treble_omx".)
- If persist.media.treble_omx is not set, it will assume a default value
of -1.
- If persist.media.treble_omx is -1, persist.hal.binderization will be
used to determine whether OMX will be created as a Treble or non-Treble
service.
- If persist.media.treble_omx is 1, OMX will be created as a Treble
service.
- If persist.media.treble_omx has any other value, OMX will be created
as a non-Treble service.
- persist.media.treble_omx can be changed without rebooting, but it will
only take effect after media.codec and mediaserver processes are killed.

2. Remove all dependencies on non-Treble service. This was not done for
MediaCodec, MediaPlayerService::Client, MediaRecorderClient, stagefright
command, and omx_tests command. OMXClient and media.codec process will
now pick the right version of OMX based on properties mentioned above.
Before this CL, media.codec would always present the non-Treble version
of OMX regardless of the flag.

3. Provide workarounds for some HIDL issues.
- A sequence of nested binder and hwbinder calls require many threads to
handle. (b/35283480) The workaround is to increase the number of threads
in the thread pool of media.codec process.
- android.hidl.base@1.0::IBase::unlinkToDeath takes a strong pointer
instead of a weak pointer. (b/35233970) This causes an infinite
recursion in the destructor of ServiceDeathNotifier in
MediaPlayerService::Client and MediaRecorderClient. The workaround moves
calls to unlinkToDeath() outside of the destructor.

Test: Recorded and played videos with Camera app. Ran stagefright and
omx_tests commands.
Bug: 31399200

Change-Id: Id1940ed982838e10bf10fe8ed5b7bb912a5a2d3a
/frameworks/av/services/mediacodec/Android.mk
fbfb8e8b9a7e6a2d351b28bfd8cdd3dacd10e975 14-Feb-2017 Jorge Lucangeli Obes <jorgelo@google.com> Unify media.codec and media.extractor Minijail usage.

That way we can modify this code in one place to take a list of seccomp
policy files.

This CL removes around 70 lines by unifying identical code. No change
in behavior.

Bug: 34723744
Test: media.codec, media.extractor start, have Seccomp.
Test: cat /proc/`pgrep .codec`/status | grep Seccomp
Seccomp: 2
Test: cat /proc/`pgrep .extractor`/status | grep Seccomp
Seccomp: 2
Change-Id: Ia8be7b9c3d6163804d2a45954f8d03315ae32e7a
/frameworks/av/services/mediacodec/Android.mk
033975f9afa776fab47c027c0b3b80c438216d77 26-Dec-2016 Pawin Vongmasa <pawin@google.com> Add the Treble version of OMX to the service.

To enable the Treble version of IOmx in mediacodec process, use "setprop
debug.treble_omx 1".

Test: Compiles
Bug: 31399200
Change-Id: I0935dc7943e25067f5d8e75264cf2b088498a862
/frameworks/av/services/mediacodec/Android.mk
c9ea2114a26470e0f3b010392132b5394d358031 17-Feb-2016 Jeff Vander Stoep <jeffv@google.com> mediacodec: add seccomp filter for arm/arm64

mediacodec always runs in 32 bit mode so the arm seccomp filter is also
used on arm64 devices.

Tests: mediaserver CTS for bullhead, volantis and shamu

Add policy to log blocked syscalls to syslog and allow debuggerd attach
on mediacodec crash.

Bug: 27066802, 27064966
Change-Id: I4bdbba25b8847afa98d89b4b4ca863829fa19754
/frameworks/av/services/mediacodec/Android.mk
1900e77bac4276f247f80fd06d19316cac598f57 03-Feb-2016 Marco Nelissen <marcone@google.com> Run codecs in a separate process

Encoders and secure decoders still run in the mediaserver, while
all other codecs run in a separate codec process.

Bug: 22775369

Change-Id: Ifbcab8a8f2fe77d2567830ac88f0d982e77f7b00
/frameworks/av/services/mediacodec/Android.mk
260e56c9a17737bf280d776797d6dee411c9b4da 28-Jan-2016 Marco Nelissen <marcone@google.com> Revert "Run codecs in a separate process"

This reverts commit 4f12d94fc26df1d0c7a566792711b8863fd39fe9.

Change-Id: Ic850a950119a45efd3042f40147253b37c328853
/frameworks/av/services/mediacodec/Android.mk
4f12d94fc26df1d0c7a566792711b8863fd39fe9 16-Dec-2015 Marco Nelissen <marcone@google.com> Run codecs in a separate process

For now this only runs decoders and Google encoders in the codec process.

Bug: 22775369
Change-Id: Iadd8b6bc2873ddcfaee3e68866642ba74c6949aa
/frameworks/av/services/mediacodec/Android.mk