Home
last modified time | relevance | path

Searched refs:networkType (Results 1 - 25 of 27) sorted by relevance

12

/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/cloud/sync_strategies/
H A Dnetwork_sync_strategy.cpp105 auto networkType = DeviceManagerAdapter::GetInstance().GetNetworkType(); in Check() local
106 if (networkType == DeviceManagerAdapter::NONE) { in Check()
107 networkType = DeviceManagerAdapter::GetInstance().GetNetworkType(true); in Check()
109 switch (networkType) { in Check()
116 ZLOGD("verification failed! strategy:%{public}d, networkType:%{public}d", strategy, networkType); in Check()
/foundation/distributedhardware/device_manager/common/include/ipc/model/
H A Dipc_get_info_by_network_rsp.h84 void SetNetworkType(const int32_t &networkType) in SetNetworkType() argument
86 networkType_ = networkType; in SetNetworkType()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/
H A Dnetwork_agent_template.cpp94 int32_t networkType; in ConnectOnlineDevices() local
95 int errCode = deviceManager.GetNetworkTypeByNetworkId(pkgName, info.GetCid(), networkType); in ConnectOnlineDevices()
100 if (!(static_cast<uint32_t>(networkType) & (1 << DistributedHardware::BIT_NETWORK_TYPE_WIFI))) { in ConnectOnlineDevices()
101 LOGI("not wifi network networkType = %{public}d == %{public}d", networkType, in ConnectOnlineDevices()
/foundation/multimedia/player_framework/services/services/observer/
H A Dmedia_telephony_listener.cpp91 void MediaTelephonyListener::OnCellularDataConnectStateUpdated(int32_t slotId, int32_t dataState, int32_t networkType) in OnCellularDataConnectStateUpdated() argument
93 MEDIA_LOGI("OnCellularDataConnectStateUpdated slotId=%{public}d, dataState=%{public}d, networkType=" in OnCellularDataConnectStateUpdated()
94 "%{public}d", slotId, dataState, networkType); in OnCellularDataConnectStateUpdated()
H A Dmedia_telephony_listener.h41 void OnCellularDataConnectStateUpdated(int32_t slotId, int32_t dataState, int32_t networkType) override;
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_agent.cpp77 int32_t networkType; in JudgeNetworkTypeIsWifi() local
79 int errCode = deviceManager.GetNetworkTypeByNetworkId(IDaemon::SERVICE_NAME, info.GetCid(), networkType); in JudgeNetworkTypeIsWifi()
84 if (!(static_cast<uint32_t>(networkType) & (1 << DistributedHardware::BIT_NETWORK_TYPE_WIFI))) { in JudgeNetworkTypeIsWifi()
85 LOGI("not wifi network networkType = %{public}d == %{public}d", networkType, in JudgeNetworkTypeIsWifi()
/foundation/resourceschedule/work_scheduler/frameworks/extension/src/
H A Djs_work_scheduler_extension.cpp228 void SetNetWorkInfo(napi_env env, napi_value workInfoData, WorkCondition::Network networkType) in SetNetWorkInfo() argument
230 if (networkType != WorkCondition::Network::NETWORK_UNKNOWN) { in SetNetWorkInfo()
232 napi_create_int32(env, networkType, &networkTypeValue); in SetNetWorkInfo()
233 napi_set_named_property(env, workInfoData, "networkType", networkTypeValue); in SetNetWorkInfo()
353 WorkCondition::Network networkType = workInfo.GetNetworkType(); in OnWorkStart() local
378 SetNetWorkInfo(env, workInfoData, networkType); in OnWorkStart()
405 WorkCondition::Network networkType = workInfo.GetNetworkType(); in OnWorkStop() local
430 SetNetWorkInfo(env, workInfoData, networkType); in OnWorkStop()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/device/
H A Ddevice_manager_agent.cpp182 int32_t networkType = 0; in GetNetworkType() local
185 int errCode = deviceManager.GetNetworkTypeByNetworkId(pkgName, cid, networkType); in GetNetworkType()
190 return networkType; in GetNetworkType()
193 bool DeviceManagerAgent::IsWifiNetworkType(int32_t networkType) in IsWifiNetworkType() argument
195 if ((networkType == -1) || in IsWifiNetworkType()
196 !(static_cast<uint32_t>(networkType) & (1 << DistributedHardware::BIT_NETWORK_TYPE_WIFI))) { in IsWifiNetworkType()
237 LOGE("cid %{public}s networkType:%{public}d", Utils::GetAnonyString(info.cid_).c_str(), type_->second); in OnDeviceReady()
755 if (deviceInfo.networkType == -1) { in OnDeviceChanged()
783 int32_t newNetworkType = type_->second = deviceInfo.networkType; in OnDeviceChanged()
/foundation/distributedhardware/device_manager/test/servicesfuzztest/unauthenticatedevice_fuzzer/
H A Dun_authenticate_device_fuzzer.cpp48 deviceInfo.networkType = *(reinterpret_cast<const int32_t *>(data)); in UnAuthenticateDeviceFuzzTest()
/foundation/resourceschedule/work_scheduler/interfaces/kits/js/napi/src/
H A Dcommon.cpp90 int32_t networkType = GetIntProperty(env, objValue, "networkType", E_NETWORK_TYPE_ERR); in GetNetWorkInfo() local
91 if (networkType == UNSET_INT_PARAM) { in GetNetWorkInfo()
92 WS_HILOGD("Unset networkType."); in GetNetWorkInfo()
93 } else if (networkType >= WorkCondition::Network::NETWORK_TYPE_ANY && in GetNetWorkInfo()
94 networkType <= WorkCondition::Network::NETWORK_TYPE_ETHERNET) { in GetNetWorkInfo()
95 workInfo.RequestNetworkType(WorkCondition::Network(networkType)); in GetNetWorkInfo()
476 napi_set_named_property(env, napiWork, "networkType", napiNetworkType); in GetConditionInfo()
/foundation/distributedhardware/device_manager/services/service/src/softbus/
H A Dsoftbus_listener.cpp327 int32_t networkType = -1; in OnSoftbusDeviceInfoChanged() local
330 reinterpret_cast<uint8_t *>(&networkType), LNN_COMMON_LEN) != DM_OK) { in OnSoftbusDeviceInfoChanged()
331 LOGE("[SOFTBUS]GetNodeKeyInfo networkType failed."); in OnSoftbusDeviceInfoChanged()
334 LOGI("OnSoftbusDeviceInfoChanged NetworkType %{public}d.", networkType); in OnSoftbusDeviceInfoChanged()
338 dmDeviceInfo.networkType = networkType; in OnSoftbusDeviceInfoChanged()
870 int32_t SoftbusListener::GetNetworkTypeByNetworkId(const char *networkId, int32_t &networkType) in GetNetworkTypeByNetworkId() argument
876 LOGE("[SOFTBUS]GetNodeKeyInfo networkType failed."); in GetNetworkTypeByNetworkId()
879 networkType = tempNetworkType; in GetNetworkTypeByNetworkId()
880 LOGI("GetNetworkTypeByNetworkId networkType in GetNetworkTypeByNetworkId()
[all...]
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/device/
H A Ddevice_manager_agent_test.cpp230 deviceInfo.networkType = -1; in HWTEST_F()
232 deviceInfo.networkType = 1; in HWTEST_F()
255 deviceInfo.networkType = NETWORKTYPE_NONE_WIFI; in HWTEST_F()
273 deviceInfo.networkType = NETWORKTYPE_WITH_WIFI; in HWTEST_F()
300 deviceInfo.networkType = NETWORKTYPE_WITH_WIFI; in HWTEST_F()
314 deviceInfo.networkType = NETWORKTYPE_NONE_WIFI; in HWTEST_F()
/foundation/distributedhardware/device_manager/services/service/include/softbus/
H A Dsoftbus_listener.h84 int32_t GetNetworkTypeByNetworkId(const char *networkId, int32_t &networkType);
/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include/
H A Ddm_device_info.h178 int32_t networkType; member
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/
H A Dhfp_ag_system_interface.h501 void OnCellularDataConnectStateUpdated(int32_t slotId, int32_t dataState, int32_t networkType) override
/foundation/distributedhardware/device_manager/services/service/include/
H A Ddevice_manager_service.h153 int32_t GetNetworkTypeByNetworkId(const std::string &pkgName, const std::string &netWorkId, int32_t &networkType);
188 int32_t GetDeviceSecurityLevel(const std::string &pkgName, const std::string &networkId, int32_t &networkType);
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/device/
H A Ddevice_manager_agent.h119 bool IsWifiNetworkType(int32_t networkType);
/foundation/distributedhardware/device_manager/test/softbusunittest/
H A DUTTest_softbus_listener.cpp152 .networkType = 21, in HWTEST_F()
420 int32_t networkType = -1; in HWTEST_F() local
424 int32_t ret = softbusListener->GetNetworkTypeByNetworkId(networkId, networkType); in HWTEST_F()
/foundation/distributedhardware/device_manager/test/unittest/
H A DUTTest_device_manager_service.cpp1650 int32_t networkType = 0; in HWTEST_F() local
1651 int32_t ret = DeviceManagerService::GetInstance().GetNetworkTypeByNetworkId(pkgName, netWorkId, networkType); in HWTEST_F()
1659 int32_t networkType = 0; in HWTEST_F() local
1660 int32_t ret = DeviceManagerService::GetInstance().GetNetworkTypeByNetworkId(pkgName, netWorkId, networkType); in HWTEST_F()
1668 int32_t networkType = 0; in HWTEST_F() local
1669 int32_t ret = DeviceManagerService::GetInstance().GetNetworkTypeByNetworkId(pkgName, netWorkId, networkType); in HWTEST_F()
1677 int32_t networkType = 0; in HWTEST_F() local
1679 int32_t ret = DeviceManagerService::GetInstance().GetNetworkTypeByNetworkId(pkgName, netWorkId, networkType); in HWTEST_F()
/foundation/distributedhardware/device_manager/services/service/src/ipc/standard/
H A Dipc_cmd_parser.cpp63 bRet = (bRet && parcel.WriteInt32(devInfo.networkType)); in EncodeDmDeviceInfo()
876 int32_t networkType = -1; in ON_IPC_CMD() local
877 int32_t result = DeviceManagerService::GetInstance().GetNetworkTypeByNetworkId(pkgName, netWorkId, networkType); in ON_IPC_CMD()
882 if (!reply.WriteInt32(networkType)) { in ON_IPC_CMD()
/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/src/ipc/lite/
H A Dipc_cmd_parser.cpp50 ReadInt32(&reply, &devInfo.networkType); in DecodeDmDeviceInfo()
/foundation/distributedhardware/device_manager/services/service/src/ipc/lite/
H A Dipc_cmd_parser.cpp53 bRet = (bRet && WriteInt32(&reply, devInfo.networkType)); in EncodeDmDeviceInfo()
/foundation/arkui/ace_engine/advanced_ui_component/atomicserviceweb/interfaces/
H A Datomicserviceweb.js1055 networkType: m2.networkType,
/foundation/arkui/advanced_ui_component/atomicserviceweb/interfaces/
H A Datomicserviceweb.js1055 networkType: m2.networkType,
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_sync_info_manager.c550 static char *PackBleOfflineMsg(int64_t connCap, int32_t networkType, int64_t authSeq) in PackBleOfflineMsg() argument
558 !JSON_AddInt32ToObject(json, NETWORK_SYNC_TYPE, networkType) || in PackBleOfflineMsg()

Completed in 26 milliseconds

12