/foundation/deviceprofile/device_info_manager/common/src/utils/ |
H A D | ipc_utils.cpp | 59 bool IpcUtils::Marshalling(MessageParcel& parcel, const std::vector<ServiceProfile>& serviceProfiles) in Marshalling() argument 61 if (serviceProfiles.empty() || serviceProfiles.size() > MAX_PROFILE_SIZE) { in Marshalling() 62 HILOGE("profile size is invalid!size : %{public}zu", serviceProfiles.size()); in Marshalling() 65 uint32_t size = serviceProfiles.size(); in Marshalling() 67 for (const auto& profile : serviceProfiles) { in Marshalling() 173 bool IpcUtils::UnMarshalling(MessageParcel& parcel, std::vector<ServiceProfile>& serviceProfiles) in UnMarshalling() argument 186 serviceProfiles.emplace_back(serviceProfile); in UnMarshalling()
|
/foundation/deviceprofile/device_info_manager/common/include/utils/ |
H A D | ipc_utils.h | 42 static bool Marshalling(MessageParcel& parcel, const std::vector<ServiceProfile>& serviceProfiles); 50 static bool UnMarshalling(MessageParcel& parcel, std::vector<ServiceProfile>& serviceProfiles);
|
/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | device_profile_manager_test.cpp | 472 vector<ServiceProfile> serviceProfiles; in HWTEST_F() local 478 serviceProfiles.push_back(serviceProfile1); in HWTEST_F() 484 serviceProfiles.push_back(serviceProfile2); in HWTEST_F() 486 int32_t ret = DeviceProfileManager::GetInstance().PutServiceProfileBatch(serviceProfiles); in HWTEST_F() 489 ret = DeviceProfileManager::GetInstance().PutServiceProfileBatch(serviceProfiles); in HWTEST_F() 501 vector<ServiceProfile> serviceProfiles; in HWTEST_F() local 506 serviceProfiles.push_back(serviceProfile1); in HWTEST_F() 513 serviceProfiles.push_back(serviceProfile4); in HWTEST_F() 515 int32_t ret = DeviceProfileManager::GetInstance().PutServiceProfileBatch(serviceProfiles); in HWTEST_F() 1187 vector<ServiceProfile> serviceProfiles; in HWTEST_F() local 1201 vector<ServiceProfile> serviceProfiles; HWTEST_F() local 1217 vector<ServiceProfile> serviceProfiles; HWTEST_F() local [all...] |
H A D | distributed_device_profile_client_kv_test.cpp | 168 vector<ServiceProfile> serviceProfiles; in HWTEST_F() local 178 serviceProfiles.push_back(serviceProfile1); in HWTEST_F() 179 serviceProfiles.push_back(serviceProfile2); in HWTEST_F() 181 int32_t errCode = DistributedDeviceProfileClient::GetInstance().PutServiceProfileBatch(serviceProfiles); in HWTEST_F() 193 vector<ServiceProfile> serviceProfiles; in HWTEST_F() local 195 int32_t errCode = DistributedDeviceProfileClient::GetInstance().PutServiceProfileBatch(serviceProfiles); in HWTEST_F()
|
H A D | dp_profile_service_test.cpp | 196 std::vector<ServiceProfile> serviceProfiles; in HWTEST_F() local 197 int32_t ret = DistributedDeviceProfileServiceNew::GetInstance().PutServiceProfileBatch(serviceProfiles); in HWTEST_F()
|
H A D | distributed_device_profile_stub_new_test.cpp | 46 int32_t PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles) override;
142 int32_t MockDistributedDeviceProfileStubNew::PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles)
in PutServiceProfileBatch() argument 144 (void)serviceProfiles;
in PutServiceProfileBatch()
|
/foundation/deviceprofile/device_info_manager/services/core/include/utils/ |
H A D | profile_control_utils.h | 35 const std::vector<ServiceProfile>& serviceProfiles); 58 std::vector<ServiceProfile>& serviceProfiles);
|
/foundation/deviceprofile/device_info_manager/interfaces/innerkits/core/src/ |
H A D | distributed_device_profile_client.cpp | 217 int32_t DistributedDeviceProfileClient::PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles) in PutServiceProfileBatch() argument 224 if (serviceProfiles.empty() || serviceProfiles.size() > MAX_PROFILE_SIZE) { in PutServiceProfileBatch() 225 HILOGE("ServiceProfiles size is invalid!size: %{public}zu!", serviceProfiles.size()); in PutServiceProfileBatch() 228 return dpService->PutServiceProfileBatch(serviceProfiles); in PutServiceProfileBatch()
|
H A D | distributed_device_profile_proxy.cpp | 150 int32_t DistributedDeviceProfileProxy::PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles) in PutServiceProfileBatch() argument 156 if (!IpcUtils::Marshalling(data, serviceProfiles)) { in PutServiceProfileBatch()
|
/foundation/deviceprofile/device_info_manager/radar/include/ |
H A D | dp_radar_helper.h | 111 void ReportPutServiceProfileBatch(int32_t errCode, const std::vector<ServiceProfile>& serviceProfiles); 128 std::string GetPeerUdidList(const std::vector<ServiceProfile>& serviceProfiles);
|
/foundation/deviceprofile/device_info_manager/services/core/include/deviceprofilemanager/ |
H A D | device_profile_manager.h | 51 int32_t PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles); 63 int32_t GetAllServiceProfile(std::vector<ServiceProfile>& serviceProfiles);
|
/foundation/deviceprofile/device_info_manager/services/core/include/ |
H A D | distributed_device_profile_service_new.h | 53 int32_t PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles) override; 84 int32_t AddSvrProfilesToCache(const std::vector<ServiceProfile>& serviceProfiles);
|
/foundation/deviceprofile/device_info_manager/services/core/src/ |
H A D | distributed_device_profile_service_new.cpp | 303 int32_t DistributedDeviceProfileServiceNew::PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles) in PutServiceProfileBatch() argument 311 return AddSvrProfilesToCache(serviceProfiles); in PutServiceProfileBatch() 313 int32_t ret = DeviceProfileManager::GetInstance().PutServiceProfileBatch(serviceProfiles); in PutServiceProfileBatch() 314 DpRadarHelper::GetInstance().ReportPutServiceProfileBatch(ret, serviceProfiles); in PutServiceProfileBatch() 618 int32_t DistributedDeviceProfileServiceNew::AddSvrProfilesToCache(const std::vector<ServiceProfile>& serviceProfiles) in AddSvrProfilesToCache() argument 620 if (serviceProfiles.empty()) { in AddSvrProfilesToCache() 621 HILOGE("serviceProfiles empty"); in AddSvrProfilesToCache() 624 HILOGI("serviceProfiles.size:%{public}zu", serviceProfiles.size()); in AddSvrProfilesToCache() 626 for (const auto& item : serviceProfiles) { in AddSvrProfilesToCache() [all...] |
H A D | distributed_device_profile_stub_new.cpp | 328 std::vector<ServiceProfile> serviceProfiles; in PutServiceProfileBatchInner() local 329 if (!IpcUtils::UnMarshalling(data, serviceProfiles)) { in PutServiceProfileBatchInner() 333 int32_t ret = PutServiceProfileBatch(serviceProfiles); in PutServiceProfileBatchInner()
|
/foundation/deviceprofile/device_info_manager/radar/src/ |
H A D | dp_radar_helper.cpp | 533 void DpRadarHelper::ReportPutServiceProfileBatch(int32_t errCode, const std::vector<ServiceProfile>& serviceProfiles) in ReportPutServiceProfileBatch() argument 539 size_t size = serviceProfiles.size() > 0 ? (serviceProfiles.size() - 1) : 0; in ReportPutServiceProfileBatch() 540 for (size_t i = 0; i < serviceProfiles.size(); i++) { in ReportPutServiceProfileBatch() 541 extraInfo += serviceProfiles[i].dump(); in ReportPutServiceProfileBatch() 558 "PEER_UDID_LIST", GetPeerUdidList(serviceProfiles), in ReportPutServiceProfileBatch() 573 "PEER_UDID_LIST", GetPeerUdidList(serviceProfiles), in ReportPutServiceProfileBatch() 1152 std::string DpRadarHelper::GetPeerUdidList(const std::vector<ServiceProfile>& serviceProfiles) in GetPeerUdidList() argument 1154 if (serviceProfiles.size() == 0) { in GetPeerUdidList() 1171 for (size_t i = 0; i < serviceProfiles in GetPeerUdidList() [all...] |
/foundation/deviceprofile/device_info_manager/services/core/src/utils/ |
H A D | profile_control_utils.cpp | 84 const std::vector<ServiceProfile>& serviceProfiles) in PutServiceProfileBatch() 87 if (serviceProfiles.size() > MAX_SERVICE_SIZE) { in PutServiceProfileBatch() 88 HILOGE("serviceProfiles size is too large!"); in PutServiceProfileBatch() 91 for (const auto& serviceProfile : serviceProfiles) { in PutServiceProfileBatch() 500 std::vector<ServiceProfile>& serviceProfiles) in GetAllServiceProfile() 522 serviceProfiles.push_back(serviceProfile); in GetAllServiceProfile() 83 PutServiceProfileBatch(std::shared_ptr<IKVAdapter> kvStore, const std::vector<ServiceProfile>& serviceProfiles) PutServiceProfileBatch() argument 499 GetAllServiceProfile(std::shared_ptr<IKVAdapter> kvStore, std::vector<ServiceProfile>& serviceProfiles) GetAllServiceProfile() argument
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_base_test/ |
H A D | mock_distributed_device_profile_client.cpp | 66 int32_t DistributedDeviceProfileClient::PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles) in PutServiceProfileBatch() argument
|
/foundation/deviceprofile/device_info_manager/radar/test/unittest/ |
H A D | dp_radar_helper_test.cpp | 135 std::vector<ServiceProfile> serviceProfiles; in HWTEST_F() local 137 DpRadarHelper::GetInstance().ReportPutServiceProfileBatch(errCode, serviceProfiles); in HWTEST_F() 139 DpRadarHelper::GetInstance().ReportPutServiceProfileBatch(errCode, serviceProfiles); in HWTEST_F()
|
/foundation/deviceprofile/device_info_manager/interfaces/innerkits/core/include/ |
H A D | distributed_device_profile_client.h | 55 int32_t PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles);
|
H A D | distributed_device_profile_proxy.h | 51 int32_t PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles) override;
|
/foundation/deviceprofile/device_info_manager/common/include/interfaces/ |
H A D | i_distributed_device_profile.h | 47 virtual int32_t PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles) = 0;
|
/foundation/deviceprofile/device_info_manager/old/services/core/src/ |
H A D | distributed_device_profile_stub.cpp | 480 std::vector<ServiceProfile> serviceProfiles; in PutServiceProfileBatchInner() local 481 if (!IpcUtils::UnMarshalling(data, serviceProfiles)) { in PutServiceProfileBatchInner() 485 int32_t ret = DistributedDeviceProfileServiceNew::GetInstance().PutServiceProfileBatch(serviceProfiles); in PutServiceProfileBatchInner()
|
/foundation/deviceprofile/device_info_manager/services/core/src/deviceprofilemanager/ |
H A D | device_profile_manager.cpp | 161 int32_t DeviceProfileManager::PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles) in PutServiceProfileBatch() argument 165 for (const auto& serviceProfile : serviceProfiles) { in PutServiceProfileBatch() 351 int32_t DeviceProfileManager::GetAllServiceProfile(std::vector<ServiceProfile>& serviceProfiles) in GetAllServiceProfile() argument 357 res = ProfileControlUtils::GetAllServiceProfile(deviceProfileStore_, serviceProfiles); in GetAllServiceProfile() 360 HILOGE("serviceProfiles fail, reason: %{public}d!", res); in GetAllServiceProfile() 363 HILOGD("serviceProfiles success"); in GetAllServiceProfile()
|
/foundation/distributedhardware/device_manager/test/unittest/mock/ |
H A D | mock_distributed_device_profile_client.cpp | 642 int32_t DistributedDeviceProfileClient::PutServiceProfileBatch(const std::vector<ServiceProfile>& serviceProfiles) in PutServiceProfileBatch() argument
|