1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @addtogroup Ril 18 * @{ 19 * 20 * @brief Defines Ril-related APIs. 21 * 22 * The radio interface layer (RIL) module provides APIs and callbacks for upper-layer 23 * telephony services, including call, SMS, MMS, network search, and SIM card services. 24 * 25 * @since 5.1 26 * @version 1.0 27 */ 28 29/** 30 * @file IRil.idl 31 * 32 * @brief Declares the request API of the RIL module. 33 * 34 * @since 5.1 35 * @version 1.0 36 */ 37 38/** 39 * @brief Defines the path for the package of the RIL module APIs. 40 * 41 * @since 5.1 42 * @version 1.0 43 */ 44package ohos.hdi.ril.v1_4; 45 46import ohos.hdi.ril.v1_4.IRilCallback; 47import ohos.hdi.ril.v1_3.IRil; 48import ohos.hdi.ril.v1_4.Types; 49 50/** 51 * @brief Declares the request API of the RIL module. 52 * 53 * Request APIs are called to make calls, send SMS and MMS messages, activate SIM cards, 54 * and access the Internet. 55 * 56 * @since 5.1 57 * @version 1.0 58 */ 59interface IRil extends ohos.hdi.ril.v1_3.IRil { 60 /** 61 * @brief Sets an IRil callback. 62 * 63 * @param rilCallback Callback to set. For details, see {@link IRilCallback}. 64 * 65 * @return Returns <b>0</b> if the operation is successful. 66 * @return Returns a non-0 value if the operation fails. 67 * 68 * @since 5.1 69 * @version 1.0 70 */ 71 [oneway] SetCallback1_4([in] IRilCallback rilCallback); 72 73 /** 74 * @brief Send UePolicy Command result. 75 * 76 * @param slotId Card slot ID. 77 * @param serialId Serial ID of a request. 78 * @param msgbuffer 79 * 80 * @return Returns <b>0</b> if the operation is successful. 81 * @return Returns a non-0 value if the operation fails. 82 * 83 * @since 5.1 84 * @version 1.0 85 */ 86 [oneway] SendUrspDecodeResult([in] int slotId, [in] int serialId, 87 [in] struct UePolicyDecodeResult uePolicyDecodeResult); 88 89 /** 90 * @brief Send UePolicy Section Identifier. 91 * 92 * @param slotId Card slot ID. 93 * @param serialId Serial ID of a request. 94 * @param msgbuffer 95 * 96 * @return Returns <b>0</b> if the operation is successful. 97 * @return Returns a non-0 value if the operation fails. 98 * 99 * @since 5.1 100 * @version 1.0 101 */ 102 [oneway] SendUePolicySectionIdentifier([in] int slotId, [in] int serialId, 103 [in] struct UePolicySectionIdentifier uePolicySectionIdentifier); 104 105 /** 106 * @brief ImsRsdList. 107 * 108 * @param slotId Card slot ID. 109 * @param serialId Serial ID of a request. 110 * @param msgbuffer 111 * 112 * @return Returns <b>0</b> if the operation is successful. 113 * @return Returns a non-0 value if the operation fails. 114 * 115 * @since 5.1 116 * @version 1.0 117 */ 118 [oneway] SendImsRsdList([in] int slotId, [in] int serialId, [in] struct ImsRsdList imsRsdList); 119 120 /** 121 * @brief GetNetworkSliceAllowedNssai. 122 * 123 * @param slotId Card slot ID. 124 * @param serialId Serial ID of a request. 125 * @param msgbuffer 126 * 127 * @return Returns <b>0</b> if the operation is successful. 128 * @return Returns a non-0 value if the operation fails. 129 * 130 * @since 5.1 131 * @version 1.0 132 */ 133 [oneway] GetNetworkSliceAllowedNssai([in] int slotId, [in] int serialId, 134 [in] struct SyncAllowedNssaiInfo syncAllowedNssaiInfo); 135 136 /** 137 * @brief GetNetworkSliceEhplmn. 138 * 139 * @param slotId Card slot ID. 140 * @param serialId Serial ID of a request. 141 * 142 * @return Returns <b>0</b> if the operation is successful. 143 * @return Returns a non-0 value if the operation fails. 144 * 145 * @since 5.1 146 * @version 1.0 147 */ 148 [oneway] GetNetworkSliceEhplmn([in] int slotId, [in] int serialId); 149 150 /** 151 * @brief Activates the packet data protocol (PDP) context. 152 * 153 * @param slotId Card slot ID. 154 * @param serialId Serial ID of a request. 155 * @param dataCallInfo Data service information with apn types. For details, see {@link DataCallInfoWithApnTypes}. 156 * 157 * @return Returns <b>0</b> if the operation is successful. 158 * @return Returns a non-0 value if the operation fails. 159 * 160 * @since 5.1 161 * @version 1.0 162 */ 163 [oneway] ActivatePdpContextWithApnTypesforSlice([in] int slotId, [in] int serialId, 164 [in] struct DataCallInfoWithApnTypesforSlice dataCallInfo); 165} 166/** @} */ 167