Home
last modified time | relevance | path

Searched refs:networkState (Results 1 – 25 of 45) sorted by relevance

12

/base/telephony/core_service/services/network_search/src/
Doperator_name.cpp63 sptr<NetworkState> networkState = GetNetworkStatus(); in OnReceiveEvent() local
64 …if (networkState != nullptr && networkState->GetRegStatus() == RegServiceState::REG_STATE_IN_SERVI… in OnReceiveEvent()
152 std::unique_ptr<NetworkState> networkState = networkSearchState_->GetNetworkStatus(); in GetNetworkStatus() local
153 if (networkState != nullptr) { in GetNetworkStatus()
154 networkState_ = networkState.release(); in GetNetworkStatus()
175 sptr<NetworkState> networkState = GetNetworkStatus(); in NotifySpnChanged() local
176 if (networkState != nullptr) { in NotifySpnChanged()
177 regStatus = networkState->GetRegStatus(); in NotifySpnChanged()
182 NotifyGsmSpnChanged(regStatus, networkState); in NotifySpnChanged()
184 NotifyCdmaSpnChanged(regStatus, networkState); in NotifySpnChanged()
[all …]
Dnetwork_search_notify.cpp29 …workSearchNotify::NotifyNetworkStateUpdated(int32_t slotId, const sptr<NetworkState> &networkState) in NotifyNetworkStateUpdated() argument
31 if (networkState == nullptr) { in NotifyNetworkStateUpdated()
36 …RefSingleton<TelephonyStateRegistryClient>::GetInstance().UpdateNetworkState(slotId, networkState); in NotifyNetworkStateUpdated()
37 TELEPHONY_LOGD("NotifyNetworkStateUpdated ret %{public}s", networkState->ToString().c_str()); in NotifyNetworkStateUpdated()
/base/telephony/core_service/services/network_search/test/
Dnetwork_search_test_callback_stub.cpp69 for (auto &networkState : networkStates) { in OnGetNetworkSearchInformation() local
73networkState.GetOperatorNumeric().c_str(), networkState.GetOperatorShortName().c_str(), in OnGetNetworkSearchInformation()
74 networkState.GetRadioTech()); in OnGetNetworkSearchInformation()
/base/web/webview/ohos_adapter/net_connect_adapter/src/
Dnet_connect_callback_impl.cpp60 sptr<NetworkState> networkState = nullptr; in NetCapabilitiesChange() local
61 CoreServiceClient::GetInstance().GetNetworkState(slotId, networkState); in NetCapabilitiesChange()
62 if (networkState != nullptr) { in NetCapabilitiesChange()
63 radioTech = networkState->GetPsRadioTech(); in NetCapabilitiesChange()
65 subtype = NetConnectUtils::ConvertToConnectsubtype(networkState->GetPsRadioTech()); in NetCapabilitiesChange()
Dnet_connect_adapter_impl.cpp99 sptr<NetworkState> networkState = nullptr; in GetDefaultNetConnect() local
100 CoreServiceClient::GetInstance().GetNetworkState(slotId, networkState); in GetDefaultNetConnect()
101 if (networkState != nullptr) { in GetDefaultNetConnect()
102 radioTech = networkState->GetPsRadioTech(); in GetDefaultNetConnect()
/base/telephony/core_service/services/network_search/include/
Doperator_name.h47 void NotifyGsmSpnChanged(RegServiceState regStatus, sptr<NetworkState> &networkState);
48 void NotifyCdmaSpnChanged(RegServiceState regStatus, sptr<NetworkState> &networkState);
50 …void UpdatePlmn(RegServiceState regStatus, sptr<NetworkState> &networkState, int32_t spnRule, std:…
53 …RegServiceState regStatus, sptr<NetworkState> &networkState, int32_t spnRule, std::string &spn, bo…
59 std::string GetPlmn(const sptr<NetworkState> &networkState, bool longNameRequired);
Dnetwork_search_notify.h29 void NotifyNetworkStateUpdated(int32_t slotId, const sptr<NetworkState> &networkState);
/base/telephony/core_service/test/unittest/core_service_gtest/
Dnetwork_search_test_callback_stub.cpp157 for (auto &networkState : networkStates) { in OnGetNetworkSearchInformation() local
161 networkState.GetOperatorNumeric().c_str(), networkState.GetOperatorShortName().c_str(), in OnGetNetworkSearchInformation()
162networkState.GetOperatorLongName().c_str(), networkState.GetRadioTech(), networkState.GetNetworkSt… in OnGetNetworkSearchInformation()
/base/telephony/core_service/frameworks/native/src/
Dtelephony_state_registry_client.cpp83 int32_t slotId, int32_t dataState, int32_t networkState) in UpdateCellularDataConnectState() argument
90 return proxy->UpdateCellularDataConnectState(slotId, dataState, networkState); in UpdateCellularDataConnectState()
148 int32_t slotId, const sptr<NetworkState> &networkState) in UpdateNetworkState() argument
155 return proxy->UpdateNetworkState(slotId, networkState); in UpdateNetworkState()
Dnetwork_search_result.cpp67 for (auto &networkState : operatorInfoList_) { in Marshalling() local
68 parcel.WriteParcelable(&networkState); in Marshalling()
Dtelephony_state_registry_proxy.cpp230 int32_t slotId, const sptr<NetworkState> &networkState) in UpdateNetworkState() argument
241 if (networkState == nullptr || !networkState->Marshalling(in)) { in UpdateNetworkState()
/base/telephony/state_registry/frameworks/js/napi/src/
Dnapi_telephony_observer.cpp49 …apiTelephonyObserver::OnNetworkStateUpdated(int32_t slotId, const sptr<NetworkState> &networkState) in OnNetworkStateUpdated() argument
52 …workStateUpdated slotId = %{public}d, networkState = %{public}d", slotId, networkState == nullptr); in OnNetworkStateUpdated()
54 std::make_unique<NetworkStateUpdateInfo>(slotId, networkState); in OnNetworkStateUpdated()
Devent_listener_handler.cpp610 const sptr<NetworkState> &networkState = networkStateUpdateInfo->networkState; in WorkNetworkStateUpdated() local
612 std::string longOperatorName = networkState->GetLongOperatorName(); in WorkNetworkStateUpdated()
613 std::string shortOperatorName = networkState->GetShortOperatorName(); in WorkNetworkStateUpdated()
614 std::string plmnNumeric = networkState->GetPlmnNumeric(); in WorkNetworkStateUpdated()
615 bool isRoaming = networkState->IsRoaming(); in WorkNetworkStateUpdated()
616 int32_t regStatus = static_cast<int32_t>(networkState->GetRegStatus()); in WorkNetworkStateUpdated()
617 bool isEmergency = networkState->IsEmergency(); in WorkNetworkStateUpdated()
618 int32_t cfgTech = static_cast<int32_t>(networkState->GetCfgTech()); in WorkNetworkStateUpdated()
619 int32_t nsaState = static_cast<int32_t>(networkState->GetNrState()); in WorkNetworkStateUpdated()
/base/telephony/state_registry/frameworks/js/napi/include/
Dupdate_contexts.h51 sptr<NetworkState> networkState; member
54 networkState = info.networkState_;
Dnapi_telephony_observer.h32 void OnNetworkStateUpdated(int32_t slotId, const sptr<NetworkState> &networkState) override;
/base/telephony/core_service/interfaces/innerkits/include/
Dtelephony_state_registry_proxy.h34 int32_t slotId, int32_t dataState, int32_t networkState) override;
46 int32_t slotId, const sptr<NetworkState> &networkState) override;
Di_telephony_state_notify.h47 int32_t slotId, int32_t dataState, int32_t networkState) = 0;
120 int32_t slotId, const sptr<NetworkState> &networkState) = 0;
Dtelephony_state_registry_client.h31 int32_t UpdateCellularDataConnectState(int32_t slotId, int32_t dataState, int32_t networkState);
37 int32_t UpdateNetworkState(int32_t slotId, const sptr<NetworkState> &networkState);
Dtelephony_observer_broker.h48 int32_t slotId, const sptr<NetworkState> &networkState) = 0;
/base/telephony/state_registry/frameworks/native/observer/src/
Dtelephony_observer_proxy.cpp150 int32_t slotId, const sptr<NetworkState> &networkState) in OnNetworkStateUpdated() argument
161 if (networkState != nullptr) { in OnNetworkStateUpdated()
162 networkState->Marshalling(dataParcel); in OnNetworkStateUpdated()
Dtelephony_observer.cpp30 int32_t slotId, const sptr<NetworkState> &networkState) {} in OnNetworkStateUpdated() argument
110 sptr<NetworkState> networkState = NetworkState::Unmarshalling(data); in OnNetworkStateUpdatedInner() local
111 OnNetworkStateUpdated(slotId, networkState); in OnNetworkStateUpdatedInner()
/base/telephony/state_registry/test/unittest/state_test/
Dstate_registry_test.cpp171 int32_t networkState = 1; in UpdateCellularDataConnectState() local
173 slotId, dataState, networkState); in UpdateCellularDataConnectState()
203 std::unique_ptr<NetworkState> networkState = std::make_unique<NetworkState>(); in UpdateNetworkState() local
204 ASSERT_TRUE(networkState != nullptr); in UpdateNetworkState()
206 slotId, networkState.release()); in UpdateNetworkState()
577 std::unique_ptr<NetworkState> networkState = std::make_unique<NetworkState>(); variable
578 ASSERT_TRUE(networkState != nullptr);
579 (networkState.release())->Marshalling(dataParcel);
Dstate_registry_observer.h38 void OnNetworkStateUpdated(int32_t slotId, const sptr<NetworkState> &networkState) in OnNetworkStateUpdated() argument
/base/telephony/state_registry/frameworks/native/observer/include/
Dtelephony_observer_proxy.h35 int32_t slotId, const sptr<NetworkState> &networkState);
/base/telephony/state_registry/service/include/
Dtelephony_state_registry_service.h54 int32_t UpdateNetworkState(int32_t slotId, const sptr<NetworkState> &networkState) override;
80 void SendNetworkStateChanged(int32_t slotId, const sptr<NetworkState> &networkState);

12