Home
last modified time | relevance | path

Searched refs:it (Results 1 – 25 of 466) sorted by relevance

12345678910>>...19

/base/telephony/call_manager/services/call/src/
Dcall_object_manager.cpp38 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in ~CallObjectManager() local
39 while (it != callObjectPtrList_.end()) { in ~CallObjectManager()
40 (*it) = nullptr; in ~CallObjectManager()
41 callObjectPtrList_.erase(it++); in ~CallObjectManager()
51 std::list<sptr<CallBase>>::iterator it = callObjectPtrList_.begin(); in AddOneCallObject() local
52 for (; it != callObjectPtrList_.end(); ++it) { in AddOneCallObject()
53 if ((*it)->GetCallID() == call->GetCallID()) { in AddOneCallObject()
77 std::list<sptr<CallBase>>::iterator it; in DeleteOneCallObject() local
78 for (it = callObjectPtrList_.begin(); it != callObjectPtrList_.end(); ++it) { in DeleteOneCallObject()
79 if ((*it)->GetCallID() == callId) { in DeleteOneCallObject()
[all …]
Dconference_base.cpp78 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/
Dcall_ability_report_proxy.cpp37 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/powermgr/power_manager/test/unittest/src/
Dpower_wakeup_parse_test.cpp63 vector<WakeupSource>::iterator it = itb; in TestPowerWakeup() local
65 for (; it != ite; it++) { in TestPowerWakeup()
66 if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_POWER_BUTTON) { in TestPowerWakeup()
67 if (it->IsEnable() != true) { in TestPowerWakeup()
70 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_KEYBOARD) { in TestPowerWakeup()
71 if (it->IsEnable() != true) { in TestPowerWakeup()
74 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_TOUCH_SCREEN) { in TestPowerWakeup()
75 if (it->IsEnable() != true) { in TestPowerWakeup()
78 if (it->GetClick() != DOUBLC_CLICK_INNER) { in TestPowerWakeup()
81 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_TOUCHPAD) { in TestPowerWakeup()
[all …]
Dpower_suspend_parse_test.cpp62 vector<SuspendSource>::iterator it = itb; in TestPowerSuspend() local
64 for (; it != ite; it++) { in TestPowerSuspend()
65 if (it->GetReason() == SuspendDeviceType::SUSPEND_DEVICE_REASON_POWER_KEY) { in TestPowerSuspend()
67 if (it->GetAction() != 1) { in TestPowerSuspend()
71 if (it->GetDelay() != 0) { in TestPowerSuspend()
74 } else if (it->GetReason() == SuspendDeviceType::SUSPEND_DEVICE_REASON_TIMEOUT) { in TestPowerSuspend()
76 if (it->GetAction() != 1) { in TestPowerSuspend()
80 if (it->GetDelay() != 0) { in TestPowerSuspend()
83 } else if (it->GetReason() == SuspendDeviceType::SUSPEND_DEVICE_REASON_LID) { in TestPowerSuspend()
85 if (it->GetAction() != 1) { in TestPowerSuspend()
[all …]
/base/update/updater/services/ui/
Dupdater_ui_facade.cpp68 auto it = strategies_.find(mode_); in CheckMode() local
69 if (it == strategies_.end()) { in CheckMode()
73 return {true, it}; in CheckMode()
78 if (auto [res, it] = CheckMode(); res) { in ShowLog()
79 ShowMsg(it->second.labelLogId, tag, isClear); in ShowLog()
85 if (auto [res, it] = CheckMode(); res) { in ShowLogRes()
86 ShowMsg(it->second.labelLogResId, tag, isClear); in ShowLogRes()
92 if (auto [res, it] = CheckMode(); res) { in ShowUpdInfo()
93 ShowMsg(it->second.labelUpdId, tag, isClear); in ShowUpdInfo()
107 if (auto it = progressMap_.find(mode_); it->second != nullptr) { in ShowProgress() local
[all …]
/base/hiviewdfx/hiview/interfaces/innerkits/xcollecter_hitrace/
Dcollect_item_result.cpp42 auto it = itemValues_.find(item); in GetCollectItemValue() local
43 if (it == itemValues_.end()) { in GetCollectItemValue()
48 value = it->second.strValue_; in GetCollectItemValue()
53 auto it = itemValues_.find(item); in GetCollectItemValue() local
54 if (it == itemValues_.end()) { in GetCollectItemValue()
60 value = it->second.strValue_; in GetCollectItemValue()
61 unit = it->second.unit_; in GetCollectItemValue()
66 auto it = itemValues_.find(item); in GetCollectItemValue() local
67 if (it == itemValues_.end()) { in GetCollectItemValue()
72 value = it->second.intValue_; in GetCollectItemValue()
[all …]
/base/hiviewdfx/hiview/plugins/sysevent_source/
Dsys_event_stat.cpp50 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/
Dpermission_definition_cache.cpp48 auto it = permissionDefinitionMap_.find(info.permissionName); in Insert() local
49 if (it != permissionDefinitionMap_.end()) { in Insert()
70 auto it = permissionDefinitionMap_.begin(); in DeleteByBundleName() local
71 while (it != permissionDefinitionMap_.end()) { in DeleteByBundleName()
72 if (bundleName == it->second.permDef.bundleName) { in DeleteByBundleName()
73 permissionDefinitionMap_.erase(it++); in DeleteByBundleName()
75 ++it; in DeleteByBundleName()
83 auto it = permissionDefinitionMap_.find(permissionName); in FindByPermissionName() local
84 if (it == permissionDefinitionMap_.end()) { in FindByPermissionName()
89 info = it->second.permDef; in FindByPermissionName()
[all …]
Dpermission_validator.cpp93 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/location/interfaces/inner_api/include/
Dsatellite_status.h49 for (std::vector<int>::iterator it = ids.begin(); it != ids.end(); ++it) { in SetSatelliteIds() local
50 satelliteIds_.push_back(*it); in SetSatelliteIds()
68 for (std::vector<double>::iterator it = cn0.begin(); it != cn0.end(); ++it) { in SetCarrierToNoiseDensitys() local
69 carrierToNoiseDensitys_.push_back(*it); in SetCarrierToNoiseDensitys()
87 for (std::vector<double>::iterator it = altitudes.begin(); it != altitudes.end(); ++it) { in SetAltitudes() local
88 altitudes_.push_back(*it); in SetAltitudes()
106 for (std::vector<double>::iterator it = azimuths.begin(); it != azimuths.end(); ++it) { in SetAzimuths() local
107 azimuths_.push_back(*it); in SetAzimuths()
125 for (std::vector<double>::iterator it = cfs.begin(); it != cfs.end(); ++it) { in SetCarrierFrequencies() local
126 carrierFrequencies_.push_back(*it); in SetCarrierFrequencies()
/base/hiviewdfx/hilog/services/hilogd/
Dflow_control.cpp53 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/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
Dhiappevent_verify.cpp79 for (auto it = value.begin(); it != value.end(); it++) { in EscapeStringValue() local
80 switch (*it) { in EscapeStringValue()
103 escapeValue.push_back(*it); in EscapeStringValue()
156 for (auto it = strs.begin(); it != strs.end(); it++) { in CheckStringLengthOfList() local
157 if (!CheckStrParamLength(*it)) { in CheckStringLengthOfList()
229 for (auto it = baseParams.begin(); it != baseParams.end();) { in VerifyAppEvent() local
230 if (!CheckParamName(it->name)) { in VerifyAppEvent()
231 …::Warn(LABEL, "param=%{public}s is discarded because the paramName is invalid.", it->name.c_str()); in VerifyAppEvent()
233 baseParams.erase(it++); in VerifyAppEvent()
237 … if (it->type == AppEventParamType::STRING && !CheckStrParamLength(it->value.valueUnion.str_)) { in VerifyAppEvent()
[all …]
/base/customization/enterprise_device_management/services/edm/src/
Dplugin_manager.cpp73 auto it = pluginsCode_.find(code); in GetPluginByFuncCode() local
74 if (it != pluginsCode_.end()) { in GetPluginByFuncCode()
75 return it->second; in GetPluginByFuncCode()
84 auto it = pluginsName_.find(policyName); in GetPluginByPolicyName() local
85 if (it != pluginsName_.end()) { in GetPluginByPolicyName()
86 return it->second; in GetPluginByPolicyName()
154 for (auto it = pluginsCode_.begin(); it != pluginsCode_.end(); it++) { in DumpPlugin() local
157 it->first, it->second->GetPolicyName().c_str(), in DumpPlugin()
158 it->second->GetPermission(FuncOperateType::GET).c_str(), in DumpPlugin()
159 it->second->GetPermission(FuncOperateType::SET).c_str()); in DumpPlugin()
[all …]
/base/theme/wallpaper_mgr/frameworks/js/napi/test/unittest/src/wallpaper_perf/
DWallpaperSyncApiPerfJsunit.test.js16 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
39 it('on_performance_test_001', 0, function (done) {
54 it('getColorsSync_performance_test_001', 0, function (done) {
68 it('getColorsSync_performance_test_002', 0, function (done) {
82 it('getIdSync_performance_test_001', 0, function (done) {
96 it('getIdSync_performance_test_002', 0, function (done) {
110 it('getFileSync_performance_test_001', 0, function (done) {
124 it('getFileSync_performance_test_002', 0, function (done) {
138 it('getMinHeightSync_performance_test_001', 0, function (done) {
152 it('getMinWidthSync_performance_test_001', 0, function (done) {
[all …]
/base/security/access_token/services/common/database/src/
Dgeneric_values.cpp52 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/sensors/sensor/services/sensor/src/
Dclient_info.cpp56 auto it = clientMap_.find(sensorId); in GetSensorState() local
57 if (it == clientMap_.end()) { in GetSensorState()
61 for (const auto &pidIt : it->second) { in GetSensorState()
83 auto it = clientMap_.find(sensorId); in GetBestSensorInfo() local
84 if (it == clientMap_.end()) { in GetBestSensorInfo()
88 for (const auto &pidIt : it->second) { in GetBestSensorInfo()
107 auto it = clientMap_.find(sensorId); in OnlyCurPidSensorEnabled() local
108 if (it == clientMap_.end()) { in OnlyCurPidSensorEnabled()
113 for (const auto &pidIt : it->second) { in OnlyCurPidSensorEnabled()
237 auto it = clientMap_.find(sensorId); in UpdateSensorInfo() local
[all …]
/base/hiviewdfx/faultloggerd/tools/crash_validator/
Dcrash_validator.cpp97 std::vector<CrashEvent>::const_iterator it = events.begin(); in PrintEvents() local
98 while (it != events.end()) { in PrintEvents()
101 it->name.c_str(), in PrintEvents()
102 static_cast<uint64_t>(it->time), in PrintEvents()
103 static_cast<uint64_t>(it->pid), in PrintEvents()
104 static_cast<uint64_t>(it->uid)); in PrintEvents()
107 it->name.c_str(), in PrintEvents()
108 static_cast<uint64_t>(it->time), in PrintEvents()
109 static_cast<uint64_t>(it->pid), in PrintEvents()
110 static_cast<uint64_t>(it->uid), in PrintEvents()
[all …]
/base/account/os_account/frameworks/appaccount/native/src/
Dapp_account_info.cpp122 auto it = authorizedApps_.emplace(authorizedApp); in EnableAppAccess() local
123 if (!it.second && apiVersion < Constants::API_VERSION9) { in EnableAppAccess()
141 auto it = authorizedApps_.find(authorizedApp); in CheckAppAccess() local
142 if (it != authorizedApps_.end()) { in CheckAppAccess()
220 auto it = jsonObject.find(key); in SetAssociatedData() local
221 if (it == jsonObject.end()) { in SetAssociatedData()
286 auto it = oauthTokens_.find(authType); in GetOAuthToken() local
288 if ((it == oauthTokens_.end()) || (!it->second.status)) { in GetOAuthToken()
293 if ((it == oauthTokens_.end()) || (it->second.token.empty())) { in GetOAuthToken()
298 token = it->second.token; in GetOAuthToken()
[all …]
/base/account/os_account/test/systemtest/common/resource/fuzzTest/include/
Dfuzz_config_parser.h56 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/msdp/device_status/services/interaction/drag/src/
Dstate_change_notify.cpp31 auto it = std::find_if(msgInfos_.begin(), msgInfos_.end(), in AddNotifyMsg() local
35 if (it != msgInfos_.end()) { in AddNotifyMsg()
36 *it = info; in AddNotifyMsg()
49 auto it = std::find_if(msgInfos_.begin(), msgInfos_.end(), in RemoveNotifyMsg() local
53 if (it != msgInfos_.end()) { in RemoveNotifyMsg()
54 msgInfos_.erase(it); in RemoveNotifyMsg()
65 for (auto it = msgInfos_.begin(); it != msgInfos_.end(); ++it) { in StateChangedNotify() local
66 auto info = *it; in StateChangedNotify()
/base/msdp/device_status/tools/vdev/src/
Dvirtual_touchscreen_builder.cpp408 auto it = model.find("actions"); in ReadModel() local
409 if (it != model.cend() && it->is_array()) { in ReadModel()
410 std::for_each(it->cbegin(), it->cend(), [](const auto &item) { ReadAction(item); }); in ReadModel()
426 auto it = model.find("action"); in ReadAction() local
427 if (it != model.cend()) { in ReadAction()
435 auto actionItr = actions.find(it.value()); in ReadAction()
445 auto it = model.find("slot"); in HandleDown() local
446 if (it != model.cend() && it->is_number_integer()) { in HandleDown()
447 slot = it.value(); in HandleDown()
450 it = model.find("x"); in HandleDown()
[all …]
/base/time/time_service/test/unittest/js_test/permission/
DSystemDateTimeGet.test.js17 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
31 it('testGetCurrentTimeMs001', 0, async function (done) {
47 it('testGetCurrentTimeMs002', 0, async function (done) {
66 it('testGetCurrentTimeMs003', 0, async function (done) {
82 it('testGetCurrentTimeMs004', 0, async function (done) {
101 it('testGetCurrentTimeNs001', 0, async function (done) {
118 it('testGetCurrentTimeNs002', 0, async function (done) {
137 it('testGetRealActiveTimeMs001', 0, async function (done) {
152 it('testGetRealActiveTimeMs002', 0, async function (done) {
170 it('testGetRealActiveTimeMs003', 0, async function (done) {
[all …]
DSystemTimeGet.test.js17 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
31 it('testGetCurrentTimeMs001', 0, async function (done) {
47 it('testGetCurrentTimeMs002', 0, async function (done) {
66 it('testGetCurrentTimeMs003', 0, async function (done) {
82 it('testGetCurrentTimeMs004', 0, async function (done) {
101 it('testGetCurrentTimeNs001', 0, async function (done) {
118 it('testGetCurrentTimeNs002', 0, async function (done) {
137 it('testGetRealActiveTimeMs001', 0, async function (done) {
152 it('testGetRealActiveTimeMs002', 0, async function (done) {
170 it('testGetRealActiveTimeMs003', 0, async function (done) {
[all …]
/base/global/i18n/frameworks/intl/test/unittest/
Dintl_test.cpp549 map<string, string>::iterator it = options.find("localeMatcher"); variable
550 if (it != options.end()) {
551 EXPECT_EQ(it->second, "best fit");
553 it = options.find("locale");
554 if (it != options.end()) {
555 EXPECT_EQ(it->second, "en-US");
557 it = options.find("usage");
558 if (it != options.end()) {
559 EXPECT_EQ(it->second, "sort");
561 it = options.find("sensitivity");
[all …]

12345678910>>...19