Searched refs:str_value (Results 1 – 9 of 9) sorted by relevance
/system/update_engine/common/ |
D | prefs.cc | 68 string str_value; in GetInt64() local 69 if (!GetString(key, &str_value)) in GetInt64() 71 base::TrimWhitespaceASCII(str_value, base::TRIM_ALL, &str_value); in GetInt64() 72 TEST_AND_RETURN_FALSE(base::StringToInt64(str_value, value)); in GetInt64() 81 string str_value; in GetBoolean() local 82 if (!GetString(key, &str_value)) in GetBoolean() 84 base::TrimWhitespaceASCII(str_value, base::TRIM_ALL, &str_value); in GetBoolean() 85 if (str_value == "false") { in GetBoolean() 89 if (str_value == "true") { in GetBoolean()
|
/system/extras/simpleperf/ |
D | command_test.cpp | 112 ASSERT_EQ(*values[0].str_value, "str1"); in TEST() 113 ASSERT_EQ(*values[1].str_value, "str2"); in TEST() 116 ASSERT_TRUE(values[0].str_value == nullptr); in TEST() 117 ASSERT_EQ(*values[1].str_value, "opt_str"); in TEST() 131 ASSERT_EQ(*(ordered_options[0].second.str_value), "str1"); in TEST() 135 ASSERT_EQ(*(ordered_options[2].second.str_value), "str2"); in TEST()
|
D | cmd_stat.cpp | 642 app_package_name_ = *value->str_value; in ParseOptions() 645 cpus_ = GetCpusFromString(*value->str_value); in ParseOptions() 660 for (const auto& event_type : Split(*value.str_value, ",")) { in ParseOptions() 670 if (!event_selection_set_.AddEventGroup(Split(*value.str_value, ","))) { in ParseOptions() 680 output_filename_ = *value->str_value; in ParseOptions() 692 if (!GetValidThreadsFromThreadString(*value.str_value, &pids)) { in ParseOptions() 700 sort_keys_ = Split(*value->str_value, ","); in ParseOptions() 710 if (!GetValidThreadsFromThreadString(*value.str_value, &tids)) { in ParseOptions() 718 if (!SetTracepointEventsFilePath(*value->str_value)) { in ParseOptions()
|
D | cmd_api.cpp | 120 app_name_ = *value->str_value; in ParseOptions() 125 output_filepath_ = *value->str_value; in ParseOptions()
|
D | cmd_record.cpp | 741 auto filters = ParseAddrFilterOption(*value->str_value); in ParseOptions() 749 app_package_name_ = *value->str_value; in ParseOptions() 771 clockid_ = *value->str_value; in ParseOptions() 785 cpus_ = GetCpusFromString(*value->str_value); in ParseOptions() 806 std::vector<std::string> branch_sampling_types = android::base::Split(*value.str_value, ","); in ParseOptions() 835 record_filename_ = *value->str_value; in ParseOptions() 845 if (!GetValidThreadsFromThreadString(*value.str_value, &pids)) { in ParseOptions() 878 if (!Dso::SetSymFsDir(*value->str_value)) { in ParseOptions() 886 if (!GetValidThreadsFromThreadString(*value.str_value, &tids)) { in ParseOptions() 896 if (!SetTracepointEventsFilePath(*value->str_value)) { in ParseOptions() [all …]
|
D | command.cpp | 78 value.str_value = &args[++i]; in PreprocessOptions() 82 value.str_value = &args[++i]; in PreprocessOptions()
|
D | command.h | 68 const std::string* str_value; member
|
/system/extras/simpleperf/scripts/ |
D | pprof_proto_generator.py | 356 def get_string_id(self, str_value): argument 357 if not str_value: 359 str_id = self.string_table.get(str_value) 363 self.string_table[str_value] = str_id 364 self.profile.string_table.append(str_value)
|
D | utils.py | 84 def str_to_bytes(str_value): argument 86 return str_value 89 return str_value.encode('utf-8')
|