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