diff options
author | Amy Zhang <amyjojo@google.com> | 2020-10-20 14:35:12 -0700 |
---|---|---|
committer | Amy Zhang <amyjojo@google.com> | 2020-11-02 14:08:59 -0800 |
commit | 2cedcaeee4cf944a9b8101fb6fdca2c5aa18f538 (patch) | |
tree | f49f254a8218733028dac2e5e88bac80be097c90 | |
parent | 6e59ac63fff20f25991d73c0115ab8060a7c473d (diff) |
Improve documentation of Tuner FrontendStatus
Test: make -j44 dist
Bug: 171315056
Change-Id: I78adb8ed279db45fb0d30acc03b93bb20f083a23
-rw-r--r-- | api/system-current.txt | 6 | ||||
-rw-r--r-- | core/api/system-current.txt | 6 | ||||
-rw-r--r-- | media/java/android/media/tv/tuner/frontend/FrontendStatus.java | 25 |
3 files changed, 22 insertions, 15 deletions
diff --git a/api/system-current.txt b/api/system-current.txt index 87f3f4c65520..6623ec2adca7 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -6130,17 +6130,17 @@ package android.media.tv.tuner.frontend { method public int getBer(); method @NonNull public int[] getBers(); method @NonNull public int[] getCodeRates(); + method @NonNull public int[] getExtendedModulations(); method public int getFreqOffset(); method public int getGuardInterval(); method public int getHierarchy(); method public long getInnerFec(); method @NonNull public int[] getInterleaving(); - method @NonNull public int[] getIsdbtSegment(); + method @IntRange(from=0, to=255) @NonNull public int[] getIsdbtSegment(); method @NonNull public boolean[] getLayerErrors(); method public int getLnbVoltage(); method public int getMer(); method public int getModulation(); - method @NonNull public int[] getModulationsExt(); method public int getPer(); method public int getPerBer(); method public int getPlpId(); @@ -6149,7 +6149,7 @@ package android.media.tv.tuner.frontend { method public int getSnr(); method public int getSpectralInversion(); method public int getSymbolRate(); - method public int getSystemId(); + method @IntRange(from=0, to=65535) public int getSystemId(); method public int getTransmissionMode(); method @NonNull public int[] getTsDataRate(); method public int getUec(); diff --git a/core/api/system-current.txt b/core/api/system-current.txt index eea50be6da1d..ebc75cbd7f97 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -6070,17 +6070,17 @@ package android.media.tv.tuner.frontend { method public int getBer(); method @NonNull public int[] getBers(); method @NonNull public int[] getCodeRates(); + method @NonNull public int[] getExtendedModulations(); method public int getFreqOffset(); method public int getGuardInterval(); method public int getHierarchy(); method public long getInnerFec(); method @NonNull public int[] getInterleaving(); - method @NonNull public int[] getIsdbtSegment(); + method @IntRange(from=0, to=255) @NonNull public int[] getIsdbtSegment(); method @NonNull public boolean[] getLayerErrors(); method public int getLnbVoltage(); method public int getMer(); method public int getModulation(); - method @NonNull public int[] getModulationsExt(); method public int getPer(); method public int getPerBer(); method public int getPlpId(); @@ -6089,7 +6089,7 @@ package android.media.tv.tuner.frontend { method public int getSnr(); method public int getSpectralInversion(); method public int getSymbolRate(); - method public int getSystemId(); + method @IntRange(from=0, to=65535) public int getSystemId(); method public int getTransmissionMode(); method @NonNull public int[] getTsDataRate(); method public int getUec(); diff --git a/media/java/android/media/tv/tuner/frontend/FrontendStatus.java b/media/java/android/media/tv/tuner/frontend/FrontendStatus.java index dd9347cd6e5d..c93e07915441 100644 --- a/media/java/android/media/tv/tuner/frontend/FrontendStatus.java +++ b/media/java/android/media/tv/tuner/frontend/FrontendStatus.java @@ -17,6 +17,7 @@ package android.media.tv.tuner.frontend; import android.annotation.IntDef; +import android.annotation.IntRange; import android.annotation.NonNull; import android.annotation.SystemApi; import android.hardware.tv.tuner.V1_0.Constants; @@ -634,7 +635,7 @@ public class FrontendStatus { } /** - * Gets an array of BERS status. + * Gets an array of extended bit error ratio status. * * <p>This status query is only supported by Tuner HAL 1.1 or higher. Use * {@link TunerVersionChecker.getTunerVersion()} to check the version. @@ -650,12 +651,14 @@ public class FrontendStatus { } /** - * Gets an array of code rates status. + * Gets an array of code rates status. The {@link FrontendSettings.InnerFec} would be used to + * show the code rate. * * <p>This status query is only supported by Tuner HAL 1.1 or higher. Use * {@link TunerVersionChecker.getTunerVersion()} to check the version. */ @NonNull + @FrontendSettings.InnerFec public int[] getCodeRates() { TunerVersionChecker.checkHigherOrEqualVersionTo( TunerVersionChecker.TUNER_VERSION_1_1, "getCodeRates status"); @@ -714,7 +717,8 @@ public class FrontendStatus { } /** - * Gets UEC status. + * Gets the Uncorrectable Error Counts of the frontend's Physical Layer Pipe (PLP) since the + * last tune operation. * * <p>This status query is only supported by Tuner HAL 1.1 or higher. Use * {@link TunerVersionChecker.getTunerVersion()} to check the version. @@ -729,11 +733,12 @@ public class FrontendStatus { } /** - * Gets system id status. + * Gets the current DVB-T2 system id status. * * <p>This status query is only supported by Tuner HAL 1.1 or higher. Use * {@link TunerVersionChecker.getTunerVersion()} to check the version. */ + @IntRange(from = 0, to = 0xffff) public int getSystemId() { TunerVersionChecker.checkHigherOrEqualVersionTo( TunerVersionChecker.TUNER_VERSION_1_1, "getSystemId status"); @@ -744,13 +749,14 @@ public class FrontendStatus { } /** - * Gets an array of interleaving status. Array value should be withink {@link + * Gets an array of interleaving status. Array value should be within {@link * FrontendInterleaveMode}. * * <p>This status query is only supported by Tuner HAL 1.1 or higher. Use * {@link TunerVersionChecker.getTunerVersion()} to check the version. */ @NonNull + @FrontendInterleaveMode public int[] getInterleaving() { TunerVersionChecker.checkHigherOrEqualVersionTo( TunerVersionChecker.TUNER_VERSION_1_1, "getInterleaving status"); @@ -761,12 +767,13 @@ public class FrontendStatus { } /** - * Gets an array of isdbt segment status. + * Gets an array of the segments status in ISDB-T Specification of all the channels. * * <p>This status query is only supported by Tuner HAL 1.1 or higher. Use * {@link TunerVersionChecker.getTunerVersion()} to check the version. */ @NonNull + @IntRange(from = 0, to = 0xff) public int[] getIsdbtSegment() { TunerVersionChecker.checkHigherOrEqualVersionTo( TunerVersionChecker.TUNER_VERSION_1_1, "getIsdbtSegment status"); @@ -777,7 +784,7 @@ public class FrontendStatus { } /** - * Gets an array of TS data rate status. + * Gets an array of the Transport Stream Data Rate in BPS of the current channel. * * <p>This status query is only supported by Tuner HAL 1.1 or higher. Use * {@link TunerVersionChecker.getTunerVersion()} to check the version. @@ -800,9 +807,9 @@ public class FrontendStatus { * {@link TunerVersionChecker.getTunerVersion()} to check the version. */ @NonNull - public int[] getModulationsExt() { + public int[] getExtendedModulations() { TunerVersionChecker.checkHigherOrEqualVersionTo( - TunerVersionChecker.TUNER_VERSION_1_1, "getModulationsExt status"); + TunerVersionChecker.TUNER_VERSION_1_1, "getExtendedModulations status"); if (mModulationsExt == null) { throw new IllegalStateException(); } |