Loading core/api/system-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -5607,12 +5607,12 @@ package android.media.tv.tuner.filter { public class Filter implements java.lang.AutoCloseable { method public void close(); method public int configure(@NonNull android.media.tv.tuner.filter.FilterConfiguration); method public int configureMonitorEvent(int); method public int flush(); method public int getId(); method public long getId64Bit(); method public int read(@NonNull byte[], long, long); method public int setDataSource(@Nullable android.media.tv.tuner.filter.Filter); method public int setMonitorEventMask(int); method public int start(); method public int stop(); field public static final int MONITOR_EVENT_IP_CID_CHANGE = 2; // 0x2 Loading media/java/android/media/tv/tuner/filter/Filter.java +7 −7 Original line number Diff line number Diff line Loading @@ -209,7 +209,7 @@ public class Filter implements AutoCloseable { prefix = "MONITOR_EVENT_", value = {MONITOR_EVENT_SCRAMBLING_STATUS, MONITOR_EVENT_IP_CID_CHANGE}) @Retention(RetentionPolicy.SOURCE) public @interface MonitorEventTypeMask {} public @interface MonitorEventMask {} /** * Monitor scrambling status change. Loading Loading @@ -239,7 +239,7 @@ public class Filter implements AutoCloseable { int type, int subType, FilterConfiguration settings); private native int nativeGetId(); private native long nativeGetId64Bit(); private native int nativeConfigureMonitorEvent(int monitorEventTypesMask); private native int nativeConfigureMonitorEvent(int monitorEventMask); private native int nativeSetDataSource(Filter source); private native int nativeStartFilter(); private native int nativeStopFilter(); Loading Loading @@ -344,19 +344,19 @@ public class Filter implements AutoCloseable { * will cause no-op. Use {@link TunerVersionChecker#getTunerVersion()} to get the version * information. * * @param monitorEventTypesMask Types of event to be monitored. Set corresponding bit to * @param monitorEventMask Types of event to be monitored. Set corresponding bit to * monitor it. Reset to stop monitoring. * @return result status of the operation. */ @Result public int configureMonitorEvent(@MonitorEventTypeMask int monitorEventTypesMask) { public int setMonitorEventMask(@MonitorEventMask int monitorEventMask) { synchronized (mLock) { TunerUtils.checkResourceState(TAG, mIsClosed); if (!TunerVersionChecker.checkHigherOrEqualVersionTo( TunerVersionChecker.TUNER_VERSION_1_1, "configureMonitorEvent")) { TunerVersionChecker.TUNER_VERSION_1_1, "setMonitorEventMask")) { return Tuner.RESULT_UNAVAILABLE; } return nativeConfigureMonitorEvent(monitorEventTypesMask); return nativeConfigureMonitorEvent(monitorEventMask); } } Loading Loading
core/api/system-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -5607,12 +5607,12 @@ package android.media.tv.tuner.filter { public class Filter implements java.lang.AutoCloseable { method public void close(); method public int configure(@NonNull android.media.tv.tuner.filter.FilterConfiguration); method public int configureMonitorEvent(int); method public int flush(); method public int getId(); method public long getId64Bit(); method public int read(@NonNull byte[], long, long); method public int setDataSource(@Nullable android.media.tv.tuner.filter.Filter); method public int setMonitorEventMask(int); method public int start(); method public int stop(); field public static final int MONITOR_EVENT_IP_CID_CHANGE = 2; // 0x2 Loading
media/java/android/media/tv/tuner/filter/Filter.java +7 −7 Original line number Diff line number Diff line Loading @@ -209,7 +209,7 @@ public class Filter implements AutoCloseable { prefix = "MONITOR_EVENT_", value = {MONITOR_EVENT_SCRAMBLING_STATUS, MONITOR_EVENT_IP_CID_CHANGE}) @Retention(RetentionPolicy.SOURCE) public @interface MonitorEventTypeMask {} public @interface MonitorEventMask {} /** * Monitor scrambling status change. Loading Loading @@ -239,7 +239,7 @@ public class Filter implements AutoCloseable { int type, int subType, FilterConfiguration settings); private native int nativeGetId(); private native long nativeGetId64Bit(); private native int nativeConfigureMonitorEvent(int monitorEventTypesMask); private native int nativeConfigureMonitorEvent(int monitorEventMask); private native int nativeSetDataSource(Filter source); private native int nativeStartFilter(); private native int nativeStopFilter(); Loading Loading @@ -344,19 +344,19 @@ public class Filter implements AutoCloseable { * will cause no-op. Use {@link TunerVersionChecker#getTunerVersion()} to get the version * information. * * @param monitorEventTypesMask Types of event to be monitored. Set corresponding bit to * @param monitorEventMask Types of event to be monitored. Set corresponding bit to * monitor it. Reset to stop monitoring. * @return result status of the operation. */ @Result public int configureMonitorEvent(@MonitorEventTypeMask int monitorEventTypesMask) { public int setMonitorEventMask(@MonitorEventMask int monitorEventMask) { synchronized (mLock) { TunerUtils.checkResourceState(TAG, mIsClosed); if (!TunerVersionChecker.checkHigherOrEqualVersionTo( TunerVersionChecker.TUNER_VERSION_1_1, "configureMonitorEvent")) { TunerVersionChecker.TUNER_VERSION_1_1, "setMonitorEventMask")) { return Tuner.RESULT_UNAVAILABLE; } return nativeConfigureMonitorEvent(monitorEventTypesMask); return nativeConfigureMonitorEvent(monitorEventMask); } } Loading