From 54c01e160800ad01c0a45081ee301931147bd141 Mon Sep 17 00:00:00 2001 From: Pawin Vongmasa Date: Tue, 12 Mar 2019 19:56:00 -0700 Subject: [PATCH] Enable Codec2 Test: make cts -j123 && cts-tradefed run cts-dev -m \ CtsMediaTestCases --compatibility:module-arg \ CtsMediaTestCases:include-annotation:\ android.platform.test.annotations.RequiresDevice Bug: 128456533 Change-Id: Ibe051f4b19c2dbb0a208e751a3b7a332a329b447 --- device.mk | 17 +++++ framework_manifest.xml | 9 +++ media_codecs_c2.xml | 113 ++++++++++++++++++++++++++++++++ media_codecs_performance_c2.xml | 71 ++++++++++++++++++++ 4 files changed, 210 insertions(+) create mode 100644 media_codecs_c2.xml create mode 100644 media_codecs_performance_c2.xml diff --git a/device.mk b/device.mk index 67d2dc41..1bedad6c 100755 --- a/device.mk +++ b/device.mk @@ -567,6 +567,23 @@ PRODUCT_COPY_FILES += \ frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ $(LOCAL_PATH)/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \ +# Codec2 modules +PRODUCT_PACKAGES += \ + com.android.media.swcodec \ + libsfplugin_ccodec \ + +# Codec2 files +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/media_codecs_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2.xml \ + $(LOCAL_PATH)/media_codecs_performance_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_c2.xml \ + frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \ + frameworks/av/media/libstagefright/data/media_codecs_google_c2_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_telephony.xml \ + frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml \ + +# Codec2 switch +PRODUCT_PROPERTY_OVERRIDES += \ + debug.media.codec2=2 \ + PRODUCT_PROPERTY_OVERRIDES += \ audio.snd_card.open.retries=50 diff --git a/framework_manifest.xml b/framework_manifest.xml index c82d51c8..c270eb5c 100644 --- a/framework_manifest.xml +++ b/framework_manifest.xml @@ -1,4 +1,13 @@ + + android.hardware.media.c2 + hwbinder + 1.0 + + IComponentStore + software + + vendor.qti.atcmdfwd hwbinder diff --git a/media_codecs_c2.xml b/media_codecs_c2.xml new file mode 100644 index 00000000..68393069 --- /dev/null +++ b/media_codecs_c2.xml @@ -0,0 +1,113 @@ + + + + + + + + + + + + diff --git a/media_codecs_performance_c2.xml b/media_codecs_performance_c2.xml new file mode 100644 index 00000000..5916caa3 --- /dev/null +++ b/media_codecs_performance_c2.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +