Home
last modified time | relevance | path

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

/frameworks/native/cmds/installd/tests/
Dinstalld_utils_test.cpp350 EXPECT_EQ(true, is_valid_package_name("android")); in TEST_F()
351 EXPECT_EQ(true, is_valid_package_name("com.example")); in TEST_F()
352 EXPECT_EQ(true, is_valid_package_name("com.example-1")); in TEST_F()
353 EXPECT_EQ(true, is_valid_package_name("com.example-1024")); in TEST_F()
354 EXPECT_EQ(true, is_valid_package_name("com.example.foo---KiJFj4a_tePVw95pSrjg==")); in TEST_F()
355 EXPECT_EQ(true, is_valid_package_name("really_LONG.a1234.package_name")); in TEST_F()
357 EXPECT_EQ(false, is_valid_package_name("1234.package")); in TEST_F()
358 EXPECT_EQ(false, is_valid_package_name("com.1234.package")); in TEST_F()
359 EXPECT_EQ(false, is_valid_package_name("")); in TEST_F()
360 EXPECT_EQ(false, is_valid_package_name(".")); in TEST_F()
[all …]
/frameworks/native/cmds/installd/
Dutils.h126 bool is_valid_package_name(const std::string& packageName);
Dutils.cpp83 CHECK(is_valid_package_name(package_name)); in check_package_name()
524 bool is_valid_package_name(const std::string& packageName) { in is_valid_package_name() function
791 !is_valid_package_name(name)) { in cleanup_invalid_package_dirs_under_path()
DInstalldNativeService.cpp186 if (is_valid_package_name(packageName)) { in checkArgumentPackageName()