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

Commit 26d10d4c authored by Hongguang's avatar Hongguang Committed by Hongguang Chen
Browse files

Update some comments for tuner.

*) Clarify the meaning and unit of FrontendStatus.
*) Add comment for STC ready support.
*) Support for control signal (e.g. TMCC) change monitoring
*) Update MmtpRecordEvent and TsRecordEvent getDataLength() comments

Bug: 183634950
Bug: 202247846
Bug: 183630794
Bug: 210845647
Test: Make
Change-Id: I6bc35ba723544692c15c0a293eef60215fa74f22
parent 67db5df8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -159,7 +159,8 @@ public class Filter implements AutoCloseable {
    public @interface Status {}

    /**
     * The status of a filter that the data in the filter buffer is ready to be read.
     * The status of a filter that the data in the filter buffer is ready to be read. It can also be
     * used to know the STC (System Time Clock) ready status if it's PCR filter.
     */
    public static final int STATUS_DATA_READY = DemuxFilterStatus.DATA_READY;
    /**
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ public class MmtpRecordEvent extends FilterEvent {
    }

    /**
     * Gets data size in bytes of filtered data.
     * Gets the record data offset from the beginning of the record buffer.
     */
    @BytesLong
    public long getDataLength() {
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ public class TsRecordEvent extends FilterEvent {
    }

    /**
     * Gets data size in bytes of filtered data.
     * Gets the record data offset from the beginning of the record buffer.
     */
    @BytesLong
    public long getDataLength() {
+26 −0
Original line number Diff line number Diff line
@@ -645,6 +645,8 @@ public class FrontendStatus {
    }
    /**
     * Gets the current Automatic Gain Control value which is normalized from 0 to 255.
     *
     * Larger AGC values indicate it is applying more gain.
     */
    public int getAgc() {
        if (mAgc == null) {
@@ -663,6 +665,10 @@ public class FrontendStatus {
    }
    /**
     * Gets the current Error information by layer.
     *
     * The order of the vectors is in ascending order of the required CNR (Contrast-to-noise ratio).
     * The most robust layer is the first. For example, in ISDB-T, vec[0] is the information of
     * layer A. vec[1] is the information of layer B.
     */
    @NonNull
    public boolean[] getLayerErrors() {
@@ -736,6 +742,10 @@ public class FrontendStatus {
     *
     * <p>This query is only supported by Tuner HAL 1.1 or higher. Use
     * {@link TunerVersionChecker#getTunerVersion()} to check the version.
     *
     * The order of the vectors is in ascending order of the required CNR (Contrast-to-noise ratio).
     * The most robust layer is the first. For example, in ISDB-T, vec[0] is the information of
     * layer A. vec[1] is the information of layer B.
     */
    @NonNull
    public int[] getBers() {
@@ -752,6 +762,10 @@ public class FrontendStatus {
     *
     * <p>This query is only supported by Tuner HAL 1.1 or higher. Use
     * {@link TunerVersionChecker#getTunerVersion()} to check the version.
     *
     * The order of the vectors is in ascending order of the required CNR (Contrast-to-noise ratio).
     * The most robust layer is the first. For example, in ISDB-T, vec[0] is the information of
     * layer A. vec[1] is the information of layer B.
     */
    @NonNull
    @FrontendSettings.InnerFec
@@ -849,6 +863,10 @@ public class FrontendStatus {
     *
     * <p>This query is only supported by Tuner HAL 1.1 or higher. Use
     * {@link TunerVersionChecker#getTunerVersion()} to check the version.
     *
     * The order of the vectors is in ascending order of the required CNR (Contrast-to-noise ratio).
     * The most robust layer is the first. For example, in ISDB-T, vec[0] is the information of
     * layer A. vec[1] is the information of layer B.
     */
    @NonNull
    @FrontendInterleaveMode
@@ -867,6 +885,10 @@ public class FrontendStatus {
     *
     * <p>This query is only supported by Tuner HAL 1.1 or higher. Use
     * {@link TunerVersionChecker#getTunerVersion()} to check the version.
     *
     * The order of the vectors is in ascending order of the required CNR (Contrast-to-noise ratio).
     * The most robust layer is the first. For example, in ISDB-T, vec[0] is the information of
     * layer A. vec[1] is the information of layer B.
     */
    @NonNull
    @IntRange(from = 0, to = 0xff)
@@ -900,6 +922,10 @@ public class FrontendStatus {
     *
     * <p>This query is only supported by Tuner HAL 1.1 or higher. Use
     * {@link TunerVersionChecker#getTunerVersion()} to check the version.
     *
     * The order of the vectors is in ascending order of the required CNR (Contrast-to-noise ratio).
     * The most robust layer is the first. For example, in ISDB-T, vec[0] is the information of
     * layer A. vec[1] is the information of layer B.
     */
    @NonNull
    @FrontendModulation
+6 −1
Original line number Diff line number Diff line
@@ -28,7 +28,12 @@ import android.annotation.SystemApi;
@SystemApi
public interface ScanCallback {

    /** Scan locked the signal. */
    /**
     * Scan locked the signal.
     *
     * It can also be notified after signal is locked if the signal attributes transmission
     * parameter of the signal is changed (e.g., Modulation).
     */
    void onLocked();

    /** Scan stopped. */