blob: 11ec2657a992a2e0e3dfdf91aa7d43e5fd505a77 [file] [log] [blame]
Malcolm Chen360e1f92019-10-02 11:38:13 -07001/*
2 * Copyright (C) 2019 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.5;
18
19import @1.0::RadioResponseInfo;
20import @1.4::IRadioResponse;
Sarah Chin039d5422019-11-05 15:39:32 -080021import @1.4::SetupDataCallResult;
Malcolm Chen360e1f92019-10-02 11:38:13 -070022
23/**
24 * Interface declaring response functions to solicited radio requests.
25 */
26interface IRadioResponse extends @1.4::IRadioResponse {
sqianf1850bf2019-11-12 18:26:30 -080027 /**
28 * @param info Response info struct containing response type, serial no. and error
29 *
30 * Valid errors returned:
31 * RadioError:NONE
32 * RadioError:INVALID_ARGUMENTS
33 * RadioError:RADIO_NOT_AVAILABLE
34 */
35 oneway setSignalStrengthReportingCriteriaResponse_1_5(RadioResponseInfo info);
Malcolm Chenfb6d6242019-11-12 19:03:12 -080036
37 /**
38 * @param info Response info struct containing response type, serial no. and error
39 *
40 * Valid errors returned:
41 * RadioError:NONE
42 * RadioError:SIM_ABSENT
43 * RadioError:RADIO_NOT_AVAILABLE
44 * RadioError:INTERNAL_ERR
45 * RadioError:BUSY
Malcolm Chenfb6d6242019-11-12 19:03:12 -080046 */
47 oneway enableUiccApplicationsResponse(RadioResponseInfo info);
48
49 /**
50 * @param info Response info struct containing response type, serial no. and error
51 * @param enabled whether Uicc applications are enabled.
52 *
53 * Valid errors returned:
54 * RadioError:NONE
55 * RadioError:SIM_ABSENT
56 * RadioError:RADIO_NOT_AVAILABLE
57 * RadioError:INTERNAL_ERR
Malcolm Chenfb6d6242019-11-12 19:03:12 -080058 */
59 oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled);
60
61 /**
62 * @param info Response info struct containing response type, serial no. and error
Sarah Chinb7709bb2019-11-01 13:19:31 -070063 *
64 * Valid errors returned:
65 * RadioError:NONE
66 * RadioError:RADIO_NOT_AVAILABLE
67 * RadioError:INTERNAL_ERR
68 * RadioError:INVALID_ARGUMENTS
69 */
70 oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info);
71
72 /**
73 * @param info Response info struct containing response type, serial no. and error
74 *
75 * Valid errors returned:
76 * RadioError:NONE
77 * RadioError:RADIO_NOT_AVAILABLE
78 * RadioError:DEVICE_IN_USE
79 * RadioError:INTERNAL_ERR
80 * RadioError:MODEM_ERR
81 * RadioError:INVALID_ARGUMENTS
82 */
83 oneway startNetworkScanResponse_1_5(RadioResponseInfo info);
Sarah Chin039d5422019-11-05 15:39:32 -080084
85 /**
86 * @param info Response info struct containing response type, serial no. and error
87 * @param dcResponse SetupDataCallResult defined in types.hal
88 *
89 * Valid errors returned:
90 * RadioError:NONE must be returned on both success and failure of setup with the
91 * DataCallResponse.status containing the actual status
92 * For all other errors the DataCallResponse is ignored.
93 * RadioError:RADIO_NOT_AVAILABLE
94 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
95 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
96 * RadioError:REQUEST_NOT_SUPPORTED
97 * RadioError:INVALID_ARGUMENTS
98 * RadioError:INTERNAL_ERR
99 * RadioError:NO_RESOURCES
100 * RadioError:SIM_ABSENT
101 */
102 oneway setupDataCallResponse_1_5(RadioResponseInfo info, SetupDataCallResult dcResponse);
103
104 /**
105 * @param info Response info struct containing response type, serial no. and error
106 *
107 * Valid errors returned:
108 * RadioError:NONE
109 * RadioError:RADIO_NOT_AVAILABLE
110 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
111 * RadioError:NO_MEMORY
112 * RadioError:INTERNAL_ERR
113 * RadioError:SYSTEM_ERR
114 * RadioError:MODEM_ERR
115 * RadioError:INVALID_ARGUMENTS
116 * RadioError:NOT_PROVISIONED
117 * RadioError:REQUEST_NOT_SUPPORTED
118 * RadioError:NO_RESOURCES
119 * RadioError:CANCELLED
120 */
121 oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info);
122
123 /**
124 * @param info Response info struct containing response type, serial no. and error
125 *
126 * Valid errors returned:
127 * RadioError:NONE
128 * RadioError:RADIO_NOT_AVAILABLE
129 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
130 * RadioError:INTERNAL_ERR
131 * RadioError:NO_MEMORY
132 * RadioError:NO_RESOURCES
133 * RadioError:CANCELLED
134 * RadioError:REQUEST_NOT_SUPPORTED
135 * RadioError:SIM_ABSENT
136 */
137 oneway setDataProfileResponse_1_5(RadioResponseInfo info);
Malcolm Chen360e1f92019-10-02 11:38:13 -0700138};