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.cpp335 EXPECT_EQ(true, is_valid_package_name("android")); in TEST_F()
336 EXPECT_EQ(true, is_valid_package_name("com.example")); in TEST_F()
337 EXPECT_EQ(true, is_valid_package_name("com.example-1")); in TEST_F()
338 EXPECT_EQ(true, is_valid_package_name("com.example-1024")); in TEST_F()
339 EXPECT_EQ(true, is_valid_package_name("com.example.foo---KiJFj4a_tePVw95pSrjg==")); in TEST_F()
340 EXPECT_EQ(true, is_valid_package_name("really_LONG.a1234.package_name")); in TEST_F()
342 EXPECT_EQ(false, is_valid_package_name("1234.package")); in TEST_F()
343 EXPECT_EQ(false, is_valid_package_name("com.1234.package")); in TEST_F()
344 EXPECT_EQ(false, is_valid_package_name("")); in TEST_F()
345 EXPECT_EQ(false, is_valid_package_name(".")); in TEST_F()
[all …]
/frameworks/native/cmds/installd/
Dutils.h103 bool is_valid_package_name(const std::string& packageName);
Dutils.cpp67 CHECK(is_valid_package_name(package_name)); in check_package_name()
394 bool is_valid_package_name(const std::string& packageName) { in is_valid_package_name() function
DInstalldNativeService.cpp167 if (is_valid_package_name(packageName.c_str())) { in checkArgumentPackageName()