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

Commit feb3ae22 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make FrontendCallback a toplevel class"

parents cd3041eb 9e9165ea
Loading
Loading
Loading
Loading
+1 −19
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import android.media.tv.tuner.TunerConstants.LnbTone;
import android.media.tv.tuner.TunerConstants.LnbVoltage;
import android.media.tv.tuner.TunerConstants.Result;
import android.media.tv.tuner.filter.FilterEvent;
import android.media.tv.tuner.frontend.FrontendCallback;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
@@ -130,25 +131,6 @@ public final class Tuner implements AutoCloseable {

    private static native DemuxCapabilities nativeGetDemuxCapabilities();

    /**
     * Frontend Callback.
     *
     * @hide
     */
    public interface FrontendCallback {

        /**
         * Invoked when there is a frontend event.
         */
        void onEvent(int frontendEventType);

        /**
         * Invoked when there is a scan message.
         * @param msg
         */
        void onScanMessage(ScanMessage msg);
    }

    /**
     * LNB Callback.
     *
+38 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2020 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.media.tv.tuner.frontend;

import android.media.tv.tuner.ScanMessage;

/**
 * Frontend Callback.
 *
 * @hide
 */
public interface FrontendCallback {

    /**
     * Invoked when there is a frontend event.
     */
    void onEvent(int frontendEventType);

    /**
     * Invoked when there is a scan message.
     * @param msg
     */
    void onScanMessage(ScanMessage msg);
}