Home
last modified time | relevance | path

Searched refs:ParseBool (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceUtils_test.cpp32 TEST(ResourceUtilsTest, ParseBool) { in TEST() argument
33 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()
DResourceUtils.h91 Maybe<bool> ParseBool(const android::StringPiece& str);
DResourceUtils.cpp491 Maybe<bool> ParseBool(const StringPiece& str) { in ParseBool() function
554 if (Maybe<bool> maybe_result = ParseBool(str)) { in TryParseBool()
DResourceParser.cpp841 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()
/frameworks/native/cmds/installd/
Dotapreopt_parameters.cpp34 static bool ParseBool(const char* in) { in ParseBool() function
340 downgrade = ParseBool(param); in ReadArgumentsPostV1()
Dotapreopt.cpp317 bool ParseBool(const char* in) { in ParseBool() function in android::installd::OTAPreoptService
/frameworks/base/core/jni/
Dandroid_os_SystemProperties.cpp128 parseResult = android::base::ParseBool(value); in SystemProperties_get_boolean()
174 parseResult = android::base::ParseBool(value); in SystemProperties_get_booleanH()
/frameworks/native/cmds/installd/tests/
Dinstalld_otapreopt_test.cpp29 static bool ParseBool(const char* in) { in ParseBool() function
75 ASSERT_EQ(params.downgrade, ParseBool(args[i++])); in verifyPackageParameters()
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp149 if (!ResourceUtils::ParseBool(attr->value).value_or_default(false)) { in AutoGenerateIsFeatureSplit()