blob: 4af6b1f189f8ac49ce3f8fba7efff4fd0f4d2ff6 [file] [log] [blame]
Tomasz Wasilczyk213170b2017-02-07 17:38:21 -08001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.broadcastradio@1.1;
18
19import @1.0::ITunerCallback;
20
21/**
22 * Some methods of @1.1::ITunerCallback are updated versions of those from @1.0:ITunerCallback.
23 * All 1.1 drivers should call both (eg. tuneComplete and tuneComplete_1_1), while 1.1 clients
24 * should ignore 1.0 ones, to avoid receiving a callback twice.
25 */
26interface ITunerCallback extends @1.0::ITunerCallback {
27 /*
28 * Method called by the HAL when a tuning operation completes
29 * following a step(), scan() or tune() command.
30 * @param result OK if tune succeeded or TIMEOUT in case of time out.
31 * @param info A ProgramInfo structure describing the tuned station.
32 */
33 oneway tuneComplete_1_1(Result result, ProgramInfo info);
34
35 /*
36 * Method called by the HAL when a frequency switch occurs.
37 * @param info A ProgramInfo structure describing the new tuned station.
38 */
39 oneway afSwitch_1_1(ProgramInfo info);
40};