| /* |
| * 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.annotation.IntRange; |
| import android.annotation.NonNull; |
| import android.annotation.SystemApi; |
| |
| /** |
| * Scan callback. |
| * |
| * @hide |
| */ |
| @SystemApi |
| public interface ScanCallback { |
| |
| /** Scan locked the signal. */ |
| void onLocked(); |
| |
| /** Scan stopped. */ |
| void onScanStopped(); |
| |
| /** scan progress percent (0..100) */ |
| void onProgress(@IntRange(from = 0, to = 100) int percent); |
| |
| /** Signal frequencies in Hertz */ |
| void onFrequenciesReport(@NonNull int[] frequency); |
| |
| /** Symbols per second */ |
| void onSymbolRates(@NonNull int[] rate); |
| |
| /** Locked Plp Ids for DVBT2 frontend. */ |
| void onPlpIds(@NonNull int[] plpIds); |
| |
| /** Locked group Ids for DVBT2 frontend. */ |
| void onGroupIds(@NonNull int[] groupIds); |
| |
| /** Stream Ids. */ |
| void onInputStreamIds(@NonNull int[] inputStreamIds); |
| |
| /** Locked signal standard for DVBS. */ |
| void onDvbsStandard(@DvbsFrontendSettings.Standard int dvbsStandandard); |
| |
| /** Locked signal standard. for DVBT */ |
| void onDvbtStandard(@DvbtFrontendSettings.Standard int dvbtStandard); |
| |
| /** Locked signal SIF standard for Analog. */ |
| void onAnalogSifStandard(@AnalogFrontendSettings.SifStandard int sif); |
| |
| /** PLP status in a tuned frequency band for ATSC3 frontend. */ |
| void onAtsc3PlpInfos(@NonNull Atsc3PlpInfo[] atsc3PlpInfos); |
| |
| /** Frontend hierarchy. */ |
| void onHierarchy(@DvbtFrontendSettings.Hierarchy int hierarchy); |
| |
| /** Frontend hierarchy. */ |
| void onSignalType(@AnalogFrontendSettings.SignalType int signalType); |
| |
| } |