Loading media/codec2/hal/client/Android.bp +0 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,6 @@ cc_library { "android.hardware.media.c2@1.0", "android.hardware.media.c2@1.1", "android.hardware.media.c2@1.2", "android.hardware.media.c2-V1-ndk", "libbase", "libbinder", "libbinder_ndk", Loading media/codec2/hal/client/client.cpp +5 −19 Original line number Diff line number Diff line Loading @@ -33,15 +33,6 @@ #include <android/hardware/media/c2/1.0/IConfigurable.h> #include <android/hidl/manager/1.2/IServiceManager.h> #include <aidl/android/hardware/media/c2/FieldSupportedValues.h> #include <aidl/android/hardware/media/c2/FieldSupportedValuesQuery.h> #include <aidl/android/hardware/media/c2/FieldSupportedValuesQueryResult.h> #include <aidl/android/hardware/media/c2/IComponent.h> #include <aidl/android/hardware/media/c2/IComponentInterface.h> #include <aidl/android/hardware/media/c2/IComponentStore.h> #include <aidl/android/hardware/media/c2/IConfigurable.h> #include <aidl/android/hardware/media/c2/ParamDescriptor.h> #include <android-base/properties.h> #include <bufferpool/ClientManager.h> #include <codec2/hidl/1.0/types.h> Loading Loading @@ -85,7 +76,6 @@ using H2BGraphicBufferProducer2 = ::android::hardware::graphics::bufferqueue:: using ::android::hardware::media::c2::V1_2::SurfaceSyncObj; namespace bufferpool_hidl = ::android::hardware::media::bufferpool::V2_0; namespace c2_aidl = ::aidl::android::hardware::media::c2; namespace c2_hidl_base = ::android::hardware::media::c2; namespace c2_hidl = ::android::hardware::media::c2::V1_2; Loading Loading @@ -537,7 +527,8 @@ c2_status_t Codec2ConfigurableClient::HidlImpl::querySupportedValues( // Codec2ConfigurableClient::AidlImpl struct Codec2ConfigurableClient::AidlImpl : public Codec2ConfigurableClient::ImplBase { typedef c2_aidl::IConfigurable Base; // TODO: C2AIDL was not landed yet, use c2_aidl when it is landed. typedef c2_hidl::IConfigurable Base; // base cannot be null. explicit AidlImpl(const std::shared_ptr<Base>& base); Loading Loading @@ -573,9 +564,9 @@ private: Codec2ConfigurableClient::AidlImpl::AidlImpl(const std::shared_ptr<Base>& base) : mBase{base}, mName{[base]() -> C2String { std::string outName; ndk::ScopedAStatus status = base->getName(&outName); return status.isOk() ? outName : ""; // TODO: implementation (void)base; return ""; }()} { } Loading Loading @@ -619,11 +610,6 @@ Codec2ConfigurableClient::Codec2ConfigurableClient(const sp<HidlBase> &hidlBase) : mImpl(new Codec2ConfigurableClient::HidlImpl(hidlBase)) { } Codec2ConfigurableClient::Codec2ConfigurableClient( const std::shared_ptr<AidlBase> &aidlBase) : mImpl(new Codec2ConfigurableClient::AidlImpl(aidlBase)) { } const C2String& Codec2ConfigurableClient::getName() const { return mImpl->getName(); } Loading media/codec2/hal/client/include/codec2/hidl/client.h +0 −2 Original line number Diff line number Diff line Loading @@ -113,7 +113,6 @@ namespace android { struct Codec2ConfigurableClient { typedef ::android::hardware::media::c2::V1_0::IConfigurable HidlBase; typedef ::aidl::android::hardware::media::c2::IConfigurable AidlBase; struct ImplBase { virtual ~ImplBase() = default; Loading Loading @@ -141,7 +140,6 @@ struct Codec2ConfigurableClient { }; explicit Codec2ConfigurableClient(const sp<HidlBase> &hidlBase); explicit Codec2ConfigurableClient(const std::shared_ptr<AidlBase> &aidlBase); const C2String& getName() const; Loading Loading
media/codec2/hal/client/Android.bp +0 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,6 @@ cc_library { "android.hardware.media.c2@1.0", "android.hardware.media.c2@1.1", "android.hardware.media.c2@1.2", "android.hardware.media.c2-V1-ndk", "libbase", "libbinder", "libbinder_ndk", Loading
media/codec2/hal/client/client.cpp +5 −19 Original line number Diff line number Diff line Loading @@ -33,15 +33,6 @@ #include <android/hardware/media/c2/1.0/IConfigurable.h> #include <android/hidl/manager/1.2/IServiceManager.h> #include <aidl/android/hardware/media/c2/FieldSupportedValues.h> #include <aidl/android/hardware/media/c2/FieldSupportedValuesQuery.h> #include <aidl/android/hardware/media/c2/FieldSupportedValuesQueryResult.h> #include <aidl/android/hardware/media/c2/IComponent.h> #include <aidl/android/hardware/media/c2/IComponentInterface.h> #include <aidl/android/hardware/media/c2/IComponentStore.h> #include <aidl/android/hardware/media/c2/IConfigurable.h> #include <aidl/android/hardware/media/c2/ParamDescriptor.h> #include <android-base/properties.h> #include <bufferpool/ClientManager.h> #include <codec2/hidl/1.0/types.h> Loading Loading @@ -85,7 +76,6 @@ using H2BGraphicBufferProducer2 = ::android::hardware::graphics::bufferqueue:: using ::android::hardware::media::c2::V1_2::SurfaceSyncObj; namespace bufferpool_hidl = ::android::hardware::media::bufferpool::V2_0; namespace c2_aidl = ::aidl::android::hardware::media::c2; namespace c2_hidl_base = ::android::hardware::media::c2; namespace c2_hidl = ::android::hardware::media::c2::V1_2; Loading Loading @@ -537,7 +527,8 @@ c2_status_t Codec2ConfigurableClient::HidlImpl::querySupportedValues( // Codec2ConfigurableClient::AidlImpl struct Codec2ConfigurableClient::AidlImpl : public Codec2ConfigurableClient::ImplBase { typedef c2_aidl::IConfigurable Base; // TODO: C2AIDL was not landed yet, use c2_aidl when it is landed. typedef c2_hidl::IConfigurable Base; // base cannot be null. explicit AidlImpl(const std::shared_ptr<Base>& base); Loading Loading @@ -573,9 +564,9 @@ private: Codec2ConfigurableClient::AidlImpl::AidlImpl(const std::shared_ptr<Base>& base) : mBase{base}, mName{[base]() -> C2String { std::string outName; ndk::ScopedAStatus status = base->getName(&outName); return status.isOk() ? outName : ""; // TODO: implementation (void)base; return ""; }()} { } Loading Loading @@ -619,11 +610,6 @@ Codec2ConfigurableClient::Codec2ConfigurableClient(const sp<HidlBase> &hidlBase) : mImpl(new Codec2ConfigurableClient::HidlImpl(hidlBase)) { } Codec2ConfigurableClient::Codec2ConfigurableClient( const std::shared_ptr<AidlBase> &aidlBase) : mImpl(new Codec2ConfigurableClient::AidlImpl(aidlBase)) { } const C2String& Codec2ConfigurableClient::getName() const { return mImpl->getName(); } Loading
media/codec2/hal/client/include/codec2/hidl/client.h +0 −2 Original line number Diff line number Diff line Loading @@ -113,7 +113,6 @@ namespace android { struct Codec2ConfigurableClient { typedef ::android::hardware::media::c2::V1_0::IConfigurable HidlBase; typedef ::aidl::android::hardware::media::c2::IConfigurable AidlBase; struct ImplBase { virtual ~ImplBase() = default; Loading Loading @@ -141,7 +140,6 @@ struct Codec2ConfigurableClient { }; explicit Codec2ConfigurableClient(const sp<HidlBase> &hidlBase); explicit Codec2ConfigurableClient(const std::shared_ptr<AidlBase> &aidlBase); const C2String& getName() const; Loading