Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dcommand_test.cpp68 double double_value; in TEST() local
69 ASSERT_TRUE(command.GetDoubleOption({"-s", "3.2"}, &i, &double_value, 0, 4)); in TEST()
70 ASSERT_DOUBLE_EQ(double_value, 3.2); in TEST()
114 double double_value; in TEST() local
115 ASSERT_TRUE(options.PullDoubleValue("--double-option", &double_value)); in TEST()
116 ASSERT_DOUBLE_EQ(double_value, -32.75); in TEST()
172 double double_value; in TEST() local
173 value.double_value = 0.0; in TEST()
175 ASSERT_FALSE(options.PullDoubleValue("--double-option", &double_value, 1.0)); in TEST()
177 ASSERT_FALSE(options.PullDoubleValue("--double-option", &double_value, -2.0, -1.0)); in TEST()
[all …]
Dcommand.h70 double double_value; member
95 if (option_value->double_value < min || option_value->double_value > max) {
96 LOG(ERROR) << "invalid " << name << ": " << option_value->double_value;
99 *value = option_value->double_value;
Dcommand.cpp93 if (!android::base::ParseDouble(args[++i], &value.double_value)) { in PreprocessOptions()