Home
last modified time | relevance | path

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

12345678910>>...26

/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/
Darray_string_serializer.cpp38 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(mer… 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_inserte… in SetDifferencePolicyData()
Dbool_serializer.cpp29 std::transform(jsonString.begin(), jsonString.end(), temp.begin(), ::tolower); in Deserialize()
59 result = std::any_of(data.begin(), data.end(), [](bool it) { return it; }); in MergePolicy()
/base/global/i18n/frameworks/intl/src/
Dutils.cpp34 string::size_type begin = 0; in Split() local
37 dest.push_back(src.substr(begin, end - begin)); in Split()
38 begin = end + sep.size(); in Split()
39 end = src.find(sep, begin); in Split()
41 if (begin != src.size()) { in Split()
42 dest.push_back(src.substr(begin)); in Split()
Dmeasure_data.cpp303 units.assign(USAGE_DEFAULT_GB.at(type).begin(), USAGE_DEFAULT_GB.at(type).end()); in GetDefaultPreferredUnit()
309 units.assign(USAGE_DEFAULT_US.at(type).begin(), USAGE_DEFAULT_US.at(type).end()); in GetDefaultPreferredUnit()
315 units.assign(USAGE_DEFAULT_001.at(type).begin(), USAGE_DEFAULT_001.at(type).end()); in GetDefaultPreferredUnit()
327 units.assign(USAGE_MX.at(usage).begin(), USAGE_MX.at(usage).end()); in GetFallbackPreferredUnit()
334 units.assign(USAGE_NL.at(usage).begin(), USAGE_NL.at(usage).end()); in GetFallbackPreferredUnit()
343 units.assign(USAGE_NO.at(usage).begin(), USAGE_NO.at(usage).end()); in GetFallbackPreferredUnit()
350 units.assign(USAGE_SE.at(usage).begin(), USAGE_SE.at(usage).end()); in GetFallbackPreferredUnit()
357 units.assign(USAGE_US.at(usage).begin(), USAGE_US.at(usage).end()); in GetFallbackPreferredUnit()
364 units.assign(USAGE_001.at(usage).begin(), USAGE_001.at(usage).end()); in GetFallbackPreferredUnit()
378 units.assign(USAGE_CA.at(usage).begin(), USAGE_CA.at(usage).end()); in GetRestPreferredUnit()
[all …]
/base/hiviewdfx/faultloggerd/common/dfxutil/
Ddfx_util.cpp53 const char *begin = source.data(); in TrimAndDupStr() local
54 const char *end = begin + source.size(); in TrimAndDupStr()
55 if (begin == end) { in TrimAndDupStr()
60 while ((begin < end) && isspace(*begin)) { in TrimAndDupStr()
61 begin++; in TrimAndDupStr()
64 while ((begin < end) && isspace(*(end - 1))) { in TrimAndDupStr()
68 if (begin == end) { in TrimAndDupStr()
73 uint32_t offset = static_cast<uint32_t>(end - begin); in TrimAndDupStr()
78 str.assign(begin, maxStrLen); in TrimAndDupStr()
/base/powermgr/thermal_manager/utils/native/src/
Dstring_operation.cpp36 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/security/crypto_framework/common/src/
Dhcf_string.c127 int StringFind(const HcString *self, char c, uint32_t begin) in StringFind() argument
141 while (begin < strLen) { in StringFind()
142 if (*(curChar + begin) == c) { in StringFind()
143 return begin; in StringFind()
145 ++begin; in StringFind()
158 bool StringSubString(const HcString *self, uint32_t begin, uint32_t len, HcString* dst) in StringSubString() argument
163 if (MAX_UINT - len <= begin) { in StringSubString()
166 const char* beingPointer = StringGet(self) + begin; in StringSubString()
/base/hiviewdfx/faultloggerd/frameworks/unwinder/
Ddfx_maps.cpp50 uint64_t begin = 0; in Create() local
56 …if (sscanf_s(mapBuf.c_str(), "%" SCNxPTR "-%" SCNxPTR " %4s %" SCNxPTR " %*x:%*x %*d%n", &begin, &… in Create()
63 elfMap->begin = begin; in Create()
161 if (address >= cur->begin && address < cur->end) { in FindMapByAddr()
164 } else if (address < cur->begin) { in FindMapByAddr()
176 std::sort(maps_.begin(), maps_.end(), in Sort()
178 return a->begin < b->begin; in Sort()
181 std::sort(maps_.begin(), maps_.end(), in Sort()
183 return a->begin > b->begin; in Sort()
209 begin, end, perms.c_str(), offset, path.c_str()); in PrintMap()
[all …]
Ddfx_symbols.cpp78 std::sort(symbols_.begin(), symbols_.end(), [](const SymbolInfo& a, const SymbolInfo& b) { in GetNameAndOffsetByPc()
103 std::sort(symbols_.begin(), symbols_.end(), [](const SymbolInfo& a, const SymbolInfo& b) { in GetNameAndOffsetByPc()
111 size_t begin = 0; in GetNameAndOffsetByPc() local
113 while (begin < end) { in GetNameAndOffsetByPc()
114 size_t mid = begin + (end - begin) / 2; in GetNameAndOffsetByPc()
123 begin = mid + 1; in GetNameAndOffsetByPc()
/base/hiviewdfx/hitrace/test/unittest/common/napi/
Dnapi_hitracechain.test.js59 let traceId = hiTraceChain.begin("hiTraceChainJsUnitTest001")
71 let traceId = hiTraceChain.begin("hiTraceChainJsUnitTest002")
84 let traceId = hiTraceChain.begin("hiTraceChainJsUnitTest003")
99 let traceId = hiTraceChain.begin("hiTraceChainJsUnitTest004")
113 let traceId = hiTraceChain.begin("hiTraceChainJsUnitTest005", "testp1", "testp2")
125 let traceId = hiTraceChain.begin("hiTraceChainJsUnitTest006", undefined)
137 let traceId = hiTraceChain.begin("hiTraceChainJsUnitTest007")
152 let traceId = hiTraceChain.begin("hiTraceChainJsUnitTest008", null)
164 let traceId = hiTraceChain.begin("hiTraceChainJsUnitTest009")
179 let traceId = hiTraceChain.begin("hiTraceChainJsUnitTest010")
/base/security/access_token/services/privacymanager/src/database/
Ddata_translator.cpp28 int64_t begin = request.beginTimeMillis; in TranslationIntoGenericValues() local
30 if ((begin < 0) || (end < 0) || (begin > end)) { in TranslationIntoGenericValues()
38 if (begin == 0 && end == 0) { in TranslationIntoGenericValues()
40 begin = (beginTime < 0) ? 0 : beginTime; in TranslationIntoGenericValues()
44 if (begin != 0) { in TranslationIntoGenericValues()
45 andGenericValues.Put(PrivacyFiledConst::FIELD_TIMESTAMP_BEGIN, begin); in TranslationIntoGenericValues()
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adapter/src/
Dcompatible_light_connection.cpp42 lightList.assign(lightInfo.begin(), lightInfo.end()); in GetLightList()
49 if (std::find(supportLights.begin(), supportLights.end(), lightId) == supportLights.end()) { in TurnOn()
58 if (std::find(turnOnLights_.begin(), turnOnLights_.end(), lightId) != turnOnLights_.end()) { in TurnOn()
69 if (std::find(supportLights.begin(), supportLights.end(), lightId) == supportLights.end()) { in TurnOff()
73 if (std::find(turnOnLights_.begin(), turnOnLights_.end(), lightId) == turnOnLights_.end()) { in TurnOff()
77 …std::vector<int32_t>::iterator iter = std::find(turnOnLights_.begin(), turnOnLights_.end(), lightI… in TurnOff()
/base/startup/appspawn/util/include/
Dparcel_util.h30 std::copy(originList.begin(), originList.end(), destVector.begin()); in TranslateListToVector()
39 std::copy(originVector.begin(), originVector.end(), destList.begin()); in TranslateVectorToList()
/base/hiviewdfx/hitrace/test/unittest/rust/hitracechain/src/
Dmain.rs24 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::IncludeAsy… 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/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_policy.cpp75 …for (auto clusterPolicy = clusterPolicyMap_.begin(); clusterPolicy != clusterPolicyMap_.end(); clu… in SortLevel()
76 sort(clusterPolicy->second.begin(), clusterPolicy->second.end(), LevelCompare); in SortLevel()
88 for (auto cluster = sensorClusterMap_.begin(); cluster != sensorClusterMap_.end(); cluster++) { in LevelDecision()
101 for (auto iter = clusterLevelMap_.begin(); iter != clusterLevelMap_.end(); iter++) { in WriteLevel()
104 auto level = *max_element(levelList.begin(), levelList.end()); in WriteLevel()
119 …for (auto clusterPolicy = clusterPolicyMap_.begin(); clusterPolicy != clusterPolicyMap_.end(); clu… in PolicyDecision()
151 for (auto action = actionList.begin(); action != actionList.end(); action++) { in ActionDecision()
190 for (auto prop = stateMap.begin(); prop != stateMap.end(); prop++) { in StateMachineDecision()
214 for (auto iter = actionMap.begin(); iter != actionMap.end(); iter++) { in ActionExecution()
227 …for (auto clusterIter = clusterLevelMap_.begin(); clusterIter != clusterLevelMap_.end(); clusterIt… in PrintPolicyState()
[all …]
/base/hiviewdfx/hidumper/frameworks/native/src/common/
Doption_args.cpp45 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/
Dcall_object_manager.cpp38 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in ~CallObjectManager()
51 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in AddOneCallObject()
78 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in DeleteOneCallObject()
109 std::list<sptr<CallBase>>::iterator it = CallObjectManager::callObjectPtrList_.begin(); in GetOneCallObject()
127 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in GetOneCallObject()
144 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in HasNewCall()
161 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in IsNewCallAllowedCreate()
180 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in GetCarrierCallList()
193 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in HasRingingMaximum()
210 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in HasDialingMaximum()
[all …]
/base/location/services/location_locator/locator/source/
Dwork_record.cpp195 for (auto iterUid = uids_.begin(); iterUid != uids_.end(); iterUid++, i++) { in Remove()
205 uids_.erase(uids_.begin() + i); in Remove()
206 pids_.erase(pids_.begin() + i); in Remove()
207 names_.erase(names_.begin() + i); in Remove()
208 timeInterval_.erase(timeInterval_.begin() + i); in Remove()
209 uuid_.erase(uuid_.begin() + i); in Remove()
221 for (auto iter = names_.begin(); iter != names_.end(); iter++, i++) { in Remove()
229 uids_.erase(uids_.begin() + i); in Remove()
230 pids_.erase(pids_.begin() + i); in Remove()
231 names_.erase(names_.begin() + i); in Remove()
[all …]
/base/global/i18n_lite/frameworks/i18n/src/
Dstr_util.cpp105 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/telephony/call_manager/services/call_report/src/
Dcall_ability_report_proxy.cpp37 std::list<sptr<ICallAbilityCallback>>::iterator it = callbackPtrList_.begin(); in ~CallAbilityReportProxy()
56 std::list<sptr<ICallAbilityCallback>>::iterator it = callbackPtrList_.begin(); in RegisterCallBack()
77 std::list<sptr<ICallAbilityCallback>>::iterator it = callbackPtrList_.begin(); in UnRegisterCallBack()
110 std::list<sptr<ICallAbilityCallback>>::iterator it = callbackPtrList_.begin(); in CallDestroyed()
129 std::list<sptr<ICallAbilityCallback>>::iterator it = callbackPtrList_.begin(); in ReportCallStateInfo()
151 std::list<sptr<ICallAbilityCallback>>::iterator it = callbackPtrList_.begin(); in ReportCallEvent()
171 std::list<sptr<ICallAbilityCallback>>::iterator it = callbackPtrList_.begin(); in ReportAsyncResults()
190 std::list<sptr<ICallAbilityCallback>>::iterator it = callbackPtrList_.begin(); in ReportMmiCodeResult()
209 std::list<sptr<ICallAbilityCallback>>::iterator it = callbackPtrList_.begin(); in OttCallRequest()
229 std::list<sptr<ICallAbilityCallback>>::iterator it = callbackPtrList_.begin(); in ReportAudioDeviceChange()
[all …]
/base/notification/distributed_notification_service/frameworks/test/moduletest/
DReminderHelperTest.js68 let times = end - begin;
83 let begin = getTime();
107 let begin = getTime();
111 let times = end - begin;
142 times = end - begin;
158 let begin = getTime();
186 let begin = getTime();
190 let times = end - begin;
224 times = end - begin;
239 let begin = getTime();
[all …]
/base/telephony/cellular_call/services/common/src/
Demergency_utils.cpp53 …if (std::find(emergencyNumList.begin(), emergencyNumList.end(), formatString) != emergencyNumList.… in IsEmergencyCallProcessing()
62 for (auto it = eccCallList.begin(); it != eccCallList.end(); it++) { in IsEmergencyCallProcessing()
71 transform(countryIsoCode.begin(), countryIsoCode.end(), countryIsoCode.begin(), ::toupper); in IsEmergencyCallProcessing()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dwrite_controller.cpp49 if ((stat.begin.tv_sec + static_cast<time_t>(param.period) < cur.tv_sec) || in CheckLimitWritingEvent()
50 (stat.begin.tv_sec > cur.tv_sec)) { in CheckLimitWritingEvent()
52 stat.begin = cur; in CheckLimitWritingEvent()
65 param.period, param.threshold, static_cast<long long>(stat.begin.tv_sec), in CheckLimitWritingEvent()
/base/sensors/sensor/services/sensor/hdi_connection/hardware/src/
Dhdi_service_impl.cpp62 sensorList.assign(g_sensorInfos.begin(), g_sensorInfos.end()); in GetSensorList()
97 …if (std::find(g_supportSensors.begin(), g_supportSensors.end(), sensorId) == g_supportSensors.end(… in EnableSensor()
101 if (std::find(enableSensors_.begin(), enableSensors_.end(), sensorId) != enableSensors_.end()) { in EnableSensor()
120 …if (std::find(g_supportSensors.begin(), g_supportSensors.end(), sensorId) == g_supportSensors.end(… in DisableSensor()
124 if (std::find(enableSensors_.begin(), enableSensors_.end(), sensorId) == enableSensors_.end()) { in DisableSensor()
129 for (iter = enableSensors_.begin(); iter != enableSensors_.end();) { in DisableSensor()
/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/hardware/src/
Dhdi_service_impl.cpp50 sensorList.assign(g_sensorInfos.begin(), g_sensorInfos.end()); in GetSensorList()
75 if (std::count(supportSensors.begin(), supportSensors.end(), sensorId) == 0) { in EnableSensor()
79 if (std::count(g_enableSensos.begin(), g_enableSensos.end(), sensorId) != 0) { in EnableSensor()
98 if (std::count(supportSensors.begin(), supportSensors.end(), sensorId) == 0) { in DisableSensor()
102 if (std::count(g_enableSensos.begin(), g_enableSensos.end(), sensorId) == 0) { in DisableSensor()
106 auto iter = std::remove(g_enableSensos.begin(), g_enableSensos.end(), sensorId); in DisableSensor()

12345678910>>...26