Home
last modified time | relevance | path

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

12

/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.h31 for (auto iter = dataMap.cbegin(); iter != dataMap.cend(); ++iter) { in MapToString() local
32 printf("%s = %s\n", iter->first.c_str(), iter->second.c_str()); in MapToString()
36 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/
Dincrement_manager.cpp85 for_each(dels.begin(), dels.end(), [&moduleInfo](const auto &iter) { in ScanModules() argument
86 if (moduleInfo.rootPath != iter.rootPath) { in ScanModules()
89 moduleInfo.fileIncrements.push_back(iter); in ScanModules()
94 for (auto &iter : moduleInfos) { in ScanModules() local
95 string pathHash = ResourceUtil::GenerateHash(iter.rootPath); in ScanModules()
97 ResourceModuleInc resourceModuleInc(iter.rootPath, moduleCachePath, moduleName_, folder_); in ScanModules()
103 if (resourceModuleInc.ScanResource(iter.fileIncrements) != RESTOOL_SUCCESS) { in ScanModules()
142 for_each(items_.begin(), items_.end(), [](const auto &iter) { in FlushId() argument
144 ResType resType = iter.second.begin()->GetResType(); in FlushId()
145 string name = ResourceUtil::GetIdName(iter.second.begin()->GetName(), resType); in FlushId()
[all …]
Dresource_module.cpp84 for (const auto &iter : other) { in MergeResourceItem() local
85 auto result = alls.emplace(iter.first, iter.second); in MergeResourceItem()
90 for (const auto &resourceItem : iter.second) { in MergeResourceItem()
91 …t = find_if(result.first->second.begin(), result.first->second.end(), [&resourceItem](auto &iter) { in MergeResourceItem() argument
92 return resourceItem.GetLimitKey() == iter.GetLimitKey(); in MergeResourceItem()
118 for (const auto &iter : other) { in Push() local
119 owner_.emplace(iter.first, iter.second); in Push()
Dresource_util.cpp121 auto ret = find_if(g_fileClusterMap.begin(), g_fileClusterMap.end(), [type](auto iter) { in ResTypeToString() argument
122 return iter.second == type; in ResTypeToString()
128 ret = find_if(g_contentClusterMap.begin(), g_contentClusterMap.end(), [type](auto iter) { in ResTypeToString() argument
129 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 …]
Dpreview_manager.cpp49 for (const auto &iter : modulePaths) { in ScanModules() local
50 if (FileEntry::IsDirectory(iter)) { in ScanModules()
51 ResourceModule resourceMoudle(iter, output, ""); in ScanModules()
57 } else if (!ScanFile(iter, priority)) { in ScanModules()
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
290 …et = find_if(append_.begin(), append_.end(), [appendPath](auto iter) {return appendPath == iter;}); in AddAppend() argument
335 auto result = find_if(argValue.begin(), argValue.end(), [](auto iter) { in IsAscii() argument
336 if ((iter & 0x80) != 0) { in IsAscii()
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()
96 for (auto &iter : refs_) { in ParseRef() local
98 if (iter->GetResType() == ResType::PROF) { in ParseRef()
100 .Append("base").Append("profile").Append(iter->GetName()).GetPath(); in ParseRef()
101 if (ref.ParseRefInJson(iter->GetFilePath(), dst) != RESTOOL_SUCCESS) { in ParseRef()
106 iter->SetData(reinterpret_cast<const int8_t *>(dst.c_str()), dst.length()); in ParseRef()
111 if (ref.ParseRefInResourceItem(*iter) != RESTOOL_SUCCESS) { in ParseRef()
[all …]
Dfile_manager.cpp95 for (const auto &iter : resTypeOfDirs) { in FilterRefSolidXml() local
96 if (!NeedParseReferenceInSolidXml(iter.first)) { in FilterRefSolidXml()
99 for (const auto &resourceDir : iter.second) { in FilterRefSolidXml()
Di_resource_compiler.cpp129 for (const auto &iter : setsByDirectory) { in ConvertToSolidXml() local
131 ListXmlFile(iter.second, xmlPaths); in ConvertToSolidXml()
136 string xmlOutPath = iter.first; in ConvertToSolidXml()
190 auto ret = find_if(item->second.begin(), item->second.end(), [resourceItem](auto &iter) { in MergeResourceItem() argument
191 return resourceItem.GetLimitKey() == iter.GetLimitKey(); in MergeResourceItem()
Dresource_table.cpp260 for (const auto &iter : limitKeyConfigs) { in SaveLimitKeyConfigs() local
261 out.write(reinterpret_cast<const char *>(iter.second.keyTag), TAG_LEN); in SaveLimitKeyConfigs()
262 out.write(reinterpret_cast<const char *>(&iter.second.offset), sizeof(uint32_t)); in SaveLimitKeyConfigs()
263 out.write(reinterpret_cast<const char *>(&iter.second.keyCount), sizeof(uint32_t)); in SaveLimitKeyConfigs()
264 for (const auto &value : iter.second.data) { in SaveLimitKeyConfigs()
272 for (const auto &iter : idSets) { in SaveIdSets() local
273 out.write(reinterpret_cast<const char *>(iter.second.idTag), TAG_LEN); in SaveIdSets()
274 out.write(reinterpret_cast<const char *>(&iter.second.idCount), sizeof(uint32_t)); in SaveIdSets()
275 for (const auto &keyValue : iter.second.data) { in SaveIdSets()
Dmodule_combine.cpp78 [&filename](const auto &iter) { in CombineDirectory() argument
79 return filename == iter.second; in CombineDirectory()
Dreference_parser.cpp92 for (auto &iter : items) { in ParseRefInElement() local
93 for (auto &resourceItem : iter.second) { in ParseRefInElement()
265 …ult = find_if(g_contentClusterMap.begin(), g_contentClusterMap.end(), [resType](const auto &iter) { in IsNotElement() argument
266 return resType == iter.second; in IsNotElement()
Dincrement_list.cpp86 auto result = find_if(folder_.begin(), folder_.end(), [&filePath](auto &iter) { in GetPriority() argument
87 string rootPath = FileEntry::FilePath(iter).Append("").GetPath(); in GetPriority()
Dsqlite_database.cpp192 for (const auto &iter : contents) { in GetValue() local
193 array.append(iter); in GetValue()
/developtools/hdc/src/host/
Dserver.cpp203 map<string, HDaemonInfo>::iterator iter; in ClearMapDaemonInfo() local
205 for (iter = mapDaemon.begin(); iter != mapDaemon.end();) { in ClearMapDaemonInfo()
206 string sKey = iter->first; in ClearMapDaemonInfo()
207 HDaemonInfo hDi = iter->second; in ClearMapDaemonInfo()
209 ++iter; in ClearMapDaemonInfo()
272 map<string, HDaemonInfo>::iterator iter; in GetDaemonMapList() local
274 for (iter = mapDaemon.begin(); iter != mapDaemon.end(); ++iter) { in GetDaemonMapList()
275 HDaemonInfo di = iter->second; in GetDaemonMapList()
348 map<string, HDaemonInfo>::iterator iter; in AdminDaemonMap() local
349 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/global_resource_tool/src/xml/
Dxml_key_node.cpp65 for (const auto &iter : sets) { in SaveToFile() local
66 out.write(reinterpret_cast<const char *>(iter.first.c_str()), iter.first.length()); in SaveToFile()
105 auto result = find_if(keyMap_.begin(), keyMap_.end(), [&keyId](const auto &iter) { in GetKeyValue() argument
106 return keyId == iter.second; in GetKeyValue()
Dkey_manager.cpp48 for (const auto &iter : keys_) { in SaveKey() local
49 …string keyPath = FileEntry::FilePath(keysPath).Append(XmlKeyNode::KEY_TO_FILE_NAME.at(iter.first))… in SaveKey()
50 if (!iter.second->SaveToFile(keyPath)) { in SaveKey()
/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/device/plugins/ftrace_plugin/src/
Dsub_event_parser.cpp47 auto iter = idToFunctions_.find(format.eventId); in ParseEvent() local
48 if (iter != idToFunctions_.end()) { in ParseEvent()
49 iter->second(event, data, size, format); in ParseEvent()
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/host/smartperf/trace_streamer/src/parser/htrace_parser/
Dhtrace_hilog_parser.cpp49 auto iter = logLevelString_.find(logDetails.level()); in Parse() local
50 if (iter == logLevelString_.end()) { in Parse()
58 DataIndex levelData = traceDataCache_->dataDict_.GetStringIndex(iter->second.c_str()); in Parse()
/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()

12