Searched refs:ParseBoolResult (Results 1 – 7 of 7) sorted by relevance
25 using android::base::ParseBoolResult;32 ASSERT_EQ(ParseBoolResult::kTrue, ParseBool(s)); in TEST()41 ASSERT_EQ(ParseBoolResult::kFalse, ParseBool(s)); in TEST()46 ASSERT_EQ(ParseBoolResult::kError, ParseBool("blarg")); in TEST()47 ASSERT_EQ(ParseBoolResult::kError, ParseBool("")); in TEST()
23 ParseBoolResult ParseBool(std::string_view s) { in ParseBool()25 return ParseBoolResult::kTrue; in ParseBool()28 return ParseBoolResult::kFalse; in ParseBool()30 return ParseBoolResult::kError; in ParseBool()
73 case ParseBoolResult::kError: in GetBoolProperty()75 case ParseBoolResult::kFalse: in GetBoolProperty()77 case ParseBoolResult::kTrue: in GetBoolProperty()
49 enum class ParseBoolResult { enum55 ParseBoolResult ParseBool(std::string_view s);
154 using ::android::base::ParseBoolResult; in GetBoolEnvOrProperty()157 case ParseBoolResult::kError: in GetBoolEnvOrProperty()159 case ParseBoolResult::kFalse: in GetBoolEnvOrProperty()161 case ParseBoolResult::kTrue: in GetBoolEnvOrProperty()
113 if (shouldFormat == android::base::ParseBoolResult::kError) exit(EINVAL); in main()115 shouldFormat == android::base::ParseBoolResult::kTrue, in main()
142 if (boolVal == ab::ParseBoolResult::kTrue) { in parseProperty()145 if (boolVal == ab::ParseBoolResult::kFalse) { in parseProperty()