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 17package android.hardware.radio@1.1; 18 19import @1.0::RadioResponseInfo; 20import @1.0::IRadioResponse; 21 22/** 23 * Interface declaring response functions to solicited radio requests. 24 */ 25interface IRadioResponse extends @1.0::IRadioResponse { 26 /** 27 * @param info Response info struct containing response type, serial no. and error 28 * 29 * Valid errors returned: 30 * RadioError:RIL_E_SUCCESS 31 * RadioError:RIL_E_RADIO_NOT_AVAILABLE 32 * RadioError:SIM_ABSENT 33 * RadioError:RIL_E_REQUEST_NOT_SUPPORTED 34 * RadioError:INVALID_ARGUMENTS 35 * RadioError:MODEM_INTERNAL_FAILURE 36 */ 37 oneway setCarrierInfoForImsiEncryptionResponse(RadioResponseInfo info); 38 39 /** 40 * @param info Response info struct containing response type, serial no. and error 41 * 42 * Valid errors returned: 43 * RadioError:NONE 44 * RadioError:RADIO_NOT_AVAILABLE 45 * RadioError:REQUEST_NOT_SUPPORTED 46 * RadioError:INVALID_ARGUMENTS 47 */ 48 oneway setSimCardPowerResponse_1_1(RadioResponseInfo info); 49 50 /** 51 * @param info Response info struct containing response type, serial no. and error 52 * 53 * Valid errors returned: 54 * RadioError:NONE 55 * RadioError:RADIO_NOT_AVAILABLE 56 * RadioError:OPERATION_NOT_ALLOWED 57 * RadioError:DEVICE_IN_USE 58 * RadioError:INTERNAL_ERR 59 * RadioError:NO_MEMORY 60 * RadioError:MODEM_ERR 61 * RadioError:INVALID_ARGUMENTS 62 * RadioError:REQUEST_NOT_SUPPORTED 63 */ 64 oneway startNetworkScanResponse(RadioResponseInfo info); 65 66 /** 67 * @param info Response info struct containing response type, serial no. and error 68 * 69 * Valid errors returned: 70 * RadioError:NONE 71 * RadioError:INTERNAL_ERR 72 * RadioError:MODEM_ERR 73 */ 74 oneway stopNetworkScanResponse(RadioResponseInfo info); 75 76 /** 77 * @param info Response info struct containing response type, serial no. and error 78 * @param status Status object containing a new handle and a current status. The 79 * status returned here may be PENDING to indicate that the radio has not yet 80 * processed the keepalive request. 81 * 82 * Valid errors returned: 83 * RadioError:NONE 84 * RadioError:NO_RESOURCES 85 * RadioError:INVALID_ARGUMENTS 86 */ 87 oneway startKeepaliveResponse(RadioResponseInfo info, KeepaliveStatus status); 88 89 /** 90 * @param info Response info struct containing response type, serial no. and error 91 * 92 * Valid errors returned: 93 * RadioError:NONE 94 * RadioError:INVALID_ARGUMENTS 95 */ 96 oneway stopKeepaliveResponse(RadioResponseInfo info); 97}; 98