Lines Matching refs:is_secondary_dex

116 static bool clear_reference_profile(const std::string& location, bool is_secondary_dex) {  in clear_reference_profile()  argument
117 return clear_profile(create_reference_profile_path(location, is_secondary_dex)); in clear_reference_profile()
123 bool is_secondary_dex) { in clear_current_profile() argument
124 return clear_profile(create_current_profile_path(user, pkgname, is_secondary_dex)); in clear_current_profile()
578 bool is_secondary_dex) { in open_current_profile() argument
579 std::string profile = create_current_profile_path(user, location, is_secondary_dex); in open_current_profile()
584 bool is_secondary_dex) { in open_reference_profile() argument
585 std::string profile = create_reference_profile_path(location, is_secondary_dex); in open_reference_profile()
589 static void open_profile_files(uid_t uid, const std::string& location, bool is_secondary_dex, in open_profile_files() argument
593 is_secondary_dex); in open_profile_files()
598 if (is_secondary_dex){ in open_profile_files()
604 unique_fd profile_fd = open_current_profile(uid, user, location, is_secondary_dex); in open_profile_files()
675 static bool analyze_profiles(uid_t uid, const std::string& location, bool is_secondary_dex) { in analyze_profiles() argument
678 open_profile_files(uid, location, is_secondary_dex, &profiles_fd, &reference_profile_fd); in analyze_profiles()
738 if (is_secondary_dex) { in analyze_profiles()
740 clear_current_profile(location, multiuser_get_user_id(uid), is_secondary_dex); in analyze_profiles()
746 clear_reference_profile(location, is_secondary_dex); in analyze_profiles()
906 int fd, bool is_public, int uid, const char* path, bool is_secondary_dex) { in set_permissions_and_ownership() argument
908 int owning_uid = is_secondary_dex ? uid : AID_SYSTEM; in set_permissions_and_ownership()
930 const char* oat_dir, bool is_secondary_dex, /*out*/ char* out_oat_path) { in create_oat_out_path() argument
942 if (!is_secondary_dex && validate_apk_path(oat_dir)) { in create_oat_out_path()
1063 bool is_public, int uid, bool is_secondary_dex) { in maybe_open_app_image() argument
1067 if (is_secondary_dex || !profile_guided) { in maybe_open_app_image()
1098 wrapper_fd.get(), is_public, uid, image_path.c_str(), is_secondary_dex)) { in maybe_open_app_image()
1137 bool is_secondary_dex) { in maybe_open_reference_profile() argument
1145 const std::string location = is_secondary_dex ? dex_path : pkgname; in maybe_open_reference_profile()
1146 unique_fd ufd = open_reference_profile(uid, location, /*read_write*/false, is_secondary_dex); in maybe_open_reference_profile()
1147 const auto& cleanup = [location, is_secondary_dex]() { in maybe_open_reference_profile()
1148 clear_reference_profile(location.c_str(), is_secondary_dex); in maybe_open_reference_profile()
1156 const char* instruction_set, bool is_public, int uid, bool is_secondary_dex, in open_vdex_files() argument
1237 out_vdex_path_str.c_str(), is_secondary_dex)) { in open_vdex_files()
1249 bool is_public, int uid, const char* instruction_set, bool is_secondary_dex, in open_oat_out_file() argument
1251 if (!create_oat_out_path(apk_path, instruction_set, oat_dir, is_secondary_dex, out_oat_path)) { in open_oat_out_file()
1261 wrapper_fd.get(), is_public, uid, out_oat_path, is_secondary_dex)) { in open_oat_out_file()
1503 bool is_secondary_dex = (dexopt_flags & DEXOPT_SECONDARY_DEX) != 0; in dexopt() local
1508 if (is_secondary_dex) { in dexopt()
1537 instruction_set, is_secondary_dex, out_oat_path); in dexopt()
1546 is_secondary_dex, profile_guided, &in_vdex_fd, &out_vdex_fd)) { in dexopt()
1555 if (is_secondary_dex) { in dexopt()
1568 maybe_open_app_image(out_oat_path, profile_guided, is_public, uid, is_secondary_dex); in dexopt()
1572 pkgname, dex_path, profile_guided, is_public, uid, is_secondary_dex); in dexopt()