Home | History | Annotate | Download | only in installd

Lines Matching refs:pkgname

23                                 const char* pkgname,
28 const size_t pkgname_len = strlen(pkgname);
33 if (is_valid_package_name(pkgname) < 0) {
45 || append_and_increment(&dst, pkgname, &dst_size) < 0
59 const char *pkgname,
98 return create_pkg_path_in_dir(path, &dir, pkgname, postfix);
164 const char* pkgname,
168 if ((android_data_dir.len + strlen(PRIMARY_USER_PREFIX) + strlen(pkgname) + strlen(leaf) + 1)
173 sprintf(path, "%s%s%s/%s", android_data_dir.path, PRIMARY_USER_PREFIX, pkgname, leaf);
181 int is_valid_package_name(const char* pkgname) {
182 const char *x = pkgname;
189 if ((x == pkgname) || (x[1] == '.') || (x[1] == 0)) {
191 ALOGE("invalid package name '%s'\n", pkgname);
200 ALOGE("invalid package name '%s'\n", pkgname);
212 ALOGE("invalid package name '%s' should include only numbers after -\n", pkgname);
1132 int create_profile_file(const char *pkgname, gid_t gid) {
1136 snprintf(profile_file, sizeof(profile_file), "%s/%s", profile_dir, pkgname);
1165 void remove_profile_file(const char *pkgname) {
1167 snprintf(profile_file, sizeof(profile_file), "%s/%s", DALVIK_CACHE_PREFIX "profiles", pkgname);