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()
297 Result<ApexFile> apex_file = ApexFile::Open(path); in RemovePreviouslyActiveApexFiles() local298 if (!apex_file.ok()) { in RemovePreviouslyActiveApexFiles()299 return apex_file.error(); in RemovePreviouslyActiveApexFiles()302 const std::string& package_name = apex_file->GetManifest().name(); in RemovePreviouslyActiveApexFiles()309 if (files_to_keep.find(apex_file->GetPath()) != files_to_keep.end()) { in RemovePreviouslyActiveApexFiles()314 LOG(DEBUG) << "Deleting previously active apex " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()315 if (unlink(apex_file->GetPath().c_str()) != 0) { in RemovePreviouslyActiveApexFiles()316 return ErrnoError() << "Failed to unlink " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()599 for (const ApexFile& apex_file : apexes) { in PrePostinstallPackages() local600 if (!(apex_file.GetManifest().*fn)().empty()) { in PrePostinstallPackages()[all …]
27 bool IsShimApex(const ApexFile& apex_file);30 const ApexFile& apex_file);
106 bool IsShimApex(const ApexFile& apex_file) { in IsShimApex() argument107 return apex_file.GetManifest().name() == kApexCtsShimPackage; in IsShimApex()111 const ApexFile& apex_file) { in ValidateShimApex() argument113 const ApexManifest& manifest = apex_file.GetManifest(); in ValidateShimApex()
347 Result<ApexFile> apex_file = ApexFile::Open(test); in PrepareTestApexForInstall() local348 if (!apex_file.ok()) { in PrepareTestApexForInstall()352 const ApexManifest& manifest = apex_file->GetManifest(); in PrepareTestApexForInstall()364 Result<ApexFile> apex_file = ApexFile::Open(test_input); in Prepare() local365 ASSERT_FALSE(IsOk(apex_file)); in Prepare()366 ASSERT_TRUE(apex_file.ok()) in Prepare()367 << test_input << " failed to load: " << apex_file.error(); in Prepare()
222 "apex_file.cpp",