Lines Matching refs:package_name

146 static bool clear_reference_profile(const std::string& package_name, const std::string& location,  in clear_reference_profile()  argument
148 return clear_profile(create_reference_profile_path(package_name, location, is_secondary_dex)); in clear_reference_profile()
153 static bool clear_current_profile(const std::string& package_name, const std::string& location, in clear_current_profile() argument
155 return clear_profile(create_current_profile_path(user, package_name, location, in clear_current_profile()
161 bool clear_primary_reference_profile(const std::string& package_name, in clear_primary_reference_profile() argument
163 return clear_reference_profile(package_name, location, /*is_secondary_dex*/false); in clear_primary_reference_profile()
168 bool clear_primary_current_profiles(const std::string& package_name, const std::string& location) { in clear_primary_current_profiles() argument
173 success &= clear_current_profile(package_name, location, user, /*is_secondary_dex*/false); in clear_primary_current_profiles()
179 bool clear_primary_current_profile(const std::string& package_name, const std::string& location, in clear_primary_current_profile() argument
181 return clear_current_profile(package_name, location, user, /*is_secondary_dex*/false); in clear_primary_current_profile()
355 static unique_fd open_current_profile(uid_t uid, userid_t user, const std::string& package_name, in open_current_profile() argument
357 std::string profile = create_current_profile_path(user, package_name, location, in open_current_profile()
362 static unique_fd open_reference_profile(uid_t uid, const std::string& package_name, in open_reference_profile() argument
364 std::string profile = create_reference_profile_path(package_name, location, is_secondary_dex); in open_reference_profile()
372 static UniqueFile open_reference_profile_as_unique_file(uid_t uid, const std::string& package_name, in open_reference_profile_as_unique_file() argument
374 std::string profile_path = create_reference_profile_path(package_name, location, in open_reference_profile_as_unique_file()
387 static unique_fd open_spnashot_profile(uid_t uid, const std::string& package_name, in open_spnashot_profile() argument
389 std::string profile = create_snapshot_profile_path(package_name, location); in open_spnashot_profile()
393 static void open_profile_files(uid_t uid, const std::string& package_name, in open_profile_files() argument
397 *reference_profile_fd = open_reference_profile(uid, package_name, location, in open_profile_files()
409 unique_fd profile_fd = open_current_profile(uid, user, package_name, location, in open_profile_files()
560 static int analyze_profiles(uid_t uid, const std::string& package_name, in analyze_profiles() argument
564 open_profile_files(uid, package_name, location, is_secondary_dex, in analyze_profiles()
648 clear_current_profile(package_name, location, multiuser_get_user_id(uid), in analyze_profiles()
651 clear_primary_current_profiles(package_name, location); in analyze_profiles()
655 clear_reference_profile(package_name, location, is_secondary_dex); in analyze_profiles()
679 int analyze_primary_profiles(uid_t uid, const std::string& package_name, in analyze_primary_profiles() argument
681 return analyze_profiles(uid, package_name, profile_name, /*is_secondary_dex*/false); in analyze_primary_profiles()
739 uid_t packageUid, const std::string& package_name, const std::string& profile_name) { in copy_system_profile() argument
742 package_name, in copy_system_profile()
751 PLOG(WARNING) << "Could not open profile " << package_name; in copy_system_profile()
765 package_name.c_str(), errno); in copy_system_profile()
774 package_name.c_str(), errno); in copy_system_profile()
781 package_name.c_str(), errno); in copy_system_profile()
796 package_name.c_str(), errno); in copy_system_profile()
2423 const std::string& package_name, in create_app_profile_snapshot() argument
2428 unique_fd snapshot_fd = open_spnashot_profile(AID_SYSTEM, package_name, profile_name); in create_app_profile_snapshot()
2435 open_profile_files(app_shared_gid, package_name, profile_name, /*is_secondary_dex*/ false, in create_app_profile_snapshot()
2469 LOG(WARNING) << "profman failed for " << package_name << ":" << profile_name; in create_app_profile_snapshot()
2476 LOG(WARNING) << "profman error for " << package_name << ":" << profile_name in create_app_profile_snapshot()
2483 static bool create_boot_image_profile_snapshot(const std::string& package_name, in create_boot_image_profile_snapshot() argument
2488 create_primary_reference_profile_package_dir_path(package_name); in create_boot_image_profile_snapshot()
2502 unique_fd snapshot_fd = open_spnashot_profile(AID_SYSTEM, package_name, profile_name); in create_boot_image_profile_snapshot()
2579 PLOG(WARNING) << "profman failed for " << package_name << ":" << profile_name; in create_boot_image_profile_snapshot()
2586 LOG(WARNING) << "profman error for " << package_name << ":" << profile_name in create_boot_image_profile_snapshot()
2595 bool create_profile_snapshot(int32_t app_id, const std::string& package_name, in create_profile_snapshot() argument
2598 return create_boot_image_profile_snapshot(package_name, profile_name, classpath); in create_profile_snapshot()
2600 return create_app_profile_snapshot(app_id, package_name, profile_name, classpath); in create_profile_snapshot()
2604 bool prepare_app_profile(const std::string& package_name, in prepare_app_profile() argument
2611 std::string cur_profile = create_current_profile_path(user_id, package_name, profile_name, in prepare_app_profile()
2625 unique_fd ref_profile_fd = open_reference_profile(uid, package_name, profile_name, in prepare_app_profile()
2653 PLOG(WARNING) << "profman failed for " << package_name << ":" << profile_name; in prepare_app_profile()