Home
last modified time | relevance | path

Searched refs:tryParseBool (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceUtils_test.cpp28 EXPECT_TRUE(ResourceUtils::tryParseBool(u"true", &val)); in TEST()
31 EXPECT_TRUE(ResourceUtils::tryParseBool(u"TRUE", &val)); in TEST()
34 EXPECT_TRUE(ResourceUtils::tryParseBool(u"True", &val)); in TEST()
37 EXPECT_TRUE(ResourceUtils::tryParseBool(u"false", &val)); in TEST()
40 EXPECT_TRUE(ResourceUtils::tryParseBool(u"FALSE", &val)); in TEST()
43 EXPECT_TRUE(ResourceUtils::tryParseBool(u"False", &val)); in TEST()
DResourceUtils.h80 bool tryParseBool(const StringPiece16& str, bool* outValue);
116 std::unique_ptr<BinaryPrimitive> tryParseBool(const StringPiece16& str);
DResourceUtils.cpp389 bool tryParseBool(const StringPiece16& str, bool* outValue) { in tryParseBool() function
405 std::unique_ptr<BinaryPrimitive> tryParseBool(const StringPiece16& str) { in tryParseBool() function
407 if (tryParseBool(str, &result)) { in tryParseBool()
503 std::unique_ptr<BinaryPrimitive> boolean = tryParseBool(value); in parseItemForAttribute()
DResourceParser.cpp531 if (!ResourceUtils::tryParseBool(formattedAttr.value(), &formatted)) { in parseString()
540 if (!ResourceUtils::tryParseBool(translateableAttr.value(), &translateable)) { in parseString()
1063 if (!ResourceUtils::tryParseBool(translateableAttr.value(), &translateable)) { in parseArrayImpl()
/frameworks/base/tools/aapt2/link/
DTableMerger_test.cpp147 .addValue(u"@bool/foo", ResourceUtils::tryParseBool(u"true")) in TEST_F()
151 .addValue(u"@bool/foo", ResourceUtils::tryParseBool(u"false")) in TEST_F()
174 .addValue(u"@bool/foo", ResourceUtils::tryParseBool(u"true")) in TEST_F()
190 .addValue(u"@bool/foo", ResourceUtils::tryParseBool(u"true")) in TEST_F()
208 .addValue(u"@bool/foo", ResourceUtils::tryParseBool(u"true")) in TEST_F()
/frameworks/base/services/core/java/com/android/server/notification/
DRankingHelper.java312 private static boolean tryParseBool(String value, boolean defValue) { in tryParseBool() method in RankingHelper