Merge "Make FrontendCallback a toplevel class"
This commit is contained in:
committed by
Android (Google) Code Review
commit
feb3ae2204
@@ -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.
|
||||
*
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
Reference in New Issue
Block a user