Home
last modified time | relevance | path

Searched refs:double_value (Results 1 – 3 of 3) sorted by relevance

/system/extras/simpleperf/
Dcommand_test.cpp71 double double_value; in TEST() local
72 ASSERT_TRUE(command.GetDoubleOption({"-s", "3.2"}, &i, &double_value, 0, 4)); in TEST()
73 ASSERT_DOUBLE_EQ(double_value, 3.2); in TEST()
121 double double_value; in TEST() local
122 ASSERT_TRUE(options.PullDoubleValue("--double-option", &double_value)); in TEST()
123 ASSERT_DOUBLE_EQ(double_value, -32.75); in TEST()
176 double double_value; in TEST() local
177 value.double_value = 0.0; in TEST()
179 ASSERT_FALSE(options.PullDoubleValue("--double-option", &double_value, 1.0)); in TEST()
181 ASSERT_FALSE(options.PullDoubleValue("--double-option", &double_value, -2.0, -1.0)); in TEST()
[all …]
Dcommand.h70 double double_value; member
97 if (option_value->double_value < min || option_value->double_value > max) {
98 LOG(ERROR) << "invalid " << name << ": " << option_value->double_value;
101 *value = option_value->double_value;
Dcommand.cpp93 if (!android::base::ParseDouble(args[++i], &value.double_value)) { in PreprocessOptions()