blob: 4f34019fb063b01aa42e213af2ea5150e55bb53a [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::ITuner;
20
21interface ITuner extends @1.0::ITuner {
Tomasz Wasilczyk2dd1d8d2017-03-01 14:21:07 -080022
23 /**
Tomasz Wasilczyk213170b2017-02-07 17:38:21 -080024 * Retrieve current station information.
25 * @return result OK if scan successfully started
26 * NOT_INITIALIZED if another error occurs
27 * @return info Current program information.
28 */
29 getProgramInformation_1_1() generates(Result result, ProgramInfo info);
Tomasz Wasilczyk2dd1d8d2017-03-01 14:21:07 -080030
31 /**
32 * Retrieve station list.
33 *
34 * This call does not trigger actual scan, but operates on the list cached
35 * internally at the driver level.
36 *
37 * @param filter vendor-specific filter for the stations to be retrieved.
38 * An empty string MUST result in full list.
39 * Client application MUST verify vendor/product name
40 * before setting this parameter to anything else.
41 * @return result OK if the list was successfully retrieved.
42 * NOT_READY if the scan is in progress.
43 * NOT_STARTED if the scan has not been started.
44 * NOT_INITIALIZED if any other error occurs.
45 * @return programList List of stations available for user.
46 */
47 getProgramList(string filter)
48 generates(ProgramListResult result, vec<ProgramInfo> programList);
49
Tomasz Wasilczyk213170b2017-02-07 17:38:21 -080050};