/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/include/ |
H A D | pool.h | 36 idle_ = cur; 49 busy_ = cur; 50 return cur->data; 63 cur->next->prev = cur->prev; 66 cur->prev->next = cur->next; 75 cur = cur->next; 86 while (cur != nullptr && cur->data != data) { in Idle() 87 cur = cur->next; in Idle() 96 cur->next->prev = cur->prev; in Idle() 99 cur->prev->next = cur->next; in Idle() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include/ |
H A D | pool.h | 34 idle_ = cur; 47 busy_ = cur; 48 return cur->data; 61 cur->next->prev = cur->prev; 64 cur->prev->next = cur->next; 73 cur = cur->next; 84 while (cur != nullptr && cur->data != data) { in Idle() 85 cur = cur->next; in Idle() 94 cur->next->prev = cur->prev; in Idle() 97 cur->prev->next = cur->next; in Idle() [all …]
|
/ohos5.0/base/security/permission_lite/services/pms/src/ |
H A D | perm_operate.c | 26 while (cur != NULL) { in PermissionIsGranted() 28 cur = cur->next; in PermissionIsGranted() 70 while (cur != NULL) { in DeleteTask() 78 HalFree(cur); in DeleteTask() 81 pre = cur; in DeleteTask() 82 cur = cur->next; in DeleteTask() 89 while (cur != NULL) { in GetTaskWithUid() 91 return cur; in GetTaskWithUid() 93 cur = cur->next; in GetTaskWithUid() 103 return cur; in GetTaskWithPkgName() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/task/ |
H A D | state.rs | 55 cur & CANCELED == CANCELED in is_canceled() 65 cur & FINISHED == FINISHED in is_finished() 80 cur & RUNNING == RUNNING in is_running() 87 (cur & SCHEDULING != SCHEDULING) && (cur & RUNNING != RUNNING) && (cur & FINISHED != FINISHED) in need_enqueue() 128 if is_running(cur) || is_finished(cur) || !is_scheduling(cur) { in turning_to_running() 132 let mut next = cur; in turning_to_running() 218 if !is_care_join_handle(cur) || !is_set_waker(cur) { in turn_to_un_set_waker() 244 if !is_care_join_handle(cur) || is_set_waker(cur) { in turn_to_set_waker() 266 if is_canceled(cur) || is_finished(cur) { in turn_to_canceled_and_scheduled() 451 StateAction::Canceled(cur) => assert_eq!(cur, next_state), in ut_task_state_turning_to_idle() [all …]
|
H A D | task_handle.rs | 68 Ok(cur) => cur, in finish() 72 if state::is_set_waker(cur) { in finish() 148 .and_then(|cur| self.set_waker_inner(des_waker.clone(), cur)) in set_waker() 153 if let Err(cur) = res { in set_waker() 155 state::is_finished(cur), in set_waker() 177 StateAction::Canceled(cur) => { in run() 197 self.finish(cur, output); in run() 214 self.finish(cur, output); in run() 223 if state::ref_count(cur) > 0 && state::is_care_join_handle(cur) { in shutdown() 299 self.finish(cur, output); in ffrt_run() [all …]
|
/ohos5.0/build/ |
H A D | gn_helpers.py | 180 self.cur = 0 187 self.cur += 1 227 self.cur += 1 240 begin = self.cur 244 self.cur += 1 246 self.cur += 1 263 begin = self.cur 270 self.cur += 1 275 end = self.cur 289 self.cur += 1 [all …]
|
/ohos5.0/base/powermgr/thermal_manager/services/native/src/thermal_policy/ |
H A D | thermal_srv_config_parser.cpp | 151 cur = cur->next; in ParseBaseNode() 173 cur = cur->next; in ParseBaseNode() 200 cur = cur->next; in ParseLevelNode() 230 cur = cur->next; in ParseLevelNode() 473 cur = cur->next; in ParseStateNode() 494 cur = cur->next; in ParseStateNode() 507 cur = cur->next; in ParseActionNode() 523 cur = cur->next; in ParseActionNode() 605 cur = cur->next; in ParsePolicyNode() 718 cur = cur->next; in ParseFanNode() [all …]
|
/ohos5.0/foundation/resourceschedule/ffrt/src/util/ |
H A D | linked_list.h | 53 node->next = cur->next; in InsertAfter() 54 node->prev = cur; in InsertAfter() 56 cur->next = node; in InsertAfter() 61 node->next = cur; in InsertBefore() 64 cur->prev = node; in InsertBefore() 101 if (cur->Empty()) { in Next() 112 if (cur->Empty()) { in Next() 122 if (cur->Empty()) { in RemoveNext() 134 if (cur->Empty()) { in RemoveNext() 145 if (cur->Empty()) { in RemovePrev() [all …]
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | io_event_reactor.cpp | 173 …for (IOEventHandler* cur = ioHandlers_[target->fd_].head.get(); cur != nullptr; cur = cur->next_) { in HasHandler() local 174 if (cur == target) { in HasHandler() 206 for (IOEventHandler* cur = ioHandlers_[fd].head.get(); cur != nullptr; cur = cur->next_) { in UpdateToDemultiplexer() local 207 emask |= cur->events_; in UpdateToDemultiplexer() 244 … for (IOEventHandler* cur = ioHandlers_[fd].head.get()->next_; cur != nullptr; cur = cur->next_) { in HandleEvents() local 245 … if (cur->events_ != Events::EVENT_NONE && cur->enabled_ && (cur->events_ & event) && cur->cb_) { in HandleEvents() 249 __FUNCTION__, event, fd, cur->events_, cur->enabled_); in HandleEvents() 253 __FUNCTION__, event, fd, cur->events_, cur->enabled_); in HandleEvents() 318 for (IOEventHandler* cur = ioHandlers_[fd].head->next_; cur != nullptr; cur = cur->next_) { in DoClean() local 320 cur->prev_ = nullptr; in DoClean() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/representation/ |
H A D | encoder.rs | 72 let mut cur = 0; in encode() localVariable 120 cur in encode() 442 check_and_encode!(self.index, &mut dst[cur..], cur, self); in encode() 443 check_and_encode!(self.value_length, &mut dst[cur..], cur, self); in encode() 445 Ok(cur) in encode() 485 check_and_encode!(self.index, &mut dst[cur..], cur, self); in encode() 486 check_and_encode!(self.name_length, &mut dst[cur..], cur, self); in encode() 487 check_and_encode!(self.name_octets, &mut dst[cur..], cur, self); in encode() 490 Ok(cur) in encode() 519 cur += 1; in encode() [all …]
|
/ohos5.0/base/powermgr/thermal_manager/application/protector/src/policy/ |
H A D | thermal_kernel_config_file.cpp | 71 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() 112 xmlChar* desc = xmlGetProp(cur, BAD_CAST"desc"); in ParseControlNode() 122 ParseSubNode(cur, tzItemList, type); in ParseControlNode() [all …]
|
/ohos5.0/base/global/i18n/frameworks/intl/entity_recognition/date_time_recognition/src/ |
H A D | date_time_rule.cpp | 100 xmlNodePtr cur = root->xmlChildrenNode; in InitRules() local 101 while (cur != nullptr) { in InitRules() 122 cur = cur->next; in InitRules() 136 while (cur != nullptr) { in InitRuleBackup() 144 cur = cur->next; in InitRuleBackup() 152 while (cur != nullptr) { in LoadStrToPattern() 156 xmlNodePtr value = cur->xmlChildrenNode; in LoadStrToPattern() 186 cur = cur->next; in LoadStrToPattern() 193 while (cur != nullptr) { in LoadStrToStr() 197 xmlNodePtr value = cur->xmlChildrenNode; in LoadStrToStr() [all …]
|
/ohos5.0/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
H A D | thermal_hdf_config.cpp | 97 auto cur = node->xmlChildrenNode; in ParseBaseNode() local 99 while (cur != nullptr) { in ParseBaseNode() 116 cur = cur->next; in ParseBaseNode() 140 auto cur = node->xmlChildrenNode; in ParsePollingNode() local 141 while (cur != nullptr) { in ParsePollingNode() 177 cur = cur->next; in ParsePollingNode() 213 while (cur != nullptr) { in ParseTracingNode() 214 ParseTracingSubNode(cur); in ParseTracingNode() 215 cur = cur->next; in ParseTracingNode() 279 while (cur != nullptr) { in ParseIsolateNode() [all …]
|
/ohos5.0/base/powermgr/thermal_manager/services/native/include/thermal_policy/ |
H A D | thermal_srv_config_parser.h | 46 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,
|
/ohos5.0/foundation/window/window_manager/test/systemtest/dms/ |
H A D | display_test_utils.cpp | 45 bool DisplayTestUtils::SizeEqualToDisplay(const sptr<Display>& display, const Media::Size cur) in SizeEqualToDisplay() argument 50 bool res = ((cur.width == dWidth) && (cur.height == dHeight)); in SizeEqualToDisplay() 52 WLOGFE("DisplaySize: %d %d, CurrentSize: %d %d", dWidth, dHeight, cur.width, cur.height); in SizeEqualToDisplay() 57 bool DisplayTestUtils::SizeEqual(const Media::Size dst, const Media::Size cur) in SizeEqual() argument 59 bool res = ((cur.width == dst.width) && (cur.height == dst.height)); in SizeEqual() 61 … WLOGFE("Desired Size: %d %d, Current Size: %d %d", dst.width, dst.height, cur.width, cur.height); in SizeEqual()
|
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | zip_file.cpp | 71 size_t cur = 0; in AddEntryToTree() local 75 cur++; in AddEntryToTree() 81 auto nodeName = fileName.substr(cur, next - cur); in AddEntryToTree() 91 cur = next; in AddEntryToTree() 470 size_t cur = 0; in IsDirExistCache() local 473 cur++; in IsDirExistCache() 479 auto nodeName = dir.substr(cur, next - cur); in IsDirExistCache() 506 cur++; in GetAllFileListCache() 512 auto nodeName = rootName.substr(cur, next - cur); in GetAllFileListCache() 535 cur++; in GetChildNamesCache() [all …]
|
/ohos5.0/base/security/code_signature/interfaces/innerkits/jit_code_sign/src/ |
H A D | jit_code_signer_base.cpp | 51 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()
|
/ohos5.0/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/ |
H A D | sample_stack_printer.cpp | 102 SampleStackItem* cur, SampleStackItem* node) in AdjustSiblings() argument 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() 206 cur->siblings = nullptr; in FreeNodes() 209 if (cur->child != nullptr) { in FreeNodes() 210 stk.emplace_back(cur->child); in FreeNodes() 211 cur->child = nullptr; in FreeNodes() 214 delete cur; in FreeNodes() [all …]
|
/ohos5.0/foundation/resourceschedule/ffrt/src/core/ |
H A D | entity.cpp | 35 VersionCtx* cur = *it; in RecycleVersion() local 36 VersionCtx* next = cur->next; in RecycleVersion() 38 next->last = cur->last; in RecycleVersion() 39 if (cur->last != nullptr) { in RecycleVersion() 40 cur->last->next = next; in RecycleVersion() 42 SimpleAllocator<VersionCtx>::FreeMem(cur); in RecycleVersion()
|
/ohos5.0/base/global/i18n/frameworks/intl/src/ |
H A D | locale_config.cpp | 536 cur = cur->xmlChildrenNode; in GetListFromFile() 543 cur = cur->next; in GetListFromFile() 613 cur = cur->xmlChildrenNode; in LoadRegionsLanguages() 632 cur = cur->next; in LoadRegionsLanguages() 717 cur = cur->xmlChildrenNode; in ComputeLocale() 731 cur = cur->next; in ComputeLocale() 768 cur = cur->xmlChildrenNode; in ReadLangData() 791 cur = cur->next; in ReadLangData() 822 if (cur) { in ReadRegionData() 830 cur = cur->xmlChildrenNode; in ReadRegionData() [all …]
|
H A D | i18n_timezone.cpp | 760 if (!cur || xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(TIMEZONE_ROOT_TAG))) { in ReadTimeZoneData() 764 cur = cur->xmlChildrenNode; in ReadTimeZoneData() 788 cur = cur->next; in ReadTimeZoneData() 854 … if (!cur || xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(CITY_DISPLAYNAME_ROOT_TAG))) { in FindCityDisplayNameFromXml() 860 cur = cur->xmlChildrenNode; in FindCityDisplayNameFromXml() 862 while (cur != nullptr && !xmlStrcmp(cur->name, in FindCityDisplayNameFromXml() 890 cur = cur->next; in FindCityDisplayNameFromXml() 917 … if (!cur || xmlStrcmp(cur->name, reinterpret_cast<const xmlChar *>(CITY_DISPLAYNAME_ROOT_TAG))) { in FindCityDisplayNameMap() 923 cur = cur->xmlChildrenNode; in FindCityDisplayNameMap() 924 while (cur != nullptr && !xmlStrcmp(cur->name, in FindCityDisplayNameMap() [all …]
|
H A D | taboo.cpp | 146 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 = cur->next; in ParseTabooData() 175 cur = cur->next; in ParseTabooData()
|
/ohos5.0/commonlibrary/rust/ylong_json/src/reader/ |
H A D | io_reader.rs | 61 cur: 0, in new() 98 self.cur = 0; in load() 107 if self.cur > cacher.pre { in update_cache() 112 cacher.pre = self.cur; in update_cache() 129 let ch = self.buf[self.cur]; in next() 130 self.cur += 1; in next() 152 Ok(Some(self.buf[self.cur])) in peek() 164 let ch = self.buf[self.cur]; in discard() 165 self.cur += 1; in discard() 191 cacher.pre = self.cur; in start_caching() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/lumeassetcompiler/src/ |
H A D | dir.cpp | 23 dirent cur; member 44 strcpy(d->cur.d_name, d->data.cFileName); in readdir() 46 d->cur.d_type = DT_DIR; in readdir() 48 d->cur.d_type = DT_REG; in readdir() 54 return &d->cur; in readdir()
|
/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_mapped_file_test.cpp | 141 for (; cur <= mf.End(); cur++) { in TestFileStatusAndRead() 147 *(cur) = 'E'; in TestFileStatusAndRead() 155 for (char* cur = mf.Begin(); cur <= mf.End(); cur++) { in TestFileReadAndWrite() local 187 for (char* cur = mf.Begin(); cur <= mf.End(); cur++) { in TestFileStat() local 252 for (char* cur = mfNew.Begin(); cur <= mfNew.End(); cur++) { in TestFileWrite() local 277 for (char* cur = mf.Begin(); cur <= mf.End(); cur++) { in TestTwoFileWrite() local 399 for (char* cur = mf.Begin(); *cur != '\0'; cur++) { variable 465 for (char* cur = mf.Begin(); cur <= mf.End() && *cur != '\0'; cur++) { variable 526 for (char* cur = mf.Begin(); cur <= mf.End(); cur++) { variable 808 *cur = 'N'; [all …]
|