Searched refs:ParseBool (Results 1 – 9 of 9) sorted by relevance
32 TEST(ResourceUtilsTest, ParseBool) { in TEST() argument33 EXPECT_THAT(ResourceUtils::ParseBool("true"), Eq(Maybe<bool>(true))); in TEST()34 EXPECT_THAT(ResourceUtils::ParseBool("TRUE"), Eq(Maybe<bool>(true))); in TEST()35 EXPECT_THAT(ResourceUtils::ParseBool("True"), Eq(Maybe<bool>(true))); in TEST()37 EXPECT_THAT(ResourceUtils::ParseBool("false"), Eq(Maybe<bool>(false))); in TEST()38 EXPECT_THAT(ResourceUtils::ParseBool("FALSE"), Eq(Maybe<bool>(false))); in TEST()39 EXPECT_THAT(ResourceUtils::ParseBool("False"), Eq(Maybe<bool>(false))); in TEST()41 EXPECT_THAT(ResourceUtils::ParseBool(" False\n "), Eq(Maybe<bool>(false))); in TEST()
91 Maybe<bool> ParseBool(const android::StringPiece& str);
491 Maybe<bool> ParseBool(const StringPiece& str) { in ParseBool() function554 if (Maybe<bool> maybe_result = ParseBool(str)) { in TryParseBool()
841 ResourceUtils::ParseBool(formatted_attr.value()); in ParseString()852 Maybe<bool> maybe_translatable = ResourceUtils::ParseBool(translatable_attr.value()); in ParseString()1602 Maybe<bool> maybe_translatable = ResourceUtils::ParseBool(translatable_attr.value()); in ParseArrayImpl()
34 static bool ParseBool(const char* in) { in ParseBool() function340 downgrade = ParseBool(param); in ReadArgumentsPostV1()
317 bool ParseBool(const char* in) { in ParseBool() function in android::installd::OTAPreoptService
128 parseResult = android::base::ParseBool(value); in SystemProperties_get_boolean()174 parseResult = android::base::ParseBool(value); in SystemProperties_get_booleanH()
29 static bool ParseBool(const char* in) { in ParseBool() function75 ASSERT_EQ(params.downgrade, ParseBool(args[i++])); in verifyPackageParameters()
149 if (!ResourceUtils::ParseBool(attr->value).value_or_default(false)) { in AutoGenerateIsFeatureSplit()