• Home
  • Raw
  • Download

Lines Matching refs:pkgname

167 int create_app_data(const char *uuid, const char *pkgname, userid_t userid, int flags,  in create_app_data()  argument
172 auto path = create_data_user_ce_package_path(uuid, userid, pkgname); in create_app_data()
194 auto path = create_data_user_de_package_path(uuid, userid, pkgname); in create_app_data()
206 const std::string profile_path = create_data_user_profile_package_path(userid, pkgname); in create_app_data()
218 const std::string ref_profile_path = create_data_ref_profile_package_path(pkgname); in create_app_data()
232 int migrate_app_data(const char *uuid, const char *pkgname, userid_t userid, int flags) { in migrate_app_data() argument
238 auto ce_path = create_data_user_ce_package_path(uuid, userid, pkgname); in migrate_app_data()
239 auto de_path = create_data_user_de_package_path(uuid, userid, pkgname); in migrate_app_data()
314 static bool clear_reference_profile(const char* pkgname) { in clear_reference_profile() argument
315 std::string reference_profile_dir = create_data_ref_profile_package_path(pkgname); in clear_reference_profile()
320 static bool clear_current_profile(const char* pkgname, userid_t user) { in clear_current_profile() argument
321 std::string profile_dir = create_data_user_profile_package_path(user, pkgname); in clear_current_profile()
326 static bool clear_current_profiles(const char* pkgname) { in clear_current_profiles() argument
330 success &= clear_current_profile(pkgname, user); in clear_current_profiles()
335 int clear_app_profiles(const char* pkgname) { in clear_app_profiles() argument
337 success &= clear_reference_profile(pkgname); in clear_app_profiles()
338 success &= clear_current_profiles(pkgname); in clear_app_profiles()
342 int clear_app_data(const char *uuid, const char *pkgname, userid_t userid, int flags, in clear_app_data() argument
346 auto path = create_data_user_ce_package_path(uuid, userid, pkgname, ce_data_inode); in clear_app_data()
367 auto path = create_data_user_de_package_path(uuid, userid, pkgname) + suffix; in clear_app_data()
373 if (!clear_current_profile(pkgname, userid)) { in clear_app_data()
381 static int destroy_app_reference_profile(const char *pkgname) { in destroy_app_reference_profile() argument
383 create_data_ref_profile_package_path(pkgname), in destroy_app_reference_profile()
387 static int destroy_app_current_profiles(const char *pkgname, userid_t userid) { in destroy_app_current_profiles() argument
389 create_data_user_profile_package_path(userid, pkgname), in destroy_app_current_profiles()
393 int destroy_app_profiles(const char *pkgname) { in destroy_app_profiles() argument
397 result |= destroy_app_current_profiles(pkgname, user); in destroy_app_profiles()
399 result |= destroy_app_reference_profile(pkgname); in destroy_app_profiles()
403 int destroy_app_data(const char *uuid, const char *pkgname, userid_t userid, int flags, in destroy_app_data() argument
408 create_data_user_ce_package_path(uuid, userid, pkgname, ce_data_inode)); in destroy_app_data()
412 create_data_user_de_package_path(uuid, userid, pkgname)); in destroy_app_data()
413 destroy_app_current_profiles(pkgname, userid); in destroy_app_data()
417 destroy_app_reference_profile(pkgname); in destroy_app_data()
682 int get_app_size(const char *uuid, const char *pkgname, int userid, int flags, ino_t ce_data_inode, in get_app_size() argument
696 auto path = create_data_user_ce_package_path(uuid, userid, pkgname, ce_data_inode); in get_app_size()
700 auto path = create_data_user_de_package_path(uuid, userid, pkgname); in get_app_size()
709 int get_app_data_inode(const char *uuid, const char *pkgname, int userid, int flags, ino_t *inode) { in get_app_data_inode() argument
711 auto path = create_data_user_ce_package_path(uuid, userid, pkgname); in get_app_data_inode()
750 const char* output_file_name, const char *pkgname ATTRIBUTE_UNUSED, const char *instruction_set) in run_patchoat()
1139 static fd_t open_primary_profile_file(userid_t user, const char* pkgname) { in open_primary_profile_file() argument
1140 std::string profile_dir = create_data_user_profile_package_path(user, pkgname); in open_primary_profile_file()
1144 static fd_t open_reference_profile(uid_t uid, const char* pkgname, bool read_write) { in open_reference_profile() argument
1145 std::string reference_profile_dir = create_data_ref_profile_package_path(pkgname); in open_reference_profile()
1161 static void open_profile_files(uid_t uid, const char* pkgname, in open_profile_files() argument
1164 *reference_profile_fd = open_reference_profile(uid, pkgname, /*read_write*/ true); in open_profile_files()
1172 fd_t profile_fd = open_primary_profile_file(user, pkgname); in open_profile_files()
1241 static bool analyse_profiles(uid_t uid, const char* pkgname) { in analyse_profiles() argument
1244 open_profile_files(uid, pkgname, &profiles_fd, &reference_profile_fd); in analyse_profiles()
1255 ALOGV("PROFMAN (MERGE): --- BEGIN '%s' ---\n", pkgname); in analyse_profiles()
1270 LOG(WARNING) << "profman failed for package " << pkgname << ": " << return_code; in analyse_profiles()
1285 LOG(WARNING) << "Bad profiles for package " << pkgname; in analyse_profiles()
1293 LOG(WARNING) << "IO error while reading profiles for package " << pkgname; in analyse_profiles()
1300 … LOG(WARNING) << "Unknown error code while processing profiles for package " << pkgname in analyse_profiles()
1313 clear_current_profiles(pkgname); in analyse_profiles()
1316 clear_reference_profile(pkgname); in analyse_profiles()
1369 bool dump_profile(uid_t uid, const char* pkgname, const char* code_path_string) { in dump_profile() argument
1372 std::string out_file_name = StringPrintf("/data/misc/profman/%s.txt", pkgname); in dump_profile()
1374 ALOGV("PROFMAN (DUMP): --- BEGIN '%s' ---\n", pkgname); in dump_profile()
1376 open_profile_files(uid, pkgname, &profile_fds, &reference_profile_fd); in dump_profile()
1382 ALOGE("profman dump: no profiles to dump for '%s'", pkgname); in dump_profile()
1421 LOG(WARNING) << "profman failed for package " << pkgname << ": " in dump_profile()
1515 bool merge_profiles(uid_t uid, const char *pkgname) { in merge_profiles() argument
1516 return analyse_profiles(uid, pkgname); in merge_profiles()
1619 int dexopt(const char* apk_path, uid_t uid, const char* pkgname, const char* instruction_set, in dexopt() argument
1632 CHECK(pkgname != nullptr); in dexopt()
1633 CHECK(pkgname[0] != 0); in dexopt()
1638 if (!is_public && pkgname[0] != '*') { in dexopt()
1640 const std::string pkgname_str(pkgname); in dexopt()
1641 reference_profile_fd.reset(open_reference_profile(uid, pkgname, /*read_write*/ false), in dexopt()
1782 pkgname, in dexopt()
1868 int linklib(const char* uuid, const char* pkgname, const char* asecLibDir, int userId) in linklib() argument
1873 std::string _pkgdir(create_data_user_ce_package_path(uuid, userId, pkgname)); in linklib()