blob: 10e7d63cf11cc3f2ad7df508e4a1ed718b527149 [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
17package android.hardware.radio@1.3;
18
19import @1.0::RadioResponseInfo;
20import @1.2::IRadioResponse;
21
22/**
23 * Interface declaring response functions to solicited radio requests.
24 */
25interface IRadioResponse extends @1.2::IRadioResponse {
26 /**
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
53 * @param dataRegResponse Current Data registration response as defined by DataRegStateResult in
54 * types.hal
55 *
56 * Valid errors returned:
57 * RadioError:NONE
58 * RadioError:RADIO_NOT_AVAILABLE
59 * RadioError:INTERNAL_ERR
60 * RadioError:NOT_PROVISIONED
61 */
62 oneway getDataRegistrationStateResponse_1_3(RadioResponseInfo info,
63 DataRegStateResult dataRegResponse);
sqian8ffbfa52018-08-29 20:26:03 -070064};