Searched refs:ParseBool (Results 1 – 15 of 15) sorted by relevance
32 TEST(ResourceUtilsTest, ParseBool) { in TEST() argument33 EXPECT_THAT(ResourceUtils::ParseBool("true"), Eq(std::optional<bool>(true))); in TEST()34 EXPECT_THAT(ResourceUtils::ParseBool("TRUE"), Eq(std::optional<bool>(true))); in TEST()35 EXPECT_THAT(ResourceUtils::ParseBool("True"), Eq(std::optional<bool>(true))); in TEST()37 EXPECT_THAT(ResourceUtils::ParseBool("false"), Eq(std::optional<bool>(false))); in TEST()38 EXPECT_THAT(ResourceUtils::ParseBool("FALSE"), Eq(std::optional<bool>(false))); in TEST()39 EXPECT_THAT(ResourceUtils::ParseBool("False"), Eq(std::optional<bool>(false))); in TEST()41 EXPECT_THAT(ResourceUtils::ParseBool(" False\n "), Eq(std::optional<bool>(false))); in TEST()
88 std::optional<bool> ParseBool(android::StringPiece str);
483 std::optional<bool> ParseBool(StringPiece str) { in ParseBool() function546 if (std::optional<bool> maybe_result = ParseBool(str)) { in TryParseBool()
837 std::optional<bool> maybe_formatted = ResourceUtils::ParseBool(formatted_attr.value()); in ParseString()848 std::optional<bool> maybe_translatable = ResourceUtils::ParseBool(translatable_attr.value()); in ParseString()1612 std::optional<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()
323 bool ParseBool(const char* in) { in ParseBool() function in android::installd::OTAPreoptService
37 using ::android::base::ParseBool;80 auto debuggableBool = ParseBool(Trim(debuggableResult->stdoutStr)); in SetUp()
29 static bool ParseBool(const char* in) { in ParseBool() function75 ASSERT_EQ(params.downgrade, ParseBool(args[i++])); in verifyPackageParameters()
128 parseResult = android::base::ParseBool(value); in SystemProperties_get_boolean()174 parseResult = android::base::ParseBool(value); in SystemProperties_get_booleanH()
56 using android::base::ParseBool;719 switch (ParseBool(profile_boot_class_path_flag)) { in startVm()
47 base::ParseBoolResult parseResult = base::ParseBool(str); in parseBool()
310 if (!optarg || ParseBool(optarg) == ParseBoolResult::kTrue) { in parseOptions()
236 if (!ResourceUtils::ParseBool(attr->value).value_or(false)) { in AutoGenerateIsFeatureSplit()262 if (!ResourceUtils::ParseBool(attr->value).value_or(false)) { in AutoGenerateIsSplitRequired()
145 flag_value = ResourceUtils::ParseBool(parts[1]); in ParseFeatureFlagsParameter()
56 switch (android::base::ParseBool(valueStr)) { in getServerConfigurableFlag()