Home
last modified time | relevance | path

Searched refs:manifest (Results 1 – 25 of 101) sorted by relevance

12345

/system/apex/apexd/
Dapex_manifest_test.cpp30 std::string ToString(const ApexManifest& manifest) { in ToString() argument
32 manifest.SerializeToString(&out); in ToString()
39 ApexManifest manifest; in TEST() local
40 manifest.set_name("com.android.example.apex"); in TEST()
41 manifest.set_version(1); in TEST()
42 auto apex_manifest = ParseManifest(ToString(manifest)); in TEST()
50 ApexManifest manifest; in TEST() local
51 manifest.set_version(1); in TEST()
52 auto apex_manifest = ParseManifest(ToString(manifest)); in TEST()
60 ApexManifest manifest; in TEST() local
[all …]
Dapexd_private.h35 std::string GetPackageMountPoint(const ApexManifest& manifest);
36 std::string GetPackageTempMountPoint(const ApexManifest& manifest);
37 std::string GetActiveMountPoint(const ApexManifest& manifest);
/system/update_engine/scripts/
Dpayload_info.py71 manifest = self.payload.manifest
73 DisplayValue('Number of partitions', len(manifest.partitions))
74 for partition in manifest.partitions:
78 DisplayValue('Number of operations', len(manifest.install_operations))
80 len(manifest.kernel_install_operations))
81 DisplayValue('Block size', manifest.block_size)
82 DisplayValue('Minor version', manifest.minor_version)
100 manifest = self.payload.manifest
101 if manifest.HasField('signatures_offset'):
102 signature_msg = 'blob_offset=%d' % manifest.signatures_offset
[all …]
/system/linkerconfig/modules/tests/
Dapex_testbase.h37 ::apex::proto::ApexManifest manifest; in PrepareApex()
38 manifest.set_name(apex_name); in PrepareApex()
40 manifest.add_providenativelibs(lib); in PrepareApex()
43 manifest.add_requirenativelibs(lib); in PrepareApex()
46 WriteFile(apex_path + "/apex_manifest.pb", manifest.SerializeAsString()); in PrepareApex()
48 manifest.name(), in PrepareApex()
50 {manifest.providenativelibs().begin(), in PrepareApex()
51 manifest.providenativelibs().end()}, in PrepareApex()
52 {manifest.requirenativelibs().begin(), in PrepareApex()
53 manifest.requirenativelibs().end()}, in PrepareApex()
/system/libvintf/test/
DLibVintfTest.cpp266 HalManifest manifest; in TEST_F() local
267 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
268 EXPECT_EQ(expectedManifest, manifest); in TEST_F()
1009 HalManifest manifest; in TEST_F() local
1010 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1011 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1031 HalManifest manifest; in TEST_F() local
1032 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1033 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
1062 HalManifest manifest; in TEST_F() local
[all …]
/system/linkerconfig/modules/
Dapex.cc39 for (const auto& [path, manifest] : apex::GetActivePackages(apex_root)) { in ScanActiveApexes()
42 ApexInfo info(manifest.name(), in ScanActiveApexes()
44 {manifest.providenativelibs().begin(), in ScanActiveApexes()
45 manifest.providenativelibs().end()}, in ScanActiveApexes()
46 {manifest.requirenativelibs().begin(), in ScanActiveApexes()
47 manifest.requirenativelibs().end()}, in ScanActiveApexes()
50 apexes.emplace(manifest.name(), std::move(info)); in ScanActiveApexes()
/system/linkerconfig/contents/tests/configuration/
Dapexconfig_test.cc44 ::apex::proto::ApexManifest manifest; in PrepareApex()
45 manifest.set_name(apex_name); in PrepareApex()
47 manifest.add_providenativelibs(lib); in PrepareApex()
50 manifest.add_requirenativelibs(lib); in PrepareApex()
52 WriteFile(apex_name + "/apex_manifest.pb", manifest.SerializeAsString()); in PrepareApex()
54 manifest.name(), in PrepareApex()
56 {manifest.providenativelibs().begin(), in PrepareApex()
57 manifest.providenativelibs().end()}, in PrepareApex()
58 {manifest.requirenativelibs().begin(), in PrepareApex()
59 manifest.requirenativelibs().end()}, in PrepareApex()
/system/apex/libs/libapexutil/
Dapexutil.cpp41 ApexManifest manifest; in ParseApexManifest() local
42 if (!manifest.ParseFromString(content)) { in ParseApexManifest()
45 return manifest; in ParseApexManifest()
71 auto manifest = ParseApexManifest(apex_path + "/apex_manifest.pb"); in GetActivePackages() local
72 if (manifest.ok()) { in GetActivePackages()
73 apexes.emplace(std::move(apex_path), std::move(*manifest)); in GetActivePackages()
75 LOG(WARNING) << manifest.error(); in GetActivePackages()
Dapexutil_test.cpp42 ApexManifest manifest; in CreateApexManifest() local
43 manifest.set_name(apex_name); in CreateApexManifest()
44 manifest.set_version(version); in CreateApexManifest()
45 return manifest; in CreateApexManifest()
/system/update_engine/
Ddynamic_partition_test_utils.h122 inline DynamicPartitionGroup* AddGroup(DeltaArchiveManifest* manifest, in AddGroup() argument
125 auto* g = manifest->mutable_dynamic_partition_metadata()->add_groups(); in AddGroup()
131 inline void AddPartition(DeltaArchiveManifest* manifest, in AddPartition() argument
136 auto* p = manifest->add_partitions(); in AddPartition()
145 DeltaArchiveManifest manifest; in PartitionSuffixSizesToManifest() local
147 AddGroup(&manifest, std::string(kDefaultGroup) + suffix, kDefaultGroupSize); in PartitionSuffixSizesToManifest()
155 &manifest, in PartitionSuffixSizesToManifest()
156 manifest.mutable_dynamic_partition_metadata()->mutable_groups( in PartitionSuffixSizesToManifest()
163 return manifest; in PartitionSuffixSizesToManifest()
169 DeltaArchiveManifest manifest; in PartitionSizesToManifest() local
[all …]
Ddynamic_partition_control_android.cc396 const DeltaArchiveManifest& manifest, in PreparePartitionsForUpdate() argument
434 is_target_dynamic_ = !manifest.dynamic_partition_metadata().groups().empty(); in PreparePartitionsForUpdate()
440 manifest.dynamic_partition_metadata().snapshot_enabled(); in PreparePartitionsForUpdate()
456 source_slot, target_slot, manifest, required_size)) { in PreparePartitionsForUpdate()
493 source_slot, target_slot, manifest, delete_source); in PreparePartitionsForUpdate()
709 const DeltaArchiveManifest& manifest, in PrepareDynamicPartitionsForUpdate() argument
715 for (const auto& group : manifest.dynamic_partition_metadata().groups()) { in PrepareDynamicPartitionsForUpdate()
740 DeleteSourcePartitions(builder.get(), source_slot, manifest)); in PrepareDynamicPartitionsForUpdate()
743 if (!UpdatePartitionMetadata(builder.get(), target_slot, manifest)) { in PrepareDynamicPartitionsForUpdate()
755 const DeltaArchiveManifest& manifest, in PrepareSnapshotPartitionsForUpdate() argument
[all …]
Ddynamic_partition_control_android.h45 const DeltaArchiveManifest& manifest,
190 const DeltaArchiveManifest& manifest);
198 const DeltaArchiveManifest& manifest,
205 const DeltaArchiveManifest& manifest,
234 const DeltaArchiveManifest& manifest);
/system/libvintf/xsd/halManifest/api/
Dcurrent.txt2 package hal.manifest {
10 method public hal.manifest.Hal.Transport getTransport();
12 method public java.util.List<hal.manifest.Interface> get_interface();
16 method public void setTransport(hal.manifest.Hal.Transport);
36 method public java.util.List<hal.manifest.Kernel.Config> getConfig();
53 method public java.util.List<hal.manifest.Hal> getHal();
54 method public hal.manifest.Kernel getKernel();
55 method public hal.manifest.Sepolicy getSepolicy();
56 method public hal.manifest.SystemSdk getSystemSdk();
59 method public java.util.List<hal.manifest.VendorNdk> getVendorNdk();
[all …]
/system/apex/apexer/
Dapex_manifest.py51 manifest = apex_manifest_pb2.ApexManifest()
52 manifest.ParseFromString(manifestFile.read())
53 return manifest
55 def toJsonString(manifest): argument
56 return MessageToJson(manifest, indent=2)
Dapexer.py36 from manifest import android_ns
37 from manifest import find_child_with_attribute
38 from manifest import get_children_with_tag
39 from manifest import get_indent
40 from manifest import parse_manifest
41 from manifest import write_xml
262 if not os.path.exists(args.manifest):
263 print("Manifest file '" + args.manifest + "' does not exist")
266 if not os.path.isfile(args.manifest):
267 print("Manifest file '" + args.manifest + "' is not a file")
[all …]
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc170 void RunManifestValidation(const DeltaArchiveManifest& manifest, in RunManifestValidation() argument
177 performer_.manifest_.CopyFrom(manifest); in RunManifestValidation()
760 DeltaArchiveManifest manifest; in TEST_F() local
761 manifest.mutable_new_kernel_info(); in TEST_F()
762 manifest.mutable_new_rootfs_info(); in TEST_F()
763 manifest.set_minor_version(kFullPayloadMinorVersion); in TEST_F()
765 RunManifestValidation(manifest, in TEST_F()
773 DeltaArchiveManifest manifest; in TEST_F() local
774 manifest.mutable_old_kernel_info(); in TEST_F()
775 manifest.mutable_old_rootfs_info(); in TEST_F()
[all …]
Ddelta_performer_integration_test.cc623 DeltaArchiveManifest manifest; in ApplyDeltaFile() local
624 EXPECT_TRUE(payload_metadata.GetManifest(state->delta, &manifest)); in ApplyDeltaFile()
626 EXPECT_FALSE(manifest.has_signatures_offset()); in ApplyDeltaFile()
627 EXPECT_FALSE(manifest.has_signatures_size()); in ApplyDeltaFile()
629 EXPECT_TRUE(manifest.has_signatures_offset()); in ApplyDeltaFile()
630 EXPECT_TRUE(manifest.has_signatures_size()); in ApplyDeltaFile()
633 &state->delta[state->metadata_size + manifest.signatures_offset()], in ApplyDeltaFile()
634 manifest.signatures_size())); in ApplyDeltaFile()
652 EXPECT_EQ(expected_sig_data_length, manifest.signatures_size()); in ApplyDeltaFile()
657 EXPECT_EQ(0, manifest.install_operations_size()); in ApplyDeltaFile()
[all …]
/system/update_engine/scripts/update_payload/
Dtest_utils.py146 self.manifest = update_metadata_pb2.DeltaArchiveManifest()
174 _SetMsgField(self.manifest, 'block_size', block_size)
186 part_info = (self.manifest.new_kernel_info if is_new
187 else self.manifest.old_kernel_info)
189 part_info = (self.manifest.new_rootfs_info if is_new
190 else self.manifest.old_rootfs_info)
198 operations = (self.manifest.kernel_install_operations if is_kernel
199 else self.manifest.install_operations)
217 _SetMsgField(self.manifest, 'signatures_offset', sigs_offset)
218 _SetMsgField(self.manifest, 'signatures_size', sigs_size)
[all …]
Dpayload.py127 self.manifest = None
215 self.manifest = update_metadata_pb2.DeltaArchiveManifest()
216 self.manifest.ParseFromString(manifest_raw)
248 if self.manifest.HasField('old_image_info'):
249 _DescribeImageInfo('Old Image', self.manifest.old_image_info)
251 if self.manifest.HasField('new_image_info'):
252 _DescribeImageInfo('New Image', self.manifest.new_image_info)
266 return (self.manifest.HasField('old_kernel_info') or
267 self.manifest.HasField('old_rootfs_info') or
269 for partition in self.manifest.partitions))
/system/libhidl/vintfdata/
DAndroid.mk25 SYSTEM_MANIFEST_INPUT_FILES := $(LOCAL_PATH)/manifest.xml
72 LOCAL_MODULE_STEM := manifest.xml
76 GEN := $(local-generated-sources-dir)/manifest.xml
92 LOCAL_MODULE_STEM := manifest.xml
96 GEN := $(local-generated-sources-dir)/manifest.xml
110 LOCAL_MODULE_STEM := manifest.xml
114 GEN := $(local-generated-sources-dir)/manifest.xml
/system/apex/apexer/testdata/
DAndroid.bp30 manifest: "manifest.json",
40 manifest: "manifest.json",
51 manifest: "manifest.json",
62 manifest: "manifest.json",
/system/apex/apexd/apexd_testdata/
DAndroid.bp27 manifest: "manifest.json",
37 manifest: "manifest.json",
50 manifest: "manifest.json",
63 manifest: "manifest_v2.json",
72 manifest: "manifest_v2.json",
90 manifest: "manifest_v3.json",
106 manifest: "manifest_preinstall.json",
123 manifest: "manifest_postinstall.json",
140 manifest: "manifest_prepostinstall.fail.json",
157 manifest: "manifest_no_inst_key.json",
[all …]
/system/update_engine/payload_generator/
Dpayload_signer.cc124 DeltaArchiveManifest manifest; in AddSignatureBlobToPayload() local
125 TEST_AND_RETURN_FALSE(payload_metadata.GetManifest(payload, &manifest)); in AddSignatureBlobToPayload()
128 if (manifest.has_signatures_size()) { in AddSignatureBlobToPayload()
133 if (manifest.signatures_size() != payload_signature.size()) { in AddSignatureBlobToPayload()
135 << "(current:" << manifest.signatures_size() in AddSignatureBlobToPayload()
147 &manifest); in AddSignatureBlobToPayload()
151 TEST_AND_RETURN_FALSE(manifest.AppendToString(&serialized_manifest)); in AddSignatureBlobToPayload()
168 metadata_size + metadata_signature_size + manifest.signatures_offset(); in AddSignatureBlobToPayload()
245 DeltaArchiveManifest* manifest) { in AddSignatureToManifest() argument
247 manifest->set_signatures_offset(signature_blob_offset); in AddSignatureToManifest()
[all …]
/system/teeui/tools/framebufferizer/
DAndroid.bp7 manifest: "manifest-teeui-framebufferizer.mf",
/system/libvintf/
DAssembleVintf.cpp286 bool checkDualFile(const HalManifest& manifest, const CompatibilityMatrix& matrix) { in checkDualFile() argument
289 if (!manifest.checkCompatibility(matrix, &error, mCheckFlags)) { in checkDualFile()
315 bool setDeviceManifestKernel(HalManifest* manifest) { in setDeviceManifestKernel() argument
344 if (!manifest->mergeKernel(&kernel_info, &error)) { in setDeviceManifestKernel()
352 void inferDeviceManifestKernelFcm(HalManifest* manifest) { in inferDeviceManifestKernelFcm() argument
354 if (manifest->level() == Level::UNSPECIFIED) return; in inferDeviceManifestKernelFcm()
356 if (manifest->level() < Level::R) return; in inferDeviceManifestKernelFcm()
358 if (!manifest->kernel().has_value()) { in inferDeviceManifestKernelFcm()
359 manifest->device.mKernel = std::make_optional<KernelInfo>(); in inferDeviceManifestKernelFcm()
362 if (manifest->kernel()->level() != Level::UNSPECIFIED) return; in inferDeviceManifestKernelFcm()
[all …]

12345