Home
last modified time | relevance | path

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

12345678

/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 __anon22e3fa320102() local
124 infos.push_back(temp); in __anon22e3fa320102()
125 list.swap(infos); in __anon22e3fa320102()
152 std::vector<HdiCredentialInfo> infos = {}; in __anon22e3fa320202() local
161 infos.push_back(temp); in __anon22e3fa320202()
162 list.swap(infos); in __anon22e3fa320202()
188 std::vector<HdiCredentialInfo> infos = {}; in __anon22e3fa320302() local
197 infos.push_back(temp); in __anon22e3fa320302()
198 list.swap(infos); in __anon22e3fa320302()
234 std::vector<HdiCredentialInfo> infos = {}; in __anon22e3fa320502() local
[all …]
Duser_idm_database_test.cpp59 std::vector<HdiEnrolledInfo> infos = {}; in __anon82e55c8a0102() local
64 infos.emplace_back((info1)); in __anon82e55c8a0102()
65 list.swap(infos); in __anon82e55c8a0102()
84 std::vector<HdiEnrolledInfo> infos = {}; in __anon82e55c8a0202() local
85 list.swap(infos); in __anon82e55c8a0202()
105 std::vector<HdiEnrolledInfo> infos = {}; in __anon82e55c8a0302() local
110 infos.emplace_back((info1)); in __anon82e55c8a0302()
115 infos.emplace_back((info2)); in __anon82e55c8a0302()
116 list.swap(infos); in __anon82e55c8a0302()
152 std::vector<HdiCredentialInfo> infos = {}; in __anon82e55c8a0402() local
[all …]
/base/print/print_fwk/frameworks/helper/print_ani_helper/src/
Dani_print_extension_info_helper.cpp31 const std::vector<PrintExtensionInfo>& infos) in CreatePrinterExtensionInfoArray() argument
45 ani_size length = infos.size(); in CreatePrinterExtensionInfoArray()
58 for (size_t i = 0; i < infos.size(); i++) { in CreatePrinterExtensionInfoArray()
69 SetStringProperty(env, infoObj, EXTENSION_ID_STR, infos[i].GetExtensionId()); in CreatePrinterExtensionInfoArray()
70 SetStringProperty(env, infoObj, VENDOR_ID_STR, infos[i].GetVendorId()); in CreatePrinterExtensionInfoArray()
71 SetStringProperty(env, infoObj, VENDOR_NAME_STR, infos[i].GetVendorName()); in CreatePrinterExtensionInfoArray()
72 SetIntProperty(env, infoObj, VENDOR_ICON_STR, infos[i].GetVendorIcon()); in CreatePrinterExtensionInfoArray()
73 SetStringProperty(env, infoObj, VERSION_STR, infos[i].GetVersion()); in CreatePrinterExtensionInfoArray()
/base/update/updater/services/updater_binary/
Dupdate_image_block.cpp159 static int32_t GetUpdateBlockInfo(struct UpdateBlockInfo &infos, Uscript::UScriptEnv &env, in GetUpdateBlockInfo() argument
172 int32_t ret = context.GetParam(pos++, infos.partitionName); in GetUpdateBlockInfo()
177 ret = context.GetParam(pos++, infos.transferName); in GetUpdateBlockInfo()
182 ret = context.GetParam(pos++, infos.newDataName); in GetUpdateBlockInfo()
187 ret = context.GetParam(pos++, infos.patchDataName); in GetUpdateBlockInfo()
193 LOG(INFO) << "ExecuteUpdateBlock::updating " << infos.partitionName << " ..."; in GetUpdateBlockInfo()
194 infos.devPath = GetBlockDeviceByMountPoint(infos.partitionName); in GetUpdateBlockInfo()
196 if (infos.partitionName != "/userdata") { in GetUpdateBlockInfo()
198 infos.devPath += suffix; in GetUpdateBlockInfo()
201 infos.devPath = "/data/updater" + infos.partitionName; in GetUpdateBlockInfo()
[all …]
/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/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/powermgr/power_manager/test/unittest/src/scenario_test/proximity_controller/
Dproximity_controller_base_test.cpp155 SensorInfo infos[] {{.sensorTypeId = SENSOR_TYPE_ID_PROXIMITY}}; variable
156 g_sensorInfo = infos;
199 SensorInfo infos[] {{.sensorTypeId = SENSOR_TYPE_ID_PROXIMITY}}; variable
200 g_sensorInfo = infos;
219 SensorInfo infos[] {{.sensorTypeId = SENSOR_TYPE_ID_GESTURE}}; variable
220 g_sensorInfo = infos;
239 SensorInfo infos[] {{.sensorTypeId = SENSOR_TYPE_ID_GESTURE}}; variable
259 SensorInfo infos[] {{.sensorTypeId = SENSOR_TYPE_ID_PROXIMITY}}; variable
260 g_sensorInfo = infos;
279 SensorInfo infos[] {{.sensorTypeId = SENSOR_TYPE_ID_PROXIMITY}}; variable
[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/inputmethod/imf/services/src/
Dfull_ime_info_manager.cpp73 for (const auto &infos : fullImeInfos) { in RegularInit() local
74 fullImeInfos_.insert_or_assign(infos.first, infos.second); in RegularInit()
81 std::vector<FullImeInfo> infos; in Switch() local
82 auto ret = AddUser(userId, infos); in Switch()
83 ImeEnabledInfoManager::GetInstance().Switch(userId, infos); in Switch()
102 for (const auto &infos : fullImeInfos) { in Update() local
103 fullImeInfos_.insert_or_assign(infos.first, infos.second); in Update()
261 for (const auto &infos : imeInfos) { in Init() local
262 fullImeInfos_.insert_or_assign(infos.first, infos.second); in Init()
268 int32_t FullImeInfoManager::AddUser(int32_t userId, std::vector<FullImeInfo> &infos) in AddUser() argument
[all …]
/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()
87 const std::vector<std::shared_ptr<CredentialInfoInterface>> &infos) in SetCachedTemplates() argument
97 for (auto &info : infos) { in SetCachedTemplates()
/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/hiviewdfx/hiview/plugins/usage_event_report/fold/cache/
Dfold_app_usage_event_factory.cpp114 void FoldAppUsageEventFactory::GetAppUsageInfo(std::vector<FoldAppUsageInfo> &infos) in GetAppUsageInfo() argument
139 infos.emplace_back(value); in GetAppUsageInfo()
141 …std::sort(infos.begin(), infos.end(), [](const FoldAppUsageInfo &infoA, const FoldAppUsageInfo &in… in GetAppUsageInfo()
144 if (infos.size() > MAX_APP_USAGE_SIZE) { in GetAppUsageInfo()
145 …HIVIEW_LOGI("FoldAppUsageInfo size=%{public}zu, resize=%{public}zu", infos.size(), MAX_APP_USAGE_S… in GetAppUsageInfo()
146 infos.resize(MAX_APP_USAGE_SIZE); in GetAppUsageInfo()
/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.cpp116 std::map<std::string, std::string> infos; in GetKeyMapByUserId() local
117 int32_t res = LoadAllData(infos); in GetKeyMapByUserId()
122 for (auto it = infos.begin(); it != infos.end(); ++it) { in GetKeyMapByUserId()
135 …nst std::vector<OHOS::DistributedKv::Entry>& allEntries, std::map<std::string, std::string>& infos) in SaveEntries() argument
139 infos.emplace(item.key.ToString(), item.value.ToString()); in SaveEntries()

12345678