Lines Matching refs:is_secondary_dex
116 static bool clear_reference_profile(const std::string& location, bool is_secondary_dex) {
117 return clear_profile(create_reference_profile_path(location, is_secondary_dex));
123 bool is_secondary_dex) {
124 return clear_profile(create_current_profile_path(user, pkgname, is_secondary_dex));
129 return clear_reference_profile(pkgname, /*is_secondary_dex*/false);
138 success &= clear_current_profile(pkgname, user, /*is_secondary_dex*/false);
145 return clear_current_profile(pkgname, user, /*is_secondary_dex*/false);
582 bool is_secondary_dex) {
583 std::string profile = create_current_profile_path(user, location, is_secondary_dex);
588 bool is_secondary_dex) {
589 std::string profile = create_reference_profile_path(location, is_secondary_dex);
593 static void open_profile_files(uid_t uid, const std::string& location, bool is_secondary_dex,
597 is_secondary_dex);
602 if (is_secondary_dex){
608 unique_fd profile_fd = open_current_profile(uid, user, location, is_secondary_dex);
679 static bool analyze_profiles(uid_t uid, const std::string& location, bool is_secondary_dex) {
682 open_profile_files(uid, location, is_secondary_dex, &profiles_fd, &reference_profile_fd);
742 if (is_secondary_dex) {
744 clear_current_profile(location, multiuser_get_user_id(uid), is_secondary_dex);
750 clear_reference_profile(location, is_secondary_dex);
762 return analyze_profiles(uid, pkgname, /*is_secondary_dex*/false);
805 open_profile_files(uid, pkgname, /*is_secondary_dex*/false,
974 int fd, bool is_public, int uid, const char* path, bool is_secondary_dex) {
976 int owning_uid = is_secondary_dex ? uid : AID_SYSTEM;
1011 const char* oat_dir, bool is_secondary_dex, /*out*/ char* out_oat_path) {
1018 if (!is_secondary_dex && validate_apk_path(oat_dir)) {
1139 bool is_public, int uid, bool is_secondary_dex) {
1142 if (is_secondary_dex) {
1181 wrapper_fd.get(), is_public, uid, image_path.c_str(), is_secondary_dex)) {
1220 bool is_secondary_dex) {
1228 const std::string location = is_secondary_dex ? dex_path : pkgname;
1229 unique_fd ufd = open_reference_profile(uid, location, /*read_write*/false, is_secondary_dex);
1230 const auto& cleanup = [location, is_secondary_dex]() {
1231 clear_reference_profile(location.c_str(), is_secondary_dex);
1239 const char* instruction_set, bool is_public, int uid, bool is_secondary_dex,
1320 out_vdex_path_str.c_str(), is_secondary_dex)) {
1332 bool is_public, int uid, const char* instruction_set, bool is_secondary_dex,
1334 if (!create_oat_out_path(apk_path, instruction_set, oat_dir, is_secondary_dex, out_oat_path)) {
1344 wrapper_fd.get(), is_public, uid, out_oat_path, is_secondary_dex)) {
1547 bool profile_was_updated = analyze_profiles(uid, dex_path, /*is_secondary_dex*/true);
1603 bool is_secondary_dex = (dexopt_flags & DEXOPT_SECONDARY_DEX) != 0;
1608 if (is_secondary_dex) {
1638 instruction_set, is_secondary_dex, out_oat_path);
1647 is_secondary_dex, profile_guided, &in_vdex_fd, &out_vdex_fd)) {
1656 if (is_secondary_dex) {
1669 maybe_open_app_image(out_oat_path, profile_guided, is_public, uid, is_secondary_dex);
1673 pkgname, dex_path, profile_guided, is_public, uid, is_secondary_dex);
1768 /*is_secondary_dex*/true, out_oat_path)) {
2004 /*is_secondary_dex*/false, out_path)) {