Searched refs:is_valid_package_name (Results 1 – 4 of 4) sorted by relevance
/frameworks/native/cmds/installd/tests/ |
D | installd_utils_test.cpp | 345 EXPECT_EQ(true, is_valid_package_name("android")); in TEST_F() 346 EXPECT_EQ(true, is_valid_package_name("com.example")); in TEST_F() 347 EXPECT_EQ(true, is_valid_package_name("com.example-1")); in TEST_F() 348 EXPECT_EQ(true, is_valid_package_name("com.example-1024")); in TEST_F() 349 EXPECT_EQ(true, is_valid_package_name("com.example.foo---KiJFj4a_tePVw95pSrjg==")); in TEST_F() 350 EXPECT_EQ(true, is_valid_package_name("really_LONG.a1234.package_name")); in TEST_F() 352 EXPECT_EQ(false, is_valid_package_name("1234.package")); in TEST_F() 353 EXPECT_EQ(false, is_valid_package_name("com.1234.package")); in TEST_F() 354 EXPECT_EQ(false, is_valid_package_name("")); in TEST_F() 355 EXPECT_EQ(false, is_valid_package_name(".")); in TEST_F() [all …]
|
/frameworks/native/cmds/installd/ |
D | utils.h | 116 bool is_valid_package_name(const std::string& packageName);
|
D | utils.cpp | 73 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 | 188 if (is_valid_package_name(packageName)) { in checkArgumentPackageName()
|