Lines Matching refs:package_name
151 static bool clear_reference_profile(const std::string& package_name, const std::string& location, in clear_reference_profile() argument
153 return clear_profile(create_reference_profile_path(package_name, location, is_secondary_dex)); in clear_reference_profile()
158 static bool clear_current_profile(const std::string& package_name, const std::string& location, in clear_current_profile() argument
160 return clear_profile(create_current_profile_path(user, package_name, location, in clear_current_profile()
166 bool clear_primary_reference_profile(const std::string& package_name, in clear_primary_reference_profile() argument
168 return clear_reference_profile(package_name, location, /*is_secondary_dex*/false); in clear_primary_reference_profile()
173 bool clear_primary_current_profiles(const std::string& package_name, const std::string& location) { in clear_primary_current_profiles() argument
178 success &= clear_current_profile(package_name, location, user, /*is_secondary_dex*/false); in clear_primary_current_profiles()
184 bool clear_primary_current_profile(const std::string& package_name, const std::string& location, in clear_primary_current_profile() argument
186 return clear_current_profile(package_name, location, user, /*is_secondary_dex*/false); in clear_primary_current_profile()
717 static unique_fd open_current_profile(uid_t uid, userid_t user, const std::string& package_name, in open_current_profile() argument
719 std::string profile = create_current_profile_path(user, package_name, location, in open_current_profile()
724 static unique_fd open_reference_profile(uid_t uid, const std::string& package_name, in open_reference_profile() argument
726 std::string profile = create_reference_profile_path(package_name, location, is_secondary_dex); in open_reference_profile()
730 static unique_fd open_spnashot_profile(uid_t uid, const std::string& package_name, in open_spnashot_profile() argument
732 std::string profile = create_snapshot_profile_path(package_name, location); in open_spnashot_profile()
736 static void open_profile_files(uid_t uid, const std::string& package_name, in open_profile_files() argument
740 *reference_profile_fd = open_reference_profile(uid, package_name, location, in open_profile_files()
752 unique_fd profile_fd = open_current_profile(uid, user, package_name, location, in open_profile_files()
889 static bool analyze_profiles(uid_t uid, const std::string& package_name, in analyze_profiles() argument
893 open_profile_files(uid, package_name, location, is_secondary_dex, in analyze_profiles()
970 clear_current_profile(package_name, location, multiuser_get_user_id(uid), in analyze_profiles()
973 clear_primary_current_profiles(package_name, location); in analyze_profiles()
977 clear_reference_profile(package_name, location, is_secondary_dex); in analyze_profiles()
988 bool analyze_primary_profiles(uid_t uid, const std::string& package_name, in analyze_primary_profiles() argument
990 return analyze_profiles(uid, package_name, profile_name, /*is_secondary_dex*/false); in analyze_primary_profiles()
1048 uid_t packageUid, const std::string& package_name, const std::string& profile_name) { in copy_system_profile() argument
1051 package_name, in copy_system_profile()
1060 PLOG(WARNING) << "Could not open profile " << package_name; in copy_system_profile()
1073 PLOG(WARNING) << "Error locking profile " << package_name; in copy_system_profile()
1081 PLOG(WARNING) << "Failed to flock " << package_name; in copy_system_profile()
1087 PLOG(WARNING) << "Could not truncate " << package_name; in copy_system_profile()
1101 PLOG(WARNING) << "Error unlocking profile " << package_name; in copy_system_profile()
2795 const std::string& package_name, in create_app_profile_snapshot() argument
2800 unique_fd snapshot_fd = open_spnashot_profile(AID_SYSTEM, package_name, profile_name); in create_app_profile_snapshot()
2807 open_profile_files(app_shared_gid, package_name, profile_name, /*is_secondary_dex*/ false, in create_app_profile_snapshot()
2841 LOG(WARNING) << "profman failed for " << package_name << ":" << profile_name; in create_app_profile_snapshot()
2848 LOG(WARNING) << "profman error for " << package_name << ":" << profile_name in create_app_profile_snapshot()
2855 static bool create_boot_image_profile_snapshot(const std::string& package_name, in create_boot_image_profile_snapshot() argument
2860 create_primary_reference_profile_package_dir_path(package_name); in create_boot_image_profile_snapshot()
2874 unique_fd snapshot_fd = open_spnashot_profile(AID_SYSTEM, package_name, profile_name); in create_boot_image_profile_snapshot()
2951 PLOG(WARNING) << "profman failed for " << package_name << ":" << profile_name; in create_boot_image_profile_snapshot()
2958 LOG(WARNING) << "profman error for " << package_name << ":" << profile_name in create_boot_image_profile_snapshot()
2967 bool create_profile_snapshot(int32_t app_id, const std::string& package_name, in create_profile_snapshot() argument
2970 return create_boot_image_profile_snapshot(package_name, profile_name, classpath); in create_profile_snapshot()
2972 return create_app_profile_snapshot(app_id, package_name, profile_name, classpath); in create_profile_snapshot()
2976 bool prepare_app_profile(const std::string& package_name, in prepare_app_profile() argument
2983 std::string cur_profile = create_current_profile_path(user_id, package_name, profile_name, in prepare_app_profile()
2997 unique_fd ref_profile_fd = open_reference_profile(uid, package_name, profile_name, in prepare_app_profile()
3025 PLOG(WARNING) << "profman failed for " << package_name << ":" << profile_name; in prepare_app_profile()