blob: 4e7bf43dec2cc07214c1bd760e9288d9ce36aa6e [file] [log] [blame]
pkanwarde1ac792017-03-19 10:49:01 -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.1;
18
19import @1.0::IRadioResponse;
20
21/**
22 * Interface declaring response functions to solicited radio requests.
23 */
24interface IRadioResponse extends @1.0::IRadioResponse {
25 /**
26 * @param info Response info struct containing response type, serial no. and error
27 *
28 * Valid errors returned:
29 * RadioError:RIL_E_SUCCESS
30 * RadioError:RIL_E_RADIO_NOT_AVAILABLE
31 * RadioError:SIM_ABSENT
32 * RadioError:RIL_E_REQUEST_NOT_SUPPORTED
33 * RadioError:INVALID_ARGUMENTS
34 * RadioError:MODEM_INTERNAL_FAILURE
35 */
36 oneway setCarrierInfoForImsiEncryptionResponse(RadioResponseInfo info);
Grace Chen91865c22017-04-25 18:41:20 -070037
38 /**
39 * @param info Response info struct containing response type, serial no. and error
40 *
41 * Valid errors returned:
42 * RadioError:NONE
43 * RadioError:RADIO_NOT_AVAILABLE
44 * RadioError:REQUEST_NOT_SUPPORTED
45 * RadioError:INVALID_ARGUMENTS
46 */
47 oneway setSimCardPowerResponse_1_1(RadioResponseInfo info);
48
yinxu872518a2017-04-21 15:04:15 -070049 /**
50 * @param info Response info struct containing response type, serial no. and error
51 *
52 * Valid errors returned:
53 * RadioError:NONE
54 * RadioError:RADIO_NOT_AVAILABLE
55 * RadioError:OPERATION_NOT_ALLOWED
56 * RadioError:DEVICE_IN_USE
57 * RadioError:INTERNAL_ERR
58 * RadioError:NO_MEMORY
59 * RadioError:MODEM_ERR
60 * RadioError:INVALID_ARGUMENTS
61 * RadioError:REQUEST_NOT_SUPPORTED
62 */
63 oneway startNetworkScanResponse(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:INTERNAL_ERR
71 * RadioError:MODEM_ERR
72 */
73 oneway stopNetworkScanResponse(RadioResponseInfo info);
Nathan Harold4e2541e2017-05-24 19:42:40 -070074
75 /**
76 * @param info Response info struct containing response type, serial no. and error
77 * @param status Status object containing a new handle and a current status. The
78 * status returned here may be PENDING to indicate that the radio has not yet
79 * processed the keepalive request.
80 *
81 * Valid errors returned:
82 * RadioError:NONE
83 * RadioError:NO_RESOURCES
84 * RadioError:INVALID_ARGUMENTS
85 */
86 oneway startKeepaliveResponse(RadioResponseInfo info, KeepaliveStatus status);
87
88 /**
89 * @param info Response info struct containing response type, serial no. and error
90 *
91 * Valid errors returned:
92 * RadioError:NONE
93 * RadioError:INVALID_ARGUMENTS
94 */
95 oneway stopKeepaliveResponse(RadioResponseInfo info);
pkanwarde1ac792017-03-19 10:49:01 -070096};