blob: cf6bc00299d5276458f912f4cedd60d554b465ef [file] [log] [blame]
Cassie8c3011e2017-10-26 15:51:48 -07001/*
2 * Copyright (C) 2016 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.0::RadioResponseInfo;
20import @1.1::IRadioResponse;
21
22/**
23 * Interface declaring response functions to solicited radio requests.
24 */
25interface IRadioResponse extends @1.1::IRadioResponse {
26
27 /**
28 * @param info Response info struct containing response type, serial no. and error
29 * @param cellInfo List of current cell information known to radio
30 *
31 * Valid errors returned:
32 * RadioError:NONE
33 * RadioError:RADIO_NOT_AVAILABLE
34 * RadioError:NO_MEMORY
35 * RadioError:INTERNAL_ERR
36 * RadioError:SYSTEM_ERR
37 * RadioError:MODEM_ERR
38 * RadioError:NO_NETWORK_FOUND
39 * RadioError:REQUEST_NOT_SUPPORTED
40 * RadioError:NO_RESOURCES
41 * RadioError:CANCELLED
42 */
43 oneway getCellInfoListResponse_1_2(RadioResponseInfo info, vec<CellInfo> cellInfo);
Sandeep Gutta4a4d8cc2017-12-12 17:38:15 +053044
45 /**
46 * @param info Response info struct containing response type, serial no. and error
47 * @param cardStatus ICC card status as defined by CardStatus in types.hal
48 *
49 * Valid errors returned:
50 * RadioError:NONE
51 */
52 oneway getIccCardStatusResponse_1_2(RadioResponseInfo info, CardStatus cardStatus);
53
54 /**
55 * @param info Response info struct containing response type, serial no. and error
56 * @param slotStatus Sim slot struct containing all the physical SIM slots info with size
57 * equals to the number of physical slots on the device
58 *
59 * Valid errors returned:
60 * RadioError:NONE
61 * RadioError:RADIO_NOT_AVAILABLE
62 * RadioError:REQUEST_NOT_SUPPORTED
63 * RadioError:NO_MEMORY
64 * RadioError:INTERNAL_ERR
65 * RadioError:MODEM_ERR
66 * RadioError:INVALID_ARGUMENTS
67 */
68 oneway getSimSlotsStatusResponse(RadioResponseInfo info, vec<SimSlotStatus> slotStatus);
69
70 /**
71 * @param info Response info struct containing response type, serial no. and error
72 *
73 * Valid errors returned:
74 * RadioError:NONE
75 * RadioError:RADIO_NOT_AVAILABLE
76 * RadioError:REQUEST_NOT_SUPPORTED
77 * RadioError:NO_MEMORY
78 * RadioError:INTERNAL_ERR
79 * RadioError:MODEM_ERR
80 */
81 oneway setSimSlotsMappingResponse(RadioResponseInfo info);
Cassie8c3011e2017-10-26 15:51:48 -070082};