Searched refs:apex_file (Results 1 – 8 of 8) sorted by relevance
55 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P() local56 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() local84 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() local92 ASSERT_RESULT_OK(apex_file); in TEST_P()93 EXPECT_EQ("com.android.apex.test_package", apex_file->GetManifest().name()); in TEST_P()[all …]
57 Result<ApexFile> apex_file = ApexFile::Open(file); in ScanBuiltInDir() local58 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() local124 if (!apex_file.ok()) { in AddDataApex()[all …]
193 auto apex_file = ApexFile::Open(path); in PreAllocateLoopDevices() local194 if (!apex_file.ok()) { in PreAllocateLoopDevices()199 if (IsBootstrapApex(*apex_file)) { in PreAllocateLoopDevices()353 Result<ApexFile> apex_file = ApexFile::Open(path); in RemovePreviouslyActiveApexFiles() local354 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 …]
27 bool IsShimApex(const ApexFile& apex_file);30 const ApexFile& apex_file);
108 bool IsShimApex(const ApexFile& apex_file) { in IsShimApex() argument109 return apex_file.GetManifest().name() == kApexCtsShimPackage; in IsShimApex()113 const ApexFile& apex_file) { in ValidateShimApex() argument115 const ApexManifest& manifest = apex_file.GetManifest(); in ValidateShimApex()
350 Result<ApexFile> apex_file = ApexFile::Open(test); in PrepareTestApexForInstall() local351 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() local368 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() local3015 ASSERT_TRUE(apex_file.ok()); in PrepareCompressedTestApex()3016 ASSERT_TRUE(apex_file->IsCompressed()) << "Not a compressed APEX"; in PrepareCompressedTestApex()[all …]
479 auto apex_file = ApexFile::Open(decompressed_file_path); in TEST_F() local481 UnorderedElementsAre(ApexFileEq(ByRef(*apex_file)))); in TEST_F()737 void UnmountOnTearDown(const std::string& apex_file) { in UnmountOnTearDown() argument738 to_unmount_.push_back(apex_file); in UnmountOnTearDown()
233 "apex_file.cpp",