Home
last modified time | relevance | path

Searched full:infos (Results 1 – 25 of 172) sorted by relevance

1234567

/base/security/access_token/tools/accesstoken/src/
Dto_string.cpp24 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()
35infos.append(R"( "status": ")" + std::to_string(detail.status) + R"(")" + ",\n"); in DetailUsedRecordToString()
36 infos.append(R"( "lockScreenStatus": ")" + std::to_string( in DetailUsedRecordToString()
38infos.append(R"( "timestamp": ")" + std::to_string(detail.timestamp) + R"(")" + ",\n"… in DetailUsedRecordToString()
39infos.append(R"( "duration": )" + std::to_string(detail.accessDuration) + ",\n"); in DetailUsedRecordToString()
[all …]
/base/security/huks/utils/file_iterative_reader/src/
Dhks_iterative_reader.c44 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/
Dget_ram_info.cpp30 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 …]
Dget_kernel_info.cpp33 * @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()
Dmemory_util.cpp74 …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()
Dget_process_info.cpp30 * @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/
Dget_ram_info.h45 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/
Dresource_node_utils_test.cpp48 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 …]
Dauth_widget_helper_test.cpp115 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/
Dto_string.h30 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/
Dnapi_hisysevent.test.js186 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/
Dupdate_image_block.cpp145 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/
Dpatch_shared.cpp86 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/
Dapp_info_rdb_helper.h28 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/
Del5_filekey_callback_stub.cpp40 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/
Ddump.rs68 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/
Dresource_node_utils.cpp29 … 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/
Del5_filekey_callback_proxy.cpp31 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/
Dmodulectl.c53 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()
Dbootchart_cmd.c55 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()
Dinit_cmd_reboot.c58 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()
Dappspawntime_cmd.c78 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/
Daccount_data_storage.h48 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/
Del5_filekey_manager_kit.h63 * @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/
Dsandbox_config_kv_data_storage.cpp122 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()

1234567