blob: 6ae78a0bfb05f0d66a98416f2a32a6ed1654ab71 [file] [log] [blame]
Sooraj Sasindran55092ae2017-07-20 02:28:44 -07001/*
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.radio@1.2;
18
19import @1.1::IRadio;
20
21/**
22 * This interface is used by telephony and telecom to talk to cellular radio.
23 * All the functions have minimum one parameter:
24 * serial: which corresponds to serial no. of request. Serial numbers must only be memorized for the
25 * duration of a method call. If clients provide colliding serials (including passing the same
26 * serial to different methods), multiple responses (one for each method call) must still be served.
27 * setResponseFunctions must work with @1.1::IRadioResponse and @1.1::IRadioIndication.
28 */
29interface IRadio extends @1.1::IRadio {
30
31 /**
32 * Starts a network scan
33 *
34 * @param serial Serial number of request.
35 * @param request Defines the radio networks/bands/channels which need to be scanned.
36 *
37 * Response function is IRadioResponse.startNetworkScanResponse()
38 */
39 oneway startNetworkScan_1_2(int32_t serial, NetworkScanRequest request);
40};