Home
last modified time | relevance | path

Searched refs:IsJavaPackageName (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tools/aapt2/util/
DUtil_test.cpp126 TEST(UtilTest, IsJavaPackageName) { in TEST() argument
127 EXPECT_TRUE(util::IsJavaPackageName("android")); in TEST()
128 EXPECT_TRUE(util::IsJavaPackageName("android.test")); in TEST()
129 EXPECT_TRUE(util::IsJavaPackageName("android.test_thing")); in TEST()
130 EXPECT_FALSE(util::IsJavaPackageName("_android")); in TEST()
131 EXPECT_FALSE(util::IsJavaPackageName("android_")); in TEST()
132 EXPECT_FALSE(util::IsJavaPackageName("android.")); in TEST()
133 EXPECT_FALSE(util::IsJavaPackageName(".android")); in TEST()
134 EXPECT_FALSE(util::IsJavaPackageName("android._test")); in TEST()
135 EXPECT_FALSE(util::IsJavaPackageName("..")); in TEST()
DUtil.h87 bool IsJavaPackageName(const android::StringPiece& str);
DUtil.cpp142 bool IsJavaPackageName(const StringPiece& str) { in IsJavaPackageName() function
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp72 return util::IsJavaPackageName(attr->value); in RequiredNameIsJavaPackage()
130 } else if (!util::IsJavaPackageName(attr->value)) { in VerifyManifest()
139 if (!util::IsJavaPackageName(attr->value)) { in VerifyManifest()
196 if (!util::IsJavaPackageName(options_.rename_manifest_package.value())) { in BuildRules()
205 if (!util::IsJavaPackageName(options_.rename_instrumentation_target_package.value())) { in BuildRules()