/system/update_engine/common/ |
D | prefs.cc | 70 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/ |
D | RecordFilter.cpp | 28 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()
|
D | command_test.cpp | 102 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()
|
D | cmd_report.cpp | 548 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 …]
|
D | cmd_stat.cpp | 633 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()
|
D | command.h | 68 const std::string* str_value; member 106 CHECK(option_value->str_value != nullptr); in PullStringValue() 107 *value = *option_value->str_value; in PullStringValue()
|
D | cmd_api.cpp | 113 app_name_ = *value->str_value; in ParseOptions() 118 output_filepath_ = *value->str_value; in ParseOptions()
|
D | cmd_record.cpp | 806 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 …]
|
D | cmd_inject.cpp | 179 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()
|
D | command.cpp | 78 value.str_value = &args[++i]; in PreprocessOptions() 82 value.str_value = &args[++i]; in PreprocessOptions()
|
D | cmd_debug_unwind.cpp | 674 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()
|
D | cmd_monitor.cpp | 376 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()
|
D | cmd_dumprecord.cpp | 248 if (!ParseEtmDumpOption(*value->str_value, &etm_dump_option_)) { in ParseOptions() 254 if (!Dso::AddSymbolDir(*value.str_value)) { in ParseOptions()
|
D | cmd_report_sample.cpp | 311 if (!callchain_report_builder_.AddProguardMappingFile(*value.str_value)) { in ParseOptions() 323 if (!Dso::AddSymbolDir(*value.str_value)) { in ParseOptions()
|
D | cmd_merge.cpp | 159 auto files = android::base::Split(*value.str_value, ","); in ParseOptions()
|
/system/extras/simpleperf/scripts/ |
D | pprof_proto_generator.py | 359 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)
|
D | simpleperf_utils.py | 95 def str_to_bytes(str_value: str) -> bytes: 97 return str_value 100 return str_value.encode('utf-8')
|