Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3f25489 authored by Ray Chin's avatar Ray Chin Committed by Android (Google) Code Review
Browse files

Merge "Add setStatusCheckIntervalHint method"

parents 12ffbd74 62ab6c95
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -43,4 +43,5 @@ interface IDvr {
  void stop();
  void flush();
  void close();
  void setStatusCheckIntervalHint(in long milliseconds);
}
+8 −1
Original line number Diff line number Diff line
@@ -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;

@@ -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);
}
+1 −1
Original line number Diff line number Diff line
@@ -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",
+8 −0
Original line number Diff line number Diff line
@@ -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__);

+1 −0
Original line number Diff line number Diff line
@@ -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