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("@android:string/foo", &package, &type, &entry)); in TEST() 35 ASSERT_TRUE(ExtractResourceName("string/foo", &package, &type, &entry)); in TEST() 40 ASSERT_TRUE(ExtractResourceName("@string/foo", &package, &type, &entry)); in TEST() 45 ASSERT_TRUE(ExtractResourceName("foo", &package, &type, &entry)); in TEST() 50 ASSERT_TRUE(ExtractResourceName("@foo", &package, &type, &entry)); in TEST() 55 ASSERT_TRUE(ExtractResourceName("android:foo", &package, &type, &entry)); in TEST() 65 EXPECT_FALSE(ExtractResourceName(":string/foo", &package, &type, &entry)); in TEST() 67 EXPECT_FALSE(ExtractResourceName("@:string/foo", &package, &type, &entry)); in TEST() [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceUtils.h | 28 bool ExtractResourceName(const StringPiece& str, StringPiece* out_package, StringPiece* out_type,
|
/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 | 983 if (!ExtractResourceName(resource_name, &package_name, &type, &entry)) { in GetResourceId()
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils.cpp | 132 if (!android::ExtractResourceName(str.substr(offset, str.size() - offset), &package, &type, in ParseResourceName() 219 if (!android::ExtractResourceName(trimmed_str.substr(1, trimmed_str.size() - 1), &package, in ParseAttributeReference() 280 android::ExtractResourceName(name, &ref.package, &type_str, &ref.entry); in ParseStyleParentReference()
|