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; |
| 21 | |
| 22 | /** |
| 23 | * Interface declaring response functions to solicited radio requests. |
| 24 | */ |
| 25 | interface IRadioResponse extends @1.4::IRadioResponse { |
sqian | f1850bf | 2019-11-12 18:26:30 -0800 | [diff] [blame] | 26 | /** |
| 27 | * @param info Response info struct containing response type, serial no. and error |
| 28 | * |
| 29 | * Valid errors returned: |
| 30 | * RadioError:NONE |
| 31 | * RadioError:INVALID_ARGUMENTS |
| 32 | * RadioError:RADIO_NOT_AVAILABLE |
| 33 | */ |
| 34 | oneway setSignalStrengthReportingCriteriaResponse_1_5(RadioResponseInfo info); |
Malcolm Chen | fb6d624 | 2019-11-12 19:03:12 -0800 | [diff] [blame] | 35 | |
| 36 | /** |
| 37 | * @param info Response info struct containing response type, serial no. and error |
| 38 | * |
| 39 | * Valid errors returned: |
| 40 | * RadioError:NONE |
| 41 | * RadioError:SIM_ABSENT |
| 42 | * RadioError:RADIO_NOT_AVAILABLE |
| 43 | * RadioError:INTERNAL_ERR |
| 44 | * RadioError:BUSY |
| 45 | * RadioError:REQUEST_NOT_SUPPORTED |
| 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 |
| 58 | * RadioError:REQUEST_NOT_SUPPORTED |
| 59 | */ |
| 60 | oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled); |
| 61 | |
| 62 | /** |
| 63 | * @param info Response info struct containing response type, serial no. and error |
| 64 | * @param canToggle whether toggling UiccApplications functionality is supported. |
| 65 | * |
| 66 | * Valid errors returned: |
| 67 | * RadioError:NONE |
| 68 | * RadioError:RADIO_NOT_AVAILABLE |
| 69 | * RadioError:INTERNAL_ERR |
| 70 | */ |
| 71 | oneway canToggleUiccApplicationsEnablementResponse(RadioResponseInfo info, bool canToggle); |
Sarah Chin | b7709bb | 2019-11-01 13:19:31 -0700 | [diff] [blame^] | 72 | |
| 73 | /** |
| 74 | * @param info Response info struct containing response type, serial no. and error |
| 75 | * |
| 76 | * Valid errors returned: |
| 77 | * RadioError:NONE |
| 78 | * RadioError:RADIO_NOT_AVAILABLE |
| 79 | * RadioError:INTERNAL_ERR |
| 80 | * RadioError:INVALID_ARGUMENTS |
| 81 | */ |
| 82 | oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info); |
| 83 | |
| 84 | /** |
| 85 | * @param info Response info struct containing response type, serial no. and error |
| 86 | * |
| 87 | * Valid errors returned: |
| 88 | * RadioError:NONE |
| 89 | * RadioError:RADIO_NOT_AVAILABLE |
| 90 | * RadioError:DEVICE_IN_USE |
| 91 | * RadioError:INTERNAL_ERR |
| 92 | * RadioError:MODEM_ERR |
| 93 | * RadioError:INVALID_ARGUMENTS |
| 94 | */ |
| 95 | oneway startNetworkScanResponse_1_5(RadioResponseInfo info); |
Malcolm Chen | 360e1f9 | 2019-10-02 11:38:13 -0700 | [diff] [blame] | 96 | }; |