pkanwar | de1ac79 | 2017-03-19 10:49:01 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.hardware.radio@1.1; |
| 18 | |
| 19 | import @1.0::IRadioResponse; |
| 20 | |
| 21 | /** |
| 22 | * Interface declaring response functions to solicited radio requests. |
| 23 | */ |
| 24 | interface 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 Chen | 91865c2 | 2017-04-25 18:41:20 -0700 | [diff] [blame] | 37 | |
| 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 | |
yinxu | 872518a | 2017-04-21 15:04:15 -0700 | [diff] [blame] | 49 | /** |
| 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 Harold | 4e2541e | 2017-05-24 19:42:40 -0700 | [diff] [blame] | 74 | |
| 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); |
pkanwar | de1ac79 | 2017-03-19 10:49:01 -0700 | [diff] [blame] | 96 | }; |