Home
last modified time | relevance | path

Searched refs:cur (Results 1 - 25 of 39) sorted by relevance

12

/base/security/permission_lite/services/pms/src/
H A Dperm_operate.c25 TNode *cur = list->head; in PermissionIsGranted() local
26 while (cur != NULL) { in PermissionIsGranted()
27 if (cur->uid != uid) { in PermissionIsGranted()
28 cur = cur->next; in PermissionIsGranted()
31 for (int i = 0; i < cur->permNum; i++) { in PermissionIsGranted()
32 if (strcmp(cur->permList[i].name, permission) == 0) { in PermissionIsGranted()
33 return (int)cur->permList[i].granted; in PermissionIsGranted()
68 TNode *cur = list->head; in DeleteTask() local
70 while (cur ! in DeleteTask()
88 TNode *cur = list->head; GetTaskWithUid() local
100 TNode *cur = list->head; GetTaskWithPkgName() local
[all...]
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
H A Dthermal_srv_config_parser.cpp148 xmlNodePtr cur = node->xmlChildrenNode; in ParseBaseNode() local
149 while (cur != nullptr) { in ParseBaseNode()
150 if (xmlStrcmp(cur->name, BAD_CAST"item")) { in ParseBaseNode()
151 cur = cur->next; in ParseBaseNode()
155 xmlChar* xmlTag = xmlGetProp(cur, BAD_CAST"tag"); in ParseBaseNode()
164 xmlChar* xmlValue = xmlGetProp(cur, BAD_CAST"value"); in ParseBaseNode()
173 cur = cur->next; in ParseBaseNode()
196 xmlNodePtr cur in ParseLevelNode() local
237 ParseLevelState(const xmlNodePtr& cur, SensorClusterPtr& sc) ParseLevelState() argument
261 ParseAuxSensorInfo(const xmlNodePtr& cur, SensorClusterPtr& sc) ParseAuxSensorInfo() argument
294 ParseAuxSensorLevInfo(const xmlNodePtr& cur, std::vector<std::string>& auxsensors, const uint32_t sensorIdx, std::vector<AuxLevelItem>& auxLevelItems) ParseAuxSensorLevInfo() argument
361 ParseSensorInfo(const xmlNodePtr& cur, SensorClusterPtr& sc) ParseSensorInfo() argument
394 ParseSensorLevelInfo(const xmlNodePtr& cur, std::vector<LevelItem>& levelItems, std::vector<std::string>& sensors, const uint32_t sensorIdx, SensorClusterPtr& sc) ParseSensorLevelInfo() argument
469 auto cur = node->xmlChildrenNode; ParseStateNode() local
503 auto cur = node->xmlChildrenNode; ParseActionNode() local
530 ParseActionInfo(const xmlNodePtr& cur, ActionItem& ai) ParseActionInfo() argument
566 auto cur = node->xmlChildrenNode; ParsePolicyNode() local
612 ParsePolicyActionInfo(const xmlNodePtr& cur, PolicyConfig& policyConfig) ParsePolicyActionInfo() argument
699 xmlNodePtr cur = node->xmlChildrenNode; ParseFanNode() local
730 xmlNodePtr cur = node->xmlChildrenNode; ParseFanFaultInfo() local
[all...]
/base/powermgr/thermal_manager/services/native/include/thermal_policy/
H A Dthermal_srv_config_parser.h46 bool ParseLevelState(const xmlNodePtr& cur, SensorClusterPtr& sc);
47 bool ParseAuxSensorInfo(const xmlNodePtr& cur, SensorClusterPtr& sc);
48 bool ParseSensorInfo(const xmlNodePtr& cur, SensorClusterPtr& sc);
49 bool ParseAuxSensorLevInfo(const xmlNodePtr& cur, std::vector<std::string>& auxsensors,
53 bool ParseSensorLevelInfo(const xmlNodePtr& cur, std::vector<LevelItem>& levelItems,
57 bool ParseActionInfo(const xmlNodePtr& cur, ActionItem& ai);
58 bool ParsePolicyActionInfo(const xmlNodePtr& cur, PolicyConfig& policyConfig);
59 bool ParseFanNode(const xmlNodePtr& cur);
60 bool ParseFanFaultInfo(const xmlNodePtr& cur,
/base/powermgr/thermal_manager/application/protector/src/policy/
H A Dthermal_kernel_config_file.cpp71 auto cur = node->xmlChildrenNode; in ParserBaseNode() local
73 while (cur != nullptr) { in ParserBaseNode()
75 xmlChar* xmlTag = xmlGetProp(cur, BAD_CAST"tag"); in ParserBaseNode()
76 xmlChar* xmlValue = xmlGetProp(cur, BAD_CAST"value"); in ParserBaseNode()
86 cur = cur->next; in ParserBaseNode()
93 auto cur = node->xmlChildrenNode; in ParseControlNode() local
95 while (cur != nullptr) { in ParseControlNode()
99 xmlChar* xmlType = xmlGetProp(cur, BAD_CAST"type"); in ParseControlNode()
104 xmlChar* xmlInterval = xmlGetProp(cur, BAD_CAS in ParseControlNode()
132 ParseSubNode(xmlNodePtr cur, std::vector<ThermalZoneInfoItem>& tzItemList, std::string& type) ParseSubNode() argument
[all...]
/base/global/i18n/frameworks/intl/entity_recognition/date_time_recognition/src/
H A Ddate_time_rule.cpp100 xmlNodePtr cur = root->xmlChildrenNode; in InitRules() local
101 while (cur != nullptr) { in InitRules()
102 std::string category = reinterpret_cast<const char*>(cur->name); in InitRules()
104 xmlNodePtr value = cur->xmlChildrenNode; in InitRules()
116 xmlNodePtr valueNext = cur->xmlChildrenNode; in InitRules()
119 xmlNodePtr valueNext = cur->xmlChildrenNode; in InitRules()
122 cur = cur->next; in InitRules()
135 xmlNodePtr cur = xmlDocGetRootElement(doc)->xmlChildrenNode; in InitRuleBackup()
136 while (cur ! in InitRuleBackup()
150 LoadStrToPattern(std::unordered_map<std::string, icu::RegexPattern*>& map, xmlNodePtr cur) LoadStrToPattern() argument
191 LoadStrToStr(std::unordered_map<std::string, std::string>* map, xmlNodePtr cur) LoadStrToStr() argument
[all...]
/base/security/code_signature/interfaces/innerkits/jit_code_sign/src/
H A Djit_code_signer_base.cpp51 uint32_t cur = 0; in SignData() local
55 while (cur + INSTRUCTION_SIZE <= size) { in SignData()
58 cur += INSTRUCTION_SIZE; in SignData()
62 if (cur == size) { in SignData()
65 unsignedSize += size - cur; in SignData()
66 while (cur < size) { in SignData()
67 willSign_.push(*(data + cur)); in SignData()
68 cur++; in SignData()
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/
H A Dsample_stack_printer.cpp102 SampleStackItem* cur, SampleStackItem* node) in AdjustSiblings()
111 cur->siblings = node->siblings; in AdjustSiblings()
199 SampleStackItem* cur = stk.back(); in FreeNodes() local
202 if (cur != nullptr) { in FreeNodes()
204 if (cur->siblings != nullptr) { in FreeNodes()
205 stk.emplace_back(cur->siblings); in FreeNodes()
206 cur->siblings = nullptr; in FreeNodes()
209 if (cur->child != nullptr) { in FreeNodes()
210 stk.emplace_back(cur->child); in FreeNodes()
211 cur in FreeNodes()
101 AdjustSiblings(SampleStackItem* acient, SampleStackItem* cur, SampleStackItem* node) AdjustSiblings() argument
[all...]
/base/global/i18n/frameworks/intl/src/
H A Dtaboo.cpp146 xmlNodePtr cur = xmlDocGetRootElement(doc); in ParseTabooData() local
147 if (cur == nullptr || xmlStrcmp(cur->name, reinterpret_cast<const xmlChar*>(ROOT_TAG)) != 0) { in ParseTabooData()
152 cur = cur->xmlChildrenNode; in ParseTabooData()
155 while (cur != nullptr && xmlStrcmp(cur->name, reinterpret_cast<const xmlChar*>(ITEM_TAG)) == 0) { in ParseTabooData()
156 xmlChar* name = xmlGetProp(cur, nameTag); in ParseTabooData()
157 xmlChar* value = xmlGetProp(cur, valueTag); in ParseTabooData()
160 cur in ParseTabooData()
[all...]
H A Di18n_timezone.cpp759 xmlNodePtr cur = xmlDocGetRootElement(doc); in ReadTimeZoneData() local
760 if (!cur || xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(TIMEZONE_ROOT_TAG))) { in ReadTimeZoneData()
764 cur = cur->xmlChildrenNode; in ReadTimeZoneData()
765 while (cur != nullptr && !xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(TIMEZONE_SECOND_ROOT_TAG))) { in ReadTimeZoneData()
766 xmlNodePtr value = cur->xmlChildrenNode; in ReadTimeZoneData()
788 cur = cur in ReadTimeZoneData()
853 xmlNodePtr cur = xmlDocGetRootElement(doc); FindCityDisplayNameFromXml() local
916 xmlNodePtr cur = xmlDocGetRootElement(doc); FindCityDisplayNameMap() local
[all...]
H A Dlocale_config.cpp530 xmlNodePtr cur = xmlDocGetRootElement(doc); in GetListFromFile() local
531 if (!cur || xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(resourceName))) { in GetListFromFile()
535 cur = cur->xmlChildrenNode; in GetListFromFile()
537 while (cur != nullptr) { in GetListFromFile()
538 content = xmlNodeGetContent(cur); in GetListFromFile()
542 cur = cur->next; in GetListFromFile()
607 xmlNodePtr cur in LoadRegionsLanguages() local
710 xmlNodePtr cur = xmlDocGetRootElement(doc); ComputeLocale() local
761 xmlNodePtr cur = xmlDocGetRootElement(doc); ReadLangData() local
820 xmlNodePtr cur = xmlDocGetRootElement(doc); ReadRegionData() local
[all...]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
H A Dwrite_controller.cpp142 uint64_t cur = callerInfo.timeStamp; in CheckLimitWritingEvent() local
144 if ((record.count == 0) || ((record.timestamp / secToMillis) + param.period < (cur / secToMillis)) || in CheckLimitWritingEvent()
145 ((record.timestamp / secToMillis) > (cur / secToMillis))) { in CheckLimitWritingEvent()
147 record.timestamp = cur; in CheckLimitWritingEvent()
149 return cur; in CheckLimitWritingEvent()
154 return cur; in CheckLimitWritingEvent()
161 static_cast<long long>(cur / secToMillis), record.count - param.threshold, in CheckLimitWritingEvent()
/base/global/i18n/frameworks/intl/entity_recognition/phone_number_recognition/src/
H A Dphone_number_rule.cpp106 xmlNodePtr cur = root->xmlChildrenNode; in InitRule() local
107 while (cur != nullptr) { in InitRule()
108 std::string category = reinterpret_cast<const char*>(cur->name); in InitRule()
109 ParseXmlNode(cur, category); in InitRule()
110 cur = cur->next; in InitRule()
115 void PhoneNumberRule::ParseXmlNode(xmlNodePtr cur, std::string& category) in ParseXmlNode() argument
117 xmlNodePtr rule = cur->xmlChildrenNode; in ParseXmlNode()
/base/powermgr/thermal_manager/test/unittest/include/
H A Dthermal_config_file_parser.h59 const std::string& name, const xmlNode* cur, std::shared_ptr<ThermalConfigSensorCluster>& sc);
60 void ParseSensorInfo(const std::string& name, const xmlNode* cur, std::shared_ptr<ThermalConfigSensorCluster>& sc);
61 std::vector<AuxLevelItem> ParseAuxSensorSubnodeInfo(const xmlNode* cur,
65 void ParseSensorSubnodeInfo(const xmlNode* cur, std::vector<LevelItem>& vItem, std::vector<std::string>& sensors,
67 void ParsePolicySubnode(const xmlNode* cur, PolicyConfig& policyConfig);
/base/update/updater/services/ui/control/
H A Devent_listener.cpp205 OHOS::UIView *cur = OHOS::FocusManager::GetInstance()->GetFocusedView(); in GetFirstFocusableViewByDir() local
206 if (cur == nullptr || (dir != OHOS::FOCUS_DIRECTION_UP && dir != OHOS::FOCUS_DIRECTION_DOWN)) { in GetFirstFocusableViewByDir()
207 return cur; in GetFirstFocusableViewByDir()
209 OHOS::UIView *parent = cur->GetParent(); in GetFirstFocusableViewByDir()
211 return cur; in GetFirstFocusableViewByDir()
214 OHOS::UIView *topFocusableView = cur; in GetFirstFocusableViewByDir()
215 OHOS::UIView *bottomFocusableView = cur; in GetFirstFocusableViewByDir()
/base/hiviewdfx/hilog_lite/frameworks/mini/
H A Dhiview_log.c131 uint64 cur = HIVIEW_GetCurrentTime(); in HiLogPrintf() local
132 pCommon->time = (uint32)(cur / MS_PER_SECOND); in HiLogPrintf()
133 pCommon->milli = (uint16)(cur % MS_PER_SECOND); in HiLogPrintf()
166 uint64 cur = HIVIEW_GetCurrentTime(); in HILOG_HashPrintf() local
167 pCommon->time = (uint32)(cur / MS_PER_SECOND); in HILOG_HashPrintf()
168 pCommon->milli = (uint16)(cur % MS_PER_SECOND); in HILOG_HashPrintf()
/base/global/i18n/frameworks/zone/src/
H A Dzone_util.cpp336 xmlNodePtr cur = xmlDocGetRootElement(doc); in GetCountryZones() local
337 if (!cur || xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(ROOT_TAG)) != 0) { in GetCountryZones()
342 cur = cur->xmlChildrenNode; in GetCountryZones()
345 while (cur != nullptr && xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(SECOND_TAG)) == 0) { in GetCountryZones()
346 value = cur->xmlChildrenNode; in GetCountryZones()
354 cur = cur in GetCountryZones()
[all...]
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
H A Dmbedtls_pkcs7.c715 static mbedtls_x509_crt *FindSuperCert(mbedtls_x509_crt *cur, mbedtls_x509_crt *certsList) in FindSuperCert() argument
719 if (CompareX509NameList(&cur->issuer, &certsList->subject) == 0) { in FindSuperCert()
750 mbedtls_x509_crt *cur = prev; in AddCertToSignerCertPath() local
755 while (cur != NULL) { in AddCertToSignerCertPath()
756 prev = cur; in AddCertToSignerCertPath()
757 cur = cur->next; in AddCertToSignerCertPath()
778 mbedtls_x509_crt *cur = lowerCrt; in BuildSignerCertPath() local
781 DelCertOfSignedData(signeData, cur); in BuildSignerCertPath()
782 AddCertToSignerCertPath(signer, cur); in BuildSignerCertPath()
986 mbedtls_x509_crl_entry *cur = (mbedtls_x509_crl_entry *)(&crl->entry); IsRevoked() local
1129 mbedtls_x509_crt *cur = pre; IsIncludeRoot() local
[all...]
/base/powermgr/thermal_manager/test/unittest/src/
H A Dthermal_config_file_parser.cpp331 const std::string& name, const xmlNode* cur, std::shared_ptr<ThermalConfigSensorCluster>& sc) in ParseAuxSensorInfo()
333 xmlChar* auxSensorInfo = xmlGetProp(cur, BAD_CAST"aux_sensor"); in ParseAuxSensorInfo()
346 auxSensorLevelInfo.emplace(sensorType, ParseAuxSensorSubnodeInfo(cur, auxSensorList, i)); in ParseAuxSensorInfo()
354 void ThermalConfigFileParser::ParseSensorInfo(const std::string& name, const xmlNode* cur, in ParseSensorInfo() argument
359 xmlChar* xmlSensor = xmlGetProp(cur, BAD_CAST"sensor"); in ParseSensorInfo()
365 ParseSensorSubnodeInfo(cur, vItem, sensors, i, sc); in ParseSensorInfo()
374 std::vector<AuxLevelItem> ThermalConfigFileParser::ParseAuxSensorSubnodeInfo(const xmlNode* cur, in ParseAuxSensorSubnodeInfo() argument
378 for (auto subNode = cur->children; subNode != nullptr; subNode = subNode->next) { in ParseAuxSensorSubnodeInfo()
426 void ThermalConfigFileParser::ParseSensorSubnodeInfo(const xmlNode* cur, std::vector<LevelItem>& vItem, in ParseSensorSubnodeInfo() argument
429 for (auto subNode = cur in ParseSensorSubnodeInfo()
330 ParseAuxSensorInfo( const std::string& name, const xmlNode* cur, std::shared_ptr<ThermalConfigSensorCluster>& sc) ParseAuxSensorInfo() argument
473 ParsePolicySubnode(const xmlNode* cur, PolicyConfig& policyConfig) ParsePolicySubnode() argument
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_memory.cpp360 uint64_t cur = addr; in ReadProcMemByPid() local
368 if (cur >= UINTPTR_MAX) { in ReadProcMemByPid()
371 RemoteIovs[iovecsIndex].iov_base = reinterpret_cast<void*>(cur); in ReadProcMemByPid()
372 uintptr_t misalign = cur & static_cast<uint64_t>(getpagesize() - 1); in ReadProcMemByPid()
376 if (__builtin_add_overflow(cur, iovLen, &cur)) { in ReadProcMemByPid()
H A Ddfx_maps.cpp207 const auto& cur = maps_[index]; in FindMapByAddr() local
208 if (cur == nullptr) { in FindMapByAddr()
211 if (addr >= cur->begin && addr < cur->end) { in FindMapByAddr()
212 map = cur; in FindMapByAddr()
217 } else if (addr < cur->begin) { in FindMapByAddr()
/base/hiviewdfx/hilog/frameworks/libhilog/vsnprintf/
H A Dvsnprintf_s_p.c64 char *cur; member
115 #define SECUREC_PUTC(_c, _stream) ((--(_stream)->count >= 0) ? ((*(_stream)->cur++ = (char)(_c)) & 0xff) : EOF)
117 #define SECUREC_PUTC_ZERO(_stream) ((--(_stream)->count >= 0) ? ((*(_stream)->cur++ = (char)('\0'))) : EOF)
293 str.cur = string; in SecVsnprintfPImpl()
/base/hiviewdfx/hiview/base/event_store/dao/
H A Dsys_event_query_wrapper.cpp193 uint64_t cur = TimeUtil::GetMilliseconds(); in IsQueryFrequenceValid() local
194 if (!record.IsValid() || (record.begin > cur) || ((cur - record.begin) > QUERY_CONTROL_PERIOD_IN_MILLI_SECONDS)) { in IsQueryFrequenceValid()
196 record.begin = cur; in IsQueryFrequenceValid()
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
H A Dhks_three_stage_test_common.c121 uint8_t *cur = outData->data; in TestBatchUpdateLoopFinish() local
142 (void)memcpy_s(cur, outDataSeg.size, outDataSeg.data, outDataSeg.size); in TestBatchUpdateLoopFinish()
143 cur += outDataSeg.size; in TestBatchUpdateLoopFinish()
161 if (memcpy_s(cur, curSize, outDataFinish.data, outDataFinish.size) != EOK) { in TestBatchUpdateLoopFinish()
177 uint8_t *cur = outData->data; in TestUpdateLoopFinish() local
201 (void)memcpy_s(cur, outDataSeg.size, outDataSeg.data, outDataSeg.size); in TestUpdateLoopFinish()
202 cur += outDataSeg.size; in TestUpdateLoopFinish()
221 if (memcpy_s(cur, curSize, outDataFinish.data, outDataFinish.size) != EOK) { in TestUpdateLoopFinish()
/base/hiviewdfx/hiview/base/
H A Dpipeline.cpp171 std::shared_ptr<Plugin> cur = plugin.lock(); in RemoveProcessor()
173 if (cur != nullptr && sp != nullptr) { in RemoveProcessor()
174 return cur == sp; in RemoveProcessor()
/base/powermgr/thermal_manager/application/protector/include/policy/
H A Dthermal_kernel_config_file.h45 void ParseSubNode(xmlNodePtr cur, std::vector<ThermalZoneInfoItem>& tzItemList, std::string& type);

Completed in 16 milliseconds

12