Searched refs:ExtractResourceName (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/libs/androidfw/tests/ |
D | ResourceUtils_test.cpp | 23 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/ |
D | ResourceUtils.cpp | 21 bool ExtractResourceName(const StringPiece& str, StringPiece* out_package, StringPiece* out_type, in ExtractResourceName() function
|
D | AssetManager2.cpp | 632 if (!ExtractResourceName(resource_name, &package_name, &type, &entry)) { in GetResourceId()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceUtils.h | 27 bool ExtractResourceName(const StringPiece& str, StringPiece* out_package, StringPiece* out_type,
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils.cpp | 89 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()
|