Loading tv/tuner/1.0/default/Lnb.cpp +10 −2 Original line number Diff line number Diff line Loading @@ -33,9 +33,10 @@ Lnb::Lnb(int id) { Lnb::~Lnb() {} Return<Result> Lnb::setCallback(const sp<ILnbCallback>& /* callback */) { Return<Result> Lnb::setCallback(const sp<ILnbCallback>& callback) { ALOGV("%s", __FUNCTION__); mCallback = callback; return Result::SUCCESS; } Loading @@ -57,9 +58,16 @@ Return<Result> Lnb::setSatellitePosition(LnbPosition /* position */) { return Result::SUCCESS; } Return<Result> Lnb::sendDiseqcMessage(const hidl_vec<uint8_t>& /* diseqcMessage */) { Return<Result> Lnb::sendDiseqcMessage(const hidl_vec<uint8_t>& diseqcMessage) { ALOGV("%s", __FUNCTION__); if (mCallback != nullptr) { // The correct implementation should be to return the response from the // device via onDiseqcMessage(). The below implementation is only to enable // testing for LnbCallbacks. ALOGV("[hidl] %s - this is for test purpose only, and must be replaced!", __FUNCTION__); mCallback->onDiseqcMessage(diseqcMessage); } return Result::SUCCESS; } Loading tv/tuner/1.0/default/Lnb.h +1 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ class Lnb : public ILnb { private: int mId; virtual ~Lnb(); sp<ILnbCallback> mCallback; }; } // namespace implementation Loading tv/tuner/1.1/default/Lnb.cpp +10 −2 Original line number Diff line number Diff line Loading @@ -33,9 +33,10 @@ Lnb::Lnb(int id) { Lnb::~Lnb() {} Return<Result> Lnb::setCallback(const sp<ILnbCallback>& /* callback */) { Return<Result> Lnb::setCallback(const sp<ILnbCallback>& callback) { ALOGV("%s", __FUNCTION__); mCallback = callback; return Result::SUCCESS; } Loading @@ -57,9 +58,16 @@ Return<Result> Lnb::setSatellitePosition(LnbPosition /* position */) { return Result::SUCCESS; } Return<Result> Lnb::sendDiseqcMessage(const hidl_vec<uint8_t>& /* diseqcMessage */) { Return<Result> Lnb::sendDiseqcMessage(const hidl_vec<uint8_t>& diseqcMessage) { ALOGV("%s", __FUNCTION__); if (mCallback != nullptr) { // The correct implementation should be to return the response from the // device via onDiseqcMessage(). The below implementation is only to enable // testing for LnbCallbacks. ALOGV("[hidl] %s - this is for test purpose only, and must be replaced!", __FUNCTION__); mCallback->onDiseqcMessage(diseqcMessage); } return Result::SUCCESS; } Loading tv/tuner/1.1/default/Lnb.h +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ class Lnb : public ILnb { private: int mId; virtual ~Lnb(); sp<ILnbCallback> mCallback; }; } // namespace implementation Loading tv/tuner/aidl/default/Lnb.cpp +12 −2 Original line number Diff line number Diff line Loading @@ -34,9 +34,11 @@ Lnb::Lnb(int id) { Lnb::~Lnb() {} ::ndk::ScopedAStatus Lnb::setCallback(const std::shared_ptr<ILnbCallback>& /* in_callback */) { ::ndk::ScopedAStatus Lnb::setCallback(const std::shared_ptr<ILnbCallback>& in_callback) { ALOGV("%s", __FUNCTION__); mCallback = in_callback; return ::ndk::ScopedAStatus::ok(); } Loading @@ -58,9 +60,17 @@ Lnb::~Lnb() {} return ::ndk::ScopedAStatus::ok(); } ::ndk::ScopedAStatus Lnb::sendDiseqcMessage(const std::vector<uint8_t>& /* in_diseqcMessage */) { ::ndk::ScopedAStatus Lnb::sendDiseqcMessage(const std::vector<uint8_t>& in_diseqcMessage) { ALOGV("%s", __FUNCTION__); if (mCallback != nullptr) { // The correct implementation should be to return the response from the // device via onDiseqcMessage(). The below implementation is only to enable // testing for LnbCallbacks. ALOGV("[aidl] %s - this is for test purpose only, and must be replaced!", __FUNCTION__); mCallback->onDiseqcMessage(in_diseqcMessage); } return ::ndk::ScopedAStatus::ok(); } Loading Loading
tv/tuner/1.0/default/Lnb.cpp +10 −2 Original line number Diff line number Diff line Loading @@ -33,9 +33,10 @@ Lnb::Lnb(int id) { Lnb::~Lnb() {} Return<Result> Lnb::setCallback(const sp<ILnbCallback>& /* callback */) { Return<Result> Lnb::setCallback(const sp<ILnbCallback>& callback) { ALOGV("%s", __FUNCTION__); mCallback = callback; return Result::SUCCESS; } Loading @@ -57,9 +58,16 @@ Return<Result> Lnb::setSatellitePosition(LnbPosition /* position */) { return Result::SUCCESS; } Return<Result> Lnb::sendDiseqcMessage(const hidl_vec<uint8_t>& /* diseqcMessage */) { Return<Result> Lnb::sendDiseqcMessage(const hidl_vec<uint8_t>& diseqcMessage) { ALOGV("%s", __FUNCTION__); if (mCallback != nullptr) { // The correct implementation should be to return the response from the // device via onDiseqcMessage(). The below implementation is only to enable // testing for LnbCallbacks. ALOGV("[hidl] %s - this is for test purpose only, and must be replaced!", __FUNCTION__); mCallback->onDiseqcMessage(diseqcMessage); } return Result::SUCCESS; } Loading
tv/tuner/1.0/default/Lnb.h +1 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ class Lnb : public ILnb { private: int mId; virtual ~Lnb(); sp<ILnbCallback> mCallback; }; } // namespace implementation Loading
tv/tuner/1.1/default/Lnb.cpp +10 −2 Original line number Diff line number Diff line Loading @@ -33,9 +33,10 @@ Lnb::Lnb(int id) { Lnb::~Lnb() {} Return<Result> Lnb::setCallback(const sp<ILnbCallback>& /* callback */) { Return<Result> Lnb::setCallback(const sp<ILnbCallback>& callback) { ALOGV("%s", __FUNCTION__); mCallback = callback; return Result::SUCCESS; } Loading @@ -57,9 +58,16 @@ Return<Result> Lnb::setSatellitePosition(LnbPosition /* position */) { return Result::SUCCESS; } Return<Result> Lnb::sendDiseqcMessage(const hidl_vec<uint8_t>& /* diseqcMessage */) { Return<Result> Lnb::sendDiseqcMessage(const hidl_vec<uint8_t>& diseqcMessage) { ALOGV("%s", __FUNCTION__); if (mCallback != nullptr) { // The correct implementation should be to return the response from the // device via onDiseqcMessage(). The below implementation is only to enable // testing for LnbCallbacks. ALOGV("[hidl] %s - this is for test purpose only, and must be replaced!", __FUNCTION__); mCallback->onDiseqcMessage(diseqcMessage); } return Result::SUCCESS; } Loading
tv/tuner/1.1/default/Lnb.h +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ class Lnb : public ILnb { private: int mId; virtual ~Lnb(); sp<ILnbCallback> mCallback; }; } // namespace implementation Loading
tv/tuner/aidl/default/Lnb.cpp +12 −2 Original line number Diff line number Diff line Loading @@ -34,9 +34,11 @@ Lnb::Lnb(int id) { Lnb::~Lnb() {} ::ndk::ScopedAStatus Lnb::setCallback(const std::shared_ptr<ILnbCallback>& /* in_callback */) { ::ndk::ScopedAStatus Lnb::setCallback(const std::shared_ptr<ILnbCallback>& in_callback) { ALOGV("%s", __FUNCTION__); mCallback = in_callback; return ::ndk::ScopedAStatus::ok(); } Loading @@ -58,9 +60,17 @@ Lnb::~Lnb() {} return ::ndk::ScopedAStatus::ok(); } ::ndk::ScopedAStatus Lnb::sendDiseqcMessage(const std::vector<uint8_t>& /* in_diseqcMessage */) { ::ndk::ScopedAStatus Lnb::sendDiseqcMessage(const std::vector<uint8_t>& in_diseqcMessage) { ALOGV("%s", __FUNCTION__); if (mCallback != nullptr) { // The correct implementation should be to return the response from the // device via onDiseqcMessage(). The below implementation is only to enable // testing for LnbCallbacks. ALOGV("[aidl] %s - this is for test purpose only, and must be replaced!", __FUNCTION__); mCallback->onDiseqcMessage(in_diseqcMessage); } return ::ndk::ScopedAStatus::ok(); } Loading