Home
last modified time | relevance | path

Searched refs:ApexFile (Results 1 – 21 of 21) sorted by relevance

/system/apex/apexd/
Dapex_file_test.cpp55 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P()
83 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST()
91 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P()
99 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P()
124 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P()
133 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P()
147 Result<ApexFile> apex = ApexFile::Open(apex_path); in TEST()
154 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P()
163 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST()
172 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST()
[all …]
Dapex_file.h42 class ApexFile {
44 static android::base::Result<ApexFile> Open(const std::string& path);
45 ApexFile() = delete;
46 ApexFile(ApexFile&&) = default;
47 ApexFile& operator=(ApexFile&&) = default;
61 ApexFile(const std::string& apex_path, in ApexFile() function
Dapexd.h78 android::base::Result<std::vector<ApexFile>> SubmitStagedSession(
100 std::vector<ApexFile> GetActivePackages();
101 android::base::Result<ApexFile> GetActivePackage(
104 std::vector<ApexFile> GetFactoryPackages();
144 std::vector<ApexFile> ProcessCompressedApex(
147 android::base::Result<void> ValidateDecompressedApex(const ApexFile& capex,
148 const ApexFile& apex);
180 const std::vector<ApexFile>& active_apexs,
181 const std::vector<ApexFile>& inactive_apexs);
198 android::base::Result<ApexFile> InstallPackage(const std::string& package_path);
Dapexd_prepostinstall.h28 class ApexFile; variable
34 const std::vector<ApexFile>& apexes,
42 const std::vector<ApexFile>& apexes,
Dapex_file_repository_test.cpp61 ApexFile::Open(StringPrintf("%s/%s", built_in_dir.c_str(), name.c_str())); in PrepareCompressedApex()
89 auto apex = ApexFile::Open(GetTestFile(apex_name)); in TEST()
201 auto apex = ApexFile::Open(*path); in TEST()
236 auto apex = ApexFile::Open(*path); in TEST()
256 auto compressed_apex = ApexFile::Open( in TEST()
261 auto apex1 = ApexFile::Open(StringPrintf("%s/apex.apexd_test.apex", td.path)); in TEST()
267 auto apex2 = ApexFile::Open(GetTestFile("apex.apexd_test.apex")); in TEST()
272 ApexFile::Open(GetTestFile("apex.apexd_test_different_app.apex")); in TEST()
287 auto decompressed_apex = ApexFile::Open(decompressed_path); in TEST()
299 auto active_apex = ApexFile::Open(active_path); in TEST()
[all …]
Dapexd.cpp153 bool IsBootstrapApex(const ApexFile& apex) { in IsBootstrapApex()
193 auto apex_file = ApexFile::Open(path); in PreAllocateLoopDevices()
353 Result<ApexFile> apex_file = ApexFile::Open(path); in RemovePreviouslyActiveApexFiles()
404 Result<void> VerifyMountedImage(const ApexFile& apex, in VerifyMountedImage()
423 Result<MountedApexData> MountPackageImpl(const ApexFile& apex, in MountPackageImpl()
585 std::string GetHashTreeFileName(const ApexFile& apex, bool is_new) { in GetHashTreeFileName()
593 const ApexFile& apex, const std::string& mount_point) { in VerifyAndTempMountPackage()
666 Result<void> RunVerifyFnInsideTempMount(const ApexFile& apex, in RunVerifyFnInsideTempMount()
704 Result<void> PrePostinstallPackages(const std::vector<ApexFile>& apexes, in PrePostinstallPackages()
707 for (const ApexFile& apex_file : apexes) { in PrePostinstallPackages()
[all …]
Dapex_file_repository.h31 using ApexFileRef = std::reference_wrapper<const android::apex::ApexFile>;
89 bool IsPreInstalledApex(const ApexFile& apex) const;
92 bool IsDecompressedApex(const ApexFile& apex) const;
132 std::unordered_map<std::string, ApexFile> pre_installed_store_, data_store_;
Dapex_shim.h27 bool IsShimApex(const ApexFile& apex_file);
30 const ApexFile& apex_file);
Dapexd_verity_test.cpp49 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()
Dapexd_private.h30 class ApexFile; variable
45 android::base::Result<void> UnmountTempMount(const ApexFile& apex);
Dapex_file_repository.cpp57 Result<ApexFile> apex_file = ApexFile::Open(file); in ScanBuiltInDir()
123 Result<ApexFile> apex_file = ApexFile::Open(file); in AddDataApex()
212 bool ApexFileRepository::IsDecompressedApex(const ApexFile& apex) const { in IsDecompressedApex()
216 bool ApexFileRepository::IsPreInstalledApex(const ApexFile& apex) const { in IsPreInstalledApex()
255 const ApexFile& apex_file = apex_file_ref.get(); in AllApexFilesByName()
Dapex_file.cpp80 Result<ApexFile> ApexFile::Open(const std::string& path) { in Open()
174 return ApexFile(realpath, image_offset, image_size, std::move(*manifest), in Open()
209 Result<std::unique_ptr<AvbFooter>> GetAvbFooter(const ApexFile& apex, in GetAvbFooter()
246 Result<std::span<const uint8_t>> VerifyVbMetaSignature(const ApexFile& apex, in VerifyVbMetaSignature()
275 Result<std::unique_ptr<uint8_t[]>> VerifyVbMeta(const ApexFile& apex, in VerifyVbMeta()
356 Result<ApexVerityData> ApexFile::VerifyApexVerity( in VerifyApexVerity()
404 Result<void> ApexFile::Decompress(const std::string& dest_path) const { in Decompress()
Dapexd_test_utils.h111 AllOf(Property("path", &ApexFile::GetPath, Eq(other.get().GetPath())),
112 Property("image_offset", &ApexFile::GetImageOffset,
114 Property("image_size", &ApexFile::GetImageSize,
116 Property("fs_type", &ApexFile::GetFsType,
118 Property("public_key", &ApexFile::GetBundledPublicKey,
120 Property("is_compressed", &ApexFile::IsCompressed,
Dapexd_verity.h35 const ApexFile& apex, const ApexVerityData& verity_data,
Dapexd_prepostinstall.cpp64 Result<void> StageFnInstall(const std::vector<ApexFile>& apexes, in StageFnInstall()
204 Result<void> StagePreInstall(const std::vector<ApexFile>& apexes, in StagePreInstall()
214 Result<void> StagePostInstall(const std::vector<ApexFile>& apexes, in StagePostInstall()
Dapexd_test.cpp132 std::string GetRootDigest(const ApexFile& apex) { in GetRootDigest()
164 auto compressed_apex = ApexFile::Open( in PrepareCompressedApex()
217 auto shared_lib_1 = ApexFile::Open(AddPreInstalledApex( in TEST_F()
223 auto apexd_test_file = ApexFile::Open(AddDataApex("apex.apexd_test.apex")); in TEST_F()
224 auto shim_v1 = ApexFile::Open(AddDataApex("com.android.apex.cts.shim.apex")); in TEST_F()
227 auto shared_lib_2 = ApexFile::Open( in TEST_F()
248 ApexFile::Open(AddPreInstalledApex("apex.apexd_test_v2.apex")); in TEST_F()
256 ApexFile::Open(AddDataApex("com.android.apex.cts.shim.v2.apex")); in TEST_F()
276 auto apexd_test_file = ApexFile::Open(AddDataApex("apex.apexd_test.apex")); in TEST_F()
277 auto shim_v1 = ApexFile::Open(AddDataApex("com.android.apex.cts.shim.apex")); in TEST_F()
[all …]
Dapex_shim.cpp108 bool IsShimApex(const ApexFile& apex_file) { in IsShimApex()
113 const ApexFile& apex_file) { in ValidateShimApex()
Dapexd_verity.cpp60 Result<void> GenerateHashTree(const ApexFile& apex, in GenerateHashTree()
156 const ApexFile& apex, const ApexVerityData& verity_data, in PrepareHashTree()
Dapexservice.cpp176 Result<std::vector<ApexFile>> packages = ::android::apex::SubmitStagedSession( in submitStagedSession()
317 static ApexInfo GetApexInfo(const ApexFile& package) { in GetApexInfo()
431 Result<ApexFile> apex = ::android::apex::GetActivePackage(package_name); in getActivePackage()
442 for (const ApexFile& pkg : active) { in getAllPackages()
447 for (const ApexFile& pkg : factory) { in getAllPackages()
Dapexservice_test.cpp350 Result<ApexFile> apex_file = ApexFile::Open(test); in PrepareTestApexForInstall()
367 Result<ApexFile> apex_file = ApexFile::Open(test_input); in Prepare()
761 const auto& apex = ApexFile::Open(installer.test_installed_file); in TEST_F()
766 const auto& new_apex = ApexFile::Open(installer.test_installed_file); in TEST_F()
1683 Result<ApexFile> apex = ApexFile::Open(installer->test_input); in RunPrePost()
3014 const Result<ApexFile>& apex_file = ApexFile::Open(input_apex); in PrepareCompressedTestApex()
/system/apex/apexd/apexd_testdata/
DAndroid.bp419 // Should be declined by ApexFile::Open.