Home
last modified time | relevance | path

Searched refs:str_value (Results 1 – 18 of 18) sorted by relevance

/system/update_engine/common/
Dprefs.cc70 string str_value; in GetInt64() local
71 if (!GetString(key, &str_value)) in GetInt64()
73 base::TrimWhitespaceASCII(str_value, base::TRIM_ALL, &str_value); in GetInt64()
74 TEST_AND_RETURN_FALSE(base::StringToInt64(str_value, value)); in GetInt64()
83 string str_value; in GetBoolean() local
84 if (!GetString(key, &str_value)) in GetBoolean()
86 base::TrimWhitespaceASCII(str_value, base::TRIM_ALL, &str_value); in GetBoolean()
87 if (str_value == "false") { in GetBoolean()
91 if (str_value == "true") { in GetBoolean()
/system/extras/simpleperf/
Dcommand_test.cpp102 ASSERT_EQ(*values[0].str_value, "str1"); in TEST()
103 ASSERT_EQ(*values[1].str_value, "str1_2"); in TEST()
109 ASSERT_TRUE(values[0].str_value == nullptr); in TEST()
110 ASSERT_EQ(*values[1].str_value, "opt_str"); in TEST()
124 ASSERT_EQ(*(ordered_options[0].second.str_value), "str1"); in TEST()
128 ASSERT_EQ(*(ordered_options[2].second.str_value), "str2"); in TEST()
Dcmd_report.cpp605 std::vector<std::string> strs = Split(*value.str_value, ","); in ParseOptions()
612 if (auto cpus = GetCpusFromString(*value.str_value); cpus) { in ParseOptions()
621 std::vector<std::string> strs = Split(*value.str_value, ","); in ParseOptions()
629 if (value->str_value != nullptr) { in ParseOptions()
630 if (*value->str_value == "callee") { in ParseOptions()
632 } else if (*value->str_value == "caller") { in ParseOptions()
635 LOG(ERROR) << "Unknown argument with -g option: " << *value->str_value; in ParseOptions()
643 if (!android::base::ReadFileToString(*value->str_value, &kallsyms)) { in ParseOptions()
644 LOG(ERROR) << "Can't read kernel symbols from " << *value->str_value; in ParseOptions()
666 if (auto pids = GetTidsFromString(*value.str_value, false); pids) { in ParseOptions()
[all …]
DRecordFilter.cpp252 if (auto pids = GetTidsFromString(*value.str_value, false); pids) { in ParseOptions()
259 if (auto tids = GetTidsFromString(*value.str_value, false); tids) { in ParseOptions()
266 AddProcessNameRegex(*value.str_value, exclude); in ParseOptions()
269 AddThreadNameRegex(*value.str_value, exclude); in ParseOptions()
272 if (auto uids = ParseUintVector<uint32_t>(*value.str_value); uids) { in ParseOptions()
280 if (!SetFilterFile(*value->str_value)) { in ParseOptions()
Dcmd_stat.cpp644 app_package_name_ = *value->str_value; in ParseOptions()
647 if (auto cpus = GetCpusFromString(*value->str_value); cpus) { in ParseOptions()
665 for (const auto& event_type : Split(*value.str_value, ",")) { in ParseOptions()
673 if (!event_selection_set_.AddEventGroup(Split(*value.str_value, ","))) { in ParseOptions()
682 output_filename_ = *value->str_value; in ParseOptions()
692 if (auto pids = GetTidsFromString(*value.str_value, true); pids) { in ParseOptions()
701 sort_keys_ = Split(*value->str_value, ","); in ParseOptions()
709 if (auto tids = GetTidsFromString(*value.str_value, true); tids) { in ParseOptions()
717 if (!EventTypeManager::Instance().ReadTracepointsFromFile(*value->str_value)) { in ParseOptions()
Dcmd_record.cpp855 add_counters_ = android::base::Split(*value->str_value, ","); in ParseOptions()
859 const std::string& s = *value.str_value; in ParseOptions()
869 auto filters = ParseAddrFilterOption(*value->str_value); in ParseOptions()
877 app_package_name_ = *value->str_value; in ParseOptions()
899 clockid_ = *value->str_value; in ParseOptions()
913 if (auto cpus = GetCpusFromString(*value->str_value); cpus) { in ParseOptions()
940 std::vector<std::string> branch_sampling_types = android::base::Split(*value.str_value, ","); in ParseOptions()
957 std::vector<std::string> cmds = android::base::Split(*value.str_value, ","); in ParseOptions()
988 record_filename_ = *value->str_value; in ParseOptions()
996 if (auto pids = GetTidsFromString(*value.str_value, true); pids) { in ParseOptions()
[all …]
Dcmd_api.cpp114 app_name_ = *value->str_value; in ParseOptions()
200 app_name_ = *value->str_value; in ParseOptions()
205 output_filepath_ = *value->str_value; in ParseOptions()
Dcommand.h68 const std::string* str_value; member
106 CHECK(option_value->str_value != nullptr); in PullStringValue()
107 *value = *option_value->str_value; in PullStringValue()
Dcmd_boot_record.cpp109 record_options_ = *value->str_value; in ParseOptions()
114 record_options_ = *value->str_value; in ParseOptions()
Dcommand.cpp78 value.str_value = &args[++i]; in ConvertArgsToOptions()
82 value.str_value = &args[++i]; in ConvertArgsToOptions()
Dcmd_inject.cpp786 binary_name_regex_ = *value->str_value; in ParseOptions()
789 if (!ParseEtmDumpOption(*value->str_value, &etm_dump_option_)) { in ParseOptions()
796 std::vector<std::string> files = android::base::Split(*value.str_value, ","); in ParseOptions()
812 const std::string& output = *value->str_value; in ParseOptions()
823 if (!Dso::AddSymbolDir(*value->str_value)) { in ParseOptions()
Dcmd_debug_unwind.cpp689 std::vector<std::string> binaries = android::base::Split(*value.str_value, ","); in ParseOptions()
695 auto times = ParseUintVector<uint64_t>(*value.str_value); in ParseOptions()
702 if (!Dso::SetSymFsDir(*value->str_value)) { in ParseOptions()
Dcmd_monitor.cpp381 std::vector<std::string> strs = android::base::Split(*value.str_value, ","); in ParseOptions()
408 std::vector<std::string> event_types = android::base::Split(*value.str_value, ","); in ParseOptions()
Dcmd_dumprecord.cpp248 if (!ParseEtmDumpOption(*value->str_value, &etm_dump_option_)) { in ParseOptions()
254 if (!Dso::AddSymbolDir(*value.str_value)) { in ParseOptions()
Dcmd_report_sample.cpp320 if (!callchain_report_builder_.AddProguardMappingFile(*value.str_value)) { in ParseOptions()
332 if (!Dso::AddSymbolDir(*value.str_value)) { in ParseOptions()
Dcmd_merge.cpp159 auto files = android::base::Split(*value.str_value, ","); in ParseOptions()
/system/extras/simpleperf/scripts/
Dpprof_proto_generator.py380 def get_string_id(self, str_value): argument
381 if not str_value:
383 str_id = self.string_table.get(str_value)
387 self.string_table[str_value] = str_id
388 self.profile.string_table.append(str_value)
Dsimpleperf_utils.py60 def str_to_bytes(str_value: str) -> bytes:
63 return str_value.encode('utf-8')