Lines Matching refs:ApexFile
153 bool IsBootstrapApex(const ApexFile& apex) { in IsBootstrapApex()
193 auto apex_file = ApexFile::Open(path); in PreAllocateLoopDevices()
353 Result<ApexFile> apex_file = ApexFile::Open(path); in RemovePreviouslyActiveApexFiles()
404 Result<void> VerifyMountedImage(const ApexFile& apex, in VerifyMountedImage()
423 Result<MountedApexData> MountPackageImpl(const ApexFile& apex, in MountPackageImpl()
585 std::string GetHashTreeFileName(const ApexFile& apex, bool is_new) { in GetHashTreeFileName()
593 const ApexFile& apex, const std::string& mount_point) { in VerifyAndTempMountPackage()
666 Result<void> RunVerifyFnInsideTempMount(const ApexFile& apex, in RunVerifyFnInsideTempMount()
704 Result<void> PrePostinstallPackages(const std::vector<ApexFile>& apexes, in PrePostinstallPackages()
707 for (const ApexFile& apex_file : apexes) { in PrePostinstallPackages()
717 for (const ApexFile& apex_file : apexes) { in PrePostinstallPackages()
727 for (const ApexFile& apex : apexes) { in PrePostinstallPackages()
752 Result<void> PreinstallPackages(const std::vector<ApexFile>& apexes) { in PreinstallPackages()
757 Result<void> PostinstallPackages(const std::vector<ApexFile>& apexes) { in PostinstallPackages()
765 Result<std::vector<ApexFile>> OpenApexFiles( in OpenApexFiles()
770 std::vector<ApexFile> ret; in OpenApexFiles()
772 Result<ApexFile> apex_file = ApexFile::Open(path); in OpenApexFiles()
781 Result<void> ValidateStagingShimApex(const ApexFile& to) { in ValidateStagingShimApex()
783 auto system_shim = ApexFile::Open( in ValidateStagingShimApex()
797 Result<void> VerifyPackageBoot(const ApexFile& apex_file) { in VerifyPackageBoot()
825 Result<void> VerifyPackageStagedInstall(const ApexFile& apex_file) { in VerifyPackageStagedInstall()
838 Result<std::vector<ApexFile>> VerifyPackages( in VerifyPackages()
840 Result<std::vector<ApexFile>> apex_files = OpenApexFiles(paths); in VerifyPackages()
847 for (const ApexFile& apex_file : *apex_files) { in VerifyPackages()
856 Result<ApexFile> VerifySessionDir(const int session_id) { in VerifySessionDir()
924 auto backup_path_fn = [](const ApexFile& apex_file) { in BackupActivePackages()
940 Result<ApexFile> apex_file = ApexFile::Open(path); in BackupActivePackages()
995 Result<void> UnmountPackage(const ApexFile& apex, bool allow_latest, in UnmountPackage()
1044 Result<void> MountPackage(const ApexFile& apex, const std::string& mount_point, in MountPackage()
1059 Result<void> UnmountTempMount(const ApexFile& apex) { in UnmountTempMount()
1236 Result<void> ActivatePackageImpl(const ApexFile& apex_file, in ActivatePackageImpl()
1266 Result<ApexFile> other_apex = ApexFile::Open(data.full_path); in ActivatePackageImpl()
1346 Result<ApexFile> apex_file = ApexFile::Open(full_path); in ActivatePackage()
1357 Result<ApexFile> apex_file = ApexFile::Open(full_path); in DeactivatePackage()
1366 std::vector<ApexFile> GetActivePackages() { in GetActivePackages()
1367 std::vector<ApexFile> ret; in GetActivePackages()
1374 Result<ApexFile> apex_file = ApexFile::Open(data.full_path); in GetActivePackages()
1384 std::vector<ApexFile> CalculateInactivePackages( in CalculateInactivePackages()
1385 const std::vector<ApexFile>& active) { in CalculateInactivePackages()
1386 std::vector<ApexFile> inactive = GetFactoryPackages(); in CalculateInactivePackages()
1388 inactive.begin(), inactive.end(), [&active](const ApexFile& apex) { in CalculateInactivePackages()
1390 [&apex](const ApexFile& active_apex) { in CalculateInactivePackages()
1418 const std::vector<ApexFile> active(GetActivePackages()); in EmitApexInfoList()
1420 std::vector<ApexFile> inactive; in EmitApexInfoList()
1451 std::vector<ApexFile> active_packages = GetActivePackages(); in GetActivePackagesMap()
1462 std::vector<ApexFile> GetFactoryPackages() { in GetFactoryPackages()
1463 std::vector<ApexFile> ret; in GetFactoryPackages()
1468 for (ApexFile& apex : active_pkgs) { in GetFactoryPackages()
1484 Result<ApexFile> apex_file = ApexFile::Open(path); in GetFactoryPackages()
1504 Result<ApexFile> GetActivePackage(const std::string& packageName) { in GetActivePackage()
1505 std::vector<ApexFile> packages = GetActivePackages(); in GetActivePackage()
1506 for (ApexFile& apex : packages) { in GetActivePackage()
1539 Result<std::vector<ApexFile>> ScanApexFiles(const char* apex_package_dir, in ScanApexFiles()
1556 std::vector<ApexFile> ret; in ScanApexFiles()
1558 Result<ApexFile> apex_file = ApexFile::Open(name); in ScanApexFiles()
1569 bool is_ota_chroot, std::queue<const ApexFile*>& apex_queue, in ActivateApexWorker()
1574 const ApexFile* apex; in ActivateApexWorker()
1599 std::queue<const ApexFile*> apex_queue; in ActivateApexPackages()
1602 for (const ApexFile& apex : apexes) { in ActivateApexPackages()
1689 std::vector<ApexFile> decompressed_apex; in ActivateMissingApexes()
1693 for (const ApexFile& apex_file : decompressed_apex) { in ActivateMissingApexes()
2061 Result<ApexFile> apex_file = ApexFile::Open(apex); in ScanStagedSessionsDirAndStage()
2091 Result<std::vector<ApexFile>> apex_files = OpenApexFiles(paths); in PreinstallPackages()
2100 Result<std::vector<ApexFile>> apex_files = OpenApexFiles(paths); in PostinstallPackages()
2109 std::string StageDestPath(const ApexFile& apex_file) { in StageDestPath()
2127 Result<std::vector<ApexFile>> apex_files = OpenApexFiles(tmp_paths); in StagePackages()
2131 for (const ApexFile& apex_file : *apex_files) { in StagePackages()
2169 for (const ApexFile& apex_file : *apex_files) { in StagePackages()
2216 auto apex = ApexFile::Open(path); in UnstagePackages()
2376 std::vector<ApexFile> bootstrap_apexes; in OnBootstrap()
2518 const ApexFile& a = a_ref.get(); in SelectApexForActivation()
2572 Result<ApexFile> OpenAndValidateDecompressedApex(const ApexFile& capex, in OpenAndValidateDecompressedApex()
2574 auto apex = ApexFile::Open(apex_path); in OpenAndValidateDecompressedApex()
2587 Result<ApexFile> ProcessCompressedApex(const ApexFile& capex, in ProcessCompressedApex()
2707 std::vector<ApexFile> ProcessCompressedApex( in ProcessCompressedApex()
2711 std::vector<ApexFile> decompressed_apex_list; in ProcessCompressedApex()
2712 for (const ApexFile& capex : compressed_apex) { in ProcessCompressedApex()
2728 Result<void> ValidateDecompressedApex(const ApexFile& capex, in ValidateDecompressedApex()
2729 const ApexFile& apex) { in ValidateDecompressedApex()
2815 std::vector<ApexFile> decompressed_apex; in OnStart()
2819 for (const ApexFile& apex_file : decompressed_apex) { in OnStart()
2901 Result<std::vector<ApexFile>> SubmitStagedSession( in SubmitStagedSession()
2924 std::vector<ApexFile> ret; in SubmitStagedSession()
3065 auto apex = ApexFile::Open(data.full_path); in UnmountAll()
3164 const std::vector<ApexFile>& active_apexs, in CollectApexInfoList()
3165 const std::vector<ApexFile>& inactive_apexs) { in CollectApexInfoList()
3168 auto convert_to_autogen = [&apex_infos](const ApexFile& apex, in CollectApexInfoList()
3291 std::vector<ApexFile> decompressed_apex; in OnOtaChrootBootstrap()
3296 for (const ApexFile& apex_file : decompressed_apex) { in OnOtaChrootBootstrap()
3317 std::vector<ApexFile> inactive_apexes = GetFactoryPackages(); in OnOtaChrootBootstrap()
3320 [&active_apexes](const ApexFile& apex) { in OnOtaChrootBootstrap()
3322 [&apex](const ApexFile& active_apex) { in OnOtaChrootBootstrap()
3444 Result<void> VerifyPackageNonStagedInstall(const ApexFile& apex_file) { in VerifyPackageNonStagedInstall()
3468 Result<void> CheckSupportsNonStagedInstall(const ApexFile& cur_apex, in CheckSupportsNonStagedInstall()
3469 const ApexFile& new_apex) { in CheckSupportsNonStagedInstall()
3539 Result<size_t> ComputePackageIdMinor(const ApexFile& apex) { in ComputePackageIdMinor()
3587 std::vector<ApexFile> active(GetActivePackages()); in UpdateApexInfoList()
3588 std::vector<ApexFile> inactive = CalculateInactivePackages(active); in UpdateApexInfoList()
3606 Result<ApexFile> InstallPackage(const std::string& package_path) { in InstallPackage()
3608 auto temp_apex = ApexFile::Open(package_path); in InstallPackage()
3620 auto cur_apex = ApexFile::Open(cur_mounted_data->full_path); in InstallPackage()
3681 auto new_apex = ApexFile::Open(target_file); in InstallPackage()