Home
last modified time | relevance | path

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

12

/base/telephony/state_registry/test/fuzztest/telephonyobserver_fuzzer/
Dtelephonyobserver_fuzzer.cpp104 auto networkState = std::make_shared<NetworkState>(); in NetworkStateUpdatedInner() local
105 if (networkState == nullptr) { in NetworkStateUpdatedInner()
108 networkState->isEmergency_ = static_cast<int32_t>(size % BOOL_NUM); in NetworkStateUpdatedInner()
112 networkState->psOperatorInfo_.operatorNumeric = mOperatorNumeric; in NetworkStateUpdatedInner()
113 networkState->psOperatorInfo_.fullName = mFullName; in NetworkStateUpdatedInner()
114 networkState->psOperatorInfo_.shortName = mShortName; in NetworkStateUpdatedInner()
115 networkState->csOperatorInfo_.operatorNumeric = mOperatorNumeric; in NetworkStateUpdatedInner()
116 networkState->csOperatorInfo_.fullName = mFullName; in NetworkStateUpdatedInner()
117 networkState->csOperatorInfo_.shortName = mShortName; in NetworkStateUpdatedInner()
118 networkState->csRoaming_ = static_cast<RoamingType>(size % ROAMING_NUM); in NetworkStateUpdatedInner()
[all …]
/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()
150 std::unique_ptr<NetworkState> networkState = networkSearchState_->GetNetworkStatus(); in GetNetworkStatus() local
151 if (networkState != nullptr) { in GetNetworkStatus()
152 networkState_ = networkState.release(); in GetNetworkStatus()
173 sptr<NetworkState> networkState = GetNetworkStatus(); in NotifySpnChanged() local
174 if (networkState != nullptr) { in NotifySpnChanged()
175 regStatus = networkState->GetRegStatus(); in NotifySpnChanged()
180 NotifyGsmSpnChanged(regStatus, networkState); in NotifySpnChanged()
182 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/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/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/telephony/state_registry/test/fuzztest/telephonystateregistry_fuzzer/
Dtelephonystateregistry_fuzzer.cpp287 auto networkState = std::make_unique<NetworkState>(); in UpdateNetworkState() local
288 if (networkState == nullptr) { in UpdateNetworkState()
291 networkState->isEmergency_ = static_cast<int32_t>(size % BOOL_NUM); in UpdateNetworkState()
295 networkState->psOperatorInfo_.operatorNumeric = mOperatorNumeric; in UpdateNetworkState()
296 networkState->psOperatorInfo_.fullName = mFullName; in UpdateNetworkState()
297 networkState->psOperatorInfo_.shortName = mShortName; in UpdateNetworkState()
298 networkState->csOperatorInfo_.operatorNumeric = mOperatorNumeric; in UpdateNetworkState()
299 networkState->csOperatorInfo_.fullName = mFullName; in UpdateNetworkState()
300 networkState->csOperatorInfo_.shortName = mShortName; in UpdateNetworkState()
301 networkState->csRoaming_ = static_cast<RoamingType>(size % ROAMING_NUM); in UpdateNetworkState()
[all …]
/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.cpp179 for (auto &networkState : networkStates) { in OnGetNetworkSearchInformation() local
183 networkState.GetOperatorNumeric().c_str(), networkState.GetOperatorShortName().c_str(), in OnGetNetworkSearchInformation()
184networkState.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.cpp71 for (auto &networkState : operatorInfoList_) { in Marshalling() local
72 parcel.WriteParcelable(&networkState); in Marshalling()
/base/telephony/core_service/interfaces/innerkits/include/
Di_telephony_state_notify.h33 …nt32_t UpdateCellularDataConnectState(int32_t slotId, int32_t dataState, int32_t networkState) = 0;
102 virtual int32_t UpdateNetworkState(int32_t slotId, const sptr<NetworkState> &networkState) = 0;
Dtelephony_state_registry_client.h39 int32_t UpdateCellularDataConnectState(int32_t slotId, int32_t dataState, int32_t networkState);
83 int32_t UpdateNetworkState(int32_t slotId, const sptr<NetworkState> &networkState);
Dtelephony_state_registry_proxy.h35 int32_t slotId, int32_t dataState, int32_t networkState) override;
47 int32_t slotId, const sptr<NetworkState> &networkState) override;
Dtelephony_observer_broker.h51 int32_t slotId, const sptr<NetworkState> &networkState) = 0;
/base/telephony/state_registry/frameworks/js/napi/include/
Dupdate_contexts.h51 sptr<NetworkState> networkState = nullptr; member
54 networkState = info.networkState_;
Dnapi_telephony_observer.h32 void OnNetworkStateUpdated(int32_t slotId, const sptr<NetworkState> &networkState) override;
/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.cpp652 const sptr<NetworkState> &networkState = networkStateUpdateInfo->networkState; in WorkNetworkStateUpdated() local
654 std::string longOperatorName = networkState->GetLongOperatorName(); in WorkNetworkStateUpdated()
655 std::string shortOperatorName = networkState->GetShortOperatorName(); in WorkNetworkStateUpdated()
656 std::string plmnNumeric = networkState->GetPlmnNumeric(); in WorkNetworkStateUpdated()
657 bool isRoaming = networkState->IsRoaming(); in WorkNetworkStateUpdated()
658 int32_t regStatus = static_cast<int32_t>(networkState->GetRegStatus()); in WorkNetworkStateUpdated()
659 bool isEmergency = networkState->IsEmergency(); in WorkNetworkStateUpdated()
660 int32_t cfgTech = static_cast<int32_t>(networkState->GetCfgTech()); in WorkNetworkStateUpdated()
661 int32_t nsaState = static_cast<int32_t>(networkState->GetNrState()); in WorkNetworkStateUpdated()
/base/telephony/state_registry/frameworks/native/observer/include/
Dtelephony_observer_proxy.h35 int32_t slotId, const sptr<NetworkState> &networkState);
/base/telephony/state_registry/test/unittest/state_test/
Dstate_registry_test.cpp175 int32_t networkState = 1; in UpdateCellularDataConnectState() local
177 slotId, dataState, networkState); in UpdateCellularDataConnectState()
207 std::unique_ptr<NetworkState> networkState = std::make_unique<NetworkState>(); in UpdateNetworkState() local
208 ASSERT_TRUE(networkState != nullptr); in UpdateNetworkState()
210 slotId, networkState.release()); in UpdateNetworkState()
689 std::unique_ptr<NetworkState> networkState = std::make_unique<NetworkState>(); variable
690 ASSERT_TRUE(networkState != nullptr);
691 (networkState.release())->Marshalling(dataParcel);
Dstate_registry_observer.h41 void OnNetworkStateUpdated(int32_t slotId, const sptr<NetworkState> &networkState) in OnNetworkStateUpdated() argument
/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
120 sptr<NetworkState> networkState = NetworkState::Unmarshalling(data); in OnNetworkStateUpdatedInner() local
121 OnNetworkStateUpdated(slotId, networkState); in OnNetworkStateUpdatedInner()

12