Home
last modified time | relevance | path

Searched refs:StringToInt (Results 1 – 25 of 104) sorted by relevance

12345

/external/cronet/components/metrics/serialization/
Dmetric_sample.cc126 if (parts[0].empty() || !base::StringToInt(parts[1], &sample) || in ParseHistogram()
127 !base::StringToInt(parts[2], &min) || in ParseHistogram()
128 !base::StringToInt(parts[3], &max) || in ParseHistogram()
129 !base::StringToInt(parts[4], &bucket_count)) { in ParseHistogram()
152 if (parts[0].empty() || !base::StringToInt(parts[1], &sample)) in ParseSparseHistogram()
175 if (parts[0].empty() || !base::StringToInt(parts[1], &sample) || in ParseLinearHistogram()
176 !base::StringToInt(parts[2], &max)) { in ParseLinearHistogram()
/external/cronet/base/strings/
Dstring_number_conversions_fuzzer.cc55 CheckRoundtrips<int>(data, size, &base::StringToInt); in LLVMFuzzerTestOneInput()
56 CheckRoundtrips16<int>(data, size, &base::StringToInt); in LLVMFuzzerTestOneInput()
71 base::StringToInt(string_piece_input, &out_int); in LLVMFuzzerTestOneInput()
86 base::StringToInt(string_piece_input16, &out_int); in LLVMFuzzerTestOneInput()
Dstring_number_conversions_unittest.cc108 TEST(StringNumberConversionsTest, StringToInt) { in TEST() argument
144 EXPECT_EQ(i.success, StringToInt(i.input, &output)); in TEST()
149 EXPECT_EQ(i.success, StringToInt(utf16_input, &output)); in TEST()
161 EXPECT_FALSE(StringToInt(input_string, &output)); in TEST()
166 EXPECT_FALSE(StringToInt(utf16_input, &output)); in TEST()
171 EXPECT_FALSE(StringToInt(std::u16string(negative_wide_input), &output)); in TEST()
Dstring_number_conversions.h73 BASE_EXPORT bool StringToInt(StringPiece input, int* output);
74 BASE_EXPORT bool StringToInt(StringPiece16 input, int* output);
Dstring_number_conversions.cc73 bool StringToInt(StringPiece input, int* output) { in StringToInt() function
77 bool StringToInt(StringPiece16 input, int* output) { in StringToInt() function
Dstring_number_conversions_win.h25 BASE_EXPORT bool StringToInt(WStringPiece input, int* output);
/external/rappor/client/cpp/
Drappor_sim.cc29 bool StringToInt(const char* s, int* result) { in StringToInt() function
85 bool ok1 = StringToInt(argv[1], &num_bits); in main()
86 bool ok2 = StringToInt(argv[2], &num_hashes); in main()
87 bool ok3 = StringToInt(argv[3], &num_cohorts); in main()
/external/cronet/base/
Dlinux_util.cc150 if (StringToInt(dir_reader.name(), &tid)) in GetThreadsForProcess()
211 if (StringToInt(split_value_str.back(), &value) && value == ns_tid) { in FindThreadID()
213 if (StringToInt(split_value_str[1], &value)) in FindThreadID()
Dvlog.cc48 if (!base::StringToInt(pair.second, &pattern.vlog_level)) { in ParseVmoduleLevels()
66 if (base::StringToInt(v_switch, &vlog_level)) { in VlogInfo()
/external/libchrome/base/
Dsys_info_chromeos.cc134 StringToInt(tokenizer.token_piece(), &major_version_); in ParseLsbRelease()
137 StringToInt(tokenizer.token_piece(), &minor_version_); in ParseLsbRelease()
140 StringToInt(tokenizer.token_piece(), &bugfix_version_); in ParseLsbRelease()
Dvlog.cc56 if (base::StringToInt(v_switch, &vlog_level)) { in VlogInfo()
72 if (!base::StringToInt(it->second, &pattern.vlog_level)) { in VlogInfo()
Dlinux_util.cc215 if (StringToInt(split_value_str.back(), &value) && value == ns_tid) { in FindThreadID()
217 if (StringToInt(split_value_str[1], &value)) in FindThreadID()
/external/lzma/CPP/7zip/Bundles/LzmaCon/
Dmakefile.gcc60 StringToInt.o \
147 StringToInt.o: ../../../Common/StringToInt.cpp
148 $(CXX) $(CFLAGS) ../../../Common/StringToInt.cpp
/external/libchrome/base/strings/
Dstring_number_conversions_fuzzer.cc20 base::StringToInt(string_piece_input, &out_int); in LLVMFuzzerTestOneInput()
35 base::StringToInt(string_piece_input16, &out_int); in LLVMFuzzerTestOneInput()
Dstring_number_conversions_unittest.cc110 TEST(StringNumberConversionsTest, StringToInt) { in TEST() argument
144 EXPECT_EQ(cases[i].success, StringToInt(cases[i].input, &output)); in TEST()
149 EXPECT_EQ(cases[i].success, StringToInt(utf16_input, &output)); in TEST()
159 EXPECT_FALSE(StringToInt(input_string, &output)); in TEST()
164 EXPECT_FALSE(StringToInt(utf16_input, &output)); in TEST()
169 EXPECT_FALSE(StringToInt(string16(negative_wide_input), &output)); in TEST()
Dstring_number_conversions.h100 BASE_EXPORT bool StringToInt(StringPiece input, int* output);
101 BASE_EXPORT bool StringToInt(StringPiece16 input, int* output);
/external/rappor/tests/
Dcompare_dist.R135 StringToInt <- function(x) as.integer(substring(x, 2)) function
137 actual_values <- StringToInt(actual$string)
138 rappor_values <- StringToInt(rappor$string)
/external/cronet/base/system/
Dsys_info_chromeos.cc128 StringToInt(tokenizer.token_piece(), &major_version_); in ParseLsbRelease()
131 StringToInt(tokenizer.token_piece(), &minor_version_); in ParseLsbRelease()
134 StringToInt(tokenizer.token_piece(), &bugfix_version_); in ParseLsbRelease()
/external/cronet/net/nqe/
Dnetwork_quality_estimator_params.cc84 if (it != params.end() && base::StringToInt(it->second, &variations_value) && in GetWeightMultiplierPerSecond()
197 base::StringToInt(it->second, &variations_value) && in ObtainDefaultObservations()
210 base::StringToInt(it->second, &variations_value) && in ObtainDefaultObservations()
224 base::StringToInt(it->second, &variations_value) && in ObtainDefaultObservations()
/external/libchrome/base/process/
Dprocess_metrics_linux.cc295 if (!StringToInt(tokens[3], &limit)) in GetOpenFdSoftLimit()
354 StringToInt(totmaps_fields[kPrivate_CleanIndex], &private_clean_kb); in GetTotalsSummary()
356 StringToInt(totmaps_fields[kPrivate_DirtyIndex], &private_dirty_kb); in GetTotalsSummary()
357 success &= StringToInt(totmaps_fields[kSwapIndex], &swap_kb); in GetTotalsSummary()
560 StringToInt(tokens[1], target); in ParseProcMeminfo()
Dinternal_linux.cc51 if (!StringToInt(pid_string, &pid)) { in ProcDirSlotToPid()
184 if (!StringToInt(btime_it->second, &btime)) in GetBootTime()
/external/lzma/CPP/7zip/UI/Client7z/
Dmakefile12 $O\StringToInt.obj \
/external/rappor/analysis/cpp/
Dfast_em.cc235 bool StringToInt(const char* s, int* result) { in StringToInt() function
257 if (!StringToInt(argv[3], &max_em_iters)) { in main()
/external/cronet/base/process/
Dinternal_linux.cc53 if (!StringToInt(pid_string, &pid)) { in ProcDirSlotToPid()
187 if (!StringToInt(btime_it->second, &btime)) in GetBootTime()
/external/cronet/net/third_party/quiche/overrides/quiche_platform_impl/
Dquiche_command_line_flags_impl.cc173 if (!base::StringToInt(s, &value) || in SetFlag()
185 if (!base::StringToInt(s, &value)) { in SetFlag()

12345