/system/apex/apexd/ |
D | apex_file_test.cpp | 58 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P() 86 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P() 92 Result<ApexFile> apex_file_sized = ApexFile::Open(temp_file.path); in TEST_P() 101 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST() 109 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P() 117 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P() 142 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P() 151 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P() 165 Result<ApexFile> apex = ApexFile::Open(apex_path); in TEST() 172 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P() [all …]
|
D | apex_file.h | 42 class ApexFile { 44 static android::base::Result<ApexFile> Open(const std::string& path); 46 ApexFile() = delete; 47 ApexFile(ApexFile&&) = default; 48 ApexFile& operator=(ApexFile&&) = default; 64 ApexFile(const std::string& apex_path, in ApexFile() function
|
D | apexd.h | 92 android::base::Result<std::vector<ApexFile>> SubmitStagedSession( 96 android::base::Result<std::vector<ApexFile>> GetStagedApexFiles( 100 const std::vector<ApexFile>&) WARN_UNUSED; 119 std::vector<ApexFile> GetActivePackages(); 120 android::base::Result<ApexFile> GetActivePackage( 123 std::vector<ApexFile> GetFactoryPackages(); 163 std::vector<ApexFile> ProcessCompressedApex( 166 android::base::Result<void> ValidateDecompressedApex(const ApexFile& capex, 167 const ApexFile& apex); 204 const std::vector<ApexFile>& active_apexs, [all …]
|
D | apexd.cpp | 164 bool IsBootstrapApex(const ApexFile& apex) { in IsBootstrapApex() 366 Result<ApexFile> apex_file = ApexFile::Open(path); in RemovePreviouslyActiveApexFiles() 417 Result<void> VerifyMountedImage(const ApexFile& apex, in VerifyMountedImage() 436 Result<MountedApexData> MountPackageImpl(const ApexFile& apex, in MountPackageImpl() 619 std::string GetHashTreeFileName(const ApexFile& apex, bool is_new) { in GetHashTreeFileName() 627 const ApexFile& apex, const std::string& mount_point) { in VerifyAndTempMountPackage() 787 Result<void> RunVerifyFnInsideTempMount(const ApexFile& apex, in RunVerifyFnInsideTempMount() 827 Result<std::vector<ApexFile>> OpenApexFiles( in OpenApexFiles() 832 std::vector<ApexFile> ret; in OpenApexFiles() 834 Result<ApexFile> apex_file = ApexFile::Open(path); in OpenApexFiles() [all …]
|
D | apex_file_repository_test.cpp | 63 ApexFile::Open(StringPrintf("%s/%s", built_in_dir.c_str(), name.c_str())); in PrepareCompressedApex() 91 auto apex = ApexFile::Open(GetTestFile(apex_name)); in TEST() 171 std::string apex_name = ApexFile::Open(apex_file)->GetManifest().name(); in TEST() 209 ApexFile::Open(GetTestFile("apex.apexd_test.apex"))->GetManifest().name(); in TEST() 234 ApexFile::Open(GetTestFile("apex.apexd_test.apex"))->GetManifest().name(); in TEST() 287 auto apex = ApexFile::Open(*path); in TEST() 322 auto apex = ApexFile::Open(*path); in TEST() 342 auto compressed_apex = ApexFile::Open( in TEST() 347 auto apex1 = ApexFile::Open(StringPrintf("%s/apex.apexd_test.apex", td.path)); in TEST() 353 auto apex2 = ApexFile::Open(GetTestFile("apex.apexd_test.apex")); in TEST() [all …]
|
D | apex_file_repository.h | 34 using ApexFileRef = std::reference_wrapper<const android::apex::ApexFile>; 128 bool IsPreInstalledApex(const ApexFile& apex) const; 131 bool IsDecompressedApex(const ApexFile& apex) const; 134 bool IsBlockApex(const ApexFile& apex) const; 176 std::unordered_map<std::string, ApexFile> pre_installed_store_, data_store_;
|
D | apex_shim.h | 27 bool IsShimApex(const ApexFile& apex_file); 30 const ApexFile& apex_file);
|
D | apexd_verity_test.cpp | 49 auto apex = ApexFile::Open(GetTestFile("apex.apexd_test_no_hashtree.apex")); in TEST() 81 auto apex = ApexFile::Open(GetTestFile("apex.apexd_test_no_hashtree.apex")); in TEST() 96 ApexFile::Open(GetTestFile("apex.apexd_test_no_hashtree_2.apex")); in TEST() 119 ApexFile::Open(GetTestFile("com.android.apex.compressed.v1.capex")); in TEST()
|
D | apexd_private.h | 30 class ApexFile; variable 45 android::base::Result<void> UnmountTempMount(const ApexFile& apex);
|
D | apex_file.cpp | 81 Result<ApexFile> ApexFile::Open(const std::string& path) { in Open() 176 return ApexFile(realpath, image_offset, image_size, std::move(*manifest), in Open() 201 Result<std::unique_ptr<AvbFooter>> GetAvbFooter(const ApexFile& apex, in GetAvbFooter() 238 Result<std::span<const uint8_t>> VerifyVbMetaSignature(const ApexFile& apex, in VerifyVbMetaSignature() 267 Result<std::unique_ptr<uint8_t[]>> VerifyVbMeta(const ApexFile& apex, in VerifyVbMeta() 348 Result<ApexVerityData> ApexFile::VerifyApexVerity( in VerifyApexVerity() 396 Result<void> ApexFile::Decompress(const std::string& dest_path) const { in Decompress()
|
D | apex_file_repository.cpp | 75 Result<ApexFile> apex_file = ApexFile::Open(file); in ScanBuiltInDir() 249 auto apex_file = ApexFile::Open(apex_path); in AddBlockApex() 319 Result<ApexFile> apex_file = ApexFile::Open(file); in AddDataApex() 443 bool ApexFileRepository::IsDecompressedApex(const ApexFile& apex) const { in IsDecompressedApex() 447 bool ApexFileRepository::IsPreInstalledApex(const ApexFile& apex) const { in IsPreInstalledApex() 455 bool ApexFileRepository::IsBlockApex(const ApexFile& apex) const { in IsBlockApex() 493 const ApexFile& apex_file = apex_file_ref.get(); in AllApexFilesByName()
|
D | apexd_test.cpp | 176 std::string GetRootDigest(const ApexFile& apex) { in GetRootDigest() 204 auto apex_file = ApexFile::Open(GetTestFile(apex_name)); in AddDecompressedApex() 232 auto compressed_apex = ApexFile::Open( in PrepareCompressedApex() 319 auto shared_lib_1 = ApexFile::Open(AddPreInstalledApex( in TEST_F() 325 auto apexd_test_file = ApexFile::Open(AddDataApex("apex.apexd_test.apex")); in TEST_F() 326 auto shim_v1 = ApexFile::Open(AddDataApex("com.android.apex.cts.shim.apex")); in TEST_F() 329 auto shared_lib_2 = ApexFile::Open( in TEST_F() 350 ApexFile::Open(AddPreInstalledApex("apex.apexd_test_v2.apex")); in TEST_F() 358 ApexFile::Open(AddDataApex("com.android.apex.cts.shim.v2.apex")); in TEST_F() 378 auto apexd_test_file = ApexFile::Open(AddDataApex("apex.apexd_test.apex")); in TEST_F() [all …]
|
D | apexd_verity.h | 37 const ApexFile& apex, const ApexVerityData& verity_data,
|
D | apexd_test_utils.h | 117 AllOf(Property("path", &ApexFile::GetPath, Eq(other.get().GetPath())), 118 Property("image_offset", &ApexFile::GetImageOffset, 120 Property("image_size", &ApexFile::GetImageSize, 122 Property("fs_type", &ApexFile::GetFsType, 124 Property("public_key", &ApexFile::GetBundledPublicKey, 126 Property("is_compressed", &ApexFile::IsCompressed,
|
D | apex_shim.cpp | 123 bool IsShimApex(const ApexFile& apex_file) { in IsShimApex() 128 const ApexFile& apex_file) { in ValidateShimApex()
|
D | apexd_verity.cpp | 62 Result<void> GenerateHashTree(const ApexFile& apex, in GenerateHashTree() 158 const ApexFile& apex, const ApexVerityData& verity_data, in PrepareHashTree()
|
D | apexservice.cpp | 197 Result<std::vector<ApexFile>> packages = ::android::apex::SubmitStagedSession( in submitStagedSession() 357 static ApexInfo GetApexInfo(const ApexFile& package) { in GetApexInfo() 450 Result<std::vector<ApexFile>> files = ::android::apex::GetStagedApexFiles( in getStagedApexInfos() 509 Result<ApexFile> apex = ::android::apex::GetActivePackage(package_name); in getActivePackage() 527 for (const ApexFile& pkg : active) { in getAllPackages() 532 for (const ApexFile& pkg : factory) { in getAllPackages()
|
D | dump_apex_info.cpp | 119 const android::apex::ApexFile& apex = files[0]; in main()
|
D | apexservice_test.cpp | 288 Result<ApexFile> apex_file = ApexFile::Open(test); in PrepareTestApexForInstall() 305 Result<ApexFile> apex_file = ApexFile::Open(test_input); in Prepare()
|
/system/apex/tools/ |
D | host_apex_verifier.cc | 139 auto apex = OR_FATAL(ApexFile::Open(apex_path)); in ScanApex()
|
/system/apex/apexd/apexd_testdata/ |
D | Android.bp | 373 // Should be declined by ApexFile::Open.
|