Lines Matching refs:iter
214 auto iter = meta_->Find(std::string(key));
215 if (iter == meta_->end()) {
220 Any *value = const_cast<Any *>(&(iter->second));
265 auto iter = meta_->Find(std::string(key));
266 if ((iter != meta_->end()) && Any::IsSameTypeWith<Buf>(iter->second)) {
267 Any *value = const_cast<Any *>(&(iter->second));
286 auto iter = formatVecMap_.find(key);
287 FALSE_RETURN_V_MSG_E(iter != formatVecMap_.end(),
289 value.assign(iter->second.begin(), iter->second.end());
295 auto iter = meta_->Find(std::string(key));
296 if (iter != meta_->end()) {
305 auto iter = meta_->Find(std::string(key));
306 if (iter != meta_->end()) {
307 if (Any::IsSameTypeWith<int32_t>(iter->second)) {
309 } else if (Any::IsSameTypeWith<int64_t>(iter->second)) {
311 } else if (Any::IsSameTypeWith<float>(iter->second)) {
313 } else if (Any::IsSameTypeWith<double>(iter->second)) {
315 } else if (Any::IsSameTypeWith<std::string>(iter->second)) {
317 } else if (Any::IsSameTypeWith<std::vector<uint8_t>>(iter->second)) {
343 for (auto iter = meta_->begin(); iter != meta_->end(); ++iter) {
344 switch (GetValueType(iter->first)) {
346 ret = PutIntValueToFormatMap(formatTemp, iter->first, AnyCast<int32_t>(iter->second));
349 ret = PutLongValueToFormatMap(formatTemp, iter->first, AnyCast<int64_t>(iter->second));
352 ret = PutFloatValueToFormatMap(formatTemp, iter->first, AnyCast<float>(iter->second));
355 ret = PutDoubleValueToFormatMap(formatTemp, iter->first, AnyCast<double>(iter->second));
358 ret = PutStringValueToFormatMap(formatTemp, iter->first, AnyCast<std::string>(iter->second));
361 Any *value = const_cast<Any *>(&(iter->second));
364 ret = PutBufferToFormatMap(formatTemp, iter->first, addr, size);
368 MEDIA_LOG_E("Format::Stringify failed. Key: %{public}s", iter->first.c_str());
370 FALSE_LOG_MSG(ret, "Put value to formatMap failed, key = %{public}s", iter->first.c_str());
386 for (auto iter = meta_->begin(); iter != meta_->end(); ++iter) {
387 switch (GetValueType(iter->first)) {
389 dumpStream << iter->first << " = " << std::to_string(AnyCast<int32_t>(iter->second)) << " | ";
392 dumpStream << iter->first << " = " << std::to_string(AnyCast<int64_t>(iter->second)) << " | ";
395 dumpStream << iter->first << " = " << std::to_string(AnyCast<float>(iter->second)) << " | ";
398 dumpStream << iter->first << " = " << std::to_string(AnyCast<double>(iter->second)) << " | ";
401 dumpStream << iter->first << " = " << AnyCast<std::string>(iter->second) << " | ";
404 Any *value = const_cast<Any *>(&(iter->second));
406 dumpStream << iter->first << ", bufferSize = " << (AnyCast<std::vector<uint8_t>>(value))->size()
412 MEDIA_LOG_E("Format::Stringify failed. Key: %{public}s", iter->first.c_str());