Malcolm Chen | 360e1f9 | 2019-10-02 11:38:13 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.hardware.radio@1.5; |
| 18 | |
| 19 | import @1.0::RadioResponseInfo; |
| 20 | import @1.4::IRadioResponse; |
Jack Yu | 7f6c8d0 | 2019-12-09 14:02:56 -0800 | [diff] [blame] | 21 | import @1.5::SetupDataCallResult; |
Malcolm Chen | 360e1f9 | 2019-10-02 11:38:13 -0700 | [diff] [blame] | 22 | |
| 23 | /** |
| 24 | * Interface declaring response functions to solicited radio requests. |
| 25 | */ |
| 26 | interface IRadioResponse extends @1.4::IRadioResponse { |
sqian | f1850bf | 2019-11-12 18:26:30 -0800 | [diff] [blame] | 27 | /** |
| 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 Chen | fb6d624 | 2019-11-12 19:03:12 -0800 | [diff] [blame] | 36 | |
| 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 Chen | fb6d624 | 2019-11-12 19:03:12 -0800 | [diff] [blame] | 46 | */ |
| 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 Chen | fb6d624 | 2019-11-12 19:03:12 -0800 | [diff] [blame] | 58 | */ |
| 59 | oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled); |
| 60 | |
| 61 | /** |
| 62 | * @param info Response info struct containing response type, serial no. and error |
Sarah Chin | b7709bb | 2019-11-01 13:19:31 -0700 | [diff] [blame] | 63 | * |
| 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 Chin | 039d542 | 2019-11-05 15:39:32 -0800 | [diff] [blame] | 84 | |
| 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 Chen | 8f8e3d7 | 2019-12-16 18:53:58 -0800 | [diff] [blame] | 138 | |
| 139 | /** |
| 140 | * @param info Response info struct containing response type, serial no. and error |
| 141 | * |
| 142 | * Valid errors returned: |
| 143 | * RadioError:NONE |
| 144 | * RadioError:INTERNAL_ERR |
| 145 | * RadioError:INVALID_ARGUMENTS |
| 146 | */ |
| 147 | oneway setRadioPowerResponse_1_5(RadioResponseInfo info); |
Malcolm Chen | 360e1f9 | 2019-10-02 11:38:13 -0700 | [diff] [blame] | 148 | }; |