/base/powermgr/thermal_manager/utils/native/src/ |
D | string_operation.cpp | 34 std::string::size_type begin = str.find_first_not_of(sep); in SplitString() local 35 while (begin != std::string::npos) { in SplitString() 36 std::string::size_type pos = str.find(sep, begin); in SplitString() 38 temp = str.substr(begin, pos - begin); in SplitString() 39 begin = pos + sep.length(); in SplitString() 41 temp = str.substr(begin); in SplitString() 42 begin = pos; in SplitString()
|
/base/global/i18n/frameworks/intl/src/ |
D | utils.cpp | 34 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()
|
D | measure_data.cpp | 303 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 …]
|
D | preferred_language.cpp | 60 preferredLanguageList.insert(preferredLanguageList.begin() + index, language); in AddPreferredLanguageNonExist() 134 std::vector<std::string>::iterator it = preferredLanguageList.begin(); in RemovePreferredLanguage() 144 for (it = preferredLanguageList.begin(); it != preferredLanguageList.end(); ++it) { in RemovePreferredLanguage() 176 list.insert(list.begin(), systemLanguage); in GetPreferredLanguageList() 264 std::string::size_type begin = 0; in Split() local 267 dest.push_back(src.substr(begin, end - begin)); in Split() 268 begin = end + sep.size(); in Split() 269 end = src.find(sep, begin); in Split() 271 if (begin != src.size()) { in Split() 272 dest.push_back(src.substr(begin)); in Split()
|
/base/security/crypto_framework/common/src/ |
D | hcf_string.c | 127 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/hitrace/test/unittest/common/napi/ |
D | napi_hitracechain.test.js | 59 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/sensors/miscdevice/services/miscdevice_service/hdi_connection/adpter/src/ |
D | compatible_light_connection.cpp | 42 lightList.assign(lightInfo.begin(), lightInfo.end()); in GetLightList() 49 if (std::find(supportLights.begin(), supportLights.end(), lightId) == supportLights.end()) { in TurnOn() 53 if (std::find(turnOnLights_.begin(), turnOnLights_.end(), lightId) != turnOnLights_.end()) { in TurnOn() 64 if (std::find(supportLights.begin(), supportLights.end(), lightId) == supportLights.end()) { in TurnOff() 68 if (std::find(turnOnLights_.begin(), turnOnLights_.end(), lightId) == turnOnLights_.end()) { in TurnOff() 72 …std::vector<int32_t>::iterator iter = std::find(turnOnLights_.begin(), turnOnLights_.end(), lightI… in TurnOff()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
D | dfx_util.cpp | 145 const char *begin = source.data(); in TrimAndDupStr() local 146 const char *end = begin + source.size(); in TrimAndDupStr() 147 if (begin == end) { in TrimAndDupStr() 152 while ((begin < end) && isspace(*begin)) { in TrimAndDupStr() 153 begin++; in TrimAndDupStr() 156 while ((begin < end) && isspace(*(end - 1))) { in TrimAndDupStr() 160 if (begin == end) { in TrimAndDupStr() 165 uint32_t offset = static_cast<uint32_t>(end - begin); in TrimAndDupStr() 170 str.assign(begin, maxStrLen); in TrimAndDupStr()
|
D | dfx_symbols_cache.cpp | 69 std::sort(cachedSymbols_.begin(), cachedSymbols_.end(), SymbolComparator); in GetNameAndOffsetByPc() 75 size_t begin = 0; in GetNameAndOffsetByPc() local 77 while (begin < end) { in GetNameAndOffsetByPc() 78 size_t mid = begin + (end - begin) / 2; in GetNameAndOffsetByPc() 87 begin = mid + 1; in GetNameAndOffsetByPc()
|
D | dfx_maps.cpp | 83 uint64_t begin = 0; in Create() local 90 …sscanf_s(mapInfo.c_str(), "%" SCNxPTR "-%" SCNxPTR " %4s %" SCNxPTR " %*x:%*x %*d%n", &begin, &end, in Create() 97 dfxElfMap->SetMapBegin(begin); in Create() 115 for (auto iter = maps_.begin(); iter != maps_.end(); iter++) { in FindMapByPath() 130 for (auto iter = maps_.begin(); iter != maps_.end(); iter++) { in FindMapByAddr() 151 for (auto iter = maps_.begin(); iter != maps_.end(); iter++) { in CheckPcIsValid() 231 void DfxElfMap::SetMapBegin(uint64_t begin) in SetMapBegin() argument 233 begin_ = begin; in SetMapBegin()
|
/base/startup/appspawn/util/include/ |
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/security/access_token/services/privacymanager/src/database/ |
D | data_translator.cpp | 28 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/telephony/call_manager/services/call/src/ |
D | call_object_manager.cpp | 34 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in ~CallObjectManager() 47 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in AddOneCallObject() 69 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in DeleteOneCallObject() 100 std::list<sptr<CallBase>>::iterator it = CallObjectManager::callObjectPtrList_.begin(); in GetOneCallObject() 118 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in GetOneCallObject() 133 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in HasNewCall() 150 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in IsNewCallAllowedCreate() 169 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in GetCarrierCallList() 182 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in HasRingingMaximum() 199 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in HasDialingMaximum() [all …]
|
/base/hiviewdfx/hidumper/frameworks/native/src/common/ |
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/location/services/location_locator/locator/source/ |
D | work_record.cpp | 195 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/ |
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/sensors/sensor/services/sensor/hdi_connection/hardware/src/ |
D | hdi_service_impl.cpp | 49 sensorList.assign(g_sensorInfos.begin(), g_sensorInfos.end()); in GetSensorList() 71 if (std::find(supportSensors.begin(), supportSensors.end(), sensorId) == supportSensors.end()) { in EnableSensor() 75 …if (std::find(g_enableSensors.begin(), g_enableSensors.end(), sensorId) != g_enableSensors.end()) { in EnableSensor() 94 if (std::find(supportSensors.begin(), supportSensors.end(), sensorId) == supportSensors.end()) { in DisableSensor() 98 …if (std::find(g_enableSensors.begin(), g_enableSensors.end(), sensorId) == g_enableSensors.end()) { in DisableSensor() 103 for (iter = g_enableSensors.begin(); iter != g_enableSensors.end(); ++iter) { in DisableSensor()
|
/base/hiviewdfx/hiview/base/ |
D | event_dispatcher.cpp | 30 auto channelMapperIter = channelMapper_.begin(); in ClearInvalidListeners() 33 auto listenerIter = listeners.begin(); in ClearInvalidListeners() 64 if (std::any_of(listenerInfo.begin(), listenerInfo.end(), in DispatchEvent() 66 return ((event.eventId_ >= range.begin) && (event.eventId_ <= range.end)); in DispatchEvent() 84 if (std::any_of(listenerInfo.begin(), listenerInfo.end(), in DispatchEvent() 86 return ((event.eventId_ >= range.begin) && (event.eventId_ <= range.end)); in DispatchEvent()
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
D | ReminderHelperTest.js | 68 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/powermgr/thermal_manager/services/native/src/thermal_policy/ |
D | thermal_policy.cpp | 71 for (auto cluster = msc_.begin(); cluster != msc_.end(); cluster++) { in LevelDecision() 83 for (auto iter = clusterLevelMap_.begin(); iter != clusterLevelMap_.end(); iter++) { in WriteLevel() 86 auto level = *max_element(levelList.begin(), levelList.end()); in WriteLevel() 103 …for (auto clusterPolicy = clusterPolicyMap_.begin(); clusterPolicy != clusterPolicyMap_.end(); clu… in PolicyDecision() 134 for (auto action = vAction.begin(); action != vAction.end(); action++) { in ActionDecision() 148 … actionIter->second->SetXmlScene(action->mActionProp.begin()->second, action->actionValue); in ActionDecision() 183 for (auto prop = stateMap.begin(); prop != stateMap.end(); prop++) { in StateMachineDecision() 213 …for (auto currentIter = actionFallbackSet_.begin(); currentIter != actionFallbackSet_.end(); curre… in ActionExecution() 220 for (auto iter = actionMap.begin(); iter != actionMap.end(); iter++) { in ActionExecution() 232 … for (auto preAction = preExecuteList_.begin(); preAction != preExecuteList_.end(); preAction++) { in ActionFallbackDecision() [all …]
|
/base/telephony/cellular_call/services/common/src/ |
D | emergency_utils.cpp | 53 …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/location/interfaces/inner_api/include/ |
D | satellite_status.h | 48 for (std::vector<int>::iterator it = ids.begin(); it != ids.end(); ++it) { in SetSatelliteIds() 65 for (std::vector<double>::iterator it = cn0.begin(); it != cn0.end(); ++it) { in SetCarrierToNoiseDensitys() 82 for (std::vector<double>::iterator it = altitudes.begin(); it != altitudes.end(); ++it) { in SetAltitudes() 99 for (std::vector<double>::iterator it = azimuths.begin(); it != azimuths.end(); ++it) { in SetAzimuths() 116 for (std::vector<double>::iterator it = cfs.begin(); it != cfs.end(); ++it) { in SetCarrierFrequencies()
|
/base/telephony/call_manager/services/call_report/src/ |
D | call_ability_report_proxy.cpp | 37 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()
|
/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/hardware/src/ |
D | hdi_service_impl.cpp | 50 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()
|
/base/customization/enterprise_device_management/interfaces/inner_api/common/include/ |
D | policy_info.h | 30 std::transform((POLICY_NAME).begin(), (POLICY_NAME).end(), (POLICY_NAME).begin(), ::tolower); \
|