| /base/security/access_token/tools/accesstoken/src/ |
| D | to_string.cpp | 24 bool isAccessDetail, const std::vector<UsedRecordDetail>& detailRecord, std::string& infos) in DetailUsedRecordToString() argument 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.append(R"( "duration": )" + std::to_string(detail.accessDuration) + ",\n"); in DetailUsedRecordToString() [all …]
|
| /base/security/huks/utils/file_iterative_reader/src/ |
| D | hks_iterative_reader.c | 44 static void HksFreeFileInfoList(struct HksReadFileInfoList **infos) in HksFreeFileInfoList() argument 46 if (*infos == NULL) { in HksFreeFileInfoList() 49 if ((*infos)->infos != NULL && (*infos)->occu > 0) { in HksFreeFileInfoList() 50 for (uint32_t i = 0; i < (*infos)->occu; ++i) { in HksFreeFileInfoList() 51 HksFreeFileInfo(&(*infos)->infos[i]); in HksFreeFileInfoList() 54 HKS_FREE((*infos)->infos); in HksFreeFileInfoList() 55 HKS_FREE(*infos); in HksFreeFileInfoList() 60 struct HksReadFileInfoList *infos; in HksInitFileInfoList() local 62 infos = (struct HksReadFileInfoList *)HksMalloc(sizeof(struct HksReadFileInfoList)); in HksInitFileInfoList() 63 if (infos == NULL) { in HksInitFileInfoList() [all …]
|
| /base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/ |
| 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) const in GetFreeInfo() [all …]
|
| D | get_kernel_info.cpp | 33 * @param {ValueMap} &infos-the meminfo 37 bool GetKernelInfo::GetKernel(const ValueMap &infos, uint64_t &totalValue) in GetKernel() argument 40 auto it = infos.find(str); in GetKernel() 41 if (it != infos.end()) { in GetKernel()
|
| D | memory_util.cpp | 74 …oryUtil::CalcGroup(const string &group, const string &type, const uint64_t &value, GroupMap &infos) in CalcGroup() argument 76 if (infos.find(group) == infos.end()) { in CalcGroup() 79 infos.insert(pair<string, map<string, uint64_t>>(group, valueMap)); in CalcGroup() 81 if (infos[group].find(type) == infos[group].end()) { in CalcGroup() 82 infos[group].insert(pair<string, uint64_t>(type, value)); in CalcGroup() 84 infos[group][type] += value; in CalcGroup()
|
| D | get_process_info.cpp | 30 * @param {GroupMap} &infos-Smaps information 33 uint64_t GetProcessInfo::GetProcess(const GroupMap &infos) const in GetProcess() 36 for (const auto &info : infos) { in GetProcess()
|
| /base/hiviewdfx/hidumper/frameworks/native/include/executor/memory/ |
| 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) const; [all …]
|
| /base/useriam/user_auth_framework/test/unittest/services/src/ |
| D | resource_node_utils_test.cpp | 48 std::vector<std::shared_ptr<CredentialInfoInterface>> infos; variable 50 int32_t result = ResourceNodeUtils::NotifyExecutorToDeleteTemplates(infos, changeReason); 60 std::vector<std::shared_ptr<CredentialInfoInterface>> infos; variable 61 infos.push_back(credInfo); 63 int32_t result = ResourceNodeUtils::NotifyExecutorToDeleteTemplates(infos, changeReason); 79 std::vector<std::shared_ptr<CredentialInfoInterface>> infos; variable 80 infos.push_back(credInfo1); 81 infos.push_back(credInfo2); 96 int32_t result = ResourceNodeUtils::NotifyExecutorToDeleteTemplates(infos, changeReason); 137 std::vector<std::shared_ptr<CredentialInfoInterface>> infos; variable [all …]
|
| D | auth_widget_helper_test.cpp | 115 std::vector<HdiCredentialInfo> infos = {}; in __anon930617900102() local 124 infos.push_back(temp); in __anon930617900102() 125 list.swap(infos); in __anon930617900102() 152 std::vector<HdiCredentialInfo> infos = {}; in __anon930617900202() local 161 infos.push_back(temp); in __anon930617900202() 162 list.swap(infos); in __anon930617900202() 188 std::vector<HdiCredentialInfo> infos = {}; in __anon930617900302() local 197 infos.push_back(temp); in __anon930617900302() 198 list.swap(infos); in __anon930617900302() 234 std::vector<HdiCredentialInfo> infos = {}; in __anon930617900502() local [all …]
|
| /base/security/access_token/tools/accesstoken/include/ |
| D | to_string.h | 30 bool isAccessDetail, const std::vector<UsedRecordDetail>& detailRecord, std::string& infos); 32 const std::vector<PermissionUsedRecord>& permissionRecords, std::string& infos); 33 static void BundleUsedRecordToString(const BundleUsedRecord& bundleRecord, std::string& infos); 34 … static void PermissionUsedResultToString(const PermissionUsedResult& result, std::string& infos); 35 …static void PermissionUsedTypeInfoToString(const PermissionUsedTypeInfo& type, std::string& infos);
|
| /base/hiviewdfx/hisysevent/test/unittest/common/napi/ |
| D | napi_hisysevent.test.js | 186 onQuery: function (infos) { argument 187 onQueryCallback(infos) 324 }], (infos) => { 325 expect(infos.length >= 0).assertTrue() 355 }], (infos) => { 356 expect(infos.length >= 0).assertTrue() 385 }], (infos) => { 386 expect(infos.length >= 0).assertTrue() 565 }], (infos) => { 566 expect(infos.length >= 0).assertTrue() [all …]
|
| /base/update/updater/services/updater_binary/ |
| D | update_image_block.cpp | 145 static int32_t GetUpdateBlockInfo(struct UpdateBlockInfo &infos, Uscript::UScriptEnv &env, in GetUpdateBlockInfo() argument 158 int32_t ret = context.GetParam(pos++, infos.partitionName); in GetUpdateBlockInfo() 163 ret = context.GetParam(pos++, infos.transferName); in GetUpdateBlockInfo() 168 ret = context.GetParam(pos++, infos.newDataName); in GetUpdateBlockInfo() 173 ret = context.GetParam(pos++, infos.patchDataName); in GetUpdateBlockInfo() 179 LOG(INFO) << "ExecuteUpdateBlock::updating " << infos.partitionName << " ..."; in GetUpdateBlockInfo() 180 infos.devPath = GetBlockDeviceByMountPoint(infos.partitionName); in GetUpdateBlockInfo() 182 if (infos.partitionName != "/userdata") { in GetUpdateBlockInfo() 185 infos.devPath += suffix; in GetUpdateBlockInfo() 188 infos.devPath = "/data/updater" + infos.partitionName; in GetUpdateBlockInfo() [all …]
|
| /base/update/updater/services/diffpatch/patch_shared/ |
| D | patch_shared.cpp | 86 static int GetUpdateBlockInfo(UpdateBlockInfo &infos, const std::string &packagePath, in GetUpdateBlockInfo() argument 107 infos.newDataName = "anco_hmos.new.dat"; in GetUpdateBlockInfo() 108 infos.patchDataName = "anco_hmos.patch.dat"; in GetUpdateBlockInfo() 110 infos.transferName = "anco_hmos.transfer.list"; in GetUpdateBlockInfo() 111 infos.devPath = srcImage; in GetUpdateBlockInfo() 112 infos.partitionName = "/anco_hmos"; in GetUpdateBlockInfo() 191 static int32_t DoExecuteUpdateBlock(const UpdateBlockInfo &infos, TransferManagerPtr tm, in DoExecuteUpdateBlock() argument 199 int32_t ret = ExecuteTransferCommand(fd, lines, tm, infos.partitionName, targetPath); in DoExecuteUpdateBlock() 205 PartitionRecord::GetInstance().RecordPartitionUpdateStatus(infos.partitionName, true); in DoExecuteUpdateBlock() 297 static int InitThread(const struct UpdateBlockInfo &infos, TransferManagerPtr tm) in InitThread() argument [all …]
|
| /base/security/security_guard/test/unittest/mock/data_collect/ |
| D | app_info_rdb_helper.h | 28 virtual int QueryAllAppInfo(std::vector<AppInfo> &infos) = 0; 29 virtual int QueryAppInfosByName(const std::string &appName, std::vector<AppInfo> &infos) = 0; 31 virtual int QueryAppInfoByAttribute(const std::string attr, std::vector<AppInfo> &infos) = 0; 33 virtual int InsertAllAppInfo(const std::vector<AppInfo> &infos) = 0;
|
| /base/security/access_token/interfaces/inner_api/el5filekeymanager/src/ |
| D | el5_filekey_callback_stub.cpp | 40 std::vector<AppKeyInfo> infos; in OnRemoteRequest() local 43 LOG_ERROR("Parse infos failed, results oversize %{public}d.", infosSize); in OnRemoteRequest() 52 infos.emplace_back(*info); in OnRemoteRequest() 54 OnRegenerateAppKey(infos); in OnRemoteRequest()
|
| /base/request/request/services/src/service/command/ |
| D | dump.rs | 68 let infos = match rx.get() { in dump_all_task_info() localVariable 69 Some(infos) => infos, in dump_all_task_info() 71 error!("Service dump: receives infos failed"); in dump_all_task_info() 72 sys_event!(ExecFault, DfxCode::UDS_FAULT_03, "Service dump: receives infos failed"); in dump_all_task_info() 76 let len = infos.vec.len(); in dump_all_task_info() 86 for info in infos.vec.iter() { in dump_all_task_info()
|
| /base/useriam/user_auth_framework/services/core/src/ |
| D | resource_node_utils.cpp | 29 … const std::vector<std::shared_ptr<CredentialInfoInterface>> &infos, std::string changeReasonTrace) in NotifyExecutorToDeleteTemplates() argument 32 if (infos.empty()) { in NotifyExecutorToDeleteTemplates() 33 IAM_LOGE("bad infos, infos size is 0"); in NotifyExecutorToDeleteTemplates() 37 for (const auto &info : infos) { in NotifyExecutorToDeleteTemplates() 86 const std::vector<std::shared_ptr<CredentialInfoInterface>> &infos) in SetCachedTemplates() argument 96 for (auto &info : infos) { in SetCachedTemplates()
|
| /base/security/access_token/services/el5filekeymanager/src/ |
| D | el5_filekey_callback_proxy.cpp | 31 void El5FilekeyCallbackProxy::OnRegenerateAppKey(std::vector<AppKeyInfo> &infos) in OnRegenerateAppKey() argument 38 if (!data.WriteUint32(infos.size())) { in OnRegenerateAppKey() 39 LOG_ERROR("Failed to WriteUint32(%{public}d).", static_cast<uint32_t>(infos.size())); in OnRegenerateAppKey() 42 for (AppKeyInfo info : infos) { in OnRegenerateAppKey()
|
| /base/startup/init/services/begetctl/ |
| D | modulectl.c | 53 const CmdInfo infos[] = { in MODULE_CONSTRUCTOR() local 61 for (size_t i = 0; i < sizeof(infos) / sizeof(infos[0]); i++) { in MODULE_CONSTRUCTOR() 62 BShellEnvRegisterCmd(GetShellHandle(), &infos[i]); in MODULE_CONSTRUCTOR()
|
| D | bootchart_cmd.c | 55 const CmdInfo infos[] = { in MODULE_CONSTRUCTOR() local 61 for (size_t i = 0; i < sizeof(infos) / sizeof(infos[0]); i++) { in MODULE_CONSTRUCTOR() 62 BShellEnvRegisterCmd(GetShellHandle(), &infos[i]); in MODULE_CONSTRUCTOR()
|
| D | init_cmd_reboot.c | 58 CmdInfo infos[] = { in MODULE_CONSTRUCTOR() local 70 for (size_t i = sizeof(infos) / sizeof(infos[0]); i > 0; i--) { in MODULE_CONSTRUCTOR() 71 BShellEnvRegisterCmd(GetShellHandle(), &infos[i - 1]); in MODULE_CONSTRUCTOR()
|
| D | appspawntime_cmd.c | 78 CmdInfo infos[] = { in MODULE_CONSTRUCTOR() local 81 for (size_t i = 0; i < sizeof(infos) / sizeof(infos[0]); i++) { in MODULE_CONSTRUCTOR() 82 BShellEnvRegisterCmd(GetShellHandle(), &infos[i]); in MODULE_CONSTRUCTOR()
|
| /base/account/os_account/services/accountmgr/include/ |
| D | account_data_storage.h | 48 ErrCode LoadAllData(std::map<std::string, std::shared_ptr<IAccountInfo>> &infos); 51 …aByLocalFuzzyQuery(std::string subId, std::map<std::string, std::shared_ptr<IAccountInfo>> &infos); 54 std::map<std::string, std::shared_ptr<IAccountInfo>> &infos) = 0; 83 ErrCode LoadAllData(std::map<std::string, std::shared_ptr<IAccountInfo>> &infos); 86 …aByLocalFuzzyQuery(std::string subId, std::map<std::string, std::shared_ptr<IAccountInfo>> &infos); 89 std::map<std::string, std::shared_ptr<IAccountInfo>> &infos) = 0;
|
| /base/security/access_token/interfaces/inner_api/el5filekeymanager/include/ |
| D | el5_filekey_manager_kit.h | 63 * @brief Get key infos of the specified user, the state is unloaded. 65 * @param keyInfos Key infos of the specified user id, as query result 70 * @brief Set app key load infos of the specified user. 72 * @param loadInfos Key load infos of the specified user id 88 * @brief Get all key infos of the specified user. 90 * @param keyInfos Key infos of the specified user id, as query result
|
| /base/security/dlp_permission_service/services/dlp_permission/sa/storage/src/ |
| D | sandbox_config_kv_data_storage.cpp | 122 std::map<std::string, std::string> infos; in GetKeyMapByUserId() local 123 int32_t res = LoadAllData(infos); in GetKeyMapByUserId() 128 for (auto it = infos.begin(); it != infos.end(); ++it) { in GetKeyMapByUserId() 141 …nst std::vector<OHOS::DistributedKv::Entry>& allEntries, std::map<std::string, std::string>& infos) in SaveEntries() argument 145 infos.emplace(item.key.ToString(), item.value.ToString()); in SaveEntries()
|