Lines Matching refs:active_apex_data_dir
346 FindFilesBySuffix(gConfig->active_apex_data_dir, {kApexPackageSuffix}); in RemovePreviouslyActiveApexFiles()
894 LOG(DEBUG) << "Initializing backup of " << gConfig->active_apex_data_dir; in BackupActivePackages()
903 PathExists(std::string(gConfig->active_apex_data_dir)); in BackupActivePackages()
908 LOG(DEBUG) << gConfig->active_apex_data_dir in BackupActivePackages()
914 FindFilesBySuffix(gConfig->active_apex_data_dir, {kApexPackageSuffix}); in BackupActivePackages()
955 LOG(DEBUG) << "Initializing restore of " << gConfig->active_apex_data_dir; in RestoreActivePackages()
966 if (stat(gConfig->active_apex_data_dir, &stat_data) != 0) { in RestoreActivePackages()
967 return ErrnoError() << "Failed to access " << gConfig->active_apex_data_dir; in RestoreActivePackages()
971 << gConfig->active_apex_data_dir; in RestoreActivePackages()
973 DeleteDirContent(std::string(gConfig->active_apex_data_dir)); in RestoreActivePackages()
979 << gConfig->active_apex_data_dir; in RestoreActivePackages()
980 if (rename(kApexBackupDir, gConfig->active_apex_data_dir) != 0) { in RestoreActivePackages()
982 << gConfig->active_apex_data_dir; in RestoreActivePackages()
986 << gConfig->active_apex_data_dir; in RestoreActivePackages()
987 if (chmod(gConfig->active_apex_data_dir, stat_data.st_mode & ALLPERMS) != 0) { in RestoreActivePackages()
989 << gConfig->active_apex_data_dir; in RestoreActivePackages()
2110 return StringPrintf("%s/%s%s", gConfig->active_apex_data_dir, in StageDestPath()
2144 CreateDirIfNeeded(std::string(gConfig->active_apex_data_dir), 0755); in StagePackages()
2447 gMountedApexes.PopulateFromMounts(gConfig->active_apex_data_dir, in Initialize()
2788 gConfig->active_apex_data_dir); in OnStart()
3020 FindFilesBySuffix(gConfig->active_apex_data_dir, {kApexPackageSuffix}); in RemoveInactiveDataApex()
3022 LOG(ERROR) << "Failed to scan " << gConfig->active_apex_data_dir << " : " in RemoveInactiveDataApex()
3056 gMountedApexes.PopulateFromMounts(gConfig->active_apex_data_dir, in UnmountAll()
3258 if (auto status = instance.AddDataApex(gConfig->active_apex_data_dir); in OnOtaChrootBootstrap()
3261 << gConfig->active_apex_data_dir; in OnOtaChrootBootstrap()
3574 StringPrintf("%s/%s_%zu.apex", gConfig->active_apex_data_dir, in ComputePackageIdMinor()
3657 StringPrintf("%s/%s.apex", gConfig->active_apex_data_dir, new_id.c_str()); in InstallPackage()