Searched refs:apex_file (Results 1 – 6 of 6) sorted by relevance
66 Result<ApexFile> apex_file = ApexFile::Open(file); in collectPreinstalleDataFromDir() local67 if (!apex_file.ok()) { in collectPreinstalleDataFromDir()68 return Error() << "Failed to open " << file << " : " << apex_file.error(); in collectPreinstalleDataFromDir()71 apexPreInstalledData.name = apex_file->GetManifest().name(); in collectPreinstalleDataFromDir()72 apexPreInstalledData.key = apex_file->GetBundledPublicKey(); in collectPreinstalleDataFromDir()73 apexPreInstalledData.path = apex_file->GetPath(); in collectPreinstalleDataFromDir()
298 Result<ApexFile> apex_file = ApexFile::Open(path); in RemovePreviouslyActiveApexFiles() local299 if (!apex_file.ok()) { in RemovePreviouslyActiveApexFiles()300 return apex_file.error(); in RemovePreviouslyActiveApexFiles()303 const std::string& package_name = apex_file->GetManifest().name(); in RemovePreviouslyActiveApexFiles()310 if (files_to_keep.find(apex_file->GetPath()) != files_to_keep.end()) { in RemovePreviouslyActiveApexFiles()315 LOG(DEBUG) << "Deleting previously active apex " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()316 if (unlink(apex_file->GetPath().c_str()) != 0) { in RemovePreviouslyActiveApexFiles()317 return ErrnoError() << "Failed to unlink " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()593 for (const ApexFile& apex_file : apexes) { in PrePostinstallPackages() local594 if (!(apex_file.GetManifest().*fn)().empty()) { in PrePostinstallPackages()[all …]
27 bool IsShimApex(const ApexFile& apex_file);30 const ApexFile& apex_file);
107 bool IsShimApex(const ApexFile& apex_file) { in IsShimApex() argument108 return apex_file.GetManifest().name() == kApexCtsShimPackage; in IsShimApex()112 const ApexFile& apex_file) { in ValidateShimApex() argument114 const ApexManifest& manifest = apex_file.GetManifest(); in ValidateShimApex()
204 "apex_file.cpp",
367 Result<ApexFile> apex_file = ApexFile::Open(test); in PrepareTestApexForInstall() local368 if (!apex_file.ok()) { in PrepareTestApexForInstall()372 const ApexManifest& manifest = apex_file->GetManifest(); in PrepareTestApexForInstall()384 Result<ApexFile> apex_file = ApexFile::Open(test_input); in Prepare() local385 ASSERT_FALSE(IsOk(apex_file)); in Prepare()386 ASSERT_TRUE(apex_file.ok()) in Prepare()387 << test_input << " failed to load: " << apex_file.error(); in Prepare()