blob: d9718501019260742e7d9fec8d74560950306ae3 [file] [log] [blame]
sqian8ffbfa52018-08-29 20:26:03 -07001/*
2 * Copyright (C) 2018 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
Malcolm Chen638f0052018-11-26 13:11:03 -080017package android.hardware.radio@1.4;
sqian8ffbfa52018-08-29 20:26:03 -070018
19import @1.0::RadioResponseInfo;
Malcolm Chen638f0052018-11-26 13:11:03 -080020import @1.3::IRadioResponse;
sqian8ffbfa52018-08-29 20:26:03 -070021
22/**
23 * Interface declaring response functions to solicited radio requests.
24 */
Malcolm Chen638f0052018-11-26 13:11:03 -080025interface IRadioResponse extends @1.3::IRadioResponse {
sqian8ffbfa52018-08-29 20:26:03 -070026 /**
27 * @param info Response info struct containing response type, serial no. and error
sqian8ffbfa52018-08-29 20:26:03 -070028 *
29 * Valid errors returned:
30 * RadioError:NONE
31 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
32 * RadioError:DIAL_MODIFIED_TO_USSD
33 * RadioError:DIAL_MODIFIED_TO_SS
34 * RadioError:DIAL_MODIFIED_TO_DIAL
35 * RadioError:INVALID_ARGUMENTS
36 * RadioError:NO_MEMORY
37 * RadioError:NO_RESOURCES
38 * RadioError:INTERNAL_ERR
39 * RadioError:FDN_CHECK_FAILURE
40 * RadioError:MODEM_ERR
41 * RadioError:NO_SUBSCRIPTION
42 * RadioError:NO_NETWORK_FOUND
43 * RadioError:INVALID_CALL_ID
44 * RadioError:DEVICE_IN_USE
45 * RadioError:ABORTED
46 * RadioError:INVALID_MODEM_STATE
47 * RadioError:CANCELLED
48 */
49 oneway emergencyDialResponse(RadioResponseInfo info);
Amruth Ramachandrand146a722018-09-10 20:48:49 -070050
51 /**
52 * @param info Response info struct containing response type, serial no. and error
Pengquan Meng1d4e8ae2018-11-07 16:22:32 -080053 * @param cellInfo List of current cell information known to radio
54 *
55 * Valid errors returned:
56 * RadioError:NONE
57 * RadioError:RADIO_NOT_AVAILABLE
58 * RadioError:INTERNAL_ERR
59 */
Malcolm Chen638f0052018-11-26 13:11:03 -080060 oneway getCellInfoListResponse_1_4(RadioResponseInfo info, vec<CellInfo> cellInfo);
Pengquan Meng1d4e8ae2018-11-07 16:22:32 -080061
62 /**
63 * @param info Response info struct containing response type, serial no. and error
Amruth Ramachandrand146a722018-09-10 20:48:49 -070064 * @param dataRegResponse Current Data registration response as defined by DataRegStateResult in
65 * types.hal
66 *
67 * Valid errors returned:
68 * RadioError:NONE
69 * RadioError:RADIO_NOT_AVAILABLE
70 * RadioError:INTERNAL_ERR
71 * RadioError:NOT_PROVISIONED
72 */
Malcolm Chen638f0052018-11-26 13:11:03 -080073 oneway getDataRegistrationStateResponse_1_4(RadioResponseInfo info,
Amruth Ramachandrand146a722018-09-10 20:48:49 -070074 DataRegStateResult dataRegResponse);
Jordan Liu398e84d2018-11-12 10:49:10 -080075
76 /**
77 * @param info Response info struct containing response type, serial no. and error
78 * @param cardStatus ICC card status as defined by CardStatus in types.hal
79 *
80 * Valid errors returned:
81 * RadioError:NONE
82 * RadioError:RADIO_NOT_AVAILABLE
83 * RadioError:INTERNAL_ERR
84 * RadioError:NO_MEMORY
85 * RadioError:NO_RESOURCES
86 * RadioError:CANCELLED
87 * RadioError:REQUEST_NOT_SUPPORTED
88 */
Malcolm Chen638f0052018-11-26 13:11:03 -080089 oneway getIccCardStatusResponse_1_4(RadioResponseInfo info, CardStatus cardStatus);
90};