Searched refs:is_valid_package_name (Results 1 – 4 of 4) sorted by relevance
/frameworks/native/cmds/installd/tests/ |
D | installd_utils_test.cpp | 337 EXPECT_EQ(true, is_valid_package_name("android")); in TEST_F() 338 EXPECT_EQ(true, is_valid_package_name("com.example")); in TEST_F() 339 EXPECT_EQ(true, is_valid_package_name("com.example-1")); in TEST_F() 340 EXPECT_EQ(true, is_valid_package_name("com.example-1024")); in TEST_F() 341 EXPECT_EQ(true, is_valid_package_name("com.example.foo---KiJFj4a_tePVw95pSrjg==")); in TEST_F() 342 EXPECT_EQ(true, is_valid_package_name("really_LONG.a1234.package_name")); in TEST_F() 344 EXPECT_EQ(false, is_valid_package_name("1234.package")); in TEST_F() 345 EXPECT_EQ(false, is_valid_package_name("com.1234.package")); in TEST_F() 346 EXPECT_EQ(false, is_valid_package_name("")); in TEST_F() 347 EXPECT_EQ(false, is_valid_package_name(".")); in TEST_F() [all …]
|
/frameworks/native/cmds/installd/ |
D | utils.h | 113 bool is_valid_package_name(const std::string& packageName);
|
D | utils.cpp | 70 CHECK(is_valid_package_name(package_name)); in check_package_name() 436 bool is_valid_package_name(const std::string& packageName) { in is_valid_package_name() function
|
D | InstalldNativeService.cpp | 174 if (is_valid_package_name(packageName)) { in checkArgumentPackageName()
|