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("@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/
DResourceUtils.h28 bool ExtractResourceName(const StringPiece& str, StringPiece* out_package, StringPiece* out_type,
/frameworks/base/libs/androidfw/
DResourceUtils.cpp21 bool ExtractResourceName(const StringPiece& str, StringPiece* out_package, StringPiece* out_type, in ExtractResourceName() function
DAssetManager2.cpp983 if (!ExtractResourceName(resource_name, &package_name, &type, &entry)) { in GetResourceId()
/frameworks/base/tools/aapt2/
DResourceUtils.cpp132 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()