Lines Matching refs:pkgname
23 const char* pkgname, in create_pkg_path_in_dir() argument
28 const size_t pkgname_len = strlen(pkgname); in create_pkg_path_in_dir()
33 if (is_valid_package_name(pkgname) < 0) { in create_pkg_path_in_dir()
45 || append_and_increment(&dst, pkgname, &dst_size) < 0 in create_pkg_path_in_dir()
59 const char *pkgname, in create_pkg_path() argument
98 return create_pkg_path_in_dir(path, &dir, pkgname, postfix); in create_pkg_path()
153 const char* pkgname, in create_move_path() argument
157 if ((android_data_dir.len + strlen(PRIMARY_USER_PREFIX) + strlen(pkgname) + strlen(leaf) + 1) in create_move_path()
162 sprintf(path, "%s%s%s/%s", android_data_dir.path, PRIMARY_USER_PREFIX, pkgname, leaf); in create_move_path()
170 int is_valid_package_name(const char* pkgname) { in is_valid_package_name() argument
171 const char *x = pkgname; in is_valid_package_name()
178 if ((x == pkgname) || (x[1] == '.') || (x[1] == 0)) { in is_valid_package_name()
180 ALOGE("invalid package name '%s'\n", pkgname); in is_valid_package_name()
189 ALOGE("invalid package name '%s'\n", pkgname); in is_valid_package_name()
201 ALOGE("invalid package name '%s' should include only numbers after -\n", pkgname); in is_valid_package_name()