Home
last modified time | relevance | path

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

/system/apex/apexd/
Dapex_file_test.cpp58 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P() local
59 ASSERT_TRUE(apex_file.ok()); in TEST_P()
80 EXPECT_EQ(zip_image_offset, apex_file->GetImageOffset().value()); in TEST_P()
81 EXPECT_EQ(zip_image_size, apex_file->GetImageSize().value()); in TEST_P()
86 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P() local
87 ASSERT_RESULT_OK(apex_file); in TEST_P()
95 EXPECT_EQ(apex_file->GetImageOffset(), apex_file_sized->GetImageOffset()); in TEST_P()
96 EXPECT_EQ(apex_file->GetImageSize(), apex_file_sized->GetImageSize()); in TEST_P()
101 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST() local
102 ASSERT_FALSE(apex_file.ok()); in TEST()
[all …]
Dapex_file_repository.cpp75 Result<ApexFile> apex_file = ApexFile::Open(file); in ScanBuiltInDir() local
76 if (!apex_file.ok()) { in ScanBuiltInDir()
77 return Error() << "Failed to open " << file << " : " << apex_file.error(); in ScanBuiltInDir()
80 const std::string& name = apex_file->GetManifest().name(); in ScanBuiltInDir()
93 if (!android::base::Realpath(apex_file->GetPath(), &path)) { in ScanBuiltInDir()
95 << apex_file->GetPath(); in ScanBuiltInDir()
106 keys.insert(apex_file->GetBundledPublicKey()); in ScanBuiltInDir()
124 pre_installed_store_.emplace(name, std::move(*apex_file)); in ScanBuiltInDir()
136 pre_installed_store_.emplace(name, std::move(*apex_file)); in ScanBuiltInDir()
137 } else if (it->second.GetPath() != apex_file->GetPath()) { in ScanBuiltInDir()
[all …]
Dapexd_vendor_apex.cpp39 bool IsVendorApex(const ApexFile& apex_file) { in IsVendorApex() argument
42 instance.GetPreInstalledApex(apex_file.GetManifest().name()); in IsVendorApex()
50 base::Result<void> CheckVendorApexUpdate(const ApexFile& apex_file, in CheckVendorApexUpdate() argument
54 const std::string apex_name = apex_file.GetManifest().name(); in CheckVendorApexUpdate()
57 apexd_private::GetActiveMountPoint(apex_file.GetManifest()); in CheckVendorApexUpdate()
93 int GetPreinstallPartitionEnum(const ApexFile& apex_file) { in GetPreinstallPartitionEnum() argument
97 if (!instance.IsPreInstalledApex(apex_file)) { in GetPreinstallPartitionEnum()
102 instance.GetPreInstalledApex(apex_file.GetManifest().name()); in GetPreinstallPartitionEnum()
Dapexd_vendor_apex.h32 bool IsVendorApex(const ApexFile& apex_file);
36 Result<void> CheckVendorApexUpdate(const ApexFile& apex_file,
41 int GetPreinstallPartitionEnum(const ApexFile& apex_file);
Dapexd.cpp387 Result<ApexFile> apex_file = ApexFile::Open(path); in RemovePreviouslyActiveApexFiles() local
388 if (!apex_file.ok()) { in RemovePreviouslyActiveApexFiles()
389 return apex_file.error(); in RemovePreviouslyActiveApexFiles()
392 const std::string& package_name = apex_file->GetManifest().name(); in RemovePreviouslyActiveApexFiles()
399 if (files_to_keep.find(apex_file->GetPath()) != files_to_keep.end()) { in RemovePreviouslyActiveApexFiles()
404 LOG(DEBUG) << "Deleting previously active apex " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()
405 if (unlink(apex_file->GetPath().c_str()) != 0) { in RemovePreviouslyActiveApexFiles()
406 return ErrnoError() << "Failed to unlink " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()
729 auto apex_file = ApexFile::Open(package_path); in SendApexInstallationRequestedAtom() local
730 if (!apex_file.ok()) { in SendApexInstallationRequestedAtom()
[all …]
Dapex_shim.h27 bool IsShimApex(const ApexFile& apex_file);
30 const ApexFile& apex_file);
Dapex_shim.cpp108 bool IsShimApex(const ApexFile& apex_file) { in IsShimApex() argument
109 return apex_file.GetManifest().name() == kApexCtsShimPackage; in IsShimApex()
113 const ApexFile& apex_file) { in ValidateShimApex() argument
115 const ApexManifest& manifest = apex_file.GetManifest(); in ValidateShimApex()
Dapexd_test.cpp212 auto apex_file = ApexFile::Open(GetTestFile(apex_name)); in AddDecompressedApex() local
213 CHECK(apex_file.ok()); in AddDecompressedApex()
215 apex_file->GetManifest().name() + "@" + in AddDecompressedApex()
216 std::to_string(apex_file->GetManifest().version()) + in AddDecompressedApex()
541 auto apex_file = ApexFile::Open(decompressed_file_path); in TEST_F() local
543 UnorderedElementsAre(ApexFileEq(ByRef(*apex_file)))); in TEST_F()
813 auto apex_file = ApexFile::Open( in TEST_F() local
816 HasValue(UnorderedElementsAre(ApexFileEq(ByRef(*apex_file))))); in TEST_F()
889 void UnmountOnTearDown(const std::string& apex_file) { in UnmountOnTearDown() argument
890 to_unmount_.push_back(apex_file); in UnmountOnTearDown()
[all …]
Dapex_file_repository_test.cpp170 std::string apex_file = GetTestFile("apex.apexd_test.apex"); in TEST() local
171 fs::copy(apex_file, StringPrintf("%s/version_a.apex", td.path)); in TEST()
172 fs::copy(apex_file, StringPrintf("%s/version_b.apex", td.path)); in TEST()
173 std::string apex_name = ApexFile::Open(apex_file)->GetManifest().name(); in TEST()
Dapexservice_test.cpp285 Result<ApexFile> apex_file = ApexFile::Open(test); in PrepareTestApexForInstall() local
286 if (!apex_file.ok()) { in PrepareTestApexForInstall()
290 const ApexManifest& manifest = apex_file->GetManifest(); in PrepareTestApexForInstall()
302 Result<ApexFile> apex_file = ApexFile::Open(test_input); in Prepare() local
303 ASSERT_THAT(apex_file, Not(Ok())); in Prepare()
304 ASSERT_TRUE(apex_file.ok()) in Prepare()
305 << test_input << " failed to load: " << apex_file.error(); in Prepare()
Dapexd_test_utils.h383 inline base::Result<BlockApex> WriteBlockApex(const std::string& apex_file, in WriteBlockApex() argument
386 std::filesystem::copy(apex_file, intermediate_path); in WriteBlockApex()
Dapexservice.cpp471 for (const auto& apex_file : *files) { in getStagedApexInfos()
472 ApexInfo apex_info = GetApexInfo(apex_file); in getStagedApexInfos()
DAndroid.bp265 "apex_file.cpp",
/system/apex/tools/
Dapexd_host.py165 for apex_file in apexes:
167 if os.path.exists(os.path.join(apex_dir, apex_file.name)):
175 apex_file.path_on_host,
176 os.path.join(apex_dir, apex_file.name),
182 for name, value in apex_file.attrs.items():
Dapexer_with_DCLA_preprocessing_test.py94 def expand_apex(self, apex_file: str | BinaryIO) -> None:
97 with zipfile.ZipFile(apex_file, 'r') as apex_zip:
149 with resources().joinpath(TEST_APEX + '.apex').open(mode='rb') as apex_file:
150 apex_dir = self.expand_apex(apex_file)