Home
last modified time | relevance | path

Searched refs:apex_file (Results 1 – 6 of 6) sorted by relevance

/system/apex/apexd/
Dapex_preinstalled_data.cpp66 Result<ApexFile> apex_file = ApexFile::Open(file); in collectPreinstalleDataFromDir() local
67 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()
Dapexd.cpp297 Result<ApexFile> apex_file = ApexFile::Open(path); in RemovePreviouslyActiveApexFiles() local
298 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() local
600 if (!(apex_file.GetManifest().*fn)().empty()) { in PrePostinstallPackages()
[all …]
Dapex_shim.h27 bool IsShimApex(const ApexFile& apex_file);
30 const ApexFile& apex_file);
Dapex_shim.cpp106 bool IsShimApex(const ApexFile& apex_file) { in IsShimApex() argument
107 return apex_file.GetManifest().name() == kApexCtsShimPackage; in IsShimApex()
111 const ApexFile& apex_file) { in ValidateShimApex() argument
113 const ApexManifest& manifest = apex_file.GetManifest(); in ValidateShimApex()
Dapexservice_test.cpp347 Result<ApexFile> apex_file = ApexFile::Open(test); in PrepareTestApexForInstall() local
348 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() local
365 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()
DAndroid.bp222 "apex_file.cpp",