blob: 300aa37285a64470b473a53f88ac4c26d9d36b27 [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);
Eric Schwarzenbach21c6dc32017-12-13 15:52:15 -080053
54 /**
55 * @param info Response info struct containing response type, serial no. and error
56 *
57 * Valid errors returned:
58 * RadioError:NONE
59 * RadioError:INVALID_ARGUMENTS
60 * RadioError:RADIO_NOT_AVAILABLE
61 * RadioError:INTERNAL_ERR
62 */
63 oneway setSignalStrengthReportingCriteriaResponse(RadioResponseInfo info);
64
65 /**
66 * @param info Response info struct containing response type, serial no. and error
67 *
68 * Valid errors returned:
69 * RadioError:NONE
70 * RadioError:INVALID_ARGUMENTS
71 * RadioError:RADIO_NOT_AVAILABLE
72 * RadioError:INTERNAL_ERR
73 */
74 oneway setLinkCapacityReportingCriteriaResponse(RadioResponseInfo info);
Takumi Hori5e233032017-11-29 12:23:11 +090075
76 /**
77 * @param calls Current call list
78 *
79 * Valid errors returned:
80 * RadioError:NONE
81 * RadioError:RADIO_NOT_AVAILABLE
82 * RadioError:NO_MEMORY
83 * RadioError:INTERNAL_ERR
84 * RadioError:SYSTEM_ERR
85 * RadioError:INVALID_ARGUMENTS
86 * RadioError:REQUEST_NOT_SUPPORTED
87 * RadioError:NO_RESOURCES
88 * RadioError:CANCELLED
89 */
90 oneway getCurrentCallsResponse_1_2(RadioResponseInfo info, vec<Call> calls);
Nathan Haroldd0f94662018-02-09 18:05:40 -080091
92 /**
Nathan Haroldd32f1482018-02-09 19:04:47 -080093 * @param signalStrength Current signal strength
Nathan Haroldd0f94662018-02-09 18:05:40 -080094 *
95 * Valid errors returned:
96 * RadioError:NONE
97 * RadioError:RADIO_NOT_AVAILABLE
98 * RadioError:INTERNAL_ERR
99 */
Nathan Haroldd32f1482018-02-09 19:04:47 -0800100 oneway getSignalStrengthResponse_1_2(RadioResponseInfo info, SignalStrength signalStrength);
Eric Schwarzenbach74befb62018-03-14 16:22:38 -0700101
102 /**
103 * @param info Response info struct containing response type, serial no. and error
104 * @param voiceRegResponse Current Voice registration response as defined by VoiceRegStateResult
105 * in types.hal
106 *
107 * Valid errors returned:
108 * RadioError:NONE
109 * RadioError:RADIO_NOT_AVAILABLE
110 * RadioError:INTERNAL_ERR
111 */
112 oneway getVoiceRegistrationStateResponse_1_2(RadioResponseInfo info,
113 VoiceRegStateResult voiceRegResponse);
114
115 /**
116 * @param info Response info struct containing response type, serial no. and error
117 * @param dataRegResponse Current Data registration response as defined by DataRegStateResult in
118 * types.hal
119 *
120 * Valid errors returned:
121 * RadioError:NONE
122 * RadioError:RADIO_NOT_AVAILABLE
123 * RadioError:INTERNAL_ERR
124 * RadioError:NOT_PROVISIONED
125 */
126 oneway getDataRegistrationStateResponse_1_2(RadioResponseInfo info,
127 DataRegStateResult dataRegResponse);
Cassie8c3011e2017-10-26 15:51:48 -0700128};