Loading tv/tuner/aidl/aidl_api/android.hardware.tv.tuner/current/android/hardware/tv/tuner/IDvr.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -43,4 +43,5 @@ interface IDvr { void stop(); void flush(); void close(); void setStatusCheckIntervalHint(in long milliseconds); } tv/tuner/aidl/android/hardware/tv/tuner/IDvr.aidl +8 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ package android.hardware.tv.tuner; import android.hardware.common.fmq.MQDescriptor; import android.hardware.common.fmq.SynchronizedReadWrite; import android.hardware.tv.tuner.DvrSettings; import android.hardware.tv.tuner.IFilter; Loading Loading @@ -101,4 +100,12 @@ interface IDvr { * instance any more and all methods should return a failure. */ void close(); /** * Set status check time interval. * * This time interval hint will be used by the Dvr to decide how often * to evaluate data. */ void setStatusCheckIntervalHint(in long milliseconds); } tv/tuner/aidl/default/Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ cc_defaults { ], shared_libs: [ "android.hardware.common.fmq-V1-ndk", "android.hardware.tv.tuner-V1-ndk", "android.hardware.tv.tuner-V2-ndk", "libbase", "libbinder_ndk", "libcutils", Loading tv/tuner/aidl/default/Dvr.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,14 @@ Dvr::~Dvr() { return ::ndk::ScopedAStatus::ok(); } ::ndk::ScopedAStatus Dvr::setStatusCheckIntervalHint(int64_t /* in_milliseconds */) { ALOGV("%s", __FUNCTION__); // There is no active polling in this default implementation, // so directly return ok here. return ::ndk::ScopedAStatus::ok(); } bool Dvr::createDvrMQ() { ALOGV("%s", __FUNCTION__); Loading tv/tuner/aidl/default/Dvr.h +1 −0 Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ class Dvr : public BnDvr { ::ndk::ScopedAStatus stop() override; ::ndk::ScopedAStatus flush() override; ::ndk::ScopedAStatus close() override; ::ndk::ScopedAStatus setStatusCheckIntervalHint(int64_t in_milliseconds) override; binder_status_t dump(int fd, const char** args, uint32_t numArgs) override; Loading Loading
tv/tuner/aidl/aidl_api/android.hardware.tv.tuner/current/android/hardware/tv/tuner/IDvr.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -43,4 +43,5 @@ interface IDvr { void stop(); void flush(); void close(); void setStatusCheckIntervalHint(in long milliseconds); }
tv/tuner/aidl/android/hardware/tv/tuner/IDvr.aidl +8 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ package android.hardware.tv.tuner; import android.hardware.common.fmq.MQDescriptor; import android.hardware.common.fmq.SynchronizedReadWrite; import android.hardware.tv.tuner.DvrSettings; import android.hardware.tv.tuner.IFilter; Loading Loading @@ -101,4 +100,12 @@ interface IDvr { * instance any more and all methods should return a failure. */ void close(); /** * Set status check time interval. * * This time interval hint will be used by the Dvr to decide how often * to evaluate data. */ void setStatusCheckIntervalHint(in long milliseconds); }
tv/tuner/aidl/default/Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ cc_defaults { ], shared_libs: [ "android.hardware.common.fmq-V1-ndk", "android.hardware.tv.tuner-V1-ndk", "android.hardware.tv.tuner-V2-ndk", "libbase", "libbinder_ndk", "libcutils", Loading
tv/tuner/aidl/default/Dvr.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,14 @@ Dvr::~Dvr() { return ::ndk::ScopedAStatus::ok(); } ::ndk::ScopedAStatus Dvr::setStatusCheckIntervalHint(int64_t /* in_milliseconds */) { ALOGV("%s", __FUNCTION__); // There is no active polling in this default implementation, // so directly return ok here. return ::ndk::ScopedAStatus::ok(); } bool Dvr::createDvrMQ() { ALOGV("%s", __FUNCTION__); Loading
tv/tuner/aidl/default/Dvr.h +1 −0 Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ class Dvr : public BnDvr { ::ndk::ScopedAStatus stop() override; ::ndk::ScopedAStatus flush() override; ::ndk::ScopedAStatus close() override; ::ndk::ScopedAStatus setStatusCheckIntervalHint(int64_t in_milliseconds) override; binder_status_t dump(int fd, const char** args, uint32_t numArgs) override; Loading