Home
last modified time | relevance | path

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

/base/security/permission_lite/services/pms/src/
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 != NULL) { in DeleteTask()
71 if (cur->uid == uid) { in DeleteTask()
[all …]
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_srv_config_parser.cpp85 auto cur = node->xmlChildrenNode; in ParseBaseNode() local
86 while (cur != nullptr) { in ParseBaseNode()
88 xmlChar* xmlTag = xmlGetProp(cur, BAD_CAST"tag"); in ParseBaseNode()
94 xmlChar* xmlValue = xmlGetProp(cur, BAD_CAST"value"); in ParseBaseNode()
100 cur = cur->next; in ParseBaseNode()
107 void ThermalSrvConfigParser::ParseAuxSensorInfo(const xmlNode *cur, std::shared_ptr<ThermalConfigSe… in ParseAuxSensorInfo() argument
109 xmlChar* auxSensor = xmlGetProp(cur, BAD_CAST"aux_sensor"); in ParseAuxSensorInfo()
122 auxSensorLevelInfo.emplace(sensorType, ParseAuxSensorSubnodeInfo(cur, auxsensors, i)); in ParseAuxSensorInfo()
129 std::vector<AuxLevelItem> ThermalSrvConfigParser::ParseAuxSensorSubnodeInfo(const xmlNode *cur, in ParseAuxSensorSubnodeInfo() argument
133 for (auto subNode = cur->children; subNode != nullptr; subNode = subNode->next) { in ParseAuxSensorSubnodeInfo()
[all …]
/base/powermgr/thermal_manager/application/protector/src/policy/
Dthermal_kernel_config_file.cpp66 auto cur = node->xmlChildrenNode; in ParserBaseNode() local
68 while (cur != nullptr) { in ParserBaseNode()
70 xmlChar* xmlTag = xmlGetProp(cur, BAD_CAST"tag"); in ParserBaseNode()
71 xmlChar* xmlValue = xmlGetProp(cur, BAD_CAST"value"); in ParserBaseNode()
81 cur = cur->next; in ParserBaseNode()
88 auto cur = node->xmlChildrenNode; in ParseControlNode() local
90 while (cur != nullptr) { in ParseControlNode()
94 xmlChar* xmlType = xmlGetProp(cur, BAD_CAST"type"); in ParseControlNode()
99 xmlChar* xmlInterval = xmlGetProp(cur, BAD_CAST"interval"); in ParseControlNode()
106 xmlChar* desc = xmlGetProp(cur, BAD_CAST"desc"); in ParseControlNode()
[all …]
/base/global/i18n/frameworks/intl/src/
Di18n_timezone.cpp183 xmlNodePtr cur = xmlDocGetRootElement(doc); in ReadTimeZoneData() local
184 if (!cur || xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(rootTag))) { in ReadTimeZoneData()
188 cur = cur->xmlChildrenNode; in ReadTimeZoneData()
189 …while (cur != nullptr && !xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(secondRootTag))) { in ReadTimeZoneData()
190 xmlNodePtr value = cur->xmlChildrenNode; in ReadTimeZoneData()
217 cur = cur->next; in ReadTimeZoneData()
248 xmlNodePtr cur = xmlDocGetRootElement(doc); in ComputeLocale() local
249 if (!cur || xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(supportLocalesTag))) { in ComputeLocale()
253 cur = cur->xmlChildrenNode; in ComputeLocale()
254 while (cur != nullptr) { in ComputeLocale()
[all …]
Dlocale_config.cpp595 xmlNodePtr cur = xmlDocGetRootElement(doc); in GetListFromFile() local
596 if (!cur || xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(resourceName))) { in GetListFromFile()
600 cur = cur->xmlChildrenNode; in GetListFromFile()
602 while (cur != nullptr) { in GetListFromFile()
603 content = xmlNodeGetContent(cur); in GetListFromFile()
607 cur = cur->next; in GetListFromFile()
733 xmlNodePtr cur = xmlDocGetRootElement(doc); in ComputeLocale() local
734 if (!cur || xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(supportLocalesTag))) { in ComputeLocale()
739 cur = cur->xmlChildrenNode; in ComputeLocale()
740 while (cur != nullptr) { in ComputeLocale()
[all …]
/base/powermgr/thermal_manager/services/native/include/thermal_policy/
Dthermal_srv_config_parser.h45 void ParseAuxSensorInfo(const xmlNode *cur, std::shared_ptr<ThermalConfigSensorCluster> &sc);
46 void ParseSensorInfo(const xmlNode *cur, std::shared_ptr<ThermalConfigSensorCluster> &sc);
47 std::vector<AuxLevelItem> ParseAuxSensorSubnodeInfo(const xmlNode *cur,
51 …void ParseSensorSubnodeInfo(const xmlNode *cur, std::vector<LevelItem>& vItem, std::vector<std::st…
53 void ParsePolicySubnode(const xmlNode *cur, PolicyConfig& policyConfig);
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dwrite_controller.cpp48 timeval cur; in CheckLimitWritingEvent() local
49 gettimeofday(&cur, nullptr); in CheckLimitWritingEvent()
50 if (stat.begin.tv_sec + static_cast<time_t>(param.period) < cur.tv_sec) { in CheckLimitWritingEvent()
52 stat.begin = cur; in CheckLimitWritingEvent()
64 static_cast<long long>(stat.begin.tv_sec), static_cast<long long>(cur.tv_sec), in CheckLimitWritingEvent()
/base/powermgr/thermal_manager/services/native/test/unittest/include/
Dthermal_config_file_parser.h53 void ParseAuxSensorInfo(const xmlNode* cur, std::shared_ptr<ThermalConfigSensorCluster>& sc);
54 void ParseSensorInfo(const xmlNode* cur, std::shared_ptr<ThermalConfigSensorCluster>& sc);
55 std::vector<AuxLevelItem> ParseAuxSensorSubnodeInfo(const xmlNode* cur,
59 …void ParseSensorSubnodeInfo(const xmlNode* cur, std::vector<LevelItem>& vItem, std::vector<std::st…
61 void ParsePolicySubnode(const xmlNode* cur, PolicyConfig& policyConfig);
/base/hiviewdfx/hiview/adapter/utility/platform/windows/
Dfile_util.cpp77 for (auto& cur : fs::recursive_directory_iterator(path)) { in RemoveFolderBeginWith() local
78 if (cur.is_directory() && in RemoveFolderBeginWith()
79 … strncmp(cur.path().filename().string().c_str(), folderName.c_str(), folderName.length()) == 0) { in RemoveFolderBeginWith()
80 ForceRemoveDirectory(cur.path().string()); in RemoveFolderBeginWith()
/base/hiviewdfx/hilog_lite/frameworks/mini/
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/security/appverify/interfaces/innerkits/appverify_lite/src/
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()
784 next = FindSuperCert(cur, signeData->certs); in BuildSignerCertPath()
[all …]
/base/powermgr/thermal_manager/services/native/test/unittest/src/
Dthermal_config_file_parser.cpp313 void ThermalConfigFileParser::ParseAuxSensorInfo(const xmlNode* cur, std::shared_ptr<ThermalConfigS… in ParseAuxSensorInfo() argument
315 xmlChar* auxSensorInfo = xmlGetProp(cur, BAD_CAST"aux_sensor"); in ParseAuxSensorInfo()
328 … auxSensorLevelInfo.emplace(sensorType, ParseAuxSensorSubnodeInfo(cur, auxSensorList, i)); in ParseAuxSensorInfo()
335 void ThermalConfigFileParser::ParseSensorInfo(const xmlNode* cur, std::shared_ptr<ThermalConfigSens… in ParseSensorInfo() argument
339 xmlChar* xmlSensor = xmlGetProp(cur, BAD_CAST"sensor"); in ParseSensorInfo()
345 ParseSensorSubnodeInfo(cur, vItem, sensors, i, sc); in ParseSensorInfo()
353 std::vector<AuxLevelItem> ThermalConfigFileParser::ParseAuxSensorSubnodeInfo(const xmlNode* cur, in ParseAuxSensorSubnodeInfo() argument
357 for (auto subNode = cur->children; subNode != nullptr; subNode = subNode->next) { in ParseAuxSensorSubnodeInfo()
406 void ThermalConfigFileParser::ParseSensorSubnodeInfo(const xmlNode* cur, std::vector<LevelItem>& vI… in ParseSensorSubnodeInfo() argument
409 for (auto subNode = cur->children; subNode; subNode = subNode->next) { in ParseSensorSubnodeInfo()
[all …]
/base/hiviewdfx/hilog/frameworks/libhilog/vsnprintf/
Dvsnprintf_s_p.cpp64 char *cur; member
115 #define SECUREC_PUTC(_c, _stream) ((--(_stream)->count >= 0) ? ((*(_stream)->cur++ = (char)(_c))…
117 #define SECUREC_PUTC_ZERO(_stream) ((--(_stream)->count >= 0) ? ((*(_stream)->cur++ = (char)('\0…
292 str.cur = string; in SecVsnprintfPImpl()
Doutput_p.inl92 *((SecChar *)(void *)(_stream->cur)) = *(src); \
93 _stream->cur += sizeof(SecChar); \
103 *((SecChar *)(void *)(_stream->cur)) = *(src); \
104 _stream->cur += sizeof(SecChar); \
108 … (void)memcpy(_stream->cur, src, ((size_t)(unsigned int)txtLen * (sizeof(SecChar)))); \
109 _stream->cur += (size_t)(unsigned int)txtLen * (sizeof(SecChar)); \
116 *((SecChar *)(void *)(_stream->cur)) = (SecChar)_ch; \
117 _stream->cur += sizeof(SecChar); \
124 *((SecChar *)(void *)(_stream->cur)) = (SecChar)padChar; \
125 _stream->cur += sizeof(SecChar); \
/base/hiviewdfx/hiview/base/
Dpipeline.cpp168 std::shared_ptr<Plugin> cur = plugin.lock(); in RemoveProcessor() local
170 if (cur != nullptr && sp != nullptr) { in RemoveProcessor()
171 return cur == sp; in RemoveProcessor()
/base/telephony/ril_adapter/services/vendor/src/
Dvendor_channel.c31 static char *FindEndOfLine(char *cur) in FindEndOfLine() argument
33 char *endLine = cur; in FindEndOfLine()
/base/hiviewdfx/hilog_lite/frameworks/featured/
Dhiview_log.c85 char *cur; member
117 #define SECUREC_PUTC(_c, _stream) ((--(_stream)->count >= 0) ? (*(_stream)->cur++ = (char)(_c)) : E…
121 #define SECUREC_PUTC_ZERO(_stream) ((--(_stream)->count >= 0) ? ((*(_stream)->cur++ = (char)('\0'))…
135 #define SECUREC_PUTC(_c, _stream) ((--(_stream)->count >= 0) ? (*(_stream)->cur++ = (char)(_c)) : E…
138 #define SECUREC_PUTC_ZERO(_stream) ((--(_stream)->count >= 0) ? ((*(_stream)->cur++ = (char)('\0'))…
247 *((SecChar *)(void *)(_stream->cur)) = *(src); \
248 _stream->cur += sizeof(SecChar); \
260 *((SecChar *)(void *)(_stream->cur)) = *(src); \
261 _stream->cur += sizeof(SecChar); \
265 (void)memcpy_s(_stream->cur, ((size_t)(unsigned int)txtLen * (sizeof(SecChar))), src, \
[all …]
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/
Dfile_util.cpp256 fin.seekg(-1, fin.cur); in GetLastLine()
260 fin.seekg(-1, fin.cur); in GetLastLine()
271 fin.seekg(-1, fin.cur); in GetLastLine()
278 fin.seekg(1, fin.cur); in GetLastLine()
/base/powermgr/thermal_manager/application/protector/include/policy/
Dthermal_kernel_config_file.h45 …void ParseSubNode(xmlNodePtr cur, std::vector<ThermalZoneInfoItem>& tzItemList, std::string& type);
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_three_stage_test_common.c124 uint8_t *cur = outData->data; in TestUpdateLoopFinish() local
147 (void)memcpy_s(cur, outDataSeg.size, outDataSeg.data, outDataSeg.size); in TestUpdateLoopFinish()
148 cur += outDataSeg.size; in TestUpdateLoopFinish()
166 (void)memcpy_s(cur, outDataFinish.size, outDataFinish.data, outDataFinish.size); in TestUpdateLoopFinish()
/base/hiviewdfx/hiview/adapter/utility/
Dfile_util.cpp300 fin.seekg(-1, fin.cur); in GetLastLine()
304 fin.seekg(-1, fin.cur); in GetLastLine()
315 fin.seekg(-1, fin.cur); in GetLastLine()
322 fin.seekg(1, fin.cur); in GetLastLine()
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DUtils.java144 char cur = script.charAt(i); in checkScript() local
145 if ('a' > cur || 'z' < cur) { in checkScript()
159 char cur = region.charAt(i); in checkRegion() local
160 if ('A' > cur || 'Z' < cur) { in checkRegion()
/base/global/i18n_lite/frameworks/i18n/src/
Ddate_time_format_impl.cpp213 char cur = zoneInfo[index]; in ParseZoneInfo() local
214 if (isdigit(cur)) { in ParseZoneInfo()
216 temp += (cur - '0'); in ParseZoneInfo()
218 } else if (cur == ':' && isHour) { in ParseZoneInfo()
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest004/
Ddmesg-ramoops-0106 <6>[ 43.496643s] 0x4037-0x4039(cur vol)= 0x56b0bc
1026 <3>[ 56.114654s] [pid:1267,cpu0,2IPC_1267,6][Power Vote] vote = 5, cur vote ip = dsssubsys, c_f =…
1028 <3>[ 56.115692s] [pid:1267,cpu2,2IPC_1267,8][Power Vote] vote = 1, cur vote ip = vivobus, c_f = 0…
1030 <3>[ 56.116180s] [pid:1267,cpu2,2IPC_1267,0][Power Vote] vote = 0, cur vote ip = media1_subsys, c…
1133 …id:289,cpu0,kworker/u12:2,3][I/charging_core] overheat temp 50 vterm 4100 mV, cur temp 28 vbat 4432
1192 <3>[ 56.879516s] [pid:1852,cpu1,3IPC_1852,2][Power Vote] vote = 1, cur vote ip = media1_subsys, c…
1198 <3>[ 56.880584s] [pid:1852,cpu1,3IPC_1852,8][Power Vote] vote = 5, cur vote ip = vivobus, c_f = 1…
1199 <3>[ 56.883728s] [pid:1852,cpu1,3IPC_1852,9][Power Vote] vote = 21, cur vote ip = dsssubsys, c_f …
1461 …er/u12:0,7][hisi_chg_time]hisi_chg_time_get_batt_info, fcc 4243, soc 100, vol 4409, cur 42, temp 28
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest005/
Ddmesg-ramoops-0341 …d:2964,cpu0,kworker/u12:5,6][I/charging_core] overheat temp 50 vterm 4100 mV, cur temp 26 vbat 4402
961 …d:2964,cpu1,kworker/u12:5,6][I/charging_core] overheat temp 50 vterm 4100 mV, cur temp 26 vbat 4402