Home
last modified time | relevance | path

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

12345678910>>...23

/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...]
/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/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()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dsemaphorendk.cpp46 int first = PARAM_0; in SemGetvalue() local
47 napi_get_value_int32(env, args[0], &first); in SemGetvalue()
49 int ret = sem_getvalue(&semp, &first); in SemGetvalue()
104 int first = PARAM_0; in SemInit() local
105 napi_get_value_int32(env, args[0], &first); in SemInit()
107 int ret = sem_init(&bin_sem, PARAM_0, first); in SemInit()
136 int first = PARAM_0; in SemPost() local
137 napi_get_value_int32(env, args[0], &first); in SemPost()
155 int first = PARAM_0; in SemWait() local
156 napi_get_value_int32(env, args[0], &first); in SemWait()
171 int first = PARAM_0; SemTrywait() local
187 int first = PARAM_0; SemTimedwait() local
[all...]
H A Dschedndk.cpp47 int first = PARAM_0; in SchedGetPriorityMax() local
48 napi_get_value_int32(env, args[0], &first); in SchedGetPriorityMax()
49 int maxvalue = sched_get_priority_max(first); in SchedGetPriorityMax()
60 int first = PARAM_0; in SchedGetPriorityMin() local
61 napi_get_value_int32(env, args[0], &first); in SchedGetPriorityMin()
62 int minvalue = sched_get_priority_min(first); in SchedGetPriorityMin()
92 int first = PARAM_0; in SchedGetscheduler() local
93 napi_get_value_int32(env, args[0], &first); in SchedGetscheduler()
96 if (first == PARAM_0) { in SchedGetscheduler()
100 if (first in SchedGetscheduler()
115 int first = PARAM_0; SchedSetparam() local
144 int first = PARAM_0; SchedSetscheduler() local
206 int first = PARAM_0; SchedRrGetInterval() local
[all...]
/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/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/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/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/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/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()
/test/xts/acts/multimedia/media/media_cpp_standard/codecFormatNdk/
H A DActsCodecFormatNdkTest.cpp50 if (t.second.first) { in CheckDecDesc()
51 res = OH_AVFormat_GetLongValue(OutDesc, t.first.c_str(), &out_int64); in CheckDecDesc()
54 res = OH_AVFormat_GetIntValue(OutDesc, t.first.c_str(), &out_int32); in CheckDecDesc()
56 cout << "key: " << t.first << "; out: " << out_int32 << endl; in CheckDecDesc()
58 cout << "OH_AVFormat_Get Value Fail. key:" << t.first << endl; in CheckDecDesc()
62 cout << "OH_AVFormat_Get Value error. key: " << t.first in CheckDecDesc()
75 key = t.first.c_str(); in SetFormat()
77 if (t.second.first) { in SetFormat()
83 cout << "OH_AV_Format Put Value Fail. format key: " << t.first in SetFormat()
/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/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...]
/base/msdp/device_status/services/native/src/
H A Ddevicestatus_manager.cpp67 if (data.type == iter->first) { in GetLatestDeviceStatusData()
212 FI_HILOGI("callbacklist.size:%{public}zu", listeners_[dtTypeIter->first].size()); in Subscribe()
213 auto iter = listeners_[dtTypeIter->first].find(callback); in Subscribe()
214 if (iter != listeners_[dtTypeIter->first].end()) { in Subscribe()
217 if (listeners_[dtTypeIter->first].insert(callback).second) { in Subscribe()
250 FI_HILOGI("callbacklist.size:%{public}zu", listeners_[dtTypeIter->first].size()); in Unsubscribe()
251 auto iter = listeners_[dtTypeIter->first].find(callback); in Unsubscribe()
252 if (iter != listeners_[dtTypeIter->first].end()) { in Unsubscribe()
253 if (listeners_[dtTypeIter->first].erase(callback) != 0) { in Unsubscribe()
255 if (listeners_[dtTypeIter->first] in Unsubscribe()
[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/plugins/event_store/event_export/task/export/
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()
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()
/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/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()

Completed in 12 milliseconds

12345678910>>...23