Home
last modified time | relevance | path

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

/aosp_15_r20/external/perfetto/src/base/
H A Dstring_utils_unittest.cc96 TEST(StringUtilsTest, StringToInt32) { in TEST() argument
97 EXPECT_EQ(StringToInt32("0"), std::make_optional<int32_t>(0)); in TEST()
98 EXPECT_EQ(StringToInt32("1"), std::make_optional<int32_t>(1)); in TEST()
99 EXPECT_EQ(StringToInt32("+42"), std::make_optional<int32_t>(42)); in TEST()
100 EXPECT_EQ(StringToInt32("+0042"), std::make_optional<int32_t>(42)); in TEST()
101 EXPECT_EQ(StringToInt32("-42"), std::make_optional<int32_t>(-42)); in TEST()
102 EXPECT_EQ(StringToInt32("42", 16), std::make_optional<int32_t>(0x42)); in TEST()
103 EXPECT_EQ(StringToInt32("7ffffffe", 16), in TEST()
105 EXPECT_EQ(StringToInt32(""), std::nullopt); in TEST()
106 EXPECT_EQ(StringToInt32("!?"), std::nullopt); in TEST()
[all …]
H A Dfile_utils.cc392 auto mode_value = base::StringToInt32(mode_bits, 8); in SetFilePermissions()
/aosp_15_r20/external/perfetto/src/trace_processor/importers/systrace/
H A Dsystrace_line_parser.cc105 auto prev_prio = base::StringToInt32(args["prev_prio"]); in ParseLine()
108 auto next_prio = base::StringToInt32(args["next_prio"]); in ParseLine()
163 auto id = base::StringToInt32(args["transaction"]); in ParseLine()
164 auto dest_node = base::StringToInt32(args["dest_node"]); in ParseLine()
167 auto is_reply = base::StringToInt32(args["reply"]).value() == 1; in ParseLine()
189 auto id = base::StringToInt32(args["transaction"]); in ParseLine()
258 auto temp = base::StringToInt32(args["temp"]); in ParseLine()
278 auto io_wait = base::StringToInt32(args["iowait"]); in ParseLine()
H A Dsystrace_parser.cc336 auto oom_score_adj = base::StringToInt32(toks[3]); in PostProcessSpecialSliceBegin()
/aosp_15_r20/external/perfetto/src/trace_processor/rpc/
H A Dhttpd.cc125 int seq_id = base::StringToInt32(seq_hdr.ToStdString()).value_or(0); in OnHttpRequest()
266 std::optional<int> port_opt = base::StringToInt32(port_number); in RunHttpRPCServer()
/aosp_15_r20/external/perfetto/src/trace_processor/db/
H A Dquery_executor_benchmark.cc130 row.stack_id = *base::StringToInt32(row_vec[8]); in GetSliceTableRow()
131 row.parent_stack_id = *base::StringToInt32(row_vec[9]); in GetSliceTableRow()
179 row.stack_id = *base::StringToInt32(row_vec[8]);
180 row.parent_stack_id = *base::StringToInt32(row_vec[9]);
/aosp_15_r20/external/perfetto/src/trace_processor/util/
H A Dproto_to_args_parser.cc409 base::StringToInt32(default_value_if_number).value()); in AddDefault()
461 base::StringToInt32(default_value_if_number).value(), in AddDefault()
/aosp_15_r20/external/perfetto/src/traced/probes/initial_display_state/
H A Dinitial_display_state_data_source.cc95 screen_state_str ? base::StringToInt32(*screen_state_str) : std::nullopt; in WriteState()
/aosp_15_r20/external/perfetto/src/trace_processor/importers/android_bugreport/
H A Dandroid_battery_stats_reader.cc80 base::StringToInt32(splitter.Next() ? splitter.cur_token() : ""); in ParseLine()
H A Dandroid_bugreport_reader.cc63 return base::StringToInt32(year_str); in ExtractYearFromBugReportFilename()
/aosp_15_r20/prebuilts/runtime/mainline/platform/sdk/include/external/perfetto/include/perfetto/ext/base/
H A Dstring_utils.h83 inline std::optional<int32_t> StringToInt32(const std::string& s,
/aosp_15_r20/external/perfetto/test/cts/
H A Dheapprofd_java_test_cts.cc42 auto sdk = base::StringToInt32(base::GetAndroidProp("ro.build.version.sdk")); in SupportsOomHeapDump()
H A Dheapprofd_test_cts.cc87 base::StringToInt32(base::GetAndroidProp("ro.build.version.sdk")); in ContentProviderReader()
/aosp_15_r20/external/perfetto/src/trace_processor/importers/json/
H A Djson_utils.cc66 const std::optional<int32_t> exp = base::StringToInt32(exp_s); in CoerceToTs()
/aosp_15_r20/external/perfetto/include/perfetto/ext/base/
H A Dstring_utils.h84 inline std::optional<int32_t> StringToInt32(const std::string& s,
/aosp_15_r20/external/perfetto/src/trace_processor/importers/art_method/
H A Dart_method_tokenizer.cc491 auto version = base::StringToInt32(version_str); in ParseHeaderVersion()
/aosp_15_r20/external/perfetto/src/trace_processor/importers/proto/
H A Dandroid_probes_parser.cc458 base::StringToInt32(kv.value().ToStdString()); in ParseAndroidSystemProperty()
/aosp_15_r20/external/perfetto/src/profiling/memory/
H A Dheapprofd_end_to_end_test.cc293 int32_t arg3 = a3 ? base::StringToInt32(a3).value() : -1; in RunContinuousMalloc()