Loading api/system-current.txt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -6071,7 +6071,7 @@ package android.media.tv.tuner.frontend { } } public abstract class FrontendSettings { public abstract class FrontendSettings { method public int getEndFrequency(); method @IntRange(from=1) public int getEndFrequency(); method public int getFrequency(); method public int getFrequency(); method public int getFrontendSpectralInversion(); method public int getFrontendSpectralInversion(); method public abstract int getType(); method public abstract int getType(); Loading core/api/system-current.txt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -6011,7 +6011,7 @@ package android.media.tv.tuner.frontend { } } public abstract class FrontendSettings { public abstract class FrontendSettings { method public int getEndFrequency(); method @IntRange(from=1) public int getEndFrequency(); method public int getFrequency(); method public int getFrequency(); method public int getFrontendSpectralInversion(); method public int getFrontendSpectralInversion(); method public abstract int getType(); method public abstract int getType(); Loading media/java/android/media/tv/tuner/frontend/FrontendSettings.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -302,6 +302,7 @@ public abstract class FrontendSettings { * * * @return the end frequency in Hz. * @return the end frequency in Hz. */ */ @IntRange(from = 1) public int getEndFrequency() { public int getEndFrequency() { return mEndFrequency; return mEndFrequency; } } Loading Loading @@ -341,11 +342,15 @@ public abstract class FrontendSettings { * * * @param endFrequency the end frequency used during blind scan. The default value is * @param endFrequency the end frequency used during blind scan. The default value is * {@link android.media.tv.tuner.Tuner#INVALID_FRONTEND_SETTING_FREQUENCY}. * {@link android.media.tv.tuner.Tuner#INVALID_FRONTEND_SETTING_FREQUENCY}. * @throws IllegalArgumentException if the {@code endFrequency} is not greater than 0. */ */ @IntRange(from = 1) @IntRange(from = 1) public void setEndFrequency(int endFrequency) { public void setEndFrequency(int endFrequency) { if (TunerVersionChecker.checkHigherOrEqualVersionTo( if (TunerVersionChecker.checkHigherOrEqualVersionTo( TunerVersionChecker.TUNER_VERSION_1_1, "setEndFrequency")) { TunerVersionChecker.TUNER_VERSION_1_1, "setEndFrequency")) { if (endFrequency < 1) { throw new IllegalArgumentException("endFrequency must be greater than 0"); } mEndFrequency = endFrequency; mEndFrequency = endFrequency; } } } } Loading Loading
api/system-current.txt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -6071,7 +6071,7 @@ package android.media.tv.tuner.frontend { } } public abstract class FrontendSettings { public abstract class FrontendSettings { method public int getEndFrequency(); method @IntRange(from=1) public int getEndFrequency(); method public int getFrequency(); method public int getFrequency(); method public int getFrontendSpectralInversion(); method public int getFrontendSpectralInversion(); method public abstract int getType(); method public abstract int getType(); Loading
core/api/system-current.txt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -6011,7 +6011,7 @@ package android.media.tv.tuner.frontend { } } public abstract class FrontendSettings { public abstract class FrontendSettings { method public int getEndFrequency(); method @IntRange(from=1) public int getEndFrequency(); method public int getFrequency(); method public int getFrequency(); method public int getFrontendSpectralInversion(); method public int getFrontendSpectralInversion(); method public abstract int getType(); method public abstract int getType(); Loading
media/java/android/media/tv/tuner/frontend/FrontendSettings.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -302,6 +302,7 @@ public abstract class FrontendSettings { * * * @return the end frequency in Hz. * @return the end frequency in Hz. */ */ @IntRange(from = 1) public int getEndFrequency() { public int getEndFrequency() { return mEndFrequency; return mEndFrequency; } } Loading Loading @@ -341,11 +342,15 @@ public abstract class FrontendSettings { * * * @param endFrequency the end frequency used during blind scan. The default value is * @param endFrequency the end frequency used during blind scan. The default value is * {@link android.media.tv.tuner.Tuner#INVALID_FRONTEND_SETTING_FREQUENCY}. * {@link android.media.tv.tuner.Tuner#INVALID_FRONTEND_SETTING_FREQUENCY}. * @throws IllegalArgumentException if the {@code endFrequency} is not greater than 0. */ */ @IntRange(from = 1) @IntRange(from = 1) public void setEndFrequency(int endFrequency) { public void setEndFrequency(int endFrequency) { if (TunerVersionChecker.checkHigherOrEqualVersionTo( if (TunerVersionChecker.checkHigherOrEqualVersionTo( TunerVersionChecker.TUNER_VERSION_1_1, "setEndFrequency")) { TunerVersionChecker.TUNER_VERSION_1_1, "setEndFrequency")) { if (endFrequency < 1) { throw new IllegalArgumentException("endFrequency must be greater than 0"); } mEndFrequency = endFrequency; mEndFrequency = endFrequency; } } } } Loading