diff --git a/media/java/android/media/tv/tuner/Tuner.java b/media/java/android/media/tv/tuner/Tuner.java index e930f4ca0ffaa..914dd83ddbaf7 100644 --- a/media/java/android/media/tv/tuner/Tuner.java +++ b/media/java/android/media/tv/tuner/Tuner.java @@ -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. * diff --git a/media/java/android/media/tv/tuner/frontend/FrontendCallback.java b/media/java/android/media/tv/tuner/frontend/FrontendCallback.java new file mode 100644 index 0000000000000..91776e17dc215 --- /dev/null +++ b/media/java/android/media/tv/tuner/frontend/FrontendCallback.java @@ -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); +}