Merge "Update some comments for tuner."

This commit is contained in:
TreeHugger Robot
2021-12-16 00:23:15 +00:00
committed by Android (Google) Code Review
5 changed files with 36 additions and 4 deletions

View File

@@ -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;
/**

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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

View File

@@ -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. */