/system/core/base/ |
parsedouble_test.cpp | 17 #include "android-base/parsedouble.h" 21 TEST(parsedouble, smoke) { 23 ASSERT_FALSE(android::base::ParseDouble("", &d)); 24 ASSERT_FALSE(android::base::ParseDouble("x", &d)); 25 ASSERT_FALSE(android::base::ParseDouble("123.4x", &d)); 27 ASSERT_TRUE(android::base::ParseDouble("123.4", &d)); 29 ASSERT_TRUE(android::base::ParseDouble("-123.4", &d)); 32 ASSERT_TRUE(android::base::ParseDouble("0", &d, 0.0)); 34 ASSERT_FALSE(android::base::ParseDouble("0", &d, 1e-9)); 35 ASSERT_FALSE(android::base::ParseDouble("3.0", &d, -1.0, 2.0)) [all...] |
/external/libtextclassifier/util/strings/ |
numbers.h | 44 bool ParseDouble(const char *c_str, double *value);
|
numbers.cc | 55 bool ParseDouble(const char *c_str, double *value) {
|
/system/core/base/include/android-base/ |
parsedouble.h | 31 static inline bool ParseDouble(const char* s, double* out,
|
/external/libtextclassifier/tests/ |
numbers_test.cc | 80 EXPECT_EQ(expected_parsing_success, ParseDouble(c_str, &parsed_value));
|
/external/google-benchmark/src/ |
commandlineflags.cc | 61 bool ParseDouble(const std::string& src_text, const char* str, double* value) { 193 return ParseDouble(std::string("The value of flag --") + flag, value_str,
|
/external/libcxx/utils/google-benchmark/src/ |
commandlineflags.cc | 61 bool ParseDouble(const std::string& src_text, const char* str, double* value) { 193 return ParseDouble(std::string("The value of flag --") + flag, value_str,
|
/frameworks/av/media/libstagefright/httplive/ |
M3UParser.h | 112 static status_t ParseDouble(const char *s, double *x);
|
M3UParser.cpp | 757 status_t err = ParseDouble(line.c_str() + colonPos + 1, &x); [all...] |
/external/libmojo/mojo/public/cpp/bindings/tests/ |
validation_test_input_parser.cc | 67 bool ParseDouble(const DataType& type, const std::string& value_string); 137 DATA_TYPE("[d]", 8, &ValidationTestInputParser::ParseDouble), 293 bool ValidationTestInputParser::ParseDouble(const DataType& type,
|
/art/compiler/driver/ |
compiler_options.cc | 196 ParseDouble(option.data(), '=', 0.0, 100.0, &top_k_profile_threshold_, Usage);
|
/external/libtextclassifier/common/ |
task-context.cc | 43 return ParseDouble(s.c_str(), &value) ? value : defval;
|
/system/core/storaged/ |
storaged_service.cpp | 22 #include <android-base/parsedouble.h> 104 if(!ParseDouble(String8(args[i]).c_str(), &hours))
|
/bootable/recovery/ |
install.cpp | 42 #include <android-base/parsedouble.h> 433 if (tokens.size() == 2 && android::base::ParseDouble(tokens[0].c_str(), &fraction) && 442 if (tokens.size() == 1 && android::base::ParseDouble(tokens[0].c_str(), &fraction)) {
|
/system/extras/simpleperf/ |
cmd_stat.cpp | 30 #include <android-base/parsedouble.h> 462 if (!android::base::ParseDouble(args[i].c_str(), &duration_in_sec_, 471 if (!android::base::ParseDouble(args[i].c_str(), &interval_in_ms_,
|
cmd_record.cpp | 29 #include <android-base/parsedouble.h> 430 if (!android::base::ParseDouble(args[i].c_str(), &duration_in_sec_, [all...] |
cmd_report.cpp | 29 #include <android-base/parsedouble.h> 501 if (!android::base::ParseDouble(args[i].c_str(),
|
/art/runtime/ |
utils.h | 252 void ParseDouble(const std::string& option,
|
utils.cc | 903 void ParseDouble(const std::string& option,
|
/bootable/recovery/updater/ |
install.cpp | 44 #include <android-base/parsedouble.h> 351 if (!android::base::ParseDouble(frac_str.c_str(), &frac)) { 379 if (!android::base::ParseDouble(frac_str.c_str(), &frac)) { [all...] |