Home
last modified time | relevance | path

Searched refs:second (Results 1 – 25 of 606) sorted by relevance

12345678910>>...25

/base/hiviewdfx/hilog/services/hilogd/
Dflow_control.cpp55 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()
Dlog_stats.cpp125 UpdateStats(itt->second, info); in UpdateTagTable()
138 UpdateStats(it->second.stats, info); in UpdateDomainTable()
143 if (!result.second) { in UpdateDomainTable()
149 UpdateTagTable(it->second.tagStats, info); in UpdateDomainTable()
157 UpdateStats(it->second.statsAll, info); in UpdatePidTable()
158 UpdateStats(it->second.stats[info.type], info); in UpdatePidTable()
168 if (!result.second) { in UpdatePidTable()
174 UpdateTagTable(it->second.tagStats, info); in UpdatePidTable()
263 it.second.stats.Print(); in Print()
264 for (auto &itt : it.second.tagStats) { in Print()
[all …]
/base/update/updater/services/ui/
Dupdater_ui_facade.cpp76 ShowMsg(it->second.labelLogId, tag, isClear); in ShowLog()
83 ShowMsg(it->second.labelLogResId, tag, isClear); in ShowLogRes()
90 ShowMsg(it->second.labelUpdId, tag, isClear); in ShowUpdInfo()
104 if (auto it = progressMap_.find(mode_); it->second != nullptr) { in ShowProgress()
105 it->second->ShowProgress(value); in ShowProgress()
114 return pgMgr_[it->second.progressPage.progressPageId].IsVisible(); in IsInProgress()
124 if (auto it = logoMap_.find(mode_); it->second != nullptr) { in SetLogoVisible()
125 isVisible ? it->second->Show() : it->second->Hide(); in SetLogoVisible()
136 if (auto it = progressMap_.find(mode_); it->second != nullptr) { in SetProgressVisible()
137 isVisible ? it->second->Show() : it->second->Hide(); in SetProgressVisible()
[all …]
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_policy.cpp72 cluster->second->UpdateThermalLevel(typeTempMap); in LevelDecision()
73 uint32_t level = cluster->second->GetCurrentLevel(); in LevelDecision()
84 levelList.push_back(iter->second); in WriteLevel()
104 if (clusterPolicy->first.empty() && clusterPolicy->second.empty()) { in PolicyDecision()
109 …for (auto levelAction = clusterPolicy->second.rbegin(); levelAction != clusterPolicy->second.rend(… in PolicyDecision()
111 if (clusterIter->second >= levelAction->level) { in PolicyDecision()
140 if (actionIter->second == nullptr) { in ActionDecision()
147 actionIter->second->AddActionValue(action->actionValue); in ActionDecision()
148 … actionIter->second->SetXmlScene(action->mActionProp.begin()->second, action->actionValue); in ActionDecision()
154 actionIter->second->AddActionValue(action->actionValue); in ActionDecision()
[all …]
/base/sensors/sensor/services/sensor/src/
Dclient_info.cpp55 for (const auto &pidIt : it->second) { in GetSensorState()
56 if (pidIt.second.GetSensorState() == true) { in GetSensorState()
82 for (const auto &pidIt : it->second) { in GetBestSensorInfo()
83 int64_t curSamplingPeriodNs = pidIt.second.GetSamplingPeriodNs(); in GetBestSensorInfo()
84 int64_t curReportDelayNs = pidIt.second.GetMaxReportDelayNs(); in GetBestSensorInfo()
107 for (const auto &pidIt : it->second) { in OnlyCurPidSensorEnabled()
108 if (!pidIt.second.GetSensorState()) { in OnlyCurPidSensorEnabled()
135 return ret.second; in UpdateAppThreadInfo()
167 if (uid != appThreadInfoIt.second.uid) { in GetSensorChannelByUid()
175 sensorChannel.push_back(channelIt->second); in GetSensorChannelByUid()
[all …]
/base/account/os_account/services/accountmgr/test/unittest/account_mgr_service_test/
Daccount_mgr_service_test.cpp74 return it->second; in GetAccountEventStr()
137 ret = (testInfo.second.uid_ == TEST_EXPECTED_UID);
139 ret = (testInfo.second.name_ == TEST_ACCOUNT_NAME);
141 ret = (testInfo.second.status_ == ACCOUNT_STATE_LOGIN);
151 ret = (testInfo.second.uid_ == DEFAULT_OHOS_ACCOUNT_UID);
153 ret = (testInfo.second.name_ == DEFAULT_OHOS_ACCOUNT_NAME);
155 ret = (testInfo.second.status_ == ACCOUNT_STATE_UNBOUND);
177 ret = (testInfo.second.uid_ == TEST_EXPECTED_UID);
179 ret = (testInfo.second.name_ == TEST_ACCOUNT_NAME);
181 ret = (testInfo.second.status_ == ACCOUNT_STATE_LOGIN);
[all …]
/base/powermgr/battery_statistics/services/native/src/entities/
Dcamera_entity.cpp37 auto uidIter = cameraIter.second.find(uid); in GetActiveTimeMs()
38 if (uidIter != cameraIter.second.end()) { in GetActiveTimeMs()
39 activeTimeMs += uidIter->second->GetRunningTimeMs(); in GetActiveTimeMs()
58 iter->second = cameraOnPowerMah; in Calculate()
71 power = iter->second; in GetEntityPowerMah()
87 power = cameraOnIter->second; in GetStatsPowerMah()
106 auto uidIter = cameraIter->second.find(uid); in GetOrCreateTimer()
107 if (uidIter != cameraIter->second.end()) { in GetOrCreateTimer()
108 timer = uidIter->second; in GetOrCreateTimer()
112 cameraIter->second.insert( in GetOrCreateTimer()
[all …]
Dsensor_entity.cpp41 activeTimeMs = gravityIter->second->GetRunningTimeMs(); in GetActiveTimeMs()
52 activeTimeMs = proximityIter->second->GetRunningTimeMs(); in GetActiveTimeMs()
76 gravityIter->second = gravityOnPowerMah; in CalculateGravity()
95 proximityIter->second = proximityOnPowerMah; in CalculateProximity()
114 sensorIter->second = sensorTotalPowerMah; in Calculate()
127 power = iter->second; in GetEntityPowerMah()
143 power = gravityOnIter->second; in GetStatsPowerMah()
153 power = proximityOnIter->second; in GetStatsPowerMah()
173 timer = gravityOnIter->second; in GetOrCreateTimer()
187 timer = proximityOnIter->second; in GetOrCreateTimer()
[all …]
Dcpu_entity.cpp44 cpuTimeMs = iter->second; in GetCpuTimeMs()
75 cpuTimeIter->second = cpuTimeMs; in Calculate()
95 cpuTotalIter->second = cpuTotalPowerMah; in Calculate()
114 cpuActiveIter->second = cpuActivePower; in CalculateCpuActivePower()
136 cpuClusterIter->second = cpuClusterPower; in CalculateCpuClusterPower()
161 cpuSpeedIter->second = cpuSpeedPower; in CalculateCpuSpeedPower()
175 power = iter->second; in GetEntityPowerMah()
192 power = cpuActiveIter->second; in GetStatsPowerMah()
202 power = cpuClusterIter->second; in GetStatsPowerMah()
212 power = cpuSpeedIter->second; in GetStatsPowerMah()
[all …]
Dflashlight_entity.cpp41 activeTimeMs = iter->second->GetRunningTimeMs(); in GetActiveTimeMs()
65 iter->second = flashlightOnPowerMah; in Calculate()
78 power = iter->second; in GetEntityPowerMah()
94 power = flashlightOnIter->second; in GetStatsPowerMah()
114 timer = flashlightOnIter->second; in GetOrCreateTimer()
135 iter.second = StatsUtils::DEFAULT_VALUE; in Reset()
140 if (iter.second) { in Reset()
141 iter.second->Reset(); in Reset()
Dwakelock_entity.cpp41 activeTimeMs = iter->second->GetRunningTimeMs(); in GetActiveTimeMs()
65 iter->second = wakelockOnPowerMah; in Calculate()
78 power = iter->second; in GetEntityPowerMah()
94 power = wakelockOnIter->second; in GetStatsPowerMah()
114 timer = wakelockOnIter->second; in GetOrCreateTimer()
135 iter.second = StatsUtils::DEFAULT_VALUE; in Reset()
140 if (iter.second) { in Reset()
141 iter.second->Reset(); in Reset()
Dgnss_entity.cpp41 activeTimeMs = iter->second->GetRunningTimeMs(); in GetActiveTimeMs()
64 iter->second = gnssOnPowerMah; in Calculate()
77 power = iter->second; in GetEntityPowerMah()
93 power = gnssOnIter->second; in GetStatsPowerMah()
113 timer = gnssOnIter->second; in GetOrCreateTimer()
133 iter.second = StatsUtils::DEFAULT_VALUE; in Reset()
138 if (iter.second) { in Reset()
139 iter.second->Reset(); in Reset()
Daudio_entity.cpp41 activeTimeMs = iter->second->GetRunningTimeMs(); in GetActiveTimeMs()
64 iter->second = audioOnPowerMah; in Calculate()
77 power = iter->second; in GetEntityPowerMah()
93 power = audioOnIter->second; in GetStatsPowerMah()
113 timer = audioOnIter->second; in GetOrCreateTimer()
133 iter.second = StatsUtils::DEFAULT_VALUE; in Reset()
138 if (iter.second) { in Reset()
139 iter.second->Reset(); in Reset()
Dalarm_entity.cpp41 count = almIter->second->GetCount(); in GetConsumptionCount()
63 iter->second = alarmOnPowerMah; in Calculate()
76 power = iter->second; in GetEntityPowerMah()
92 power = alarmOnIter->second; in GetStatsPowerMah()
111 counter = alarmOnIter->second; in GetOrCreateCounter()
131 iter.second = StatsUtils::DEFAULT_VALUE; in Reset()
136 if (iter.second) { in Reset()
137 iter.second->Reset(); in Reset()
Dphone_entity.cpp41 if (iter != phoneOnTimerMap_.end() && iter->second != nullptr) { in GetActiveTimeMs()
42 activeTimeMs = iter->second->GetRunningTimeMs(); in GetActiveTimeMs()
57 if (iter != phoneDataTimerMap_.end() && iter->second != nullptr) { in GetActiveTimeMs()
58 activeTimeMs = iter->second->GetRunningTimeMs(); in GetActiveTimeMs()
82 totalTimeMs += timerIter.second->GetRunningTimeMs(); in GetTotalTimeMs()
88 totalTimeMs += timerIter.second->GetRunningTimeMs(); in GetTotalTimeMs()
151 timer = onIter->second; in GetOrCreateTimer()
165 timer = dataIter->second; in GetOrCreateTimer()
189 if (iter.second) { in Reset()
190 iter.second->Reset(); in Reset()
[all …]
/base/security/appverify/interfaces/innerkits/appverify/src/init/
Dtrusted_root_ca.cpp42 X509_free(rootCert.second); in ~TrustedRootCa()
45 X509_free(rootCert.second); in ~TrustedRootCa()
66 X509_free(rootCert.second); in DisableDebug()
87 X509_free(rootCert.second); in Recovery()
106 HAPVERIFY_LOG_INFO(LABEL, "parse cert: %{public}s", jsonPair.second.c_str()); in GetTrustedRootCAFromJson()
107 X509* cert = HapCertVerifyOpensslUtils::GetX509CertFromPemString(jsonPair.second); in GetTrustedRootCAFromJson()
110 jsonPair.first.c_str(), jsonPair.second.c_str()); in GetTrustedRootCAFromJson()
144 if (HapCertVerifyOpensslUtils::X509NameCompare(X509_get_subject_name(root.second), in FindMatchedRoot()
146 HapCertVerifyOpensslUtils::CertVerify(caCert, root.second)) { in FindMatchedRoot()
147 return X509_dup(root.second); in FindMatchedRoot()
/base/sensors/medical_sensor/services/medical_sensor/src/
Dclient_info.cpp56 for (const auto &pidIt : it->second) { in GetSensorState()
57 if (pidIt.second.GetSensorState() == SENSOR_ENABLED) { in GetSensorState()
85 for (const auto &pidIt : it->second) { in GetBestSensorInfo()
86 int64_t curSamplingPeriodNs = pidIt.second.GetSamplingPeriodNs(); in GetBestSensorInfo()
87 int64_t curReportDelayNs = pidIt.second.GetMaxReportDelayNs(); in GetBestSensorInfo()
111 for (const auto &pidIt : it->second) { in OnlyCurPidSensorEnabled()
112 if (pidIt.second.GetSensorState() != SENSOR_ENABLED) { in OnlyCurPidSensorEnabled()
140 HiLog::Debug(LABEL, "%{public}s insert uid ret.second : %{public}d", __func__, ret.second); in UpdateUid()
141 return ret.second; in UpdateUid()
178 if (uid != uidIt.second.uid) { in GetSensorChannelByUid()
[all …]
/base/notification/common_event_service/services/src/
Dpublish_manager.cpp44 auto iterVec = iter->second.begin(); in CheckIsFloodAttack()
45 while (iterVec != iter->second.end()) { in CheckIsFloodAttack()
47 iterVec = iter->second.erase(iterVec); in CheckIsFloodAttack()
52 if (iter->second.size() + 1 > FLOOD_ATTACK_NUMBER_MAX) { in CheckIsFloodAttack()
56 iter->second.emplace_back(now); in CheckIsFloodAttack()
/base/telephony/core_service/frameworks/native/src/
Doperator_config_types.cpp61 if (!parcel.WriteString16(valueIt->second)) { in MarshallingU16StringMap()
79 if (!parcel.WriteString(valueIt->second)) { in MarshallingStringMap()
97 if (!parcel.WriteBool(valueIt->second)) { in MarshallingBoolMap()
115 if (!parcel.WriteInt32(valueIt->second)) { in MarshallingIntMap()
133 if (!parcel.WriteInt64(valueIt->second)) { in MarshallingLongMap()
151 if (!parcel.WriteStringVector(valueIt->second)) { in MarshallingStringArrayMap()
169 if (!parcel.WriteInt32Vector(valueIt->second)) { in MarshallingIntArrayMap()
187 if (!parcel.WriteInt64Vector(valueIt->second)) { in MarshallingLongArrayMap()
243 std::u16string second = parcel.ReadString16(); in ReadFromU16StringMap() local
244 configValue.emplace(std::pair<std::u16string, std::u16string>(first, second)); in ReadFromU16StringMap()
[all …]
/base/powermgr/thermal_manager/application/protector/src/policy/
Dthermal_kernel_policy.cpp44 tzIter->second->UpdateThermalLevel(typeIter->second); in LevelDecision()
45 uint32_t level = tzIter->second->GetThermalLevel(); in LevelDecision()
58 if (levelIter->second == policy->level) { in PolicyDecision()
73 if (nameIter->second == nullptr) { in ActionDecision()
76 nameIter->second->AddActionValue(actionIter->value); in ActionDecision()
96 if (executeIter->second == nullptr) { in ActionExecution()
99 executeIter->second->Execute(); in ActionExecution()
139 int32_t multiple = tzIter.second->GetInterval() / maxCd_; in SetMultiples()
140 tzIter.second->SetMultiple(multiple); in SetMultiples()
165 int32_t interval = tzIter.second->GetInterval(); in CalculateMaxCd()
[all …]
/base/location/frameworks/js/napi/include/
Dcallback_manager.h54 iter->second.clear(); in DeleteCallbackByEnv()
66 for (auto innerIter = iter->second.begin(); innerIter != iter->second.end(); innerIter++) { in IsCallbackInMap()
86 iter->second.insert(std::make_pair(handlerRef, callback)); in AddCallback()
97 for (auto innerIter = iter->second.begin(); innerIter != iter->second.end(); innerIter++) { in DeleteCallback()
100 innerIter = iter->second.erase(innerIter); in DeleteCallback()
101 if (iter->second.size() == 0) { in DeleteCallback()
117 for (auto innerIter = iter->second.begin(); innerIter != iter->second.end(); innerIter++) { in GetCallbackPtr()
120 return innerIter->second; in GetCallbackPtr()
/base/telephony/cellular_call/services/control/include/
Dcontrol_base.h224 T2 pConnection = &it.second; in FindConnectionByState()
243 T2 pConnection = &it.second; in FindConnectionByIndex()
266 if (!t1.insert(std::make_pair(key, con)).second) { in SetConnectionData()
290 return &p->second; in GetConnectionData()
306 auto pConnection = &it.second; in IsInState()
339 … auto pConnection = GetConnectionData<T &, decltype(&t.begin()->second)>(t, callInfo.phoneNum); in StartDtmf()
342 … pConnection = FindConnectionByIndex<T &, decltype(&t.begin()->second)>(t, callInfo.index); in StartDtmf()
379 … auto pConnection = GetConnectionData<T &, decltype(&t.begin()->second)>(t, callInfo.phoneNum); in StopDtmf()
382 … pConnection = FindConnectionByIndex<T &, decltype(&t.begin()->second)>(t, callInfo.index); in StopDtmf()
427 … auto pConnection = GetConnectionData<T &, decltype(&t.begin()->second)>(t, callInfo.phoneNum); in SendDtmf()
[all …]
/base/hiviewdfx/hiview/plugins/freeze_detector/
Dfreeze_common.cpp51 if (stringId == pair.first && domain == pair.second.first) { in IsApplicationEvent()
66 if (stringId == pair.first && domain == pair.second.first) { in IsSystemEvent()
98 if (pair.second.second) { in GetPrincipalStringIds()
103 if (pair.second.second) { in GetPrincipalStringIds()
/base/powermgr/thermal_manager/services/native/src/thermal_observer/
Dthermal_service_subscriber.cpp53 typeTempMap_[it.first] = it.second; in OnTemperatureChanged()
81 iter->second.pop_front(); in SetHistoryTypeTempMap()
82 iter->second.push_back(itMap.second); in SetHistoryTypeTempMap()
85 historyTempList.push_back(itMap.second); in SetHistoryTypeTempMap()
96 const auto& item = history.second; in SetHistoryTypeTempMap()
/base/hiviewdfx/hiview/base/event_store/
Dsys_event_query_wrapper.cpp175 auto& concurrentQueryCnt = tag.isInnerQuery ? iter->second.first : iter->second.second; in IsConcurrentQueryCntValid()
205 auto processIter = execIter->second.find(queryProcessId); in IsQueryFrequenceValid()
206 if (processIter == execIter->second.end()) { in IsQueryFrequenceValid()
207 execIter->second[queryProcessId] = current; in IsQueryFrequenceValid()
211 if (abs(current - processIter->second) > queryFrequent) { in IsQueryFrequenceValid()
212 execIter->second[queryProcessId] = current; in IsQueryFrequenceValid()
215 … QueryStatusLogUtil::LogQueryTooFrequently(query.ToString(), processInfo.second, tag.isInnerQuery); in IsQueryFrequenceValid()
227 auto& concurrentQueryCnt = tag.isInnerQuery ? iter->second.first : iter->second.second; in IncreaseConcurrentCnt()
239 auto& concurrentQueryCnt = tag.isInnerQuery ? iter->second.first : iter->second.second; in DecreaseConcurrentCnt()

12345678910>>...25