Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/
DResourceUtils_test.cpp32 TEST(ResourceUtilsTest, ParseBool) { in TEST() argument
33 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()
DResourceUtils.h88 std::optional<bool> ParseBool(android::StringPiece str);
DResourceUtils.cpp483 std::optional<bool> ParseBool(StringPiece str) { in ParseBool() function
546 if (std::optional<bool> maybe_result = ParseBool(str)) { in TryParseBool()
DResourceParser.cpp837 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()
/frameworks/native/cmds/installd/
Dotapreopt_parameters.cpp34 static bool ParseBool(const char* in) { in ParseBool() function
340 downgrade = ParseBool(param); in ReadArgumentsPostV1()
Dotapreopt.cpp323 bool ParseBool(const char* in) { in ParseBool() function in android::installd::OTAPreoptService
/frameworks/native/libs/binder/tests/
DbinderHostDeviceTest.cpp37 using ::android::base::ParseBool;
80 auto debuggableBool = ParseBool(Trim(debuggableResult->stdoutStr)); in SetUp()
/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/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()
DAndroidRuntime.cpp56 using android::base::ParseBool;
719 switch (ParseBool(profile_boot_class_path_flag)) { in startVm()
/frameworks/native/services/surfaceflinger/common/
DFlagManager.cpp47 base::ParseBoolResult parseResult = base::ParseBool(str); in parseBool()
/frameworks/base/libs/hwui/tests/macrobench/
Dmain.cpp310 if (!optarg || ParseBool(optarg) == ParseBoolResult::kTrue) { in parseOptions()
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp236 if (!ResourceUtils::ParseBool(attr->value).value_or(false)) { in AutoGenerateIsFeatureSplit()
262 if (!ResourceUtils::ParseBool(attr->value).value_or(false)) { in AutoGenerateIsSplitRequired()
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp145 flag_value = ResourceUtils::ParseBool(parts[1]); in ParseFeatureFlagsParameter()
/frameworks/av/media/libstagefright/
DVideoRenderQualityTracker.cpp56 switch (android::base::ParseBool(valueStr)) { in getServerConfigurableFlag()