Loading media/codec2/hal/aidl/Android.bp +5 −3 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ package { // use libcodec2-aidl-client-defaults instead cc_library { name: "libcodec2_aidl_client", min_sdk_version: "31", srcs: [ "BufferTypes.cpp", Loading Loading @@ -53,8 +54,8 @@ cc_library { // use libcodec2-aidl-defaults instead cc_library { name: "libcodec2_aidl", min_sdk_version: "31", vendor_available: true, min_sdk_version: "34", apex_available: [ "//apex_available:platform", "com.android.media.swcodec", Loading Loading @@ -131,11 +132,12 @@ cc_library { // public dependency for Codec 2.0 HAL service implementations cc_defaults { name: "libcodec2-aidl-defaults", min_sdk_version: "34", min_sdk_version: "31", defaults: ["libcodec2-impl-defaults"], shared_libs: [ "android.hardware.media.c2-V1-ndk", "libbinder_ndk", "libcodec2_aidl", ], } Loading @@ -143,7 +145,7 @@ cc_defaults { // public dependency for Codec 2.0 HAL client cc_defaults { name: "libcodec2-aidl-client-defaults", min_sdk_version: "34", min_sdk_version: "31", defaults: ["libcodec2-impl-defaults"], shared_libs: [ Loading media/codec2/hal/aidl/Component.cpp +16 −12 Original line number Diff line number Diff line Loading @@ -301,7 +301,7 @@ ScopedAStatus Component::createBlockPool( switch (allocator.getTag()) { case ALLOCATOR_ID: #ifdef __ANDROID_APEX__ status = CreateCodec2BlockPool( status = ::android::CreateCodec2BlockPool( static_cast<::android::C2PlatformAllocatorStore::id_t>( allocator.get<ALLOCATOR_ID>()), mComponent, Loading Loading @@ -405,6 +405,7 @@ ScopedAStatus Component::configureVideoTunnel( } void Component::initListener(const std::shared_ptr<Component>& self) { if (__builtin_available(android __ANDROID_API_T__, *)) { std::shared_ptr<C2Component::Listener> c2listener = std::make_shared<Listener>(self); c2_status_t res = mComponent->setListener_vb(c2listener, C2_DONT_BLOCK); Loading @@ -417,6 +418,9 @@ void Component::initListener(const std::shared_ptr<Component>& self) { mDeathContext = new DeathContext{weak_from_this()}; AIBinder_DeathRecipient_setOnUnlinked(mDeathRecipient.get(), OnBinderUnlinked); AIBinder_linkToDeath(mListener->asBinder().get(), mDeathRecipient.get(), mDeathContext); } else { mInit = C2_NO_INIT; } } // static Loading media/codec2/hal/aidl/ComponentStore.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -51,8 +51,11 @@ namespace media { namespace c2 { namespace utils { #ifndef __ANDROID_APEX__ using ::android::DefaultFilterPlugin; using ::android::FilterWrapper; #endif using ::ndk::ScopedAStatus; namespace /* unnamed */ { Loading Loading
media/codec2/hal/aidl/Android.bp +5 −3 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ package { // use libcodec2-aidl-client-defaults instead cc_library { name: "libcodec2_aidl_client", min_sdk_version: "31", srcs: [ "BufferTypes.cpp", Loading Loading @@ -53,8 +54,8 @@ cc_library { // use libcodec2-aidl-defaults instead cc_library { name: "libcodec2_aidl", min_sdk_version: "31", vendor_available: true, min_sdk_version: "34", apex_available: [ "//apex_available:platform", "com.android.media.swcodec", Loading Loading @@ -131,11 +132,12 @@ cc_library { // public dependency for Codec 2.0 HAL service implementations cc_defaults { name: "libcodec2-aidl-defaults", min_sdk_version: "34", min_sdk_version: "31", defaults: ["libcodec2-impl-defaults"], shared_libs: [ "android.hardware.media.c2-V1-ndk", "libbinder_ndk", "libcodec2_aidl", ], } Loading @@ -143,7 +145,7 @@ cc_defaults { // public dependency for Codec 2.0 HAL client cc_defaults { name: "libcodec2-aidl-client-defaults", min_sdk_version: "34", min_sdk_version: "31", defaults: ["libcodec2-impl-defaults"], shared_libs: [ Loading
media/codec2/hal/aidl/Component.cpp +16 −12 Original line number Diff line number Diff line Loading @@ -301,7 +301,7 @@ ScopedAStatus Component::createBlockPool( switch (allocator.getTag()) { case ALLOCATOR_ID: #ifdef __ANDROID_APEX__ status = CreateCodec2BlockPool( status = ::android::CreateCodec2BlockPool( static_cast<::android::C2PlatformAllocatorStore::id_t>( allocator.get<ALLOCATOR_ID>()), mComponent, Loading Loading @@ -405,6 +405,7 @@ ScopedAStatus Component::configureVideoTunnel( } void Component::initListener(const std::shared_ptr<Component>& self) { if (__builtin_available(android __ANDROID_API_T__, *)) { std::shared_ptr<C2Component::Listener> c2listener = std::make_shared<Listener>(self); c2_status_t res = mComponent->setListener_vb(c2listener, C2_DONT_BLOCK); Loading @@ -417,6 +418,9 @@ void Component::initListener(const std::shared_ptr<Component>& self) { mDeathContext = new DeathContext{weak_from_this()}; AIBinder_DeathRecipient_setOnUnlinked(mDeathRecipient.get(), OnBinderUnlinked); AIBinder_linkToDeath(mListener->asBinder().get(), mDeathRecipient.get(), mDeathContext); } else { mInit = C2_NO_INIT; } } // static Loading
media/codec2/hal/aidl/ComponentStore.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -51,8 +51,11 @@ namespace media { namespace c2 { namespace utils { #ifndef __ANDROID_APEX__ using ::android::DefaultFilterPlugin; using ::android::FilterWrapper; #endif using ::ndk::ScopedAStatus; namespace /* unnamed */ { Loading