Cleanup Frontend Status

* Rename FrontendStatus.Atsc3PlpInfo to Atsc3PlpTuningInfo
 * FrontendStatus.Atsc3PlpInfo#isLock renamed to isLocked
 * FrontendStatus#isRfLock renamed to isRfLocked

Bug: 150725571
Test: mmm
Change-Id: I93c61b15273882c6e1de7cf2b39e6f2e7103f146
This commit is contained in:
Nick Chalko
2020-03-18 15:59:51 -07:00
parent 7695663db7
commit 02369e43fb
2 changed files with 13 additions and 13 deletions

View File

@@ -5770,7 +5770,7 @@ package android.media.tv.tuner.frontend {
public class FrontendStatus {
method public int getAgc();
method @NonNull public android.media.tv.tuner.frontend.FrontendStatus.Atsc3PlpInfo[] getAtsc3PlpInfo();
method @NonNull public android.media.tv.tuner.frontend.FrontendStatus.Atsc3PlpTuningInfo[] getAtsc3PlpTuningInfo();
method public int getBer();
method public int getFreqOffset();
method public int getHierarchy();
@@ -5790,7 +5790,7 @@ package android.media.tv.tuner.frontend {
method public boolean isDemodLocked();
method public boolean isEwbs();
method public boolean isLnaOn();
method public boolean isRfLock();
method public boolean isRfLocked();
field public static final int FRONTEND_STATUS_TYPE_AGC = 14; // 0xe
field public static final int FRONTEND_STATUS_TYPE_ATSC3_PLP_INFO = 21; // 0x15
field public static final int FRONTEND_STATUS_TYPE_BER = 2; // 0x2
@@ -5815,10 +5815,10 @@ package android.media.tv.tuner.frontend {
field public static final int FRONTEND_STATUS_TYPE_SYMBOL_RATE = 7; // 0x7
}
public static class FrontendStatus.Atsc3PlpInfo {
public static class FrontendStatus.Atsc3PlpTuningInfo {
method public int getPlpId();
method public int getUec();
method public boolean isLock();
method public boolean isLocked();
}
public class Isdbs3FrontendCapabilities extends android.media.tv.tuner.frontend.FrontendCapabilities {

View File

@@ -214,7 +214,7 @@ public class FrontendStatus {
private Integer mFreqOffset;
private Integer mHierarchy;
private Boolean mIsRfLocked;
private Atsc3PlpInfo[] mPlpInfo;
private Atsc3PlpTuningInfo[] mPlpInfo;
// Constructed and fields set by JNI code.
private FrontendStatus() {
@@ -419,7 +419,7 @@ public class FrontendStatus {
/**
* Gets lock status for RF.
*/
public boolean isRfLock() {
public boolean isRfLocked() {
if (mIsRfLocked == null) {
throw new IllegalStateException();
}
@@ -429,7 +429,7 @@ public class FrontendStatus {
* Gets an array of PLP status for tuned PLPs for ATSC3 frontend.
*/
@NonNull
public Atsc3PlpInfo[] getAtsc3PlpInfo() {
public Atsc3PlpTuningInfo[] getAtsc3PlpTuningInfo() {
if (mPlpInfo == null) {
throw new IllegalStateException();
}
@@ -439,14 +439,14 @@ public class FrontendStatus {
/**
* Status for each tuning Physical Layer Pipes.
*/
public static class Atsc3PlpInfo {
public static class Atsc3PlpTuningInfo {
private final int mPlpId;
private final boolean mIsLock;
private final boolean mIsLocked;
private final int mUec;
private Atsc3PlpInfo(int plpId, boolean isLock, int uec) {
private Atsc3PlpTuningInfo(int plpId, boolean isLocked, int uec) {
mPlpId = plpId;
mIsLock = isLock;
mIsLocked = isLocked;
mUec = uec;
}
@@ -459,8 +459,8 @@ public class FrontendStatus {
/**
* Gets Demod Lock/Unlock status of this particular PLP.
*/
public boolean isLock() {
return mIsLock;
public boolean isLocked() {
return mIsLocked;
}
/**
* Gets Uncorrectable Error Counts (UEC) of this particular PLP since last tune operation.