Home
last modified time | relevance | path

Searched refs:ExtractResourceName (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/libs/androidfw/tests/
DResourceUtils_test.cpp23 TEST(ResourceUtilsTest, ExtractResourceName) { in TEST() argument
25 ASSERT_TRUE(ExtractResourceName("android:string/foo", &package, &type, &entry)); in TEST()
30 ASSERT_TRUE(ExtractResourceName("string/foo", &package, &type, &entry)); in TEST()
35 ASSERT_TRUE(ExtractResourceName("foo", &package, &type, &entry)); in TEST()
40 ASSERT_TRUE(ExtractResourceName("android:foo", &package, &type, &entry)); in TEST()
45 EXPECT_FALSE(ExtractResourceName(":string/foo", &package, &type, &entry)); in TEST()
46 EXPECT_FALSE(ExtractResourceName("/foo", &package, &type, &entry)); in TEST()
/frameworks/base/libs/androidfw/
DResourceUtils.cpp21 bool ExtractResourceName(const StringPiece& str, StringPiece* out_package, StringPiece* out_type, in ExtractResourceName() function
DAssetManager2.cpp632 if (!ExtractResourceName(resource_name, &package_name, &type, &entry)) { in GetResourceId()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceUtils.h27 bool ExtractResourceName(const StringPiece& str, StringPiece* out_package, StringPiece* out_type,
/frameworks/base/tools/aapt2/
DResourceUtils.cpp89 if (!android::ExtractResourceName(str.substr(offset, str.size() - offset), &package, &type, in ParseResourceName()
176 if (!android::ExtractResourceName(trimmed_str.substr(1, trimmed_str.size() - 1), &package, in ParseAttributeReference()
237 android::ExtractResourceName(name, &ref.package, &type_str, &ref.entry); in ParseStyleParentReference()