/base/telephony/call_manager/services/call/src/ |
D | call_object_manager.cpp | 34 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in ~CallObjectManager() local 35 while (it != callObjectPtrList_.end()) { in ~CallObjectManager() 36 (*it) = nullptr; in ~CallObjectManager() 37 callObjectPtrList_.erase(it++); in ~CallObjectManager() 47 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in AddOneCallObject() local 48 for (; it != callObjectPtrList_.end(); ++it) { in AddOneCallObject() 49 if ((*it)->GetCallID() == call->GetCallID()) { in AddOneCallObject() 68 std::list<sptr<CallBase>>::iterator it; in DeleteOneCallObject() local 69 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in DeleteOneCallObject() 70 if ((*it)->GetCallID() == callId) { in DeleteOneCallObject() [all …]
|
D | conference_base.cpp | 78 for (auto it = subCallIdSet_.begin(); it != subCallIdSet_.end(); ++it) { in GetSubCallIdList() local 79 if (*it == callId) { in GetSubCallIdList() 82 callIdList.push_back(Str8ToStr16(std::to_string(*it))); in GetSubCallIdList() 83 TELEPHONY_LOGI("subCallId_:%{public}d", *it); in GetSubCallIdList() 98 for (auto it = subCallIdSet_.begin(); it != subCallIdSet_.end(); ++it) { in GetCallIdListForConference() local 99 if (*it == callId) { in GetCallIdListForConference() 102 callIdList.push_back(Str8ToStr16(std::to_string(*it))); in GetCallIdListForConference() 103 TELEPHONY_LOGI("subCallId_:%{public}d", *it); in GetCallIdListForConference()
|
/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() local 38 while (it != callbackPtrList_.end()) { in ~CallAbilityReportProxy() 39 if ((*it)) { in ~CallAbilityReportProxy() 40 (*it).clear(); in ~CallAbilityReportProxy() 41 (*it) = nullptr; in ~CallAbilityReportProxy() 43 callbackPtrList_.erase(it++); in ~CallAbilityReportProxy() 56 std::list<sptr<ICallAbilityCallback>>::iterator it = callbackPtrList_.begin(); in RegisterCallBack() local 57 for (; it != callbackPtrList_.end(); ++it) { in RegisterCallBack() 58 if ((*it)->GetBundleName() == bundleName) { in RegisterCallBack() 59 (*it).clear(); in RegisterCallBack() [all …]
|
/base/update/updater/services/ui/ |
D | updater_ui_facade.cpp | 65 auto it = strategies_.find(mode_); in CheckMode() local 66 if (it == strategies_.end()) { in CheckMode() 70 return {true, it}; in CheckMode() 75 if (auto [res, it] = CheckMode(); res) { in ShowLog() 76 ShowMsg(it->second.labelLogId, tag, isClear); in ShowLog() 82 if (auto [res, it] = CheckMode(); res) { in ShowLogRes() 83 ShowMsg(it->second.labelLogResId, tag, isClear); in ShowLogRes() 89 if (auto [res, it] = CheckMode(); res) { in ShowUpdInfo() 90 ShowMsg(it->second.labelUpdId, tag, isClear); in ShowUpdInfo() 104 if (auto it = progressMap_.find(mode_); it->second != nullptr) { in ShowProgress() local [all …]
|
/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() local 49 satelliteIds_.push_back(*it); in SetSatelliteIds() 65 for (std::vector<double>::iterator it = cn0.begin(); it != cn0.end(); ++it) { in SetCarrierToNoiseDensitys() local 66 carrierToNoiseDensitys_.push_back(*it); in SetCarrierToNoiseDensitys() 82 for (std::vector<double>::iterator it = altitudes.begin(); it != altitudes.end(); ++it) { in SetAltitudes() local 83 altitudes_.push_back(*it); in SetAltitudes() 99 for (std::vector<double>::iterator it = azimuths.begin(); it != azimuths.end(); ++it) { in SetAzimuths() local 100 azimuths_.push_back(*it); in SetAzimuths() 116 for (std::vector<double>::iterator it = cfs.begin(); it != cfs.end(); ++it) { in SetCarrierFrequencies() local 117 carrierFrequencies_.push_back(*it); in SetCarrierFrequencies()
|
/base/global/i18n/frameworks/intl/test/unittest/ |
D | intl_test.cpp | 495 map<string, string>::iterator it = options.find("localeMatcher"); variable 496 if (it != options.end()) { 497 EXPECT_EQ(it->second, "best fit"); 499 it = options.find("locale"); 500 if (it != options.end()) { 501 EXPECT_EQ(it->second, "en-US"); 503 it = options.find("usage"); 504 if (it != options.end()) { 505 EXPECT_EQ(it->second, "sort"); 507 it = options.find("sensitivity"); [all …]
|
/base/hiviewdfx/hiview/plugins/eventservice/service/ |
D | sys_event_stat.cpp | 50 auto it = d2es_.find(domain); in AddValidEvent() local 51 if (it == d2es_.end()) { in AddValidEvent() 58 std::map<std::string, int64_t> &events = it->second; in AddValidEvent() 70 auto it = d2ies_.find(domain); in AddInValidEvent() local 71 if (it == d2ies_.end()) { in AddInValidEvent() 78 if (it->second.size() >= INVALID_EVENT_SIZE_LIMIT) { in AddInValidEvent() 81 std::size_t pos = it->second.find(eventName + ";"); in AddInValidEvent() 162 for (auto it = d2es_.begin(); it != d2es_.end(); it++) { in GetDomains() local 163 domains.emplace_back(it->first); in GetDomains() 171 for (auto it = events.begin(); it != events.end(); it++) { in GetEventCount() local [all …]
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
D | permission_definition_cache.cpp | 48 auto it = permissionDefinitionMap_.find(info.permissionName); in Insert() local 49 if (it != permissionDefinitionMap_.end()) { in Insert() 69 auto it = permissionDefinitionMap_.begin(); in DeleteByBundleName() local 70 while (it != permissionDefinitionMap_.end()) { in DeleteByBundleName() 71 if (bundleName == it->second.permDef.bundleName) { in DeleteByBundleName() 72 permissionDefinitionMap_.erase(it++); in DeleteByBundleName() 74 ++it; in DeleteByBundleName() 82 auto it = permissionDefinitionMap_.find(permissionName); in FindByPermissionName() local 83 if (it == permissionDefinitionMap_.end()) { in FindByPermissionName() 88 info = it->second.permDef; in FindByPermissionName() [all …]
|
D | permission_validator.cpp | 93 for (auto it = permList.begin(); it != permList.end(); ++it) { in FilterInvalidPermissionDef() local 94 std::string permName = it->permissionName; in FilterInvalidPermissionDef() 95 if (!IsPermissionDefValid(*it) || permDefSet.count(permName) != 0) { in FilterInvalidPermissionDef() 99 result.emplace_back(*it); in FilterInvalidPermissionDef() 108 …for (auto it = permState.resDeviceID.begin(); it != permState.resDeviceID.end(); ++it, ++stateIter… in DeduplicateResDevID() local 109 if (resDevId.count(*it) != 0) { in DeduplicateResDevID() 112 resDevId.insert(*it); in DeduplicateResDevID() 113 result.resDeviceID.emplace_back(*it); in DeduplicateResDevID() 125 for (auto it = permList.begin(); it != permList.end(); ++it) { in FilterInvalidPermissionState() local 126 std::string permName = it->permissionName; in FilterInvalidPermissionState() [all …]
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
D | hiappevent_verify.cpp | 70 for (auto it = value.begin(); it != value.end(); it++) { in EscapeStringValue() local 71 switch (*it) { in EscapeStringValue() 94 escapeValue.push_back(*it); in EscapeStringValue() 147 for (auto it = strs.begin(); it != strs.end(); it++) { in CheckStringLengthOfList() local 148 if (!CheckStrParamLength(*it)) { in CheckStringLengthOfList() 220 for (auto it = baseParams.begin(); it != baseParams.end();) { in VerifyAppEvent() local 221 if (!CheckParamName(it->name)) { in VerifyAppEvent() 222 …::Warn(LABEL, "param=%{public}s is discarded because the paramName is invalid.", it->name.c_str()); in VerifyAppEvent() 224 baseParams.erase(it++); in VerifyAppEvent() 228 … if (it->type == AppEventParamType::STRING && !CheckStrParamLength(it->value.valueUnion.str_)) { in VerifyAppEvent() [all …]
|
/base/account/os_account/frameworks/appaccount/native/src/ |
D | app_account_info.cpp | 121 auto it = authorizedApps_.emplace(authorizedApp); in EnableAppAccess() local 122 if (!it.second && apiVersion < Constants::API_VERSION9) { in EnableAppAccess() 140 auto it = authorizedApps_.find(authorizedApp); in CheckAppAccess() local 141 if (it != authorizedApps_.end()) { in CheckAppAccess() 219 auto it = jsonObject.find(key); in SetAssociatedData() local 220 if (it == jsonObject.end()) { in SetAssociatedData() 285 auto it = oauthTokens_.find(authType); in GetOAuthToken() local 287 if ((it == oauthTokens_.end()) || (!it->second.status)) { in GetOAuthToken() 292 if ((it == oauthTokens_.end()) || (it->second.token.empty())) { in GetOAuthToken() 297 token = it->second.token; in GetOAuthToken() [all …]
|
/base/notification/distributed_notification_service/test/resource/notificationfuzztest/include/ |
D | notificationfuzzconfigparser.h | 53 for (auto it = jsonObj.begin(); it != jsonObj.end(); ++it) { in ParseFromFile4FuzzTest() local 54 if (!it.key().compare(FUZZ_TEST_MAIN_LOOP_KEY)) { in ParseFromFile4FuzzTest() 55 ftd.mainLoopFlag = it.value(); in ParseFromFile4FuzzTest() 59 auto className = it.key(); in ParseFromFile4FuzzTest() 60 if (it->is_structured()) { in ParseFromFile4FuzzTest() 61 for (auto itm = it->begin(); itm != it->end(); ++itm) { in ParseFromFile4FuzzTest() 64 if (!(it->is_structured() && (it->size() != 0))) { in ParseFromFile4FuzzTest()
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | flow_control.cpp | 53 auto it = g_domainMap.find(domainId); in FlowCtrlDomain() local 54 if (it != g_domainMap.end()) { in FlowCtrlDomain() 55 LogTimeStamp start = it->second.startTime; in FlowCtrlDomain() 59 it->second.startTime = tsNow; in FlowCtrlDomain() 60 it->second.sumLen = logLen; in FlowCtrlDomain() 61 ret = static_cast<int>(it->second.dropped); in FlowCtrlDomain() 62 it->second.dropped = 0; in FlowCtrlDomain() 64 if (it->second.sumLen <= it->second.quota) { /* under quota */ in FlowCtrlDomain() 65 it->second.sumLen += logLen; in FlowCtrlDomain() 68 it->second.dropped++; in FlowCtrlDomain()
|
/base/notification/common_event_service/test/systemtest/common/resource/fuzzTest/include/ |
D | fuzzConfigParser.h | 54 for (auto it = jsonObj.begin(); it != jsonObj.end(); ++it) { in ParseFromFile4FuzzTest() local 55 if (!it.key().compare(FUZZ_TEST_MAIN_LOOP_KEY)) { in ParseFromFile4FuzzTest() 56 ftd.mainLoopFlag = it.value(); in ParseFromFile4FuzzTest() 60 auto className = it.key(); in ParseFromFile4FuzzTest() 61 if (it->is_structured()) { in ParseFromFile4FuzzTest() 62 for (auto itm = it->begin(); itm != it->end(); ++itm) { in ParseFromFile4FuzzTest() 65 if (!(it->is_structured() && (it->size() != 0))) { in ParseFromFile4FuzzTest()
|
/base/customization/enterprise_device_management/services/edm/src/ |
D | plugin_manager.cpp | 70 auto it = pluginsCode_.find(code); in GetPluginByFuncCode() local 71 if (it != pluginsCode_.end()) { in GetPluginByFuncCode() 72 return it->second; in GetPluginByFuncCode() 81 auto it = pluginsName_.find(policyName); in GetPluginByPolicyName() local 82 if (it != pluginsName_.end()) { in GetPluginByPolicyName() 83 return it->second; in GetPluginByPolicyName() 144 for (auto it = pluginsCode_.begin(); it != pluginsCode_.end(); it++) { in DumpPlugin() local 146 it->first, it->second->GetPolicyName().c_str(), it->second->GetPermission().c_str()); in DumpPlugin() 148 for (auto it = pluginsName_.begin(); it != pluginsName_.end(); it++) { in DumpPlugin() local 150 it->first.c_str(), it->second->GetCode(), it->second->GetPermission().c_str()); in DumpPlugin()
|
/base/security/access_token/services/common/database/src/ |
D | generic_values.cpp | 52 auto it = map_.find(key); in GetInt() local 53 if (it == map_.end()) { in GetInt() 56 return it->second.GetInt(); in GetInt() 61 auto it = map_.find(key); in GetInt64() local 62 if (it == map_.end()) { in GetInt64() 65 return it->second.GetInt64(); in GetInt64() 70 auto it = map_.find(key); in GetString() local 71 if (it == map_.end()) { in GetString() 74 return it->second.GetString(); in GetString() 80 for (auto it = map_.begin(); it != map_.end(); ++it) { in GetAllKeys() local [all …]
|
/base/account/os_account/test/systemtest/common/resource/fuzzTest/include/ |
D | fuzz_config_parser.h | 56 for (auto it = jsonObj.begin(); it != jsonObj.end(); ++it) { in ParseFromFile4FuzzTest() local 57 if (!it.key().compare(FUZZ_TEST_MAIN_LOOP_KEY)) { in ParseFromFile4FuzzTest() 58 ftd.mainLoopFlag = it.value(); in ParseFromFile4FuzzTest() 62 auto className = it.key(); in ParseFromFile4FuzzTest() 63 if (!it->is_structured()) { in ParseFromFile4FuzzTest() 66 for (auto itm = it->begin(); itm != it->end(); ++itm) { in ParseFromFile4FuzzTest() 69 if (!(it->is_structured() && (it->size() != 0))) { in ParseFromFile4FuzzTest()
|
/base/sensors/sensor/services/sensor/src/ |
D | client_info.cpp | 50 auto it = clientMap_.find(sensorId); in GetSensorState() local 51 if (it == clientMap_.end()) { in GetSensorState() 55 for (const auto &pidIt : it->second) { in GetSensorState() 77 auto it = clientMap_.find(sensorId); in GetBestSensorInfo() local 78 if (it == clientMap_.end()) { in GetBestSensorInfo() 82 for (const auto &pidIt : it->second) { in GetBestSensorInfo() 101 auto it = clientMap_.find(sensorId); in OnlyCurPidSensorEnabled() local 102 if (it == clientMap_.end()) { in OnlyCurPidSensorEnabled() 107 for (const auto &pidIt : it->second) { in OnlyCurPidSensorEnabled() 228 auto it = clientMap_.find(sensorId); in UpdateSensorInfo() local [all …]
|
/base/notification/distributed_notification_service/services/ans/src/ |
D | reminder_data_manager.cpp | 92 for (auto it = reminderVector_.begin(); it != reminderVector_.end(); ++it) { in GetValidReminders() local 93 if ((*it)->IsExpired()) { in GetValidReminders() 96 int32_t reminderId = (*it)->GetReminderId(); in GetValidReminders() 102 reminders.push_back(*it); in GetValidReminders() 203 for (auto it = reminderVector_.begin(); it != reminderVector_.end(); ++it) { in CheckReminderLimitExceededLocked() local 204 if ((*it)->IsExpired()) { in CheckReminderLimitExceededLocked() 207 auto mit = notificationBundleOptionMap_.find((*it)->GetReminderId()); in CheckReminderLimitExceededLocked() 209 … ANSR_LOGE("Error occur when get bundle option, reminderId=%{public}d", (*it)->GetReminderId()); in CheckReminderLimitExceededLocked() 227 for (auto it = showedReminderVector_.begin(); it != showedReminderVector_.end(); ++it) { in AddToShowedReminders() local 228 if (reminder->GetReminderId() == (*it)->GetReminderId()) { in AddToShowedReminders() [all …]
|
/base/time/time_service/framework/js/napi/system_time/test/unittest/src/ |
D | SystemTimeJsunit.test.js | 18 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' 30 it("systemTime_setTimezone_test1", 0, async function (done) { 48 it("systemTime_setTimezone_test2", 0, async function (done) { 66 it("systemTime_setTimezone_test3", 0, async function (done) { 84 it("systemTime_setTimezone_test4", 0, async function (done) { 102 it("systemTime_setTimezone_test5", 0, async function (done) { 120 it("systemTime_setTimezone_test6", 0, async function (done) { 138 it("systemTime_setTimezone_test7", 0, async function (done) { 156 it("systemTime_setTimezone_test8", 0, async function (done) { 174 it("systemTime_setTimezone_test9", 0, async function (done) { [all …]
|
/base/theme/wallpaper_mgr/utils/include/ |
D | concurrent_map.h | 74 auto it = entries_.emplace(std::forward<_Args>(__args)...); in Emplace() local 75 return it->second; in Emplace() 81 auto it = entries_.find(key); in Find() local 82 if (it == entries_.end()) { in Find() 86 return std::pair { true, it->second }; in Find() 99 auto it = entries_.insert_or_assign(key, std::forward<_Obj>(obj)); in InsertOrAssign() local 100 return it.second; in InsertOrAssign() 106 auto it = entries_.insert(value_type { key, value }); in Insert() local 107 return it.second; in Insert() 147 for (auto it = entries_.begin(); it != entries_.end();) { in EraseIf() local [all …]
|
/base/hiviewdfx/hiview/plugins/faultlogger/crash_validator/ |
D | crash_validator.cpp | 79 std::vector<CrashEvent>::const_iterator it = events.begin(); in PrintEvents() local 80 while (it != events.end()) { in PrintEvents() 82 it->name.c_str(), in PrintEvents() 83 static_cast<uint64_t>(it->time), in PrintEvents() 84 static_cast<uint64_t>(it->pid), in PrintEvents() 85 static_cast<uint64_t>(it->uid), in PrintEvents() 86 it->isCppCrash); in PrintEvents() 87 it++; in PrintEvents() 143 std::vector<CrashEvent>::iterator it = pendingEvents_.begin(); in RemoveSimilarEvent() local 144 while (it != pendingEvents_.end()) { in RemoveSimilarEvent() [all …]
|
/base/telephony/core_service/services/sim/src/ |
D | operator_config_cache.cpp | 129 for (auto it : from.configValue) { in CopyOperatorConfig() local 130 to.configValue[it.first] = it.second; in CopyOperatorConfig() 132 for (auto it : from.boolValue) { in CopyOperatorConfig() local 133 to.boolValue[it.first] = it.second; in CopyOperatorConfig() 135 for (auto it : from.intValue) { in CopyOperatorConfig() local 136 to.intValue[it.first] = it.second; in CopyOperatorConfig() 138 for (auto it : from.longValue) { in CopyOperatorConfig() local 139 to.longValue[it.first] = it.second; in CopyOperatorConfig() 141 for (auto it : from.stringValue) { in CopyOperatorConfig() local 142 to.stringValue[it.first] = it.second; in CopyOperatorConfig() [all …]
|
/base/time/time_service/framework/js/napi/system_date_time/test/unittest/src/ |
D | SystemDateTimeJsunit.test.js | 18 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' 30 it("systemDateTime_setTimezone_test1", 0, async function (done) { 48 it("systemDateTime_setTimezone_test2", 0, async function (done) { 66 it("systemDateTime_setTimezone_test3", 0, async function (done) { 84 it("systemDateTime_setTimezone_test4", 0, async function (done) { 102 it("systemDateTime_setTimezone_test5", 0, async function (done) { 120 it("systemDateTime_setTimezone_test6", 0, async function (done) { 138 it("systemDateTime_setTimezone_test7", 0, async function (done) { 156 it("systemDateTime_setTimezone_test8", 0, async function (done) { 174 it("systemDateTime_setTimezone_test9", 0, async function (done) { [all …]
|
/base/usb/usb_manager/services/native/src/ |
D | usb_port_manager.cpp | 54 for (auto it = portMap_.begin(); it != portMap_.end(); ++it) { in GetPorts() local 55 ports.push_back(it->second); in GetPorts() 62 for (auto it = portMap_.begin(); it != portMap_.end(); ++it) { in GetPorts() local 63 ports.push_back(it->second); in GetPorts() 76 auto it = portMap_.find(portId); in GetSupportedModes() local 77 if (it != portMap_.end()) { in GetSupportedModes() 78 supportedModes = it->second.supportedModes; in GetSupportedModes() 120 auto it = portMap_.find(portId); in UpdatePort() local 121 if (it != portMap_.end()) { in UpdatePort() 122 if (it->second.id == portId) { in UpdatePort() [all …]
|