/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/device/ |
H A D | device_info_test.cpp | 76 DeviceInfo devInfo(deviceInfo); in HWTEST_F() 79 devInfo.SetCid(testCid); in HWTEST_F() 80 EXPECT_EQ(devInfo.GetCid(), NETWORKID); in HWTEST_F() 82 devInfo.initCidFlag_ = false; in HWTEST_F() 83 devInfo.SetCid(testCid); in HWTEST_F() 84 EXPECT_EQ(devInfo.GetCid(), testCid); in HWTEST_F() 100 DeviceInfo devInfo(deviceInfo); in HWTEST_F() 102 devInfo.initCidFlag_ = false; in HWTEST_F() 103 (void)devInfo.GetCid(); in HWTEST_F() 120 DeviceInfo devInfo(deviceInf in HWTEST_F() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/ |
H A D | dev_manager_test.cpp | 57 auto devInfo = DevManager::GetInstance().GetLocalDevice(); in HWTEST_F() local 58 EXPECT_NE(devInfo.networkId, ""); in HWTEST_F() 59 EXPECT_NE(devInfo.uuid, ""); in HWTEST_F() 73 auto devInfo = devMgr.GetLocalDevice(); in HWTEST_F() local 74 EXPECT_NE(devInfo.networkId, ""); in HWTEST_F() 75 auto uuid = devMgr.ToUUID(devInfo.networkId); in HWTEST_F() 77 EXPECT_EQ(uuid, devInfo.uuid); in HWTEST_F() 90 auto devInfo = devMgr.GetLocalDevice(); in HWTEST_F() local 91 EXPECT_NE(devInfo.uuid, ""); in HWTEST_F() 92 auto networkId = devMgr.ToNetworkId(devInfo in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
H A D | gap_br_sec.c | 159 static void GapDoSecurityAction(RequestSecInfo *reqInfo, DeviceInfo *devInfo) in GapDoSecurityAction() argument 163 if (devInfo->status != GAP_DEV_SEC_STATUS_ACTION) { in GapDoSecurityAction() 164 if (devInfo->status == GAP_DEV_SEC_STATUS_IDLE) { in GapDoSecurityAction() 165 BTM_AclAddRef(devInfo->handle); in GapDoSecurityAction() 167 AlarmCancel(devInfo->alarm); in GapDoSecurityAction() 169 devInfo->status = GAP_DEV_SEC_STATUS_ACTION; in GapDoSecurityAction() 174 if (devInfo->authenticationStatus == GAP_AUTH_STATUS_IDLE) { in GapDoSecurityAction() 175 devInfo->authenticationStatus = GAP_AUTH_STATUS_ACTION; in GapDoSecurityAction() 177 ret = GapAuthenticationRequested(devInfo->handle); in GapDoSecurityAction() 180 devInfo in GapDoSecurityAction() 203 const DeviceInfo *devInfo = dev; GapDoReleaseACLConnection() local 248 DeviceInfo *devInfo = NULL; GapCheckConnection() local 281 DeviceInfo *devInfo = GapRequestSecurityProcess() local 364 DeviceInfo *devInfo = GapRemoteDeviceSupportHostSecureSimplePairingCallback() local 528 DeviceInfo *devInfo = NULL; GAP_AuthorizeRes() local 577 GapUpdateSecurityStatusUnauthenticationSuccess(const DeviceInfo *devInfo) GapUpdateSecurityStatusUnauthenticationSuccess() argument 594 GapUpdateSecurityStatusAuthenticationSuccess(const DeviceInfo *devInfo) GapUpdateSecurityStatusAuthenticationSuccess() argument 610 GapUpdateSecurityStatusEncryptionSuccess(const DeviceInfo *devInfo) GapUpdateSecurityStatusEncryptionSuccess() argument 629 GapUpdateSecurityStatusFailed(const DeviceInfo *devInfo, uint8_t hciStatus) GapUpdateSecurityStatusFailed() argument 650 GapUpdateSecurityStatusEncryptionTimeout(const DeviceInfo *devInfo) GapUpdateSecurityStatusEncryptionTimeout() argument 666 GapUpdateSecurityStatusAclDisconnect(const DeviceInfo *devInfo, uint8_t hciStatus) GapUpdateSecurityStatusAclDisconnect() argument 683 GapUpdateSecurityStatusConnectComplete(const DeviceInfo *devInfo) GapUpdateSecurityStatusConnectComplete() argument 703 GapUpdateSecurityStatusFeatureComplete(DeviceInfo *devInfo) GapUpdateSecurityStatusFeatureComplete() argument 726 GapUpdateSecurityRequest(DeviceInfo *devInfo, enum DeviceSecurityEvent event, uint8_t hciStatus) GapUpdateSecurityRequest() argument 918 DeviceInfo *devInfo = NULL; GapIOCapabilityRequestReply() local 963 DeviceInfo *devInfo = NULL; GapOnIOCapabilityRequestEvent() local 1014 DeviceInfo *devInfo = NULL; GapOnIOCapabilityResponseEvent() local 1097 DeviceInfo *devInfo = NULL; GAP_CancelAuthenticationReq() local 1120 DeviceInfo *devInfo = NULL; GAP_IOCapabilityRsp() local 1167 DeviceInfo *devInfo = GapOnUserConfirmationRequestEvent() local 1429 DeviceInfo *devInfo = NULL; GapOnPINCodeRequestEvent() local 1525 DeviceInfo *devInfo = NULL; GAP_PairIsFromLocal() local 1544 DeviceInfo *devInfo = NULL; GapOnLinkKeyNotificationEvent() local 1565 DeviceInfo *devInfo = NULL; GapOnLinkKeyRequestEvent() local 1622 DeviceInfo *devInfo = NULL; GAP_LinkKeyRsp() local 1657 DeviceInfo *devInfo = NULL; GapOnEncryptionChangeEvent() local 1708 DeviceInfo *devInfo = NULL; GapOnEncryptionKeyRefreshComplete() local [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/task/src/ |
H A D | mock_online_task.cpp | 42 for (const auto& devInfo : onLineDevInfos) { in CreateEnableTask() 44 .networkId = devInfo.networkId, in CreateEnableTask() 45 .uuid = devInfo.uuid, in CreateEnableTask() 46 .dhId = devInfo.dhId, in CreateEnableTask() 47 .dhType = devInfo.dhType in CreateEnableTask() 57 for (const auto& devInfo : onLineDevInfos) { in CreateMetaEnableTask() 59 .networkId = devInfo.networkId, in CreateMetaEnableTask() 60 .uuid = devInfo.uuid, in CreateMetaEnableTask() 61 .dhId = devInfo.dhId, in CreateMetaEnableTask() 62 .dhType = devInfo in CreateMetaEnableTask() [all...] |
H A D | mock_offline_task.cpp | 33 for (const auto &devInfo : offLineDevInfos) { in CreateDisableTask() 35 .networkId = devInfo.networkId, in CreateDisableTask() 36 .uuid = devInfo.uuid, in CreateDisableTask() 37 .dhId = devInfo.dhId, in CreateDisableTask() 38 .dhType = devInfo.dhType in CreateDisableTask() 48 for (const auto &devInfo : offLineDevInfos) { in CreateMetaDisableTask() 50 .networkId = devInfo.networkId, in CreateMetaDisableTask() 51 .uuid = devInfo.uuid, in CreateMetaDisableTask() 52 .dhId = devInfo.dhId, in CreateMetaDisableTask() 53 .dhType = devInfo in CreateMetaDisableTask() [all...] |
/foundation/communication/dsoftbus/core/discovery/coap/nstackx_coap/src/ |
H A D | disc_coap_capability.c | 64 int32_t DiscCoapProcessDeviceInfo(const NSTACKX_DeviceInfo *nstackxInfo, DeviceInfo *devInfo,
in DiscCoapProcessDeviceInfo() argument 67 DISC_CHECK_AND_RETURN_RET_LOGE(nstackxInfo != NULL, SOFTBUS_INVALID_PARAM, DISC_COAP, "nstackx devInfo is NULL");
in DiscCoapProcessDeviceInfo() 68 DISC_CHECK_AND_RETURN_RET_LOGE(devInfo != NULL, SOFTBUS_INVALID_PARAM, DISC_COAP, "devInfo is NULL");
in DiscCoapProcessDeviceInfo() 78 Anonymize(devInfo->devName, &anonymizedName);
in DiscCoapProcessDeviceInfo() 79 Anonymize(devInfo->devId, &anonymizedId);
in DiscCoapProcessDeviceInfo() 80 Anonymize(devInfo->addr[0].info.ip.ip, &anonymizedIp);
in DiscCoapProcessDeviceInfo() 85 AnonymizeWrapper(anonymizedName), nstackxInfo->networkName, devInfo->capabilityBitmap[0],
in DiscCoapProcessDeviceInfo() 86 devInfo->addr[0].info.ip.port, AnonymizeWrapper(anonymizedId), devInfo in DiscCoapProcessDeviceInfo() [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/mtp/src/ |
H A D | mtp_device_monitor.cpp | 80 MtpDeviceInfo devInfo; in MonitorDevice() local 81 devInfo.uuid = uuids.front(); in MonitorDevice() 82 devInfo.devNum = rawDevice->devnum; in MonitorDevice() 83 devInfo.busLocation = rawDevice->bus_location; in MonitorDevice() 84 devInfo.vendor = rawDevice->device_entry.vendor; in MonitorDevice() 85 devInfo.product = rawDevice->device_entry.product; in MonitorDevice() 86 devInfo.vendorId = rawDevice->device_entry.vendor_id; in MonitorDevice() 87 devInfo.productId = rawDevice->device_entry.product_id; in MonitorDevice() 88 devInfo.id = "mtp-" + std::to_string(devInfo in MonitorDevice() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/ |
H A D | network_adapter.cpp | 75 errCode = processCommunicator_->RegOnDeviceChange([this](const DeviceInfos &devInfo, bool isOnline) { in StartAdapter() 76 OnDeviceChangeHandler(devInfo, isOnline); in StartAdapter() 87 processCommunicator_->RegOnSendAble([this](const DeviceInfos &devInfo) { in StartAdapter() 89 onSendableHandle_(devInfo.identifier); in StartAdapter() 169 DeviceInfos devInfo; in GetMtuSize() local 170 devInfo.identifier = target; in GetMtuSize() 171 uint32_t oriMtuSize = processCommunicator_->GetMtuSize(devInfo); in GetMtuSize() 176 DeviceInfos devInfo; in GetMtuSize() 177 devInfo.identifier = target; in GetMtuSize() 178 uint32_t oriMtuSize = processCommunicator_->GetMtuSize(devInfo); in GetMtuSize() 205 DeviceInfos devInfo = processCommunicator_->GetLocalDeviceInfos(); GetLocalIdentity() local 302 OnDeviceChangeHandler(const DeviceInfos &devInfo, bool isOnline) OnDeviceChangeHandler() argument 363 CheckDeviceOnlineAfterReception(const DeviceInfos &devInfo) CheckDeviceOnlineAfterReception() argument 379 CheckDeviceOfflineAfterSendFail(const DeviceInfos &devInfo) CheckDeviceOfflineAfterSendFail() argument [all...] |
/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/ |
H A D | content_sensor_test.cpp | 72 DeviceInfoCollector devInfo; in HWTEST_F() local 73 auto result = devInfo.GetDeviceName(); in HWTEST_F() 84 DeviceInfoCollector devInfo; in HWTEST_F() local 85 auto result = devInfo.GetDeviceModel(); in HWTEST_F() 96 DeviceInfoCollector devInfo; in HWTEST_F() local 97 auto result = devInfo.GetDeviceUdid(); in HWTEST_F() 108 DeviceInfoCollector devInfo; in HWTEST_F() local 109 auto result = devInfo.GetDevType(); in HWTEST_F() 120 DeviceInfoCollector devInfo; in HWTEST_F() local 121 auto result = devInfo in HWTEST_F() 132 DeviceInfoCollector devInfo; HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/disc_mgr/ |
H A D | lnn_discovery_interface_test.cpp | 377 DeviceInfo devInfo; in HWTEST_F() local 379 int32_t ret = GetConnectDeviceInfo(&devInfo, &addr); in HWTEST_F() 391 DeviceInfo devInfo; in HWTEST_F() local 392 devInfo.addr[0].type = CONNECTION_ADDR_BR; in HWTEST_F() 393 int32_t ret = LnnCheckDiscoveryDeviceInfo(&devInfo); in HWTEST_F() 395 devInfo.addr[0].type = CONNECTION_ADDR_BLE; in HWTEST_F() 396 ret = LnnCheckDiscoveryDeviceInfo(&devInfo); in HWTEST_F() 398 devInfo.addr[0].type = CONNECTION_ADDR_SESSION; in HWTEST_F() 399 ret = LnnCheckDiscoveryDeviceInfo(&devInfo); in HWTEST_F() 401 devInfo in HWTEST_F() 422 DeviceInfo devInfo; HWTEST_F() local [all...] |
/foundation/distributedhardware/device_manager/services/implementation/src/devicestate/ |
H A D | dm_device_state_manager.cpp | 104 DmDeviceInfo devInfo = softbusConnector_->GetDeviceInfoByDeviceId(deviceId); in OnDeviceOnline() local 105 devInfo.authForm = static_cast<DmAuthForm>(authForm); in OnDeviceOnline() 109 stateDeviceInfos_[deviceId] = devInfo; in OnDeviceOnline() 112 ProcessDeviceStateChange(DEVICE_STATE_ONLINE, devInfo); in OnDeviceOnline() 119 DmDeviceInfo devInfo; in OnDeviceOffline() local 126 devInfo = stateDeviceInfos_[deviceId]; in OnDeviceOffline() 128 ProcessDeviceStateChange(DEVICE_STATE_OFFLINE, devInfo); in OnDeviceOffline() 132 void DmDeviceStateManager::HandleDeviceStatusChange(DmDeviceState devState, DmDeviceInfo &devInfo) in HandleDeviceStatusChange() argument 135 GetAnonyString(devInfo.deviceId).c_str()); in HandleDeviceStatusChange() 138 RegisterOffLineTimer(devInfo); in HandleDeviceStatusChange() 166 ProcessDeviceStateChange(const DmDeviceState devState, const DmDeviceInfo &devInfo) ProcessDeviceStateChange() argument 174 listener_->OnDeviceStateChange(std::string(DM_PKG_NAME), devState, devInfo); ProcessDeviceStateChange() local 512 HandleDeviceScreenStatusChange(DmDeviceInfo &devInfo) HandleDeviceScreenStatusChange() argument 521 listener_->OnDeviceScreenStateChange(std::string(DM_PKG_NAME), devInfo); HandleDeviceScreenStatusChange() local [all...] |
/foundation/communication/dsoftbus/tests/core/common/dfx/hisysevent_adapter/unittest/ |
H A D | lnn_dfx_test.cpp | 235 OnlineDeviceInfo devInfo = {0}; in HWTEST_F() local 236 devInfo.onlineDevNum = 10; in HWTEST_F() 237 devInfo.btOnlineDevNum = 10; in HWTEST_F() 238 devInfo.wifiOnlineDevNum = 3; in HWTEST_F() 239 devInfo.peerDevType = 3; in HWTEST_F() 240 devInfo.insertFileResult = 1; in HWTEST_F() 241 ret = memcpy_s(devInfo.peerSoftBusVer, SOFTBUS_HISYSEVT_NAME_LEN, g_softBusVer, strlen(g_softBusVer)); in HWTEST_F() 243 ret = memcpy_s(devInfo.peerDevName, SOFTBUS_HISYSEVT_NAME_LEN, g_devName, strlen(g_devName)); in HWTEST_F() 245 ret = memcpy_s(devInfo.localSoftBusVer, SOFTBUS_HISYSEVT_NAME_LEN, g_softBusVer, strlen(g_softBusVer)); in HWTEST_F() 247 ret = memcpy_s(devInfo in HWTEST_F() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator/src/ |
H A D | process_communicator_impl.cpp | 159 uint32_t ProcessCommunicatorImpl::GetMtuSize(const DeviceInfos &devInfo) in GetMtuSize() argument 161 return SoftBusAdapter::GetInstance()->GetMtuSize({ devInfo.identifier }); in GetMtuSize() 164 uint32_t ProcessCommunicatorImpl::GetTimeout(const DeviceInfos &devInfo) in GetTimeout() argument 166 return SoftBusAdapter::GetInstance()->GetTimeout({ devInfo.identifier }); in GetTimeout() 172 DeviceInfo devInfo = DmAdapter::GetInstance().GetLocalDevice(); in GetLocalDeviceInfos() local 173 localDevInfos.identifier = devInfo.uuid; in GetLocalDeviceInfos() 204 DeviceInfos devInfo; in OnMessage() local 205 devInfo.identifier = info.uuid; in OnMessage() 206 onDataReceiveHandler_(devInfo, ptr, static_cast<uint32_t>(size)); in OnMessage() 219 DeviceInfos devInfo; in OnDeviceChanged() local [all...] |
/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/src/communicator/ |
H A D | process_communicator_impl.cpp | 134 uint32_t ProcessCommunicatorImpl::GetMtuSize(const DeviceInfos &devInfo)
in GetMtuSize() argument 142 DeviceInfo devInfo = CommunicationProvider::GetInstance().GetLocalDevice();
in GetLocalDeviceInfos() local 143 localDevInfos.identifier = devInfo.deviceId;
in GetLocalDeviceInfos() 174 DeviceInfos devInfo;
in OnMessage() local 175 devInfo.identifier = info.deviceId;
in OnMessage() 176 onDataReceiveHandler_(devInfo, ptr, static_cast<uint32_t>(size));
in OnMessage() 189 DeviceInfos devInfo{ info.deviceId };
in OnDeviceChanged() 190 onDeviceChangeHandler_(devInfo, (type == DeviceChangeType::DEVICE_ONLINE));
in OnDeviceChanged()
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/ |
H A D | network_agent_template_test.cpp | 75 DeviceInfo devInfo(info); in HWTEST_F() 78 NetworkAgentTemplate::ConnectDeviceAsync(devInfo); in HWTEST_F() 101 DeviceInfo devInfo(info); in HWTEST_F() 104 NetworkAgentTemplate::ConnectDeviceByP2PAsync(devInfo); in HWTEST_F() 167 DeviceInfo devInfo(info); in HWTEST_F() 170 NetworkAgentTemplate::DisconnectDevice(devInfo); in HWTEST_F() 193 DeviceInfo devInfo(info); in HWTEST_F() 196 NetworkAgentTemplate::DisconnectDeviceByP2P(devInfo); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/ |
H A D | iprocess_communicator.h | 60 // In OnDeviceChange, all field of devInfo should be valid, isOnline true for online and false for offline. 65 using OnDeviceChange = std::function<void(const DeviceInfos &devInfo, bool isOnline)>; 129 virtual uint32_t GetMtuSize(const DeviceInfos &devInfo) in GetMtuSize() argument 131 if (devInfo.identifier.empty()) { in GetMtuSize() 145 virtual uint32_t GetTimeout(const DeviceInfos &devInfo) in GetTimeout() argument 147 if (devInfo.identifier.empty()) { in GetTimeout()
|
/foundation/distributedhardware/device_manager/services/softbuscache/src/ |
H A D | dm_softbus_cache.cpp | 256 int32_t SoftbusCache::ConvertNodeBasicInfoToDmDevice(const NodeBasicInfo &nodeInfo, DmDeviceInfo &devInfo) in ConvertNodeBasicInfoToDmDevice() argument 258 if (memset_s(&devInfo, sizeof(DmDeviceInfo), 0, sizeof(DmDeviceInfo)) != DM_OK) { in ConvertNodeBasicInfoToDmDevice() 263 if (memcpy_s(devInfo.networkId, sizeof(devInfo.networkId), nodeInfo.networkId, in ConvertNodeBasicInfoToDmDevice() 264 std::min(sizeof(devInfo.networkId), sizeof(nodeInfo.networkId))) != DM_OK) { in ConvertNodeBasicInfoToDmDevice() 269 if (memcpy_s(devInfo.deviceName, sizeof(devInfo.deviceName), nodeInfo.deviceName, in ConvertNodeBasicInfoToDmDevice() 270 std::min(sizeof(devInfo.deviceName), sizeof(nodeInfo.deviceName))) != DM_OK) { in ConvertNodeBasicInfoToDmDevice() 275 devInfo.deviceTypeId = nodeInfo.deviceTypeId; in ConvertNodeBasicInfoToDmDevice() 279 devInfo in ConvertNodeBasicInfoToDmDevice() 360 GetDevInfoFromBus(const std::string &networkId, DmDeviceInfo &devInfo) GetDevInfoFromBus() argument [all...] |
/foundation/ability/dmsfwk/services/dtbschedmgr/src/ |
H A D | dtbschedmgr_device_info_storage.cpp | 285 auto devInfo = FindDeviceInfoInStorage(networkId); in GetDeviceInfoById() local 286 if (devInfo != nullptr) { in GetDeviceInfoById() 287 return devInfo; in GetDeviceInfoById() 297 devInfo = FindDeviceInfoInStorage(networkId); in GetDeviceInfoById() 298 return devInfo; in GetDeviceInfoById() 348 void DtbschedmgrDeviceInfoStorage::DeviceOnlineNotify(const std::shared_ptr<DmsDeviceInfo> devInfo) in DeviceOnlineNotify() argument 350 if (devInfo == nullptr) { in DeviceOnlineNotify() 351 HILOGE("DeviceOnlineNotify devInfo null"); in DeviceOnlineNotify() 359 auto nodeOnline = [this, devInfo]() { in DeviceOnlineNotify() 360 std::string networkId = devInfo in DeviceOnlineNotify() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/iprocesscommunicator_fuzzer/ |
H A D | iprocesscommunicator_fuzzer.cpp | 82 void FuzzOnDeviceChange(const DistributedDB::DeviceInfos &devInfo, bool isOnline) in FuzzOnDeviceChange() argument 87 onDeviceChange_(devInfo, isOnline); in FuzzOnDeviceChange() 90 void FuzzOnDataReceive(const DistributedDB::DeviceInfos &devInfo, const uint8_t* data, size_t size) in FuzzOnDataReceive() argument 95 onDataReceive_(devInfo, data, size); in FuzzOnDataReceive() 144 const DistributedDB::DeviceInfos &devInfo) override
|
/foundation/distributedhardware/device_manager/services/implementation/src/ |
H A D | device_manager_service_impl.cpp | 198 void DeviceManagerServiceImpl::HandleOffline(DmDeviceState devState, DmDeviceInfo &devInfo) in HandleOffline() argument 201 std::string trustDeviceId = deviceStateMgr_->GetUdidByNetWorkId(std::string(devInfo.networkId)); in HandleOffline() 208 if (memcpy_s(devInfo.deviceId, DM_MAX_DEVICE_ID_LEN, udisHash.c_str(), udisHash.length()) != 0) { in HandleOffline() 219 deviceStateMgr_->HandleDeviceStatusChange(devState, devInfo); in HandleOffline() 222 deviceStateMgr_->HandleDeviceStatusChange(devState, devInfo); in HandleOffline() 225 deviceStateMgr_->HandleDeviceStatusChange(devState, devInfo); in HandleOffline() 229 deviceStateMgr_->HandleDeviceStatusChange(devState, devInfo); in HandleOffline() 237 void DeviceManagerServiceImpl::HandleOnline(DmDeviceState devState, DmDeviceInfo &devInfo) in HandleOnline() argument 241 if (softbusConnector_->GetUdidByNetworkId(devInfo.networkId, trustDeviceId) != DM_OK) { in HandleOnline() 246 if (memcpy_s(devInfo in HandleOnline() 287 HandleDeviceStatusChange(DmDeviceState devState, DmDeviceInfo &devInfo) HandleDeviceStatusChange() argument 818 HandleDeviceScreenStatusChange(DmDeviceInfo &devInfo) HandleDeviceScreenStatusChange() argument [all...] |
/foundation/distributedhardware/device_manager/services/service/src/softbus/ |
H A D | softbus_listener.cpp | 712 DmDeviceInfo &devInfo) in ConvertScreenStatusToDmDevice() 714 if (memset_s(&devInfo, sizeof(DmDeviceInfo), 0, sizeof(DmDeviceInfo)) != DM_OK) { in ConvertScreenStatusToDmDevice() 718 if (memcpy_s(devInfo.networkId, sizeof(devInfo.networkId), nodeInfo.networkId, in ConvertScreenStatusToDmDevice() 719 std::min(sizeof(devInfo.networkId), sizeof(nodeInfo.networkId))) != DM_OK) { in ConvertScreenStatusToDmDevice() 724 if (memcpy_s(devInfo.deviceName, sizeof(devInfo.deviceName), nodeInfo.deviceName, in ConvertScreenStatusToDmDevice() 725 std::min(sizeof(devInfo.deviceName), sizeof(nodeInfo.deviceName))) != DM_OK) { in ConvertScreenStatusToDmDevice() 729 devInfo.deviceTypeId = nodeInfo.deviceTypeId; in ConvertScreenStatusToDmDevice() 734 devInfo in ConvertScreenStatusToDmDevice() 711 ConvertScreenStatusToDmDevice(const NodeBasicInfo &nodeInfo, const int32_t devScreenStatus, DmDeviceInfo &devInfo) ConvertScreenStatusToDmDevice() argument 738 ConvertNodeBasicInfoToDmDevice(const NodeBasicInfo &nodeInfo, DmDeviceInfo &devInfo) ConvertNodeBasicInfoToDmDevice() argument 764 ConvertNodeBasicInfoToDmDevice(const NodeBasicInfo &nodeInfo, DmDeviceBasicInfo &devInfo) ConvertNodeBasicInfoToDmDevice() argument [all...] |
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/ |
H A D | lnn_lane_link_conflict.c | 86 Anonymize(info->type == IDENTIFY_TYPE_UDID_HASH ? info->devInfo.udidHash : info->devInfo.peerDevId, in PostConflictInfoTimelinessMsg() 88 LNN_LOGI(LNN_LANE, "post conflict info timeliness msg, identifyType=%{public}d, devInfo=%{public}s," in PostConflictInfoTimelinessMsg() 140 inputInfo->devInfo.udidHash : inputInfo->devInfo.peerDevId, &anonyDevInfo); in RemoveConflictInfoTimelinessMsg() 141 LNN_LOGI(LNN_LANE, "remove timeliness msg, identifyType=%{public}d, devInfo=%{public}s, conflictType=%{public}d", in RemoveConflictInfoTimelinessMsg() 276 inputInfo->identifyInfo.devInfo.udidHash : inputInfo->identifyInfo.devInfo.peerDevId, &anonyDevInfo); in CreateNewLinkConflictInfo() 277 LNN_LOGI(LNN_LANE, "create new conflict link success, identifyType=%{public}d, devInfo=%{public}s, " in CreateNewLinkConflictInfo() 296 inputInfo->devInfo in DelLinkConflictInfo() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/utils/src/ |
H A D | dh_utils_tool.cpp | 138 DeviceInfo devInfo { "", "", "", "", "", "", 0 }; in GetLocalDeviceInfo() 143 return devInfo; in GetLocalDeviceInfo() 145 devInfo.networkId = info.networkId; in GetLocalDeviceInfo() 146 devInfo.uuid = GetUUIDByDm(info.networkId); in GetLocalDeviceInfo() 147 devInfo.deviceId = GetDeviceIdByUUID(devInfo.uuid); in GetLocalDeviceInfo() 148 devInfo.udid = GetUDIDByDm(info.networkId); in GetLocalDeviceInfo() 149 devInfo.udidHash = Sha256(devInfo.udid); in GetLocalDeviceInfo() 150 devInfo in GetLocalDeviceInfo() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/include/ |
H A D | db_status_adapter.h | 24 using RemoteDBChangeCallback = std::function<void(const std::string &devInfo, const std::vector<DBInfo> &dbInfos)>; 26 using RemoteSupportChangeCallback = std::function<void(const std::string &devInfo)>; 34 bool IsSupport(const std::string &devInfo); 41 const std::string &devInfo);
|
H A D | network_adapter.h | 59 void OnDeviceChangeHandler(const DeviceInfos &devInfo, bool isOnline); 60 void OnSendAbleHandler(const DeviceInfos &devInfo); 63 void CheckDeviceOnlineAfterReception(const DeviceInfos &devInfo); 64 void CheckDeviceOfflineAfterSendFail(const DeviceInfos &devInfo);
|