Home
last modified time | relevance | path

Searched refs:CellularDataClient (Results 1 – 16 of 16) sorted by relevance

/base/telephony/cellular_data/frameworks/native/
Dcellular_data_client.cpp34 int32_t CellularDataClient::defaultCellularDataSlotId_ = INVALID_MAIN_CARD_SLOTID;
35 int32_t CellularDataClient::defaultCellularDataSimId_ = 0;
36 CellularDataClient::CellularDataClient() in CellularDataClient() function in OHOS::Telephony::CellularDataClient
43 CellularDataClient::~CellularDataClient() in ~CellularDataClient()
48 bool CellularDataClient::IsValidSlotId(int32_t slotId) in IsValidSlotId()
53 sptr<ICellularDataManager> CellularDataClient::GetProxy() in GetProxy()
86 void CellularDataClient::OnRemoteDied(const wptr<IRemoteObject> &remote) in OnRemoteDied()
105 bool CellularDataClient::IsConnect() in IsConnect()
111 void CellularDataClient::RegisterSimAccountCallback() in RegisterSimAccountCallback()
132 void CellularDataClient::UnregisterSimAccountCallback() in UnregisterSimAccountCallback()
[all …]
Ddata_sim_account_call_back.cpp25 int32_t ret = CellularDataClient::GetInstance().UpdateDefaultCellularDataSlotId(); in OnSimAccountChanged()
/base/telephony/cellular_data/interfaces/innerkits/
Dcellular_data_client.h31 class CellularDataClient : public DelayedRefSingleton<CellularDataClient> {
32 DECLARE_DELAYED_REF_SINGLETON(CellularDataClient);
198 explicit CellularDataDeathRecipient(CellularDataClient &client) : client_(client) {} in CellularDataDeathRecipient()
206 CellularDataClient &client_;
Dlibtel_cellular_data_api.versionscript17 *OHOS::Telephony::CellularDataClient*;
/base/telephony/cellular_data/test/unit_test/
Dcellular_data_code_test.cpp202 int32_t result = CellularDataClient::GetInstance().IsCellularDataEnabled(enabled); in IsCellularDataEnabledTest()
223 CellularDataClient::GetInstance().EnableCellularData(dataEnable); in EnableCellularDataTest()
225 result = CellularDataClient::GetInstance().GetCellularDataState(); in EnableCellularDataTest()
229 CellularDataClient::GetInstance().EnableCellularData(dataEnable); in EnableCellularDataTest()
231 result = CellularDataClient::GetInstance().GetCellularDataState(); in EnableCellularDataTest()
239 result = CellularDataClient::GetInstance().EnableCellularData(enable); in EnableCellularDataTest()
245 int32_t result = CellularDataClient::GetInstance().GetCellularDataState(); in GetCellularDataStateTest()
256 …int32_t result = CellularDataClient::GetInstance().IsCellularDataRoamingEnabled(slotId, isDataRoam… in IsCellularDataRoamingEnabledTest()
271 … int32_t result = CellularDataClient::GetInstance().EnableCellularDataRoaming(slotId, enable); in EnableCellularDataRoamingTest()
279 sptr<ICellularDataManager> proxy = CellularDataClient::GetInstance().GetProxy(); in HandleApnChangedTest()
[all …]
/base/telephony/cellular_data/test/
Dcellular_data_test.cpp247 int32_t result = CellularDataClient::GetInstance().SetDefaultCellularDataSlotId(slotId); in TearDownTestCase()
251 int32_t enable = CellularDataClient::GetInstance().EnableCellularData(true); in TearDownTestCase()
277 int32_t result = CellularDataClient::GetInstance().SetDefaultCellularDataSlotId(slotId); in SetUpTestCase()
281 int32_t enable = CellularDataClient::GetInstance().EnableCellularData(true); in SetUpTestCase()
291 if (CellularDataClient::GetInstance().GetCellularDataState() == status) { in WaitTestTimeout()
335 … return CellularDataClient::GetInstance().IsCellularDataRoamingEnabled(slotId, dataRoamingEnabled); in IsCellularDataRoamingEnabledTest()
340 return CellularDataClient::GetInstance().IsCellularDataEnabled(dataEnabled); in IsCellularDataEnabledTest()
345 return CellularDataClient::GetInstance().EnableCellularData(enable); in EnableCellularDataTest()
350 return CellularDataClient::GetInstance().EnableIntelligenceSwitch(enable); in EnableIntelligenceSwitchTest()
355 return CellularDataClient::GetInstance().GetCellularDataState(); in GetCellularDataStateTest()
[all …]
Dzero_branch_test.cpp457 EXPECT_GE(DelayedSingleton<CellularDataClient>::GetInstance()->GetCellularDataFlowType(), 0);
459 …std::make_shared<CellularDataClient::CellularDataDeathRecipient>(CellularDataClient::GetInstance()…
461 EXPECT_GE(DelayedSingleton<CellularDataClient>::GetInstance()->GetCellularDataFlowType(), 0);
/base/location/test/location_gnss/mock/src/
Dmock_i_cellular_data_manager.cpp23 int32_t CellularDataClient::GetDefaultCellularDataSlotId() in GetDefaultCellularDataSlotId()
/base/telephony/cellular_data/frameworks/js/napi/src/
Dnapi_cellular_data.cpp41 return CellularDataClient::GetInstance().IsConnect(); in IsCellularDataManagerInited()
128 int32_t dataState = CellularDataClient::GetInstance().GetCellularDataState(); in NativeGetCellularDataState()
189 asyncContext->errorCode = CellularDataClient::GetInstance().IsCellularDataEnabled(enabled); in NativeIsCellularDataEnabled()
253 asyncContext->result = CellularDataClient::GetInstance().EnableCellularData(true); in NativeEnableCellularData()
377 asyncContext->result = CellularDataClient::GetInstance().EnableCellularData(false); in NativeDisableCellularData()
426 …asyncContext->result = CellularDataClient::GetInstance().EnableCellularDataRoaming(asyncContext->s… in NativeEnableCellularDataRoaming()
478 …asyncContext->result = CellularDataClient::GetInstance().EnableCellularDataRoaming(asyncContext->s… in NativeDisableCellularDataRoaming()
529 auto &dataManager = CellularDataClient::GetInstance(); in NativeIsCellularDataRoamingEnabled()
609 int32_t result = CellularDataClient::GetInstance().GetDefaultCellularDataSlotId(); in NativeGetDefaultCellularDataSlotId()
670 slotId = CellularDataClient::GetInstance().GetDefaultCellularDataSlotId(); in GetDefaultCellularDataSlotIdSync()
[all …]
/base/location/services/location_gnss/gnss/source/
Dagnss_event_callback.cpp52 int slotId = Telephony::CellularDataClient::GetInstance().GetDefaultCellularDataSlotId(); in RequestSubscriberSetId()
101 int slotId = Telephony::CellularDataClient::GetInstance().GetDefaultCellularDataSlotId(); in GetCellRefInfo()
/base/web/webview/ohos_adapter/net_connect_adapter/src/
Dnet_connect_callback_impl.cpp55 int32_t slotId = CellularDataClient::GetInstance().GetDefaultCellularDataSlotId(); in NetCapabilitiesChange()
Dnet_connect_adapter_impl.cpp94 int32_t slotId = CellularDataClient::GetInstance().GetDefaultCellularDataSlotId(); in GetDefaultNetConnect()
/base/web/webview/test/unittest/net_connect_adapter_impl_test/
Dnet_connect_adapter_impl_test.cpp65 int32_t CellularDataClient::GetDefaultCellularDataSlotId() in GetDefaultCellularDataSlotId()
/base/web/webview/test/unittest/net_connect_callback_impl_test/
Dnet_connect_callback_impl_test.cpp36 int32_t CellularDataClient::GetDefaultCellularDataSlotId() in GetDefaultCellularDataSlotId()
/base/request/request/services/service/request/c_wrapper/source/
Dnetwork_adapter.cpp212 …DelayedRefSingleton<OHOS::Telephony::CellularDataClient>::GetInstance().GetDefaultCellularDataSlot… in UpdateRoaming()
/base/location/frameworks/native/source/
Dcountry_code_manager.cpp232 int slotId = Telephony::CellularDataClient::GetInstance().GetDefaultCellularDataSlotId(); in GetIsoCountryCode()