/base/security/access_token/services/tokensyncmanager/src/remote/ |
D | soft_bus_device_connection_listener.cpp | 50 std::string networkId = info.networkId; in OnDeviceOnline() local 51 std::string uuid = SoftBusManager::GetInstance().GetUniversallyUniqueIdByNodeId(networkId); in OnDeviceOnline() 52 std::string udid = SoftBusManager::GetInstance().GetUniqueDeviceIdByNodeId(networkId); in OnDeviceOnline() 56 ConstantCommon::EncryptDevId(networkId).c_str(), in OnDeviceOnline() 62 networkId, uuid, udid, info.deviceName, std::to_string(info.deviceTypeId)); in OnDeviceOnline() 72 std::string networkId = info.networkId; in OnDeviceOffline() local 73 …std::string uuid = DeviceInfoManager::GetInstance().ConvertToUniversallyUniqueIdOrFetch(networkId); in OnDeviceOffline() 74 std::string udid = DeviceInfoManager::GetInstance().ConvertToUniqueDeviceIdOrFetch(networkId); in OnDeviceOffline() 78 ConstantCommon::EncryptDevId(networkId).c_str(), in OnDeviceOffline() 85 … DeviceInfoManager::GetInstance().RemoveRemoteDeviceInfo(networkId, DeviceIdType::NETWORK_ID); in OnDeviceOffline() [all …]
|
D | soft_bus_manager.cpp | 76 std::string uuid = GetUuidByNodeId(device.networkId); in AddTrustedDeviceInfo() 77 std::string udid = GetUdidByNodeId(device.networkId); in AddTrustedDeviceInfo() 84 … DeviceInfoManager::GetInstance().AddDeviceInfo(device.networkId, uuid, udid, device.deviceName, in AddTrustedDeviceInfo() 231 std::string networkId = info.deviceId.networkId; in OpenSession() local 232 …INFO(LABEL, "openSession, networkId: %{public}s", ConstantCommon::EncryptDevId(networkId).c_str()); in OpenSession() 235 int sessionId = ::OpenSession(SESSION_NAME.c_str(), SESSION_NAME.c_str(), networkId.c_str(), in OpenSession() 397 std::string uuid = GetUuidByNodeId(info.networkId); in FulfillLocalDeviceInfo() 398 std::string udid = GetUdidByNodeId(info.networkId); in FulfillLocalDeviceInfo() 405 DeviceInfoManager::GetInstance().AddDeviceInfo(info.networkId, uuid, udid, info.deviceName, in FulfillLocalDeviceInfo()
|
D | soft_bus_session_listener.cpp | 104 std::string networkId(contents); in OnBytesReceived() local 106 auto channel = RemoteCommandManager::GetInstance().GetExecutorChannel(networkId); in OnBytesReceived()
|
/base/security/access_token/services/tokensyncmanager/test/mock/src/ |
D | soft_bus_center_mock.cpp | 38 strcpy_s(info->networkId, sizeof(info->networkId), "local"); in GetLocalNodeDeviceInfo() 44 int32_t GetNodeKeyInfo(const char *pkgName, const char *networkId, NodeDeviceInfoKey key, uint8_t *… in GetNodeKeyInfo() argument 47 if (networkId == nullptr || networkId[0] == '\0') { in GetNodeKeyInfo() 53 std::string temp = networkId; in GetNodeKeyInfo() 59 std::string temp = networkId; in GetNodeKeyInfo()
|
/base/msdp/device_status/services/interaction/coordination/src/ |
D | coordination_util.cpp | 39 std::string networkId(localNode->networkId, sizeof(localNode->networkId)); in GetLocalNetworkId() local 40 …FI_HILOGD("GetLocalNodeDeviceInfo networkId:%{public}s", networkId.substr(0, SUBSTR_NETWORKID_LEN)… in GetLocalNetworkId() 41 return localNode->networkId; in GetLocalNetworkId()
|
D | coordination_state_free.cpp | 61 int32_t CoordinationStateFree::DeactivateCoordination(const std::string &networkId, bool isUnchaine… in DeactivateCoordination() argument 69 int32_t ret = COOR_SOFTBUS_ADAPTER->OpenInputSoftbus(networkId); in DeactivateCoordination() 74 ret = COOR_SOFTBUS_ADAPTER->StopRemoteCoordination(networkId, isUnchained); in DeactivateCoordination() 83 if (networkId == preparedNetworkId.first || networkId == preparedNetworkId.second) { in DeactivateCoordination() 84 FI_HILOGD("networkId:%{public}s", networkId.substr(0, SUBSTR_NETWORKID_LEN).c_str()); in DeactivateCoordination() 90 COOR_SOFTBUS_ADAPTER->NotifyUnchainedResult(localNetworkId, networkId, ret); in DeactivateCoordination() 97 ret = COOR_SOFTBUS_ADAPTER->StopRemoteCoordinationResult(networkId, false); in DeactivateCoordination()
|
D | coordination_sm.cpp | 108 void CoordinationSM::Reset(const std::string &networkId) in Reset() argument 114 if (networkId != remoteNetworkId_) { in Reset() 120 if (networkId != originNetworkId) { in Reset() 144 void CoordinationSM::OnCoordinationChanged(const std::string &networkId, bool isOpen) in OnCoordinationChanged() argument 151 … std::bind(&CoordinationEventManager::OnCoordinationMessage, COOR_EVENT_MGR, msg, networkId)); in OnCoordinationChanged() 156 OnCloseCoordination(networkId, false); in OnCoordinationChanged() 160 void CoordinationSM::OnCloseCoordination(const std::string &networkId, bool isLocal) in OnCloseCoordination() argument 165 if (networkId == preparedNetworkId_.first || networkId == preparedNetworkId_.second) { in OnCloseCoordination() 180 if (isLocal || networkId == remoteNetworkId_) { in OnCloseCoordination() 185 if (COOR_DEV_MGR->GetOriginNetworkId(startDeviceDhid_) == networkId) { in OnCloseCoordination() [all …]
|
/base/security/access_token/services/tokensyncmanager/src/device/ |
D | device_info_repository.cpp | 78 …std::string deviceInfoKey = deviceId.networkId + deviceId.universallyUniqueId + deviceId.uniqueDev… in FindDeviceInfoByDeviceIdLocked() 86 bool DeviceInfoRepository::FindDeviceIdByNetworkIdLocked(const std::string &networkId, DeviceId &de… in FindDeviceIdByNetworkIdLocked() argument 88 if (deviceIdMapByNetworkId_.count(networkId) > 0) { in FindDeviceIdByNetworkIdLocked() 89 deviceId = deviceIdMapByNetworkId_.at(networkId); in FindDeviceIdByNetworkIdLocked() 134 …deviceId.networkId, deviceId.universallyUniqueId, deviceId.uniqueDeviceId, deviceName, deviceType); in SaveDeviceInfo() 137 void DeviceInfoRepository::SaveDeviceInfo(const std::string &networkId, const std::string &universa… in SaveDeviceInfo() argument 142 DeleteDeviceInfo(networkId, DeviceIdType::NETWORK_ID); in SaveDeviceInfo() 147 deviceId.networkId = networkId; in SaveDeviceInfo() 156 const std::string deviceInfoKey = networkId + universallyUniqueId + uniqueDeviceId; in SaveDeviceInfo() 157 deviceIdMapByNetworkId_.insert(std::pair<std::string, DeviceId>(networkId, deviceId)); in SaveDeviceInfo() [all …]
|
D | device_info_manager.cpp | 43 void DeviceInfoManager::AddDeviceInfo(const std::string &networkId, const std::string &universallyU… in AddDeviceInfo() argument 46 if (!DataValidator::IsDeviceIdValid(networkId) || in AddDeviceInfo() 53 networkId, universallyUniqueId, uniqueDeviceId, deviceName, deviceType); in AddDeviceInfo() 144 ConstantCommon::EncryptDevId(info.deviceId.networkId).c_str()); in ConvertToUniqueDeviceIdOrFetch()
|
/base/security/device_security_level/baselib/msglib/src/standard/ |
D | messenger_device_status_manager.cpp | 110 if (!MessengerGetDeviceIdentifyByNetworkId(info.networkId, &identity)) { in MessengerOnNodeStateChange() 174 static bool MessengerConvertNodeToIdentity(const std::string &networkId, DeviceIdentify &devId) in MessengerConvertNodeToIdentity() argument 179 int32_t ret = DeviceManager::GetInstance().GetUdidByNetworkId(name, networkId, udid); in MessengerConvertNodeToIdentity() 213 bool convert = MessengerConvertNodeToIdentity(device.networkId, curr); in MessengerGetDeviceNodeBasicInfo() 323 bool convert = MessengerConvertNodeToIdentity(info.networkId, *devId); in MessengerGetSelfDeviceIdentify() 352 bool convert = MessengerConvertNodeToIdentity(device.networkId, curr); in MessengerForEachDeviceProcess() 359 bool MessengerGetNetworkIdByDeviceIdentify(const DeviceIdentify *devId, char *networkId, uint32_t l… in MessengerGetNetworkIdByDeviceIdentify() argument 361 if (devId == nullptr || networkId == nullptr || len == 0) { in MessengerGetNetworkIdByDeviceIdentify() 370 int32_t ret = strcpy_s(networkId, len, info.networkId); in MessengerGetNetworkIdByDeviceIdentify() 378 bool MessengerGetDeviceIdentifyByNetworkId(const char *networkId, DeviceIdentify *devId) in MessengerGetDeviceIdentifyByNetworkId() argument [all …]
|
/base/security/access_token/services/tokensyncmanager/test/unittest/token_sync_service/ |
D | token_sync_service_test.cpp | 81 .networkId = "deviceid-1" 132 std::string networkId = info.networkId; in OnDeviceOffline() local 133 …std::string uuid = DeviceInfoManager::GetInstance().ConvertToUniversallyUniqueIdOrFetch(networkId); in OnDeviceOffline() 134 std::string udid = DeviceInfoManager::GetInstance().ConvertToUniqueDeviceIdOrFetch(networkId); in OnDeviceOffline() 138 networkId.c_str(), in OnDeviceOffline() 145 … DeviceInfoManager::GetInstance().RemoveRemoteDeviceInfo(networkId, DeviceIdType::NETWORK_ID); in OnDeviceOffline() 1044 std::string networkId; variable 1049 ASSERT_EQ("", networkId); 1054 …DeviceInfoManager::GetInstance().AddDeviceInfo(networkId, universallyUniqueId, uniqueDeviceId, dev… 1057 networkId = "123"; [all …]
|
/base/security/device_security_level/baselib/msglib/src/common/ |
D | messenger_device_status_manager.h | 44 bool MessengerGetNetworkIdByDeviceIdentify(const DeviceIdentify *devId, char *networkId, uint32_t l… 46 bool MessengerGetDeviceIdentifyByNetworkId(const char *networkId, DeviceIdentify *devId);
|
/base/security/device_security_level/baselib/msglib/src/lite/ |
D | messenger_device_status_manager.c | 131 …if (GetNodeKeyInfo(instance->pkgName, info->networkId, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LE… in MessengerOnNodeStateChange() 226 …if (GetNodeKeyInfo(instance->pkgName, node->networkId, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LE… in MessengerConvertNodeToIdentity() 290 bool MessengerGetNetworkIdByDeviceIdentify(const DeviceIdentify *devId, char *networkId, uint32_t l… in MessengerGetNetworkIdByDeviceIdentify() argument 292 if (devId == NULL || networkId == NULL || len == 0) { in MessengerGetNetworkIdByDeviceIdentify() 301 int32_t ret = memcpy_s(networkId, len, info.networkId, NETWORK_ID_BUF_LEN); in MessengerGetNetworkIdByDeviceIdentify() 366 bool MessengerGetDeviceIdentifyByNetworkId(const char *networkId, DeviceIdentify *devId) in MessengerGetDeviceIdentifyByNetworkId() argument 368 if (networkId == NULL || devId == NULL) { in MessengerGetDeviceIdentifyByNetworkId() 371 return MessengerConvertNodeToIdentity(networkId, devId); in MessengerGetDeviceIdentifyByNetworkId()
|
/base/security/access_token/services/tokensyncmanager/include/device/ |
D | device_info_repository.h | 44 void SaveDeviceInfo(const std::string &networkId, const std::string &universallyUniqueId, 56 bool FindDeviceIdByNetworkIdLocked(const std::string &networkId, DeviceId &deviceId) const;
|
D | device_info.h | 32 std::string networkId; member
|
D | device_info_manager.h | 62 void AddDeviceInfo(const std::string &networkId, const std::string &universallyUniqueId,
|
/base/msdp/device_status/services/interaction/coordination/include/ |
D | coordination_sm.h | 130 void OnCoordinationChanged(const std::string &networkId, bool isOpen); 135 void OnDeviceOnline(const std::string &networkId); 136 void OnDeviceOffline(const std::string &networkId); 141 void Reset(const std::string &networkId); 166 void OnCloseCoordination(const std::string &networkId, bool isLocal);
|
D | coordination_state_free.h | 28 int32_t DeactivateCoordination(const std::string &networkId, bool isUnchained,
|
D | i_coordination_state.h | 40 virtual int32_t DeactivateCoordination(const std::string &networkId, bool isUnchained, in DeactivateCoordination() argument
|
/base/msdp/device_status/frameworks/js/napi/interaction/coordination/include/ |
D | js_coordination_manager.h | 38 …napi_value GetCrossingSwitchState(napi_env env, const std::string &networkId, napi_value handle = …
|
/base/msdp/device_status/frameworks/js/napi/interaction/coordination/src/ |
D | js_coordination_manager.cpp | 91 napi_value JsCoordinationManager::GetCrossingSwitchState(napi_env env, const std::string &networkId… in GetCrossingSwitchState() argument 98 int32_t errCode = INTERACTION_MGR->GetCoordinationState(networkId, callback); in GetCrossingSwitchState()
|
D | js_coordination_context.cpp | 187 char networkId[MAX_STRING_LEN] = { 0 }; in GetCrossingSwitchState() local 189 CHKRP(napi_get_value_string_utf8(env, argv[ZERO_PARAM], networkId, in GetCrossingSwitchState() 190 sizeof(networkId), &length), GET_VALUE_STRING_UTF8); in GetCrossingSwitchState() 191 std::string networkId_ = networkId; in GetCrossingSwitchState()
|
/base/security/dataclassification/test/fuzztest/datatransmitmgr/datatransmitmgr_fuzzer/ |
D | datatransmitmgr_fuzzer.cpp | 39 …if (GetNodeKeyInfo(pkgName, info.networkId, NODE_KEY_UDID, (uint8_t *)(queryParams->udid), UDID_BU… in GetLocalUdid()
|
/base/telephony/ril_adapter/interfaces/innerkits/include/ |
D | hril_network_parcel.h | 296 int32_t networkId; member 532 int32_t networkId; member
|
/base/telephony/core_service/services/network_search/src/ |
D | cell_info.cpp | 420 int32_t &networkId = cellInfo->ServiceCellParas.cdma.networkId; in ProcessNeighboringCellCdma() local 423 cell->SetCdmaParam(baseId, latitude, longitude, networkId, systemId); in ProcessNeighboringCellCdma() 552 int32_t &networkId = cellInfo->ServiceCellParas.cdma.networkId; in ProcessCurrentCellCdma() local 557 cell->SetCdmaParam(baseId, latitude, longitude, networkId, systemId); in ProcessCurrentCellCdma() 566 baseId, networkId, pilotStrength); in ProcessCurrentCellCdma()
|