Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 25 of 38) sorted by relevance

12

/developtools/hdc/src/common/
Dcircle_buffer.cpp29 for (auto iter = buffers_.begin(); iter != buffers_.end();) { in ~CircleBuffer() local
30 Data *data = iter->second; in ~CircleBuffer()
33 iter = buffers_.erase(iter); in ~CircleBuffer()
42 for (auto iter = buffers_.begin(); iter != buffers_.end(); ++iter) { in Malloc() local
43 Data *data = iter->second; in Malloc()
85 for (auto iter = buffers_.begin(); iter != buffers_.end();) { in FreeMemory() local
87 Data *data = iter->second; in FreeMemory()
98 iter = buffers_.erase(iter); in FreeMemory()
100 ++iter; in FreeMemory()
Dsession.cpp146 map<uint32_t, HTaskInfo>::iterator iter; in ClearOwnTasks() local
147 for (iter = hSession->mapTask->begin(); iter != hSession->mapTask->end();) { in ClearOwnTasks()
148 uint32_t channelId = iter->first; in ClearOwnTasks()
149 HTaskInfo hTask = iter->second; in ClearOwnTasks()
152 ++iter; in ClearOwnTasks()
158 iter = hSession->mapTask->erase(iter); in ClearOwnTasks()
163 iter = hSession->mapTask->erase(iter); in ClearOwnTasks()
Dforward.cpp41 map<uint32_t, HCtxForward>::iterator iter; in StopTask() local
42 for (iter = mapCtxPoint.begin(); iter != mapCtxPoint.end(); ++iter) { in StopTask()
43 HCtxForward ctx = iter->second; in StopTask()
/developtools/profiler/host/smartperf/client/client_command/include/
Dsp_csv_util.h42 for (auto iter = spdata.values.cbegin(); iter != spdata.values.cend(); ++iter) { in WriteCsv() local
44 title += iter->first + ","; in WriteCsv()
46 lineContent += iter->second + ","; in WriteCsv()
66 for (auto iter = vmap.cbegin(); iter != vmap.cend(); ++iter) { in WriteCsvH() local
67 outFile << iter->first + "," + iter->second << std::endl; in WriteCsvH()
Dsp_thread_socket.h32 for (auto iter = dataMap.cbegin(); iter != dataMap.cend(); ++iter) { in MapToString() local
33 printf("%s = %s\n", iter->first.c_str(), iter->second.c_str()); in MapToString()
37 result += splitStr + iter->first.c_str() + "||" + iter->second.c_str(); in MapToString()
/developtools/profiler/device/services/ipc/src/
Dclient_map.cpp50 for (auto iter = socketClients_.begin(); iter != socketClients_.end(); ++iter) { in AutoRelease() local
51 auto p = iter->second; in AutoRelease()
58 HILOG_INFO(LOG_CORE, "AutoRelease release %d", iter->first); in AutoRelease()
59 socketClients_.erase(iter->first); in AutoRelease()
/developtools/global_resource_tool/src/
Dresource_module.cpp80 for (const auto &iter : other) { in MergeResourceItem() local
81 auto result = alls.emplace(iter.first, iter.second); in MergeResourceItem()
86 for (const auto &resourceItem : iter.second) { in MergeResourceItem()
87 …t = find_if(result.first->second.begin(), result.first->second.end(), [&resourceItem](auto &iter) { in MergeResourceItem() argument
88 return resourceItem.GetLimitKey() == iter.GetLimitKey(); in MergeResourceItem()
110 for (const auto &iter : other) { in Push() local
111 owner_.emplace(iter.first, iter.second); in Push()
Dresource_util.cpp122 auto ret = find_if(g_fileClusterMap.begin(), g_fileClusterMap.end(), [type](auto iter) { in ResTypeToString() argument
123 return iter.second == type; in ResTypeToString()
129 ret = find_if(g_contentClusterMap.begin(), g_contentClusterMap.end(), [type](auto iter) { in ResTypeToString() argument
130 return iter.second == type; in ResTypeToString()
154 for (const auto &iter : contents) { in ComposeStrings() local
155 if (iter.length() > UINT16_MAX) { in ComposeStrings()
159 uint16_t size = iter.length(); in ComposeStrings()
165 result.append(iter); in ComposeStrings()
235 for (const auto &iter : IGNORE_FILE_REGEX) { in IsIgnoreFile() local
236 if ((iter.second == IgnoreType::IGNORE_FILE && !isFile) || in IsIgnoreFile()
[all …]
Dcmd_parser.cpp119 … ret = find_if(inputs_.begin(), inputs_.end(), [inputPath](auto iter) {return inputPath == iter;}); in AddInput() argument
193 …uto ret = find_if(moduleNames_.begin(), moduleNames_.end(), [it](auto iter) {return *it == iter;}); in AddMoudleNames() argument
278 …et = find_if(append_.begin(), append_.end(), [appendPath](auto iter) {return appendPath == iter;}); in AddAppend() argument
356 auto result = find_if(argValue.begin(), argValue.end(), [](auto iter) { in IsAscii() argument
357 if ((iter & 0x80) != 0) { in IsAscii()
464 for (auto iter : CMD_OPTS) { in IsLongOpt() local
465 if (optopt == iter.val && argv[optind - 1] == ("--" + string(iter.name))) { in IsLongOpt()
Dresource_append.cpp45 for (const auto &iter : packageParser_.GetAppend()) { in Append() local
46 if (!ScanResources(iter, outputPath)) { in Append()
55 for (const auto &iter : packageParser_.GetInputs()) { in Combine() local
56 if (!Combine(iter)) { in Combine()
98 for (auto &iter : refs_) { in ParseRef() local
100 if (iter->GetResType() == ResType::PROF || iter->GetResType() == ResType::MEDIA) { in ParseRef()
101 … if (ref.ParseRefInJsonFile(*iter, packageParser_.GetOutput(), true) != RESTOOL_SUCCESS) { in ParseRef()
104 } else if (ref.ParseRefInResourceItem(*iter) != RESTOOL_SUCCESS) { in ParseRef()
477 if (find_if(result->second.begin(), result->second.end(), [resourceItem](auto &iter) { in Push() argument
478 return resourceItem->GetLimitKey() == iter->GetLimitKey(); in Push()
[all …]
Dresource_table.cpp314 for (const auto &iter : limitKeyConfigs) { in SaveLimitKeyConfigs() local
315 out.write(reinterpret_cast<const char *>(iter.second.keyTag), TAG_LEN); in SaveLimitKeyConfigs()
316 out.write(reinterpret_cast<const char *>(&iter.second.offset), sizeof(uint32_t)); in SaveLimitKeyConfigs()
317 out.write(reinterpret_cast<const char *>(&iter.second.keyCount), sizeof(uint32_t)); in SaveLimitKeyConfigs()
318 for (const auto &value : iter.second.data) { in SaveLimitKeyConfigs()
326 for (const auto &iter : idSets) { in SaveIdSets() local
327 out.write(reinterpret_cast<const char *>(iter.second.idTag), TAG_LEN); in SaveIdSets()
328 out.write(reinterpret_cast<const char *>(&iter.second.idCount), sizeof(uint32_t)); in SaveIdSets()
329 for (const auto &keyValue : iter.second.data) { in SaveIdSets()
Dreference_parser.cpp64 for (auto &iter : items) { in ParseRefInResources() local
65 for (auto &resourceItem : iter.second) { in ParseRefInResources()
221 …ult = find_if(g_contentClusterMap.begin(), g_contentClusterMap.end(), [resType](const auto &iter) { in IsElementRef() argument
222 return resType == iter.second; in IsElementRef()
Di_resource_compiler.cpp137 auto ret = find_if(item->second.begin(), item->second.end(), [resourceItem](auto &iter) { in MergeResourceItem() argument
138 return resourceItem.GetLimitKey() == iter.GetLimitKey(); in MergeResourceItem()
Dcmd_list.cpp36 for (auto iter : fileListHandles_) { in Init() local
37 if (iter() != RESTOOL_SUCCESS) { in Init()
/developtools/hdc/src/host/
Dserver.cpp207 map<string, HDaemonInfo>::iterator iter; in ClearMapDaemonInfo() local
209 for (iter = mapDaemon.begin(); iter != mapDaemon.end();) { in ClearMapDaemonInfo()
210 string sKey = iter->first; in ClearMapDaemonInfo()
211 HDaemonInfo hDi = iter->second; in ClearMapDaemonInfo()
213 ++iter; in ClearMapDaemonInfo()
276 map<string, HDaemonInfo>::iterator iter; in GetDaemonMapList() local
278 for (iter = mapDaemon.begin(); iter != mapDaemon.end(); ++iter) { in GetDaemonMapList()
279 HDaemonInfo di = iter->second; in GetDaemonMapList()
352 map<string, HDaemonInfo>::iterator iter; in AdminDaemonMap() local
353 for (iter = mapDaemon.begin(); iter != mapDaemon.end(); ++iter) { in AdminDaemonMap()
[all …]
Dhost_updater.cpp157 auto iter = std::find(result.cbegin(), result.cend(), "-f"); in CheckCmd() local
158 …bool ret = (iter != result.cend()) ? (result.size() == (paramCount + 1)) : (result.size() == param… in CheckCmd()
261 for (const auto &iter : FLASHD_CMD) { in CheckMatchUpdate() local
262 if ((input.find(iter.first) == 0) && (input.size() > iter.first.size())) { in CheckMatchUpdate()
263 outCmd.cmdFlag = iter.second; in CheckMatchUpdate()
/developtools/profiler/host/smartperf/client/client_command/
Dsmartperf_command.cpp131 for (auto iter = spMap.cbegin(); iter != spMap.cend(); ++iter) { in ExecCommand() local
132 printf("order:%d %s=%s\n", i, iter->first.c_str(), iter->second.c_str()); in ExecCommand()
/developtools/profiler/host/smartperf/trace_streamer/src/parser/htrace_pbreader_parser/
Dhtrace_hilog_parser.cpp53 auto iter = logLevelString_.find(logDetails.level()); in Parse() local
54 if (iter == logLevelString_.end()) { in Parse()
62 DataIndex levelData = traceDataCache_->dataDict_.GetStringIndex(iter->second.c_str()); in Parse()
/developtools/smartperf_host/trace_streamer/src/parser/htrace_pbreader_parser/
Dhtrace_hilog_parser.cpp53 auto iter = logLevelString_.find(logDetails.level()); in Parse() local
54 if (iter == logLevelString_.end()) { in Parse()
62 DataIndex levelData = traceDataCache_->dataDict_.GetStringIndex(iter->second.c_str()); in Parse()
Dhtrace_mem_parser.cpp168 for (const auto& iter : check_start) { in ParseSmapsBlockType() local
169 if (StartWith(path, iter.first)) { in ParseSmapsBlockType()
170 return iter.second; in ParseSmapsBlockType()
174 for (const auto& iter : check_end) { in ParseSmapsBlockType() local
175 if (EndWith(path, iter.first)) { in ParseSmapsBlockType()
176 return iter.second; in ParseSmapsBlockType()
180 for (const auto& iter : check_contain) { in ParseSmapsBlockType() local
181 if (path.find(iter.first) != std::string::npos) { in ParseSmapsBlockType()
182 return iter.second; in ParseSmapsBlockType()
231 for (auto iter : unknown_anon_mem_info) { in ParseSmapsBlockType() local
[all …]
/developtools/profiler/device/plugins/api/test/unittest/
Dplugin_watcher_test.cpp73 for (auto iter = cmpFileList.cbegin(); iter != cmpFileList.cend(); iter++) { in OnPluginRemovedStub() local
74 if (*iter == path) { in OnPluginRemovedStub()
75 cmpFileList.erase(iter); in OnPluginRemovedStub()
/developtools/hdc/src/daemon/
Djdwp.cpp465 for (auto iter = jdwpTrackers.begin(); iter != jdwpTrackers.end();) { in ProcessListUpdated() local
466 if (*iter == nullptr) { in ProcessListUpdated()
470 if ((*iter)->taskStop || (*iter)->taskFree || !(*iter)->taskClass) { in ProcessListUpdated()
471iter = jdwpTrackers.erase(remove(jdwpTrackers.begin(), jdwpTrackers.end(), *iter), jdwpTrackers.en… in ProcessListUpdated()
476 SendProcessList(*iter, data); in ProcessListUpdated()
477 iter++; in ProcessListUpdated()
/developtools/smartperf_host/trace_streamer/src/filter/
Danimation_filter.cpp118 auto iter = animationCallIds_.find(callStackRow); in FinishAnimationEvent() local
119 if (iter == animationCallIds_.end()) { in FinishAnimationEvent()
122 auto animationRow = iter->second; in FinishAnimationEvent()
124 animationCallIds_.erase(iter); in FinishAnimationEvent()
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dftrace_fs_ops.cpp46 for (auto iter = testRootPath.begin(); iter != testRootPath.end(); ++iter) { in GetFtraceRoot() local
47 auto path = *iter + "/events"; in GetFtraceRoot()
51 return *iter; in GetFtraceRoot()
/developtools/profiler/device/cmds/src/
Dparse_plugin_config.cpp211 auto iter = pluginConfigMap.find(pluginName); in SetSerializeHiebpfConfig() local
212 if (iter == pluginConfigMap.end()) { in SetSerializeHiebpfConfig()
221 if (!parser_.ParseFromString(iter->second, hiebpfConfigNolite.get())) { in SetSerializeHiebpfConfig()

12