/base/security/access_token/tools/accesstoken/src/ |
H A D | to_string.cpp | 24 bool isAccessDetail, const std::vector<UsedRecordDetail>& detailRecord, std::string& infos) in DetailUsedRecordToString() 27 infos.append(R"( "accessRecords": [)"); in DetailUsedRecordToString() 29 infos.append(R"( "rejectRecords": [)"); in DetailUsedRecordToString() 31 infos.append("\n"); in DetailUsedRecordToString() 33 infos.append(" {"); in DetailUsedRecordToString() 34 infos.append("\n"); in DetailUsedRecordToString() 35 infos.append(R"( "status": ")" + std::to_string(detail.status) + R"(")" + ",\n"); in DetailUsedRecordToString() 36 infos.append(R"( "lockScreenStatus": ")" + std::to_string( in DetailUsedRecordToString() 38 infos.append(R"( "timestamp": ")" + std::to_string(detail.timestamp) + R"(")" + ",\n"); in DetailUsedRecordToString() 39 infos in DetailUsedRecordToString() 23 DetailUsedRecordToString( bool isAccessDetail, const std::vector<UsedRecordDetail>& detailRecord, std::string& infos) DetailUsedRecordToString() argument 50 PermissionUsedRecordToString( const std::vector<PermissionUsedRecord>& permissionRecords, std::string& infos) PermissionUsedRecordToString() argument 69 BundleUsedRecordToString(const BundleUsedRecord& bundleRecord, std::string& infos) BundleUsedRecordToString() argument 87 PermissionUsedResultToString(const PermissionUsedResult& result, std::string& infos) PermissionUsedResultToString() argument 109 PermissionUsedTypeInfoToString(const PermissionUsedTypeInfo& info, std::string& infos) PermissionUsedTypeInfoToString() argument [all...] |
/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | copy.cpp | 46 static int OpenSrcFile(const std::string &srcPth, std::shared_ptr<FileInfos> infos, int32_t &srcFd) in OpenSrcFile() argument 48 Uri uri(infos->srcUri); in OpenSrcFile() 77 std::shared_ptr<FileInfos> infos) in SendFileCore() 100 if (infos != nullptr && infos->taskSignal != nullptr) { in SendFileCore() 101 if (infos->taskSignal->CheckCancelIfNeed(infos->srcPath)) { in SendFileCore() 178 bool CopyImpl::CheckFileValid(const std::string &filePath, std::shared_ptr<FileInfos> infos) in CheckFileValid() argument 180 return infos->filePaths.count(filePath) != 0; in CheckFileValid() 228 int CopyImpl::CopySubDir(const std::string &srcPath, const std::string &destPath, std::shared_ptr<FileInfos> infos) in CopySubDir() argument 75 SendFileCore(std::unique_ptr<DistributedFS::FDGuard> srcFdg, std::unique_ptr<DistributedFS::FDGuard> destFdg, std::shared_ptr<FileInfos> infos) SendFileCore() argument 264 RecurCopyDir(const std::string &srcPath, const std::string &destPath, std::shared_ptr<FileInfos> infos) RecurCopyDir() argument 305 CopyDirFunc(const std::string &src, const std::string &dest, std::shared_ptr<FileInfos> infos) CopyDirFunc() argument 321 GetDirSize(std::shared_ptr<FileInfos> infos, std::string path) GetDirSize() argument 353 auto infos = FileManagement::CreateSharedPtr<FileInfos>(); InitCjFileInfo() local 379 ReceiveComplete(CProgress data, std::shared_ptr<FileInfos> infos, std::shared_ptr<CjCallbackObject> callback) ReceiveComplete() argument 399 OnFileReceive(std::shared_ptr<FileInfos> infos) OnFileReceive() argument 422 CopyFile(const std::string &src, const std::string &dest, std::shared_ptr<FileInfos> infos) CopyFile() argument 447 GetRegisteredListener(std::shared_ptr<FileInfos> infos) GetRegisteredListener() argument 458 HandleProgress( inotify_event *event, std::shared_ptr<FileInfos> infos, std::shared_ptr<CjCallbackObject> callback) HandleProgress() argument 488 ReadNotifyEvent(std::shared_ptr<FileInfos> infos) ReadNotifyEvent() argument 520 GetNotifyEvent(std::shared_ptr<FileInfos> infos) GetNotifyEvent() argument 553 StartNotify(std::shared_ptr<FileInfos> infos, std::shared_ptr<CjCallbackObject> callback) StartNotify() argument 562 ExecCopy(std::shared_ptr<FileInfos> infos) ExecCopy() argument 581 RegisterListener(std::shared_ptr<FileInfos>& infos) RegisterListener() argument 598 UnregisterListener(std::shared_ptr<FileInfos> infos) UnregisterListener() argument 618 DoCopy(std::shared_ptr<FileInfos> infos, std::shared_ptr<CjCallbackObject> callback) DoCopy() argument 640 ExecLocal(std::shared_ptr<FileInfos>& infos, std::shared_ptr<CjCallbackObject>& callback) ExecLocal() argument 661 SubscribeLocalListener(std::shared_ptr<FileInfos>& infos, std::shared_ptr<CjCallbackObject>& callback) SubscribeLocalListener() argument 702 CloseNotifyFd(std::shared_ptr<FileInfos>& infos, std::shared_ptr<CjCallbackObject>& callback) CloseNotifyFd() argument 718 CopyComplete(std::shared_ptr<FileInfos>& infos, std::shared_ptr<CjCallbackObject>& callback) CopyComplete() argument 734 std::shared_ptr<FileInfos> infos = InitCjFileInfo(src, dest, info); Copy() local [all...] |
H A D | copy.h | 105 bool operator==(const FileInfos &infos) const in operator ==() 107 return (srcUri == infos.srcUri && destUri == infos.destUri); in operator ==() 109 bool operator<(const FileInfos &infos) const in operator <() 111 if (srcUri == infos.srcUri) { in operator <() 112 return destUri < infos.destUri; in operator <() 114 return srcUri < infos.srcUri; in operator <() 138 static void StartNotify(std::shared_ptr<FileInfos> infos, std::shared_ptr<CjCallbackObject> callback); 140 static int64_t DoCopy(std::shared_ptr<FileInfos> infos, std::shared_ptr<CjCallbackObject> callback); 141 static int64_t ExecLocal(std::shared_ptr<FileInfos>& infos, st [all...] |
/base/security/huks/utils/file_iterative_reader/src/ |
H A D | hks_iterative_reader.c | 43 static void HksFreeFileInfoList(struct HksReadFileInfoList **infos) in HksFreeFileInfoList() argument 45 if (*infos == NULL) { in HksFreeFileInfoList() 48 if ((*infos)->infos != NULL && (*infos)->occu > 0) { in HksFreeFileInfoList() 49 for (uint32_t i = 0; i < (*infos)->occu; ++i) { in HksFreeFileInfoList() 50 HksFreeFileInfo(&(*infos)->infos[i]); in HksFreeFileInfoList() 53 HKS_FREE((*infos)->infos); in HksFreeFileInfoList() 59 struct HksReadFileInfoList *infos; HksInitFileInfoList() local 79 HksReAllocFileInfoList(struct HksReadFileInfoList *infos) HksReAllocFileInfoList() argument 94 AppendFilePath(const char *path, const char *fileName, struct HksReadFileInfoList *infos) AppendFilePath() argument 136 HksGetOldStoreFileInfo(const char *path, struct HksReadFileInfoList *infos) HksGetOldStoreFileInfo() argument [all...] |
/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/group_manager_test/src/ |
H A D | audio_group_manager_unit_test.cpp | 52 std::vector<sptr<VolumeGroupInfo>> infos; in HWTEST() local 53 AudioSystemManager::GetInstance()->GetVolumeGroups(networkId, infos); in HWTEST() 54 if (infos.size() > 0) { in HWTEST() 55 int32_t groupId = infos[0]->volumeGroupId_; in HWTEST() 83 std::vector<sptr<VolumeGroupInfo>> infos; in HWTEST() local 84 AudioSystemManager::GetInstance()->GetVolumeGroups(networkId, infos); in HWTEST() 85 if (infos.size() > 0) { in HWTEST() 86 int32_t groupId = infos[0]->volumeGroupId_; in HWTEST() 115 std::vector<sptr<VolumeGroupInfo>> infos; in HWTEST() local 116 AudioSystemManager::GetInstance()->GetVolumeGroups(networkId, infos); in HWTEST() 147 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 176 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 198 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 220 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 246 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 271 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 296 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 320 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 342 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 364 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 387 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 410 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 433 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 456 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 476 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 499 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 520 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 548 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 576 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 604 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 632 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 654 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 676 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 698 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 722 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 754 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 778 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 802 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 826 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local 848 std::vector<sptr<VolumeGroupInfo>> infos; HWTEST() local [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | copy.cpp | 62 static int OpenSrcFile(const string &srcPth, std::shared_ptr<FileInfos> infos, int32_t &srcFd) in OpenSrcFile() argument 64 Uri uri(infos->srcUri); in OpenSrcFile() 94 std::shared_ptr<FileInfos> infos) in SendFileCore() 117 if (infos != nullptr && infos->taskSignal != nullptr) { in SendFileCore() 118 if (infos->taskSignal->CheckCancelIfNeed(infos->srcPath)) { in SendFileCore() 252 int Copy::CopyFile(const string &src, const string &dest, std::shared_ptr<FileInfos> infos) in CopyFile() argument 256 int32_t ret = OpenSrcFile(src, infos, srcFd); in CopyFile() 274 return SendFileCore(move(srcFdg), move(destFdg), infos); in CopyFile() 92 SendFileCore(std::unique_ptr<DistributedFS::FDGuard> srcFdg, std::unique_ptr<DistributedFS::FDGuard> destFdg, std::shared_ptr<FileInfos> infos) SendFileCore() argument 288 CopySubDir(const string &srcPath, const string &destPath, std::shared_ptr<FileInfos> infos) CopySubDir() argument 369 GetDirSize(std::shared_ptr<FileInfos> infos, std::string path) GetDirSize() argument 398 RecurCopyDir(const string &srcPath, const string &destPath, std::shared_ptr<FileInfos> infos) RecurCopyDir() argument 428 CopyDirFunc(const string &src, const string &dest, std::shared_ptr<FileInfos> infos) CopyDirFunc() argument 444 ExecLocal(std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callback) ExecLocal() argument 473 SubscribeLocalListener(std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callback) SubscribeLocalListener() argument 516 RegisterListener(napi_env env, const std::shared_ptr<FileInfos> &infos) RegisterListener() argument 533 UnregisterListener(std::shared_ptr<FileInfos> infos) UnregisterListener() argument 593 GetUVwork(std::shared_ptr<FileInfos> infos) GetUVwork() argument 623 OnFileReceive(std::shared_ptr<FileInfos> infos) OnFileReceive() argument 652 CheckFileValid(const std::string &filePath, std::shared_ptr<FileInfos> infos) CheckFileValid() argument 680 GetRegisteredListener(std::shared_ptr<FileInfos> infos) GetRegisteredListener() argument 691 CloseNotifyFd(std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callback) CloseNotifyFd() argument 698 HandleProgress( inotify_event *event, std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callback) HandleProgress() argument 728 ReadNotifyEvent(std::shared_ptr<FileInfos> infos) ReadNotifyEvent() argument 760 GetNotifyEvent(std::shared_ptr<FileInfos> infos) GetNotifyEvent() argument 796 auto infos = CreateSharedPtr<FileInfos>(); CreateFileInfos() local 825 StartNotify(std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callback) StartNotify() argument 834 ExecCopy(std::shared_ptr<FileInfos> infos) ExecCopy() argument 891 CopyComplete(std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callback) CopyComplete() argument 902 std::shared_ptr<FileInfos> infos = nullptr; Async() local [all...] |
H A D | copy.h | 96 bool operator==(const FileInfos &infos) const in operator ==() 98 return (srcUri == infos.srcUri && destUri == infos.destUri); in operator ==() 100 bool operator<(const FileInfos &infos) const in operator <() 102 if (srcUri == infos.srcUri) { in operator <() 103 return destUri < infos.destUri; in operator <() 105 return srcUri < infos.srcUri; in operator <() 137 static int ExecLocal(std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callback); 138 static void CopyComplete(std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callback); 140 static void ReadNotifyEvent(std::shared_ptr<FileInfos> infos); [all...] |
/foundation/ability/ability_runtime/test/unittest/running_infos_test/ |
H A D | running_infos_test.cpp | 54 * FunctionPoints:query ability running infos 67 std::vector<AbilityRunningInfo> infos; in HWTEST_F() local 68 abilityMs_->GetAbilityRunningInfos(infos); in HWTEST_F() 70 EXPECT_TRUE(infos.size() == infoCount); in HWTEST_F() 71 if (infos.size() == infoCount) { in HWTEST_F() 72 EXPECT_TRUE(infos[0].ability.GetAbilityName() == element.GetAbilityName()); in HWTEST_F() 73 EXPECT_TRUE(infos[0].abilityState == static_cast<int>(AbilityState::INITIAL)); in HWTEST_F() 82 * FunctionPoints:query ability running infos 95 std::vector<AbilityRunningInfo> infos; in HWTEST_F() local 96 abilityMs_->GetAbilityRunningInfos(infos); in HWTEST_F() 123 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 163 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 197 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 239 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 273 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 302 std::vector<ExtensionRunningInfo> infos; HWTEST_F() local 334 std::vector<ExtensionRunningInfo> infos; HWTEST_F() local 361 std::vector<RunningProcessInfo> infos; HWTEST_F() local 384 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 416 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 447 std::vector<ExtensionRunningInfo> infos; HWTEST_F() local 481 std::vector<ExtensionRunningInfo> infos; HWTEST_F() local 513 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 553 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 597 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 637 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 692 std::vector<AbilityRunningInfo> infos; HWTEST_F() local [all...] |
/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/ |
H A D | net_stats_history_test.cpp | 54 std::vector<NetStatsInfo> infos; in HWTEST_F() local 55 int32_t ret = history->GetHistory(infos); in HWTEST_F() 56 std::for_each(infos.begin(), infos.end(), [](const auto &info) { std::cout << info.UidData() << std::endl; }); in HWTEST_F() 63 std::vector<NetStatsInfo> infos; in HWTEST_F() local 65 int32_t ret = history->GetHistory(infos, currentTime - TIME_CYCLE, currentTime + TIME_CYCLE); in HWTEST_F() 66 std::for_each(infos.begin(), infos.end(), [](const auto &info) { std::cout << info.UidData() << std::endl; }); in HWTEST_F() 73 std::vector<NetStatsInfo> infos; in HWTEST_F() local 74 int32_t ret = history->GetHistory(infos, 115 in HWTEST_F() 82 std::vector<NetStatsInfo> infos; HWTEST_F() local 92 std::vector<NetStatsInfo> infos; HWTEST_F() local 101 std::vector<NetStatsInfo> infos; HWTEST_F() local 111 std::vector<NetStatsInfo> infos; HWTEST_F() local 120 std::vector<NetStatsInfo> infos; HWTEST_F() local 130 std::vector<NetStatsInfo> infos; HWTEST_F() local 140 std::vector<NetStatsInfo> infos; HWTEST_F() local [all...] |
H A D | net_stats_data_handler_test.cpp | 166 std::vector<NetStatsInfo> infos; in HWTEST_F() local 167 int32_t ret = handler.ReadStatsData(infos, 0, LONG_MAX); in HWTEST_F() 168 std::cout << "Data size: " << infos.size() << std::endl; in HWTEST_F() 169 std::for_each(infos.begin(), infos.end(), [](const auto &info) { std::cout << info.UidData() << std::endl; }); in HWTEST_F() 176 std::vector<NetStatsInfo> infos; in HWTEST_F() local 178 int32_t ret = handler.ReadStatsData(infos, iface, 0, LONG_MAX); in HWTEST_F() 179 std::cout << "Data size: " << infos.size() << std::endl; in HWTEST_F() 180 std::for_each(infos.begin(), infos in HWTEST_F() 187 std::vector<NetStatsInfo> infos; HWTEST_F() local 198 std::vector<NetStatsInfo> infos; HWTEST_F() local 210 std::vector<NetStatsInfo> infos; HWTEST_F() local 222 std::vector<NetStatsInfo> infos; HWTEST_F() local 233 std::vector<NetStatsInfo> infos; HWTEST_F() local [all...] |
H A D | net_stats_database_helper_test.cpp | 111 std::vector<NetStatsInfo> infos; in HWTEST_F() local 112 int32_t ret = helper->SelectData(infos, UID_TABLE, 0, LONG_MAX); in HWTEST_F() 114 for (auto const &info : infos) { in HWTEST_F() 118 infos.clear(); in HWTEST_F() 120 ret = helper->SelectData(infos, UID_TABLE, date, LONG_MAX); in HWTEST_F() 122 ret = helper->SelectData(infos, "", date, LONG_MAX); in HWTEST_F() 130 std::vector<NetStatsInfo> infos; in HWTEST_F() local 132 int32_t ret = helper->SelectData(uid, 0, LONG_MAX, infos); in HWTEST_F() 134 infos.clear(); in HWTEST_F() 136 ret = helper->SelectData(uid, date, LONG_MAX, infos); in HWTEST_F() 144 std::vector<NetStatsInfo> infos; HWTEST_F() local 158 std::vector<NetStatsInfo> infos; HWTEST_F() local 173 std::vector<NetStatsInfo> infos; HWTEST_F() local 189 std::vector<NetStatsInfo> infos; HWTEST_F() local 208 std::vector<NetStatsInfo> infos; HWTEST_F() local 225 std::vector<NetStatsInfo> infos; HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/ |
H A D | bms_bundle_install_device_type_test.cpp | 43 static void SetDeviceTypes(std::unordered_map<std::string, InnerBundleInfo> &infos,
79 void BmsBundleInstallDeviceTypeTest::SetDeviceTypes(std::unordered_map<std::string, InnerBundleInfo> &infos,
in SetDeviceTypes() argument 88 infos[TEST_BUNDLE_NAME] = innerBundleInfo;
in SetDeviceTypes() 100 std::unordered_map<std::string, InnerBundleInfo> infos;
in HWTEST_F() local 102 SetDeviceTypes(infos, vec);
in HWTEST_F() 106 auto ret = checker.CheckDeviceType(infos);
in HWTEST_F() 120 std::unordered_map<std::string, InnerBundleInfo> infos;
in HWTEST_F() local 122 SetDeviceTypes(infos, vec);
in HWTEST_F() 127 auto ret = checker.CheckDeviceType(infos);
in HWTEST_F() 141 std::unordered_map<std::string, InnerBundleInfo> infos;
in HWTEST_F() local 162 std::unordered_map<std::string, InnerBundleInfo> infos; HWTEST_F() local 183 std::unordered_map<std::string, InnerBundleInfo> infos; HWTEST_F() local 204 std::unordered_map<std::string, InnerBundleInfo> infos; HWTEST_F() local 225 std::unordered_map<std::string, InnerBundleInfo> infos; HWTEST_F() local 244 std::unordered_map<std::string, InnerBundleInfo> infos; HWTEST_F() local 261 std::unordered_map<std::string, InnerBundleInfo> infos; HWTEST_F() local 278 std::unordered_map<std::string, InnerBundleInfo> infos; HWTEST_F() local 295 std::unordered_map<std::string, InnerBundleInfo> infos; HWTEST_F() local 312 std::unordered_map<std::string, InnerBundleInfo> infos; HWTEST_F() local 329 std::unordered_map<std::string, InnerBundleInfo> infos; HWTEST_F() local 346 std::unordered_map<std::string, InnerBundleInfo> infos; HWTEST_F() local 363 std::unordered_map<std::string, InnerBundleInfo> infos; HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/default_app/ |
H A D | default_app_rdb.cpp | 48 bool DefaultAppRdb::GetDefaultApplicationInfos(int32_t userId, std::map<std::string, Element>& infos) in GetDefaultApplicationInfos() argument 51 bool ret = GetDataFromDb(userId, infos); in GetDefaultApplicationInfos() 65 std::map<std::string, Element> infos; in GetDefaultApplicationInfo() local 66 bool ret = GetDefaultApplicationInfos(userId, infos); in GetDefaultApplicationInfo() 72 if (infos.find(type) == infos.end()) { in GetDefaultApplicationInfo() 77 element = infos.find(type)->second; in GetDefaultApplicationInfo() 82 bool DefaultAppRdb::SetDefaultApplicationInfos(int32_t userId, const std::map<std::string, Element>& infos) in SetDefaultApplicationInfos() argument 85 bool ret = SaveDataToDb(userId, infos); in SetDefaultApplicationInfos() 98 std::map<std::string, Element> infos; in SetDefaultApplicationInfo() local 134 std::map<std::string, Element> infos; DeleteDefaultApplicationInfo() local 169 std::map<std::string, Element> infos; ConvertMimeTypeToUtd() local 231 std::map<std::string, Element> infos; LoadDefaultApplicationConfig() local 265 GetDataFromDb(int32_t userId, std::map<std::string, Element>& infos) GetDataFromDb() argument 292 SaveDataToDb(int32_t userId, const std::map<std::string, Element>& infos) SaveDataToDb() argument [all...] |
/foundation/ability/ability_runtime/test/moduletest/running_infos_module_test/ |
H A D | running_infos_module_test.cpp | 188 * FunctionPoints:query ability running infos 203 std::vector<AbilityRunningInfo> infos; in HWTEST_F() local 204 abilityMgrServ_->GetAbilityRunningInfos(infos); in HWTEST_F() 206 EXPECT_TRUE(infos.size() == infoCount); in HWTEST_F() 207 if (infos.size() == infoCount) { in HWTEST_F() 208 EXPECT_TRUE(infos[0].ability.GetAbilityName() == abilityName); in HWTEST_F() 209 EXPECT_TRUE(infos[0].abilityState == static_cast<int>(AbilityState::INITIAL)); in HWTEST_F() 217 * FunctionPoints:query ability running infos 231 std::vector<AbilityRunningInfo> infos; in HWTEST_F() local 232 abilityMgrServ_->GetAbilityRunningInfos(infos); in HWTEST_F() 259 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 298 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 334 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 375 std::vector<AbilityRunningInfo> infos; HWTEST_F() local 405 std::vector<ExtensionRunningInfo> infos; HWTEST_F() local 439 std::vector<ExtensionRunningInfo> infos; HWTEST_F() local 467 std::vector<RunningProcessInfo> infos; HWTEST_F() local [all...] |
/foundation/barrierfree/accessibility/frameworks/aafwk/test/unittest/ |
H A D | accessibility_element_operator_callback_impl_extension_test.cpp | 74 std::vector<AccessibilityElementInfo> infos; in HWTEST_F() local 76 infos.push_back(info); in HWTEST_F() 77 instance_->SetSearchElementInfoByAccessibilityIdResult(infos, SEQUENCE_NUM); in HWTEST_F() 95 std::vector<AccessibilityElementInfo> infos; in HWTEST_F() local 97 infos.push_back(info); in HWTEST_F() 98 instance_->SetSearchElementInfoByTextResult(infos, SEQUENCE_NUM); in HWTEST_F() 116 std::vector<AccessibilityElementInfo> infos; in HWTEST_F() local 118 infos.push_back(info); in HWTEST_F() 137 std::vector<AccessibilityElementInfo> infos; in HWTEST_F() local 139 infos in HWTEST_F() 158 std::vector<AccessibilityElementInfo> infos; HWTEST_F() local 181 std::vector<AccessibilityElementInfo> infos; HWTEST_F() local 202 std::vector<AccessibilityElementInfo> infos; HWTEST_F() local 223 std::vector<AccessibilityElementInfo> infos; HWTEST_F() local 244 std::vector<AccessibilityElementInfo> infos; HWTEST_F() local 265 std::vector<AccessibilityElementInfo> infos; HWTEST_F() local [all...] |
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/ |
H A D | get_ram_info.cpp | 30 uint64_t GetRamInfo::GetGroupMapValue(const GroupMap &infos, const vector<string> keys) const in GetGroupMapValue() argument 33 for (const auto &info : infos) { in GetGroupMapValue() 45 uint64_t GetRamInfo::GetValueMapValue(const ValueMap &infos, const vector<string> strs) const in GetValueMapValue() argument 49 auto it = infos.find(str); in GetValueMapValue() 50 if (it != infos.end()) { in GetValueMapValue() 61 uint64_t GetRamInfo::GetTotalPss(const GroupMap &infos) const in GetTotalPss() 63 uint64_t totalValue = GetGroupMapValue(infos, MemoryFilter::GetInstance().CALC_TOTAL_PSS_); in GetTotalPss() 67 uint64_t GetRamInfo::GetTotalSwapPss(const GroupMap &infos) const in GetTotalSwapPss() 69 uint64_t totalValue = GetGroupMapValue(infos, MemoryFilter::GetInstance().CALC_TOTAL_SWAP_PSS_); in GetTotalSwapPss() 73 uint64_t GetRamInfo::GetFreeInfo(const ValueMap &infos) cons [all...] |
/test/xts/hats/hdf/camera/cameraMg/v1_1/src/ |
H A D | hdi_common_v1_1.cpp | 150 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos)
in DefaultPreview() 152 infos->v1_0.streamId_ = streamIdPreview;
in DefaultPreview() 153 infos->v1_0.width_ = previewWidth;
in DefaultPreview() 154 infos->v1_0.height_ = previewHeight;
in DefaultPreview() 155 infos->v1_0.format_ = previewFormat;
in DefaultPreview() 156 infos->v1_0.dataspace_ = UT_DATA_SIZE;
in DefaultPreview() 157 infos->v1_0.intent_ = StreamIntent::PREVIEW;
in DefaultPreview() 158 infos->v1_0.tunneledMode_ = UT_TUNNEL_MODE;
in DefaultPreview() 162 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos)
in DefaultCapture() 164 infos in DefaultCapture() 149 DefaultPreview( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultPreview() argument 161 DefaultCapture( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultCapture() argument 173 DefaultInfosPreview( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosPreview() argument 186 DefaultInfosCapture( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosCapture() argument 199 DefaultInfosVideo( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosVideo() argument 218 DefaultInfosAnalyze( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosAnalyze() argument 476 OnCaptureEnded(int32_t captureId, const std::vector<CaptureEndedInfo> &infos) OnCaptureEnded() argument 485 OnCaptureError(int32_t captureId, const std::vector<CaptureErrorInfo> &infos) OnCaptureError() argument [all...] |
/foundation/multimedia/av_session/services/session/server/test/ |
H A D | focus_session_strategy_test.cpp | 61 AudioRendererChangeInfos infos; in HWTEST_F() local 62 infos.push_back(std::move(info)); in HWTEST_F() 64 focusSessionStrategy.HandleAudioRenderStateChangeEvent(infos); in HWTEST_F() 81 AudioRendererChangeInfos infos; in HWTEST_F() local 82 infos.push_back(std::move(info)); in HWTEST_F() 86 focusSessionStrategy.HandleAudioRenderStateChangeEvent(infos); in HWTEST_F() 103 AudioRendererChangeInfos infos; in HWTEST_F() local 104 infos.push_back(std::move(info)); in HWTEST_F() 106 focusSessionStrategy.HandleAudioRenderStateChangeEvent(infos); in HWTEST_F() 123 AudioRendererChangeInfos infos; in HWTEST_F() local 151 AudioRendererChangeInfos infos; HWTEST_F() local 173 AudioRendererChangeInfos infos; HWTEST_F() local 205 AudioRendererChangeInfos infos; HWTEST_F() local [all...] |
/test/xts/hats/hdf/camera/cameraMg_additional/v1_1/src/ |
H A D | hdi_common_v1_1.cpp | 150 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) in DefaultPreview() 152 infos->v1_0.streamId_ = streamIdPreview; in DefaultPreview() 153 infos->v1_0.width_ = previewWidth; in DefaultPreview() 154 infos->v1_0.height_ = previewHeight; in DefaultPreview() 155 infos->v1_0.format_ = previewFormat; in DefaultPreview() 156 infos->v1_0.dataspace_ = UT_DATA_SIZE; in DefaultPreview() 157 infos->v1_0.intent_ = StreamIntent::PREVIEW; in DefaultPreview() 158 infos->v1_0.tunneledMode_ = UT_TUNNEL_MODE; in DefaultPreview() 162 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) in DefaultCapture() 164 infos in DefaultCapture() 149 DefaultPreview( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultPreview() argument 161 DefaultCapture( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultCapture() argument 173 DefaultInfosPreview( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosPreview() argument 185 DefaultInfosCapture( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosCapture() argument 197 DefaultInfosVideo( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosVideo() argument 216 DefaultInfosAnalyze( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosAnalyze() argument 472 OnCaptureEnded(int32_t captureId, const std::vector<CaptureEndedInfo> &infos) OnCaptureEnded() argument 481 OnCaptureError(int32_t captureId, const std::vector<CaptureErrorInfo> &infos) OnCaptureError() argument [all...] |
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_generate_helper.cpp | 83 vector<ThumbnailData> infos; in CreateThumbnailBackground() local 84 int32_t err = GetNoThumbnailData(opts, infos); in CreateThumbnailBackground() 90 if (infos.empty()) { in CreateThumbnailBackground() 95 for (uint32_t i = 0; i < infos.size(); i++) { in CreateThumbnailBackground() 96 opts.row = infos[i].id; in CreateThumbnailBackground() 97 infos[i].loaderOpts.loadingStates = infos[i].isLocalFile ? SourceLoader::LOCAL_SOURCE_LOADING_STATES : in CreateThumbnailBackground() 100 opts, infos[i], ThumbnailTaskType::BACKGROUND, ThumbnailTaskPriority::LOW); in CreateThumbnailBackground() 114 vector<ThumbnailData> infos; in CreateAstcBackground() local 115 int32_t err = GetNoAstcData(opts, infos); in CreateAstcBackground() 194 vector<ThumbnailData> infos; CreateAstcBatchOnDemand() local 228 vector<ThumbnailData> infos; CreateLcdBackground() local 606 vector<ThumbnailData> infos; GenerateHighlightThumbnailBackground() local 656 vector<ThumbnailData> infos; UpgradeThumbnailBackground() local 685 vector<ThumbnailData> infos; RestoreAstcDualFrame() local [all...] |
/base/hiviewdfx/hidumper/frameworks/native/include/executor/memory/ |
H A D | get_ram_info.h | 45 uint64_t GetGroupMapValue(const GroupMap &infos, const std::vector<std::string> keys) const; 46 uint64_t GetValueMapValue(const ValueMap &infos, const std::vector<std::string> strs) const; 47 uint64_t GetTotalPss(const GroupMap &infos) const; 48 uint64_t GetTotalSwapPss(const GroupMap &infos) const; 49 uint64_t GetFreeInfo(const ValueMap &infos) const; 50 uint64_t GetKernelUsedInfo(const ValueMap &infos) const; 51 uint64_t GetCachedInfo(const ValueMap &infos) const; 52 uint64_t GetKreclInfo(const ValueMap &infos) const; 53 uint64_t GetSreclInfo(const ValueMap &infos) const; 54 uint64_t GetMappedInfo(const ValueMap &infos) cons [all...] |
/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/ |
H A D | subscribe_info_checker_test.cpp | 72 std::list<SubscribeInfo> infos(1, subInfo); in HWTEST_F() 73 bool ret = SubscribeInfoChecker::GetInstance().Check(infos); in HWTEST_F() 91 std::list<SubscribeInfo> infos(1, subInfo); in HWTEST_F() 92 bool ret = SubscribeInfoChecker::GetInstance().Check(infos); in HWTEST_F() 110 std::list<SubscribeInfo> infos(1, subInfo); in HWTEST_F() 111 bool ret = SubscribeInfoChecker::GetInstance().Check(infos); in HWTEST_F() 129 std::list<SubscribeInfo> infos(1, subInfo); in HWTEST_F() 130 bool ret = SubscribeInfoChecker::GetInstance().Check(infos); in HWTEST_F() 147 std::list<SubscribeInfo> infos(1, subInfo); in HWTEST_F() 148 bool ret = SubscribeInfoChecker::GetInstance().Check(infos); in HWTEST_F() [all...] |
/foundation/communication/netmanager_base/services/netstatsmanager/src/ |
H A D | net_stats_data_handler.cpp | 29 int32_t NetStatsDataHandler::ReadStatsData(std::vector<NetStatsInfo> &infos, uint64_t start, uint64_t end) in ReadStatsData() argument 36 return helper->SelectData(infos, UID_TABLE, start, end); in ReadStatsData() 39 int32_t NetStatsDataHandler::ReadStatsData(std::vector<NetStatsInfo> &infos, uint64_t uid, uint64_t start, uint64_t end) in ReadStatsData() argument 46 return helper->SelectData(uid, start, end, infos); in ReadStatsData() 49 int32_t NetStatsDataHandler::ReadStatsData(std::vector<NetStatsInfo> &infos, const std::string &iface, uint64_t start, in ReadStatsData() argument 61 return helper->SelectData(iface, start, end, infos); in ReadStatsData() 64 int32_t NetStatsDataHandler::ReadStatsData(std::vector<NetStatsInfo> &infos, const std::string &iface, in ReadStatsData() argument 76 return helper->SelectData(iface, uid, start, end, infos); in ReadStatsData() 79 int32_t NetStatsDataHandler::ReadStatsDataByIdent(std::vector<NetStatsInfo> &infos, const std::string &ident, in ReadStatsDataByIdent() argument 90 ret1 = helper->QueryData(UID_TABLE, ident, start, end, infos); in ReadStatsDataByIdent() 101 ReadStatsData(std::vector<NetStatsInfo> &infos, uint32_t uid, const std::string &ident, uint64_t start, uint64_t end) ReadStatsData() argument 129 WriteStatsData(const std::vector<NetStatsInfo> &infos, const std::string &tableName) WriteStatsData() argument [all...] |
/test/xts/hats/hdf/camera/cameraMg/v1_2/src/ |
H A D | hdi_common_v1_2.cpp | 204 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos)
in DefaultPreview() 206 infos->v1_0.streamId_ = streamIdPreview;
in DefaultPreview() 207 infos->v1_0.width_ = previewWidth;
in DefaultPreview() 208 infos->v1_0.height_ = previewHeight;
in DefaultPreview() 209 infos->v1_0.format_ = previewFormat;
in DefaultPreview() 210 infos->v1_0.dataspace_ = UT_DATA_SIZE;
in DefaultPreview() 211 infos->v1_0.intent_ = StreamIntent::PREVIEW;
in DefaultPreview() 212 infos->v1_0.tunneledMode_ = UT_TUNNEL_MODE;
in DefaultPreview() 216 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos)
in DefaultCapture() 218 infos in DefaultCapture() 203 DefaultPreview( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultPreview() argument 215 DefaultCapture( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultCapture() argument 227 DefaultSketch( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultSketch() argument 239 DefaultInfosSketch( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosSketch() argument 251 DefaultInfosPreviewV1_2( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosPreviewV1_2() argument 262 DefaultInfosPreview( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosPreview() argument 274 DefaultInfosCapture( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosCapture() argument 286 DefaultInfosVideo( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosVideo() argument 305 DefaultInfosAnalyze( std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) DefaultInfosAnalyze() argument 615 OnCaptureEnded(int32_t captureId, const std::vector<CaptureEndedInfo> &infos) OnCaptureEnded() argument 624 OnCaptureError(int32_t captureId, const std::vector<CaptureErrorInfo> &infos) OnCaptureError() argument 651 OnCaptureEnded(int32_t captureId, const std::vector<CaptureEndedInfo> &infos) OnCaptureEnded() argument 661 OnCaptureError(int32_t captureId, const std::vector<CaptureErrorInfo> &infos) OnCaptureError() argument 681 OnCaptureStarted_V1_2(int32_t captureId, const std::vector<HDI::Camera::V1_2::CaptureStartedInfo> &infos) OnCaptureStarted_V1_2() argument [all...] |
/foundation/ability/ability_runtime/test/unittest/js_ui_service_proxy_test/ |
H A D | js_ui_service_proxy_test.cpp | 160 auto infos = std::make_shared<AAFwk::JsUIServiceProxy>(impl, hostProxy); in HWTEST_F() local 162 napi_value result = infos->CreateJsUIServiceProxy(env_, impl, connectionId, hostProxy); in HWTEST_F() 177 auto infos = std::make_shared<AAFwk::JsUIServiceProxy>(impl, hostProxy); in HWTEST_F() local 184 napi_value result = infos->CreateJsUIServiceProxy(env, impl, connectionId, hostProxy); in HWTEST_F() 199 auto infos = std::make_shared<AAFwk::JsUIServiceProxy>(impl, hostProxy); in HWTEST_F() local 200 infos->Finalizer(env_, nullptr, nullptr); in HWTEST_F() 201 EXPECT_NE(infos, nullptr); in HWTEST_F() 215 auto infos = std::make_shared<AAFwk::JsUIServiceProxy>(impl, hostProxy); in HWTEST_F() local 217 napi_value result = infos->SendData(env_, info); in HWTEST_F() 232 auto infos in HWTEST_F() local 252 auto infos = std::make_shared<AAFwk::JsUIServiceProxy>(impl, hostProxy); HWTEST_F() local 271 auto infos = std::make_shared<AAFwk::JsUIServiceProxy>(impl, hostProxy); HWTEST_F() local [all...] |