• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16sequenceable ApnAttribute..OHOS.Telephony.ApnAttribute;
17sequenceable ApnActivateReportInfo..OHOS.Telephony.ApnActivateReportInfoIpc;
18sequenceable CellularDataTypes..OHOS.Telephony.ApnInfo;
19interface OHOS.Telephony.SimAccountCallback;
20interface OHOS.Telephony.ICellularDataManager {
21    void IsCellularDataEnabled([out] boolean dataEnabled);
22    void EnableCellularData([in] boolean enable);
23    void EnableIntelligenceSwitch([in] boolean enable);
24    void GetCellularDataState([out] int state);
25    void IsCellularDataRoamingEnabled([in] int slotId, [inout] boolean dataRoamingEnabled);
26    void EnableCellularDataRoaming([in] int slotId, [in] boolean enable);
27    void HandleApnChanged([in] int slotId);
28    void GetDefaultCellularDataSlotId([out] int slotId);
29    void GetDefaultCellularDataSimId([out] int simId);
30    void SetDefaultCellularDataSlotId([in] int slotId);
31    void GetCellularDataFlowType([out] int type);
32    void HasInternetCapability([in] int slotId, [in] int cid, [out] int capability);
33    void ClearCellularDataConnections([in] int slotId);
34    void ClearAllConnections([in] int slotId, [in] int reason);
35    void RegisterSimAccountCallback([in] SimAccountCallback callbackparam);
36    void UnregisterSimAccountCallback([in] SimAccountCallback callbackparam);
37    void GetDataConnApnAttr([in] int slotId, [out] ApnAttribute apnAttr);
38    void GetDataConnIpType([in] int slotId, [out] String ipType);
39    void GetApnState([in] int slotId, [in] String apnType, [out] int state);
40    void GetDataRecoveryState([out] int state);
41    void IsNeedDoRecovery([in] int slotId, [in] boolean needDoRecovery);
42    void InitCellularDataController([in] int slotId);
43    void EstablishAllApnsIfConnectable([in] int slotId);
44    void ReleaseCellularDataConnection([in] int slotId);
45    void GetCellularDataSupplierId([in] int slotId, [in] unsigned long capability, [out] unsigned int supplierId);
46    void CorrectNetSupplierNoAvailable([in] int slotId);
47    void GetSupplierRegisterState([in] unsigned int supplierId, [out] int regState);
48    void GetIfSupportDunApn([out] boolean isSupportDun);
49    void GetDefaultActReportInfo([in] int slotId, [out] ApnActivateReportInfoIpc info);
50    void GetInternalActReportInfo([in] int slotId, [out] ApnActivateReportInfoIpc info);
51    void GetIntelligenceSwitchState([out] boolean switchState);
52    void QueryApnIds([in] ApnInfo apnInfo, [out] List<unsigned int> apnIdList);
53    void SetPreferApn([in] int apnId);
54    void QueryAllApnInfo([out] List<ApnInfo> apnInfoList);
55    void SendUrspDecodeResult([in] int slotId, [in] List<unsigned char> buffer);
56    void SendUePolicySectionIdentifier([in] int slotId, [in] List<unsigned char> buffer);
57    void SendImsRsdList([in] int slotId, [in] List<unsigned char> buffer);
58    void GetNetworkSliceAllowedNssai([in] int slotId, [in] List<unsigned char> buffer);
59    void GetNetworkSliceEhplmn([in] int slotId);
60    void GetActiveApnName([out] String apnName);
61};
62