Home
last modified time | relevance | path

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

/system/apex/apexd/
Dapex_file_test.cpp55 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P() local
56 ASSERT_TRUE(apex_file.ok()); in TEST_P()
77 EXPECT_EQ(zip_image_offset, apex_file->GetImageOffset().value()); in TEST_P()
78 EXPECT_EQ(zip_image_size, apex_file->GetImageSize().value()); in TEST_P()
83 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST() local
84 ASSERT_FALSE(apex_file.ok()); in TEST()
85 ASSERT_THAT(apex_file.error().message(), in TEST()
91 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P() local
92 ASSERT_RESULT_OK(apex_file); in TEST_P()
93 EXPECT_EQ("com.android.apex.test_package", apex_file->GetManifest().name()); in TEST_P()
[all …]
Dapex_file_repository.cpp57 Result<ApexFile> apex_file = ApexFile::Open(file); in ScanBuiltInDir() local
58 if (!apex_file.ok()) { in ScanBuiltInDir()
59 return Error() << "Failed to open " << file << " : " << apex_file.error(); in ScanBuiltInDir()
62 const std::string& name = apex_file->GetManifest().name(); in ScanBuiltInDir()
65 pre_installed_store_.emplace(name, std::move(*apex_file)); in ScanBuiltInDir()
66 } else if (it->second.GetPath() != apex_file->GetPath()) { in ScanBuiltInDir()
79 << " and " << apex_file->GetPath() in ScanBuiltInDir()
82 apex_file->GetBundledPublicKey()) { in ScanBuiltInDir()
123 Result<ApexFile> apex_file = ApexFile::Open(file); in AddDataApex() local
124 if (!apex_file.ok()) { in AddDataApex()
[all …]
Dapexd.cpp193 auto apex_file = ApexFile::Open(path); in PreAllocateLoopDevices() local
194 if (!apex_file.ok()) { in PreAllocateLoopDevices()
199 if (IsBootstrapApex(*apex_file)) { in PreAllocateLoopDevices()
353 Result<ApexFile> apex_file = ApexFile::Open(path); in RemovePreviouslyActiveApexFiles() local
354 if (!apex_file.ok()) { in RemovePreviouslyActiveApexFiles()
355 return apex_file.error(); in RemovePreviouslyActiveApexFiles()
358 const std::string& package_name = apex_file->GetManifest().name(); in RemovePreviouslyActiveApexFiles()
365 if (files_to_keep.find(apex_file->GetPath()) != files_to_keep.end()) { in RemovePreviouslyActiveApexFiles()
370 LOG(DEBUG) << "Deleting previously active apex " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()
371 if (unlink(apex_file->GetPath().c_str()) != 0) { in RemovePreviouslyActiveApexFiles()
[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()
Dapexservice_test.cpp350 Result<ApexFile> apex_file = ApexFile::Open(test); in PrepareTestApexForInstall() local
351 if (!apex_file.ok()) { in PrepareTestApexForInstall()
355 const ApexManifest& manifest = apex_file->GetManifest(); in PrepareTestApexForInstall()
367 Result<ApexFile> apex_file = ApexFile::Open(test_input); in Prepare() local
368 ASSERT_FALSE(IsOk(apex_file)); in Prepare()
369 ASSERT_TRUE(apex_file.ok()) in Prepare()
370 << test_input << " failed to load: " << apex_file.error(); in Prepare()
3014 const Result<ApexFile>& apex_file = ApexFile::Open(input_apex); in PrepareCompressedTestApex() local
3015 ASSERT_TRUE(apex_file.ok()); in PrepareCompressedTestApex()
3016 ASSERT_TRUE(apex_file->IsCompressed()) << "Not a compressed APEX"; in PrepareCompressedTestApex()
[all …]
Dapexd_test.cpp479 auto apex_file = ApexFile::Open(decompressed_file_path); in TEST_F() local
481 UnorderedElementsAre(ApexFileEq(ByRef(*apex_file)))); in TEST_F()
737 void UnmountOnTearDown(const std::string& apex_file) { in UnmountOnTearDown() argument
738 to_unmount_.push_back(apex_file); in UnmountOnTearDown()
DAndroid.bp233 "apex_file.cpp",