Loading services/tuner/TunerFrontend.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -174,6 +174,16 @@ TunerFrontend::~TunerFrontend() { return mFrontend->getHardwareInfo(_aidl_return); } ::ndk::ScopedAStatus TunerFrontend::removeOutputPid(int32_t in_pid) { if (mFrontend == nullptr) { ALOGD("IFrontend is not initialized"); return ::ndk::ScopedAStatus::fromServiceSpecificError( static_cast<int32_t>(Result::UNAVAILABLE)); } return mFrontend->removeOutputPid(in_pid); } /////////////// FrontendCallback /////////////////////// ::ndk::ScopedAStatus TunerFrontend::FrontendCallback::onEvent(FrontendEventType frontendEventType) { ALOGV("FrontendCallback::onEvent, type=%d", frontendEventType); Loading services/tuner/TunerFrontend.h +1 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ public: vector<FrontendStatus>* _aidl_return) override; ::ndk::ScopedAStatus getFrontendId(int32_t* _aidl_return) override; ::ndk::ScopedAStatus getHardwareInfo(std::string* _aidl_return) override; ::ndk::ScopedAStatus removeOutputPid(int32_t in_pid) override; struct FrontendCallback : public BnFrontendCallback { FrontendCallback(const shared_ptr<ITunerFrontendCallback> tunerFrontendCallback) Loading services/tuner/aidl/android/media/tv/tuner/ITunerFrontend.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -99,4 +99,9 @@ interface ITunerFrontend { * Request hardware information about the frontend. */ String getHardwareInfo(); /** * Filter out unnecessary PID from frontend output. */ void removeOutputPid(int pid); } services/tuner/hidl/TunerHidlFrontend.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -428,6 +428,11 @@ TunerHidlFrontend::~TunerHidlFrontend() { static_cast<int32_t>(Result::UNAVAILABLE)); } ::ndk::ScopedAStatus TunerHidlFrontend::removeOutputPid(int32_t /* in_pid */) { return ::ndk::ScopedAStatus::fromServiceSpecificError( static_cast<int32_t>(Result::UNAVAILABLE)); } void TunerHidlFrontend::setLna(bool bEnable) { if (mFrontend == nullptr) { ALOGD("IFrontend is not initialized"); Loading services/tuner/hidl/TunerHidlFrontend.h +1 −0 Original line number Diff line number Diff line Loading @@ -83,6 +83,7 @@ public: vector<FrontendStatus>* _aidl_return) override; ::ndk::ScopedAStatus getFrontendId(int32_t* _aidl_return) override; ::ndk::ScopedAStatus getHardwareInfo(std::string* _aidl_return) override; ::ndk::ScopedAStatus removeOutputPid(int32_t in_pid) override; void setLna(bool in_bEnable); Loading Loading
services/tuner/TunerFrontend.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -174,6 +174,16 @@ TunerFrontend::~TunerFrontend() { return mFrontend->getHardwareInfo(_aidl_return); } ::ndk::ScopedAStatus TunerFrontend::removeOutputPid(int32_t in_pid) { if (mFrontend == nullptr) { ALOGD("IFrontend is not initialized"); return ::ndk::ScopedAStatus::fromServiceSpecificError( static_cast<int32_t>(Result::UNAVAILABLE)); } return mFrontend->removeOutputPid(in_pid); } /////////////// FrontendCallback /////////////////////// ::ndk::ScopedAStatus TunerFrontend::FrontendCallback::onEvent(FrontendEventType frontendEventType) { ALOGV("FrontendCallback::onEvent, type=%d", frontendEventType); Loading
services/tuner/TunerFrontend.h +1 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ public: vector<FrontendStatus>* _aidl_return) override; ::ndk::ScopedAStatus getFrontendId(int32_t* _aidl_return) override; ::ndk::ScopedAStatus getHardwareInfo(std::string* _aidl_return) override; ::ndk::ScopedAStatus removeOutputPid(int32_t in_pid) override; struct FrontendCallback : public BnFrontendCallback { FrontendCallback(const shared_ptr<ITunerFrontendCallback> tunerFrontendCallback) Loading
services/tuner/aidl/android/media/tv/tuner/ITunerFrontend.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -99,4 +99,9 @@ interface ITunerFrontend { * Request hardware information about the frontend. */ String getHardwareInfo(); /** * Filter out unnecessary PID from frontend output. */ void removeOutputPid(int pid); }
services/tuner/hidl/TunerHidlFrontend.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -428,6 +428,11 @@ TunerHidlFrontend::~TunerHidlFrontend() { static_cast<int32_t>(Result::UNAVAILABLE)); } ::ndk::ScopedAStatus TunerHidlFrontend::removeOutputPid(int32_t /* in_pid */) { return ::ndk::ScopedAStatus::fromServiceSpecificError( static_cast<int32_t>(Result::UNAVAILABLE)); } void TunerHidlFrontend::setLna(bool bEnable) { if (mFrontend == nullptr) { ALOGD("IFrontend is not initialized"); Loading
services/tuner/hidl/TunerHidlFrontend.h +1 −0 Original line number Diff line number Diff line Loading @@ -83,6 +83,7 @@ public: vector<FrontendStatus>* _aidl_return) override; ::ndk::ScopedAStatus getFrontendId(int32_t* _aidl_return) override; ::ndk::ScopedAStatus getHardwareInfo(std::string* _aidl_return) override; ::ndk::ScopedAStatus removeOutputPid(int32_t in_pid) override; void setLna(bool in_bEnable); Loading