Home
last modified time | relevance | path

Searched refs:first (Results 1 - 25 of 515) sorted by relevance

12345678910>>...21

/base/request/request/frameworks/js/napi/src/
H A Dutf8_utils.cpp24 // Given a first byte, determines how many bytes are in this UTF-8 character.
72 bool Check3Bytes(const std::vector<uint8_t> &v, const size_t &first, size_t &index) in Check3Bytes() argument
79 if (first == 0xE0 && next >= 0xA0 && next <= 0xBF) { in Check3Bytes()
80 } else if (first >= 0xE1 && first <= 0xEC && next >= 0x80 && next <= 0xBF) { in Check3Bytes()
81 } else if (first == 0xED && next >= 0x80 && next <= 0x9F) { in Check3Bytes()
82 } else if (first >= 0xEE && first <= 0xEF && next >= 0x80 && next <= 0xBF) { in Check3Bytes()
93 bool Check4Bytes(const std::vector<uint8_t> &v, const size_t &first, size_t &index) in Check4Bytes() argument
100 if (first in Check4Bytes()
116 uint8_t first = v[index]; RunUtf8Validation() local
[all...]
H A Dlistener_list.cpp48 it->first = false; in RemoveListenerInner()
61 if (it->first == true) { in RemoveListenerInner()
62 it->first = false; in RemoveListenerInner()
75 if (it->first == false) { in OnMessageReceive()
100 return it->first; in IsListenerAdded()
/base/security/certificate_framework/test/unittest/common/src/
H A Dcf_test_common.cpp20 bool CertframeworkTest::CompareBlob(const CfBlob *first, const CfBlob *second) in CompareBlob() argument
22 if (first == nullptr || second == nullptr || first->data == nullptr || second->data == nullptr || in CompareBlob()
23 first->size != second->size) { in CompareBlob()
27 return (memcmp(first->data, second->data, first->size) == 0); in CompareBlob()
/base/telephony/core_service/frameworks/native/src/
H A Doperator_config_types.cpp58 if (!parcel.WriteString16(valueIt->first)) { in MarshallingU16StringMap()
76 if (!parcel.WriteString(valueIt->first)) { in MarshallingStringMap()
94 if (!parcel.WriteString(valueIt->first)) { in MarshallingBoolMap()
112 if (!parcel.WriteString(valueIt->first)) { in MarshallingIntMap()
130 if (!parcel.WriteString(valueIt->first)) { in MarshallingLongMap()
148 if (!parcel.WriteString(valueIt->first)) { in MarshallingStringArrayMap()
166 if (!parcel.WriteString(valueIt->first)) { in MarshallingIntArrayMap()
184 if (!parcel.WriteString(valueIt->first)) { in MarshallingLongArrayMap()
242 std::u16string first = parcel.ReadString16(); in ReadFromU16StringMap() local
244 configValue.emplace(std::pair<std::u16string, std::u16string>(first, secon in ReadFromU16StringMap()
259 std::string first = parcel.ReadString(); ReadFromStringMap() local
276 std::string first = parcel.ReadString(); ReadFromIntMap() local
293 std::string first = parcel.ReadString(); ReadFromBoolMap() local
309 std::string first = parcel.ReadString(); ReadFromLongMap() local
325 std::string first = parcel.ReadString(); ReadFromStringArrayMap() local
342 std::string first = parcel.ReadString(); ReadFromIntArrayMap() local
359 std::string first = parcel.ReadString(); ReadFromLongArrayMap() local
[all...]
/base/powermgr/power_manager/services/native/src/runninglock/
H A Drunning_lock_proxy.cpp89 auto& workSourceMap = tokenWksMapIter->second.first; in UpdateWorkSource()
94 auto iter = workSourceMap.find(wks.first); in UpdateWorkSource()
96 workSourcesState.insert({ iter->first, { iter->second.first, iter->second.second } }); in UpdateWorkSource()
100 bundleName.append(iter->second.first).append(" "); in UpdateWorkSource()
103 workSourcesState.insert({ wks.first, { wks.second, false } }); in UpdateWorkSource()
120 tokenWksMapIter->second.first = std::move(workSourcesState); in UpdateWorkSource()
186 bundleName.append(wks.second.first).append(" "); in MergeBundleName()
203 for (auto& wks : tokenWksItem.second.first) { in IncreaseProxyCnt()
206 tokenWksItem.second.second = static_cast<int32_t>(tokenWksItem.second.first in IncreaseProxyCnt()
[all...]
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
H A Dfan_fault_detect.cpp34 if (faultInfo.first == FAN_FAULT_TOO_SLOW) { in CheckFanFault()
36 } else if (faultInfo.first == FAN_FAULT_TOO_FAST) { in CheckFanFault()
50 if (sensorInfo.first == "fan") { in CheckFanTooSlow()
53 if (report.at(sensorInfo.first) > sensorInfo.second) { in CheckFanTooSlow()
73 if (sensorInfo.first == "fan") { in CheckFanTooFast()
76 if (report.at(sensorInfo.first) > sensorInfo.second) { in CheckFanTooFast()
100 if (GetSensorValue(report, sensorInfo.first) < 0) { in CheckFanSensorInfo()
123 reportInfo += sensorInfo.first; in FormatReportInfo()
125 reportInfo += std::to_string(report.at(sensorInfo.first)); in FormatReportInfo()
H A Dthermal_policy.cpp95 THERMAL_HILOGD(COMP_SVC, "update [%{public}s] level", cluster->first.c_str()); in LevelDecision()
98 clusterLevelMap_[cluster->first] = level; in LevelDecision()
130 const std::string& clusterName = clusterPolicy->first; in PolicyDecision()
171 auto actionIter = actionMap.find(actionPolicy.first); in ActionDecision()
173 THERMAL_HILOGE(COMP_SVC, "can't find action [%{public}s] ability", actionPolicy.first.c_str()); in ActionDecision()
201 auto stateIter = stateMachineMap.find(prop->first); in StateMachineDecision()
203 THERMAL_HILOGE(COMP_SVC, "can't find state machine [%{public}s]", prop->first.c_str()); in StateMachineDecision()
238 levInfo.append(clusterIter->first).append("-").append(std::to_string(clusterIter->second)).append(" "); in PrintPolicyState()
249 result.append(iter->first); in DumpLevel()
267 result.append(it->first); in PrintPolicyAction()
[all...]
/base/hiviewdfx/hiview/base/event_store/store/
H A Dsys_event_doc_lru_cache.cpp35 auto iterList = iterCache->second.first; in Get()
37 lruList_.push_front(iterCache->first); in Get()
38 iterCache->second.first = lruList_.begin(); in Get()
50 HIVIEW_LOGD("put sysEventDoc domain=%{public}s, name=%{public}s", key.first.c_str(), key.second.c_str()); in Add()
64 lruList_.erase(iterCache->second.first); in Remove()
/base/sensors/sensor/test/unittest/common/src/
H A Dsystem_info.cpp134 double CpuInfo::GetCpuUsage(const Total_Cpu_Occupy &first, const Total_Cpu_Occupy &second) in GetCpuUsage() argument
138 unsigned long cpuTime1 = static_cast<unsigned long>(first.user + first.nice + first.system + in GetCpuUsage()
139 first.idle + first.lowait + first.irq + first.softirq); in GetCpuUsage()
141 double cpu_use = (second.user - first.user) * CPU_USAGE_MAX / (cpuTime2 - cpuTime1); in GetCpuUsage()
142 double cpu_sys = (second.system - first in GetCpuUsage()
[all...]
/base/security/dlp_permission_service/services/dlp_permission/sa/storage/src/
H A Dsandbox_config_kv_data_storage.cpp129 std::size_t first = it->first.find_first_of(KEY_SEPATATOR); in GetKeyMapByUserId() local
130 std::size_t second = it->first.find_last_of(KEY_SEPATATOR); in GetKeyMapByUserId()
131 if (it->first.find(prefix) != std::string::npos && first != second) { in GetKeyMapByUserId()
132 std::string bundleName = it->first.substr(prefix.length(), second - first - 1); in GetKeyMapByUserId()
133 std::string tokenId = it->first.substr(second + 1, it->first.length() - second - 1); in GetKeyMapByUserId()
/base/customization/enterprise_device_management/services/edm_plugin/src/utils/
H A Dclipboard_utils.cpp31 removeVector.emplace_back(it->first); in HandlePasteboardPolicy()
34 setMap.insert(std::make_pair(it->first, MiscServices::ShareOption::InApp)); in HandlePasteboardPolicy()
37 setMap.insert(std::make_pair(it->first, MiscServices::ShareOption::LocalDevice)); in HandlePasteboardPolicy()
40 setMap.insert(std::make_pair(it->first, MiscServices::ShareOption::CrossDevice)); in HandlePasteboardPolicy()
66 removeVector.emplace_back(it->first); in RemoveAllPasteboardPolicy()
/base/request/request/frameworks/cj/ffi/src/
H A Dcj_listener_list.cpp41 it->first = false; in RemoveListenerInner()
49 if (it->first == true) { in RemoveListenerInner()
50 it->first = false; in RemoveListenerInner()
62 if (it->first == false) { in OnMessageReceive()
79 return it->first; in IsListenerAdded()
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/
H A Dfold_app_usage_event_factory.cpp94 if (statisticInfos.count(forgroundInfo.first) == 0) { in GetAppUsageInfo()
95 statisticInfos[forgroundInfo.first] = forgroundInfo.second; in GetAppUsageInfo()
98 statisticInfos[forgroundInfo.first].foldVer += forgroundInfo.second.foldVer; in GetAppUsageInfo()
99 statisticInfos[forgroundInfo.first].foldHor += forgroundInfo.second.foldHor; in GetAppUsageInfo()
100 statisticInfos[forgroundInfo.first].expdVer += forgroundInfo.second.expdVer; in GetAppUsageInfo()
101 statisticInfos[forgroundInfo.first].expdHor += forgroundInfo.second.expdHor; in GetAppUsageInfo()
102 statisticInfos[forgroundInfo.first].startNum += forgroundInfo.second.startNum; in GetAppUsageInfo()
141 if (iter == appNames.end() && event.first == FoldEventId::EVENT_APP_EXIT) { in GetForegroundAppsAtEndTime()
144 if (iter != appNames.end() && event.first == FoldEventId::EVENT_APP_START) { in GetForegroundAppsAtEndTime()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/
H A Dget_heap_info.cpp65 StringUtils::GetInstance().StringSplit(info.first, "#", pageTag); in GetInfo()
78 infos[info.first].insert(pair<string, uint64_t>(MEMINFO_HEAP_SIZE, heapInfo.size)); in GetInfo()
79 infos[info.first].insert(pair<string, uint64_t>(MEMINFO_HEAP_ALLOC, heapInfo.alloc)); in GetInfo()
80 infos[info.first].insert(pair<string, uint64_t>(MEMINFO_HEAP_FREE, heapInfo.free)); in GetInfo()
/base/hiviewdfx/hiview/plugins/event_store/event_export/task/export/
H A Devent_write_handler.cpp76 if (!FileUtil::RenameFile(item.first, item.second)) { in CopyTmpZipFilesToDest()
77 HIVIEW_LOGE("failed to move %{public}s to %{public}s", StringUtil::HideDeviceIdInfo(item.first).c_str(), in CopyTmpZipFilesToDest()
95 if (!FileUtil::RemoveFile(item.first)) { in Rollback()
96 HIVIEW_LOGE("failed to delete %{public}s", StringUtil::HideDeviceIdInfo(item.first).c_str()); in Rollback()
H A Devent_read_handler.cpp67 if (QuerySysEvent(queryRange.first, queryRange.second, eventList, queryCallback)) { in QuerySysEventInRange()
74 queryRange.first, queryRange.second); in QuerySysEventInRange()
81 eventExportedListener_(queryRange.first, queryRange.second); in QuerySysEventInRange()
99 query = EventStore::SysEventDao::BuildQuery(iter->first, iter->second, 0, endSeq, beginSeq); in QuerySysEvent()
109 iter->first.c_str(), queryRet); in QuerySysEvent()
113 PRId64 ",%{publiuc}" PRId64 ")", iter->first.c_str(), beginSeq, endSeq); in QuerySysEvent()
/base/powermgr/thermal_manager/services/native/src/thermal_observer/
H A Dthermal_service_subscriber.cpp53 typeTempMap_[it.first] = it.second; in OnTemperatureChanged()
79 auto iter = typeHistoryMap_.find(itMap.first); in SetHistoryTypeTempMap()
86 typeHistoryMap_.insert(std::make_pair(itMap.first, historyTempList)); in SetHistoryTypeTempMap()
105 sensorsRateMap_.insert(std::make_pair(history.first, rate)); in SetHistoryTypeTempMap()
/base/powermgr/thermal_manager/test/unittest/src/
H A Dthermal_action_hub_test.cpp105 if (iter.first == "cpu_big") { in OnThermalActionChanged()
109 GTEST_LOG_(INFO) << "actionName: " << iter.first << " actionValue: " << iter.second; in OnThermalActionChanged()
122 if (iter.first == "lcd") { in OnThermalActionChanged()
127 GTEST_LOG_(INFO) << "actionName: " << iter.first << " actionValue: " << iter.second; in OnThermalActionChanged()
142 if (iter.first == "cpu_med") { in OnThermalActionChanged()
146 if (iter.first == "lcd") { in OnThermalActionChanged()
151 GTEST_LOG_(INFO) << "actionName: " << iter.first << " actionValue: " << iter.second; in OnThermalActionChanged()
165 if (iter.first == "lcd") { in OnThermalActionChanged()
170 GTEST_LOG_(INFO) << "actionName: " << iter.first << " actionValue: " << iter.second; in OnThermalActionChanged()
183 if (iter.first in OnThermalActionChanged()
[all...]
/base/update/updater/services/applypatch/
H A Dblock_set.cpp53 if (pair.first >= pair.second) { in CheckReliablePair()
57 size_t size = pair.second - pair.first; in CheckReliablePair()
68 blockSize_ += (blockPair.second - blockPair.first); in PushBack()
110 size_t first = String2Int<size_t>(*bp++, N_DEC); in ParserAndInsert() local
113 first, second in ParserAndInsert()
115 blockSize_ += (second - first); in ParserAndInsert()
156 ret = lseek64(fd, static_cast<off64_t>(it->first * H_BLOCK_SIZE), SEEK_SET); in ReadDataFromBlock()
161 size_t size = (it->second - it->first) * H_BLOCK_SIZE; in ReadDataFromBlock()
177 off64_t offset = static_cast<off64_t>(it->first * H_BLOCK_SIZE); in WriteDataToBlock()
178 size_t writeSize = (it->second - it->first) * H_BLOCK_SIZ in WriteDataToBlock()
[all...]
/base/account/os_account/test/fuzztest/ohosaccount/queryohosaccountinfo_fuzzer/
H A Dqueryohosaccountinfo_fuzzer.cpp32 result.first = false; in QueryOhosAccountInfoFuzzTest()
34 return result.first; in QueryOhosAccountInfoFuzzTest()
/base/hiviewdfx/hiview/plugins/freeze_detector/
H A Dfreeze_common.cpp86 if (stringId == pair.first && domain == pair.second.first) { in IsAssignedEvent()
125 set.insert(pair.first); in GetPrincipalStringIds()
130 set.insert(pair.first); in GetPrincipalStringIds()
135 set.insert(pair.first); in GetPrincipalStringIds()
/base/security/device_security_level/services/dslm/
H A Ddslm_device_list.c126 bool IsSameDevice(const DeviceIdentify *first, const DeviceIdentify *second) in IsSameDevice() argument
128 if ((first == NULL) || (second == NULL)) { in IsSameDevice()
131 if (first->length != second->length) { in IsSameDevice()
134 if (memcmp(first->identity, second->identity, first->length) != 0) { in IsSameDevice()
/base/global/resource_management/frameworks/resmgr/src/
H A Dtheme_pack_resource.cpp131 ThemeKey themeKey = ThemeKey(bundleInfo.first, bundleInfo.second, resType, name->valuestring); in InitThemeRes()
382 if (iconValues_[i].first.bundleName == DYNAMIC_ICON && iconValues_[i].first.moduleName != bundleInfo.first) { in GetThemeAppIcon()
385 if (iconValues_[i].first.bundleName != DYNAMIC_ICON && iconValues_[i].first.bundleName != bundleInfo.first) { in GetThemeAppIcon()
388 if (iconValues_[i].first.abilityName.length() == 0 && iconName == iconValues_[i].first.resName) { in GetThemeAppIcon()
403 if (iconValues_[i].first in GetThemeAppIconByAbilityName()
[all...]
/base/hiviewdfx/hiview/plugins/sysevent_source/control/
H A Ddaily_controller.cpp96 .domain = key.first, in UpdateCacheToDb()
103 key.first.c_str(), key.second.c_str()); in UpdateCacheToDb()
122 int32_t threshold = config_->GetThreshold(cachekey.first, cachekey.second, type); in GetThreshold()
137 .domain = cachekey.first, in GetCount()
149 // check the first time the event crosses the threshold in UpdateCacheAndDb()
153 HIVIEW_LOGI("event first exceeds threshold, domain=%{public}s, name=%{public}s", in UpdateCacheAndDb()
154 cachekey.first.c_str(), cachekey.second.c_str()); in UpdateCacheAndDb()
183 .domain = cachekey.first, in UpdateDb()
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/
H A Dfeature_analysis.cpp127 if (one.first.find("LayerTwoCmd") != string::npos || in CheckStartSegment()
128 one.first.find("LayerOneCmd") != string::npos) { in CheckStartSegment()
195 // subParam.first: parameter name; subParam.second: the expression to match in ParseElementForParam()
202 SetParamRecord(rule.name + "." + iter->first, FormatLineFeature(value, reg), seekType); in ParseElementForParam()
203 SetStackRegex(rule.name + "." + iter->first, reg); in ParseElementForParam()
238 symbol = L3_DESCRIPTOR_LEFT + param.first + L3_DESCRIPTOR_RIGHT; in CheckVariableParam()
266 rule.param[subParam.first] = subParam.second; in ReplaceVariable()
302 if (one.first.find(rule.depend) != string::npos) { in CheckDepend()
330 if (eventInfo_.find(param.first) != eventInfo_.end() && param.first ! in Compose()
[all...]

Completed in 10 milliseconds

12345678910>>...21