Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc52c456 authored by Amy Zhang's avatar Amy Zhang Committed by Automerger Merge Worker
Browse files

Merge "Rename configureMonitorEvent to setMonitorEventMask" into sc-dev am: cd347c4b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13421177

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ieb075e911b997c0c669f5214c1aabf346ecfdcd7
parents b9f3f671 cd347c4b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+7 −7
Original line number Diff line number Diff line
@@ -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.
@@ -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();
@@ -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);
        }
    }