/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/ |
H A D | array_string_serializer.cpp | 38 std::sort(data.begin(), data.end()); in SetUnionPolicyData() 39 std::sort(currentData.begin(), currentData.end()); in SetUnionPolicyData() 40 std::set_union(data.begin(), data.end(), currentData.begin(), currentData.end(), back_inserter(mergeData)); in SetUnionPolicyData() 48 std::sort(data.begin(), data.end()); in SetDifferencePolicyData() 49 std::sort(currentData.begin(), currentData.end()); in SetDifferencePolicyData() 50 std::set_difference(currentData.begin(), currentData.end(), data.begin(), data.end(), back_inserter(mergeData)); in SetDifferencePolicyData()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | dfx_map.h | 38 DfxMap(uint64_t begin, uint64_t end, uint64_t offset, in DfxMap() argument 40 : begin(begin), end(end), offset(offset), perms(perms), name(name) {} in DfxMap() 41 DfxMap(uint64_t begin, uint64_t end, uint64_t offset, in DfxMap() argument 43 : begin(begin), end(end), offset(offset), prots(prots), name(name) {} in DfxMap() 55 uint64_t begin = 0; member in OHOS::HiviewDFX::DfxMap 87 return (pc >= begin && pc < end); in Contain() 94 return vaddr < a.begin; in ValueLessThen() 98 return vaddr <= a.begin; in ValueLessEqual() [all...] |
/base/global/i18n/frameworks/intl/entity_recognition/phone_number_recognition/src/ |
H A D | border_rule.cpp | 61 int begin = match->start(); in Handle() local 64 int beginSubTen = begin - 10 < 0 ? 0 : begin - 10; in Handle() 76 if (type == PhoneNumberMatched::CONTAIN && borderBegin <= begin && end <= borderEnd) { in Handle() 78 } else if (type == PhoneNumberMatched::CONTAIN_OR_INTERSECT && ((borderBegin <= begin && in Handle() 79 end <= borderEnd) || (borderBegin < begin && begin < borderEnd && borderEnd < end) || in Handle() 80 (begin < borderBegin && borderBegin < end && end < borderEnd))) { in Handle()
|
/base/telephony/call_manager/interfaces/innerkits/ |
H A D | call_manager_info.h | 416 std::copy(std::begin(temp.phoneNumber), std::end(temp.phoneNumber), std::begin(phoneNumber)); in operator =() 417 std::copy(std::begin(temp.formattedNumberToE164), std::end(temp.formattedNumberToE164), in operator =() 418 std::begin(formattedNumberToE164)); in operator =() 419 std::copy(std::begin(temp.formattedNumber), std::end(temp.formattedNumber), in operator =() 420 std::begin(formattedNumber)); in operator =() 421 std::copy(std::begin(temp.numberLocation), std::end(temp.numberLocation), in operator =() 422 std::begin(numberLocation)); in operator =() 436 std::copy(std::begin(temp.numberMarkInfo.markContent), std::end(temp.numberMarkInfo.markContent), in operator =() 437 std::begin(numberMarkInf in operator =() [all...] |
/base/powermgr/thermal_manager/utils/native/src/ |
H A D | string_operation.cpp | 36 std::string::size_type begin = str.find_first_not_of(sep); in SplitString() local 37 while (begin != std::string::npos) { in SplitString() 38 std::string::size_type pos = str.find(sep, begin); in SplitString() 40 temp = str.substr(begin, pos - begin); in SplitString() 41 begin = pos + sep.length(); in SplitString() 43 temp = str.substr(begin); in SplitString() 44 begin = pos; in SplitString()
|
/base/global/i18n/frameworks/intl/entity_recognition/phone_number_recognition/include/ |
H A D | matched_number_info.h | 26 MatchedNumberInfo(int begin, int end, icu::UnicodeString& content) : _begin(begin), _end(end), content(content) {} in MatchedNumberInfo() argument 29 void SetBegin(int begin) in SetBegin() argument 31 this->_begin = begin; in SetBegin()
|
/base/startup/appspawn/util/include/ |
H A D | parcel_util.h | 30 std::copy(originList.begin(), originList.end(), destVector.begin()); in TranslateListToVector() 39 std::copy(originVector.begin(), originVector.end(), destList.begin()); in TranslateVectorToList()
|
/base/print/print_fwk/frameworks/models/print_models/src/ |
H A D | printer_capability.cpp | 58 pageSizeList_.assign(right.pageSizeList_.begin(), right.pageSizeList_.end()); in operator =() 60 resolutionList_.assign(right.resolutionList_.begin(), right.resolutionList_.end()); in operator =() 70 supportedPageSizeList_.assign(right.supportedPageSizeList_.begin(), right.supportedPageSizeList_.end()); in operator =() 71 supportedColorModeList_.assign(right.supportedColorModeList_.begin(), right.supportedColorModeList_.end()); in operator =() 72 supportedDuplexModeList_.assign(right.supportedDuplexModeList_.begin(), right.supportedDuplexModeList_.end()); in operator =() 73 supportedMediaTypeList_.assign(right.supportedMediaTypeList_.begin(), right.supportedMediaTypeList_.end()); in operator =() 74 supportedQualityList_.assign(right.supportedQualityList_.begin(), right.supportedQualityList_.end()); in operator =() 75 supportedOrientationList_.assign(right.supportedOrientationList_.begin(), in operator =() 114 resolutionList_.assign(resolutionList.begin(), resolutionList.end()); in SetResolution() 145 pageSizeList.assign(pageSizeList_.begin(), pageSizeList in GetPageSize() [all...] |
/base/hiviewdfx/hidumper/frameworks/native/src/common/ |
H A D | option_args.cpp | 45 list_.assign(optArgs.list_.begin(), optArgs.list_.end()); in operator =() 48 names_.assign(optArgs.names_.begin(), optArgs.names_.end()); in operator =() 49 args_.assign(optArgs.args_.begin(), optArgs.args_.end()); in operator =() 116 list_.assign(list.begin(), list.end()); in SetStrList() 132 names_.assign(names.begin(), names.end()); in SetNamesAndArgs() 133 args_.assign(args.begin(), args.end()); in SetNamesAndArgs() 185 ret->list_.assign(optArgs->list_.begin(), optArgs->list_.end()); in Clone() 187 ret->names_.assign(optArgs->names_.begin(), optArgs->names_.end()); in Clone() 188 ret->args_.assign(optArgs->args_.begin(), optArgs->args_.end()); in Clone()
|
/base/telephony/call_manager/services/call/src/ |
H A D | call_object_manager.cpp | 47 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in ~CallObjectManager() 60 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in AddOneCallObject() 95 TELEPHONY_LOGI("delayed disconnect callback begin"); in DelayedDisconnectCallConnectAbility() 110 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in DeleteOneCallObject() 149 std::list<sptr<CallBase>>::iterator it = CallObjectManager::callObjectPtrList_.begin(); in GetOneCallObject() 167 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in GetOneCallObject() 184 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in HasNewCall() 202 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in IsNewCallAllowedCreate() 264 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in GetCarrierCallList() 278 for (it = callObjectPtrList_.begin(); i in GetVoipCallNum() [all...] |
/base/location/services/location_locator/locator/source/ |
H A D | work_record.cpp | 221 for (auto iterUid = uids_.begin(); iterUid != uids_.end(); iterUid++, i++) { in Remove() 231 uids_.erase(uids_.begin() + i); in Remove() 232 pids_.erase(pids_.begin() + i); in Remove() 233 names_.erase(names_.begin() + i); in Remove() 234 timeInterval_.erase(timeInterval_.begin() + i); in Remove() 235 uuid_.erase(uuid_.begin() + i); in Remove() 236 nlpRequestType_.erase(nlpRequestType_.begin() + i); in Remove() 248 for (auto iter = names_.begin(); iter != names_.end(); iter++, i++) { in Remove() 256 uids_.erase(uids_.begin() + i); in Remove() 257 pids_.erase(pids_.begin() in Remove() [all...] |
/base/powermgr/thermal_manager/services/native/src/thermal_policy/ |
H A D | thermal_policy.cpp | 80 for (auto clusterPolicy = clusterPolicyMap_.begin(); clusterPolicy != clusterPolicyMap_.end(); clusterPolicy++) { in SortLevel() 81 sort(clusterPolicy->second.begin(), clusterPolicy->second.end(), LevelCompare); in SortLevel() 94 for (auto cluster = sensorClusterMap_.begin(); cluster != sensorClusterMap_.end(); cluster++) { in LevelDecision() 111 for (auto iter = clusterLevelMap_.begin(); iter != clusterLevelMap_.end(); iter++) { in WriteLevel() 114 auto level = *max_element(levelList.begin(), levelList.end()); in WriteLevel() 129 for (auto clusterPolicy = clusterPolicyMap_.begin(); clusterPolicy != clusterPolicyMap_.end(); clusterPolicy++) { in PolicyDecision() 162 for (auto action = actionList.begin(); action != actionList.end(); action++) { in ActionDecision() 199 for (auto prop = stateMap.begin(); prop != stateMap.end(); prop++) { in StateMachineDecision() 224 for (auto iter = actionMap.begin(); iter != actionMap.end(); iter++) { in ActionExecution() 237 for (auto clusterIter = clusterLevelMap_.begin(); clusterIte in PrintPolicyState() [all...] |
/base/hiviewdfx/hitrace/test/unittest/rust/hitracechain/src/ |
H A D | main.rs | 24 let trace_id = hitracechain::begin!("hitracechain_rust_unit_test_001", HiTraceFlag::Default); in hitracechain_rust_unit_test_001() 33 let mut trace_id = hitracechain::begin!("hitracechain_rust_unit_test_002", HiTraceFlag::IncludeAsync); in hitracechain_rust_unit_test_002() 43 let mut trace_id = hitracechain::begin!("hitracechain_rust_unit_test_003", HiTraceFlag::Default); in hitracechain_rust_unit_test_003() 58 let mut trace_id = hitracechain::begin!("hitracechain_rust_unit_test_004", HiTraceFlag::Default); in hitracechain_rust_unit_test_004() 67 let trace_id = hitracechain::begin!("hitracechain_rust_unit_test_005", HiTraceFlag::Default); in hitracechain_rust_unit_test_005() 77 let trace_id = hitracechain::begin!("hitracechain_rust_unit_test_006", HiTraceFlag::Default); in hitracechain_rust_unit_test_006() 87 let trace_id = hitracechain::begin!("hitracechain_rust_unit_test_007", in hitracechain_rust_unit_test_007()
|
/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | str_util.cpp | 105 std::string::size_type begin = 0;
in Split() local 115 dst[current++] = std::string(src, begin, end - begin);
in Split() 117 begin = end;
in Split() 119 if (current < size && end > begin) {
in Split() 120 dst[current++] = std::string(src, begin, end - begin);
in Split()
|
/base/security/access_token/services/privacymanager/src/database/ |
H A D | data_translator.cpp | 37 int64_t begin = request.beginTimeMillis; in TranslationIntoGenericValues() local 40 if ((begin < 0) || (end < 0) || (begin > end)) { in TranslationIntoGenericValues() 44 if (begin == 0 && end == 0) { in TranslationIntoGenericValues() 46 begin = (beginTime < 0) ? 0 : beginTime; in TranslationIntoGenericValues() 50 if (begin != 0) { in TranslationIntoGenericValues() 51 andGenericValues.Put(PrivacyFiledConst::FIELD_TIMESTAMP_BEGIN, begin); in TranslationIntoGenericValues()
|
/base/global/i18n/frameworks/intl/entity_recognition/date_time_recognition/include/ |
H A D | matched_date_time_info.h | 28 MatchedDateTimeInfo(int begin, int end, std::string& regex) in MatchedDateTimeInfo() argument 29 : _begin(begin), _end(end), regex(regex), type(0), isTimePeriod(false) {} in MatchedDateTimeInfo() 51 void SetBegin(int begin) in SetBegin() argument 53 this->_begin = begin; in SetBegin()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_ring_buffer_wrapper.cpp | 101 size_t begin = 0; in SplitDumpInfo() local 102 size_t pos = dumpInfo.find(sepator, begin); in SplitDumpInfo() 104 result.push_back(dumpInfo.substr(begin, pos - begin)); in SplitDumpInfo() 106 begin = pos + sepator.size(); in SplitDumpInfo() 107 pos = dumpInfo.find(sepator, begin); in SplitDumpInfo() 109 if (begin < dumpInfo.size()) { in SplitDumpInfo() 110 result.push_back(dumpInfo.substr(begin)); in SplitDumpInfo()
|
/base/security/asset/frameworks/js/napi/src/ |
H A D | asset_napi_update.cpp | 60 queryValidTags.insert(queryValidTags.end(), CRITICAL_LABEL_TAGS.begin(), CRITICAL_LABEL_TAGS.end()); in CheckUpdateArgs() 61 queryValidTags.insert(queryValidTags.end(), NORMAL_LABEL_TAGS.begin(), NORMAL_LABEL_TAGS.end()); in CheckUpdateArgs() 62 queryValidTags.insert(queryValidTags.end(), NORMAL_LOCAL_LABEL_TAGS.begin(), NORMAL_LOCAL_LABEL_TAGS.end()); in CheckUpdateArgs() 63 queryValidTags.insert(queryValidTags.end(), ACCESS_CONTROL_TAGS.begin(), ACCESS_CONTROL_TAGS.end()); in CheckUpdateArgs() 69 updateValidTags.insert(updateValidTags.end(), NORMAL_LABEL_TAGS.begin(), NORMAL_LABEL_TAGS.end()); in CheckUpdateArgs() 70 updateValidTags.insert(updateValidTags.end(), NORMAL_LOCAL_LABEL_TAGS.begin(), NORMAL_LOCAL_LABEL_TAGS.end()); in CheckUpdateArgs() 71 updateValidTags.insert(updateValidTags.end(), ASSET_SYNC_TAGS.begin(), ASSET_SYNC_TAGS.end()); in CheckUpdateArgs() 72 updateValidTags.insert(updateValidTags.end(), UPDATE_OPTIONAL_TAGS.begin(), UPDATE_OPTIONAL_TAGS.end()); in CheckUpdateArgs()
|
H A D | asset_napi_query.cpp | 51 validTags.insert(validTags.end(), CRITICAL_LABEL_TAGS.begin(), CRITICAL_LABEL_TAGS.end()); in CheckQueryArgs() 52 validTags.insert(validTags.end(), NORMAL_LABEL_TAGS.begin(), NORMAL_LABEL_TAGS.end()); in CheckQueryArgs() 53 validTags.insert(validTags.end(), NORMAL_LOCAL_LABEL_TAGS.begin(), NORMAL_LOCAL_LABEL_TAGS.end()); in CheckQueryArgs() 54 validTags.insert(validTags.end(), ACCESS_CONTROL_TAGS.begin(), ACCESS_CONTROL_TAGS.end()); in CheckQueryArgs() 55 validTags.insert(validTags.end(), ASSET_SYNC_TAGS.begin(), ASSET_SYNC_TAGS.end()); in CheckQueryArgs() 56 validTags.insert(validTags.end(), OPTIONAL_TAGS.begin(), OPTIONAL_TAGS.end()); in CheckQueryArgs()
|
H A D | asset_napi_add.cpp | 52 validTags.insert(validTags.end(), CRITICAL_LABEL_TAGS.begin(), CRITICAL_LABEL_TAGS.end()); in CheckAddArgs() 53 validTags.insert(validTags.end(), NORMAL_LABEL_TAGS.begin(), NORMAL_LABEL_TAGS.end()); in CheckAddArgs() 54 validTags.insert(validTags.end(), NORMAL_LOCAL_LABEL_TAGS.begin(), NORMAL_LOCAL_LABEL_TAGS.end()); in CheckAddArgs() 55 validTags.insert(validTags.end(), ACCESS_CONTROL_TAGS.begin(), ACCESS_CONTROL_TAGS.end()); in CheckAddArgs() 56 validTags.insert(validTags.end(), ASSET_SYNC_TAGS.begin(), ASSET_SYNC_TAGS.end()); in CheckAddArgs() 57 validTags.insert(validTags.end(), OPTIONAL_TAGS.begin(), OPTIONAL_TAGS.end()); in CheckAddArgs()
|
/base/customization/enterprise_device_management/services/edm_plugin/src/utils/ |
H A D | array_usb_device_id_serializer.cpp | 29 std::sort(data.begin(), data.end(), Comp()); in SetUnionPolicyData() 30 std::sort(currentData.begin(), currentData.end(), Comp()); in SetUnionPolicyData() 31 std::set_union(data.begin(), data.end(), currentData.begin(), currentData.end(), back_inserter(mergeData), Comp()); in SetUnionPolicyData() 39 std::sort(data.begin(), data.end(), Comp()); in SetDifferencePolicyData() 40 std::sort(currentData.begin(), currentData.end(), Comp()); in SetDifferencePolicyData() 41 std::set_difference(currentData.begin(), currentData.end(), data.begin(), data.end(), back_inserter(mergeData), in SetDifferencePolicyData() 132 std::for_each(result.begin(), result.end(), [&](const auto usbDeviceId) { in WritePolicy() 147 result.assign(stData.begin(), stDat in MergePolicy() [all...] |
H A D | array_usb_device_type_serializer.cpp | 34 std::sort(data.begin(), data.end()); in SetUnionPolicyData() 35 std::sort(currentData.begin(), currentData.end()); in SetUnionPolicyData() 36 std::set_union(data.begin(), data.end(), currentData.begin(), currentData.end(), back_inserter(mergeData)); in SetUnionPolicyData() 44 std::sort(data.begin(), data.end()); in SetDifferencePolicyData() 45 std::sort(currentData.begin(), currentData.end()); in SetDifferencePolicyData() 46 std::set_difference(currentData.begin(), currentData.end(), data.begin(), data.end(), back_inserter(mergeData)); in SetDifferencePolicyData() 156 result.assign(stData.begin(), stData.end()); in MergePolicy()
|
/base/hiviewdfx/faultloggerd/common/dfxutil/ |
H A D | dfx_util.cpp | 60 const char *begin = source.data(); in TrimAndDupStr() local 61 const char *end = begin + source.size(); in TrimAndDupStr() 62 if (begin == end) { in TrimAndDupStr() 67 while ((begin < end) && isspace(*begin)) { in TrimAndDupStr() 68 begin++; in TrimAndDupStr() 71 while ((begin < end) && isspace(*(end - 1))) { in TrimAndDupStr() 75 if (begin == end) { in TrimAndDupStr() 80 uint32_t offset = static_cast<uint32_t>(end - begin); in TrimAndDupStr() 85 str.assign(begin, maxStrLe in TrimAndDupStr() [all...] |
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/base/ |
H A D | fault_info_base.h | 132 sampleMemory_.erase(sampleMemory_.begin(), sampleMemory_.begin() + removeCnt); in RemoveMemory() 161 cpuTime_.erase(cpuTime_.begin(), cpuTime_.begin() + cpuRemoveCnt); in RemoveTime() 167 realTime_.erase(realTime_.begin(), realTime_.begin() + realRemoveCnt); in RemoveTime()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_hap.cpp | 81 if (DfxArk::ParseArkFileInfo(static_cast<uintptr_t>(pc), methodid, static_cast<uintptr_t>(map->begin), in ParseHapFileInfo() 83 DFXLOGW("Failed to parse ark file info, pc: %{public}p, begin: %{public}p", in ParseHapFileInfo() 84 reinterpret_cast<void *>(pc), reinterpret_cast<void *>(map->begin)); in ParseHapFileInfo() 104 if (DfxArk::ParseArkFrameInfo(static_cast<uintptr_t>(pc), methodid, static_cast<uintptr_t>(map->begin), in ParseHapMemInfo() 106 DFXLOGW("Failed to parse ark frame info, pc: %{public}p, begin: %{public}p", in ParseHapMemInfo() 107 reinterpret_cast<void *>(pc), reinterpret_cast<void *>(map->begin)); in ParseHapMemInfo() 154 abcDataSize_ = map->end - map->begin; in ParseHapMemData() 156 auto size = DfxMemory::ReadProcMemByPid(pid, map->begin, abcDataPtr_.get(), abcDataSize_); in ParseHapMemData()
|