Home
last modified time | relevance | path

Searched refs:str_value (Results 1 – 17 of 17) 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/
DRecordFilter.cpp28 if (auto pids = GetTidsFromString(*value.str_value, false); pids) { in ParseOptions()
35 if (auto tids = GetTidsFromString(*value.str_value, false); tids) { in ParseOptions()
42 AddProcessNameRegex(*value.str_value, exclude); in ParseOptions()
45 AddThreadNameRegex(*value.str_value, exclude); in ParseOptions()
48 if (auto uids = ParseUintVector<uid_t>(*value.str_value); uids) { in ParseOptions()
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.cpp548 std::vector<std::string> strs = Split(*value.str_value, ","); in ParseOptions()
552 if (auto cpus = GetCpusFromString(*value.str_value); cpus) { in ParseOptions()
560 std::vector<std::string> strs = Split(*value.str_value, ","); in ParseOptions()
568 if (value->str_value != nullptr) { in ParseOptions()
569 if (*value->str_value == "callee") { in ParseOptions()
571 } else if (*value->str_value == "caller") { in ParseOptions()
574 LOG(ERROR) << "Unknown argument with -g option: " << *value->str_value; in ParseOptions()
582 if (!android::base::ReadFileToString(*value->str_value, &kallsyms)) { in ParseOptions()
583 LOG(ERROR) << "Can't read kernel symbols from " << *value->str_value; in ParseOptions()
605 if (auto pids = GetTidsFromString(*value.str_value, false); pids) { in ParseOptions()
[all …]
Dcmd_stat.cpp633 app_package_name_ = *value->str_value; in ParseOptions()
636 if (auto cpus = GetCpusFromString(*value->str_value); cpus) { in ParseOptions()
654 for (const auto& event_type : Split(*value.str_value, ",")) { in ParseOptions()
662 if (!event_selection_set_.AddEventGroup(Split(*value.str_value, ","))) { in ParseOptions()
671 output_filename_ = *value->str_value; in ParseOptions()
681 if (auto pids = GetTidsFromString(*value.str_value, true); pids) { in ParseOptions()
689 sort_keys_ = Split(*value->str_value, ","); in ParseOptions()
697 if (auto tids = GetTidsFromString(*value.str_value, true); tids) { in ParseOptions()
705 if (!EventTypeManager::Instance().ReadTracepointsFromFile(*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_api.cpp113 app_name_ = *value->str_value; in ParseOptions()
118 output_filepath_ = *value->str_value; in ParseOptions()
Dcmd_record.cpp806 const std::string& s = *value.str_value; in ParseOptions()
816 auto filters = ParseAddrFilterOption(*value->str_value); in ParseOptions()
824 app_package_name_ = *value->str_value; in ParseOptions()
846 clockid_ = *value->str_value; in ParseOptions()
860 if (auto cpus = GetCpusFromString(*value->str_value); cpus) { in ParseOptions()
887 std::vector<std::string> branch_sampling_types = android::base::Split(*value.str_value, ","); in ParseOptions()
904 std::vector<std::string> cmds = android::base::Split(*value.str_value, ","); in ParseOptions()
929 record_filename_ = *value->str_value; in ParseOptions()
937 if (auto pids = GetTidsFromString(*value.str_value, true); pids) { in ParseOptions()
970 if (!Dso::SetSymFsDir(*value->str_value)) { in ParseOptions()
[all …]
Dcmd_inject.cpp179 binary_name_regex_ = *value->str_value; in ParseOptions()
182 if (!ParseEtmDumpOption(*value->str_value, &etm_dump_option_)) { in ParseOptions()
190 const std::string& output = *value->str_value; in ParseOptions()
201 if (!Dso::AddSymbolDir(*value->str_value)) { in ParseOptions()
Dcommand.cpp78 value.str_value = &args[++i]; in PreprocessOptions()
82 value.str_value = &args[++i]; in PreprocessOptions()
Dcmd_debug_unwind.cpp674 std::vector<std::string> binaries = android::base::Split(*value.str_value, ","); in ParseOptions()
679 auto times = ParseUintVector<uint64_t>(*value.str_value); in ParseOptions()
686 if (!Dso::SetSymFsDir(*value->str_value)) { in ParseOptions()
Dcmd_monitor.cpp376 std::vector<std::string> strs = android::base::Split(*value.str_value, ","); in ParseOptions()
403 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.cpp311 if (!callchain_report_builder_.AddProguardMappingFile(*value.str_value)) { in ParseOptions()
323 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.py359 def get_string_id(self, str_value): argument
360 if not str_value:
362 str_id = self.string_table.get(str_value)
366 self.string_table[str_value] = str_id
367 self.profile.string_table.append(str_value)
Dsimpleperf_utils.py95 def str_to_bytes(str_value: str) -> bytes:
97 return str_value
100 return str_value.encode('utf-8')