Searched refs:is_valid_package_name (Results 1 – 4 of 4) sorted by relevance
/frameworks/native/cmds/installd/tests/ |
D | installd_utils_test.cpp | 509 EXPECT_EQ(true, is_valid_package_name("android")); in TEST_F() 510 EXPECT_EQ(true, is_valid_package_name("com.example")); in TEST_F() 511 EXPECT_EQ(true, is_valid_package_name("com.example-1")); in TEST_F() 512 EXPECT_EQ(true, is_valid_package_name("com.example-1024")); in TEST_F() 513 EXPECT_EQ(true, is_valid_package_name("com.example.foo---KiJFj4a_tePVw95pSrjg==")); in TEST_F() 514 EXPECT_EQ(true, is_valid_package_name("really_LONG.a1234.package_name")); in TEST_F() 516 EXPECT_EQ(false, is_valid_package_name("1234.package")); in TEST_F() 517 EXPECT_EQ(false, is_valid_package_name("com.1234.package")); in TEST_F() 518 EXPECT_EQ(false, is_valid_package_name("")); in TEST_F() 519 EXPECT_EQ(false, is_valid_package_name(".")); in TEST_F() [all …]
|
/frameworks/native/cmds/installd/ |
D | utils.h | 103 bool is_valid_package_name(const std::string& packageName);
|
D | utils.cpp | 63 CHECK(is_valid_package_name(package_name)); in check_package_name() 134 if (!is_valid_package_name(pkgname)) { in create_pkg_path() 375 bool is_valid_package_name(const std::string& packageName) { in is_valid_package_name() function
|
D | InstalldNativeService.cpp | 153 if (is_valid_package_name(packageName.c_str())) { in checkArgumentPackageName()
|