Home
last modified time | relevance | path

Searched refs:partition (Results 1 – 25 of 435) sorted by relevance

12345678910>>...18

/aosp12/system/update_engine/payload_consumer/
H A Dfilesystem_verifier_action.cc175 dynamic_control_->OpenCowFd(partition.name, partition.source_path, true); in InitializeFdVABC()
333 if (IsVABC(partition)) { in StartPartitionHashing()
345 << partition.name in StartPartitionHashing()
361 if (partition.fec_offset > 0) { in StartPartitionHashing()
362 CHECK_LE(partition.hash_tree_offset, partition.fec_offset) in StartPartitionHashing()
399 return partition.source_path; in GetPartitionPath()
401 if (IsVABC(partition)) { in GetPartitionPath()
414 return partition.source_size; in GetPartitionSize()
416 return partition.target_size; in GetPartitionSize()
425 (partition.hash_tree_size > 0 || partition.fec_size > 0); in ShouldWriteVerity()
[all …]
H A Dinstall_plan.cc109 for (const auto& partition : partitions) { in ToString() local
112 {"Partition", partition.name}, in ToString()
114 {"source_path", partition.source_path}, in ToString()
119 {"target_path", partition.target_path}, in ToString()
154 for (Partition& partition : partitions) { in LoadPartitionsFromSlots()
156 partition.source_size > 0) { in LoadPartitionsFromSlots()
158 partition.name, source_slot, &partition.source_path)); in LoadPartitionsFromSlots()
160 partition.source_path.clear(); in LoadPartitionsFromSlots()
164 partition.target_size > 0) { in LoadPartitionsFromSlots()
166 partition.name, target_slot, source_slot); in LoadPartitionsFromSlots()
[all …]
H A Dpostinstall_runner_action.cc105 auto& partition = install_plan_.partitions[i]; in PerformAction() local
107 partition.run_postinstall = false; in PerformAction()
115 partition_weight_[i] = partition.run_postinstall; in PerformAction()
140 const InstallPlan::Partition& partition = in PerformPartitionPostinstall() local
143 const string mountable_device = partition.readonly_target_path; in PerformPartitionPostinstall()
165 base::FilePath postinstall_path(partition.postinstall_path); in PerformPartitionPostinstall()
169 << partition.postinstall_path; in PerformPartitionPostinstall()
178 << partition.postinstall_path; in PerformPartitionPostinstall()
198 partition.filesystem_type, in PerformPartitionPostinstall()
199 hardware_->GetPartitionMountOptions(partition.name))) { in PerformPartitionPostinstall()
[all …]
H A Ddelta_performer.cc244 partition, in OpenCurrentPartition()
277 if (partition.has_old_partition_info()) { in LogPartitionInfo()
631 partitions_.push_back(partition); in ParseManifestPartitions()
696 partition.has_run_postinstall() && partition.run_postinstall(); in ParseManifestPartitions()
699 (partition.has_postinstall_path() ? partition.postinstall_path() in ParseManifestPartitions()
722 if (partition.has_hash_tree_extent()) { in ParseManifestPartitions()
726 extent = partition.hash_tree_extent(); in ParseManifestPartitions()
742 if (partition.has_fec_extent()) { in ParseManifestPartitions()
746 extent = partition.fec_extent(); in ParseManifestPartitions()
1115 if (!partition.has_version()) { in CheckTimestampError()
[all …]
/aosp12/frameworks/ex/common/java/com/android/common/contacts/
H A DBaseEmailAddressAdapter.java310 return partition.loading ? 1 : 0; in getItemViewType()
317 if (partition.loading) { in newView()
382 partition.directoryId = id; in onDirectoryLoadFinished()
419 addPartition(partition); in onDirectoryLoadFinished()
464 if (partition.loading) { in onDirectoryLoadFinished()
469 partition.filter = new DirectoryPartitionFilter(i, partition.directoryId); in onDirectoryLoadFinished()
485 if (partition.loading) { in showSearchPendingIfNotComplete()
508 if (partition.loading && TextUtils.equals(constraint, partition.constraint)) { in onPartitionLoadFinished()
509 partition.loading = false; in onPartitionLoadFinished()
571 for (int partition = 0; partition < partitionCount; partition++) { in isDuplicate()
[all …]
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/
H A DCompositeAdapter.java105 public void addPartition(final Partition partition) { in addPartition() argument
112 mPartitions[mSize++] = partition; in addPartition()
119 final Partition partition = mPartitions[index]; in removePartition() local
120 partition.close(); in removePartition()
131 final Partition partition = mPartitions[i]; in clearPartitions() local
132 partition.close(); in clearPartitions()
203 (partition.getCount() > 0 || partition.showIfEmpty())) { in getItem()
225 (partition.getCount() > 0 || partition.showIfEmpty())) { in getItemId()
247 (partition.getCount() > 0 || partition.showIfEmpty())) { in isEnabled()
268 if (partition.hasHeader() && in getView()
[all …]
/aosp12/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactEntryListAdapter.java130 bindWorkProfileIcon(view, partition); in bindView()
149 partition.setDirectoryId(Directory.DEFAULT); in createDefaultDirectoryPartition()
151 partition.setPriorityDirectory(true); in createDefaultDirectoryPartition()
152 partition.setPhotoSupported(true); in createDefaultDirectoryPartition()
154 return partition; in createDefaultDirectoryPartition()
182 Partition partition = getPartition(i); in getPartitionByDirectoryId() local
195 Partition partition = getPartition(i); in getDirectoryById() local
216 Partition partition = getPartition(i); in onDataReload() local
234 Partition partition = getPartition(i); in clearPartitions() local
419 partition.setDirectoryId(id); in changeDirectories()
[all …]
H A DPinnedHeaderListAdapter.java60 protected boolean isPinnedPartitionHeaderVisible(int partition) { in isPinnedPartitionHeaderVisible() argument
61 return getPinnedPartitionHeadersEnabled() && hasHeader(partition) in isPinnedPartitionHeaderVisible()
62 && !isPartitionEmpty(partition); in isPinnedPartitionHeaderVisible()
70 public View getPinnedHeaderView(int partition, View convertView, ViewGroup parent) { in getPinnedHeaderView() argument
71 if (hasHeader(partition)) { in getPinnedHeaderView()
80 view = newHeaderView(getContext(), partition, null, parent); in getPinnedHeaderView()
85 bindHeaderView(view, partition, getCursor(partition)); in getPinnedHeaderView()
121 int partition = getPartitionForPosition(position); in configurePinnedHeaders() local
122 if (i > partition) { in configurePinnedHeaders()
144 int partition = getPartitionForPosition(position - 1); in configurePinnedHeaders() local
[all …]
/aosp12/frameworks/ex/common/java/com/android/common/widget/
H A DCompositeCursorAdapter.java93 mPartitions.add(partition); in addPartition()
99 mPartitions.add(location, partition); in addPartition()
122 partition.cursor = null; in clearPartitions()
133 Cursor cursor = partition.cursor; in close()
172 Cursor cursor = partition.cursor; in ensureCacheValid()
179 if (partition.hasHeader) { in ensureCacheValid()
184 partition.count = count; in ensureCacheValid()
194 public boolean hasHeader(int partition) { in hasHeader() argument
209 public Cursor getCursor(int partition) { in getCursor() argument
266 if (partition.hasHeader) { in getOffsetInPartition()
[all …]
/aosp12/system/sepolicy/build/soong/
H A Dbuild_files.go89 type partition int type
92 system partition = iota
105 partition partition member
110 func (p partition) String() string {
136 sepolicyDir{partition: product, scope: public, paths: ctx.Config().ProductPublicSepolicyDirs()},
137 sepolicyDir{partition: product, scope: private, paths: ctx.Config().ProductPrivateSepolicyDirs()},
141 if dirs[i].partition != dirs[j].partition {
142 return dirs[i].partition < dirs[j].partition
168 gatherDirsFor := func(p partition, s scope) []string {
172 if d.partition <= p && d.scope <= s {
[all …]
/aosp12/bootable/recovery/applypatch/
H A Dapplypatch.cpp73 if (ParseSha1(partition.hash, expected_sha1) != 0) { in ReadPartitionToBuffer()
82 std::vector<unsigned char> buffer(partition.size); in ReadPartitionToBuffer()
85 << partition; in ReadPartitionToBuffer()
167 fd.reset(open(partition.name.c_str(), O_RDONLY)); in WriteBufferToPartition()
216 PLOG(ERROR) << "Failed to close " << partition; in WriteBufferToPartition()
291 LOG(INFO) << "Flashing " << partition; in FlashPartition()
309 if (ParseSha1(partition.hash, expected_sha1) != 0) { in FlashPartition()
321 if (!WriteBufferToPartition(source_file, partition)) { in FlashPartition()
322 LOG(ERROR) << "Failed to write to " << partition; in FlashPartition()
426 bool CheckPartition(const Partition& partition) { in CheckPartition() argument
[all …]
/aosp12/system/core/fs_mgr/
H A Dfs_mgr_dm_linear.cpp96 for (size_t i = 0; i < params.partition->num_extents; i++) { in CreateDmTableInternal()
124 if (params.partition->attributes & LP_PARTITION_ATTR_READONLY) { in CreateDmTableInternal()
159 for (const auto& partition : metadata.partitions) { in CreateLogicalPartitions() local
160 if (!partition.num_extents) { in CreateLogicalPartitions()
164 if (partition.attributes & LP_PARTITION_ATTR_DISABLED) { in CreateLogicalPartitions()
169 params.partition = &partition; in CreateLogicalPartitions()
207 if (!partition) { in InitDefaults()
210 partition = &metadata_partition; in InitDefaults()
215 if (!partition) { in InitDefaults()
223 << android::fs_mgr::GetPartitionName(*partition); in InitDefaults()
[all …]
/aosp12/system/core/fs_mgr/liblp/
H A Dbuilder.cpp336 AddPartition(GetPartitionName(partition), group_name, partition.attributes); in Init()
549 if (partition->name() == name) { in FindPartition()
550 return partition.get(); in FindPartition()
814 if (partition->extents().empty()) { in ExtendFinalExtent()
872 partition->ShrinkTo(aligned_size); in ShrinkPartition()
981 size += partition->size(); in UsedSpace()
1178 if (!partition) { in ImportPartition()
1181 if (!partition) { in ImportPartition()
1185 if (partition->size() > 0) { in ImportPartition()
1198 if (!ValidatePartitionSizeChange(partition, partition->size(), partition->size(), true)) { in ImportPartition()
[all …]
H A Dutility.cpp145 for (const auto& partition : metadata.partitions) { in FindPartition() local
146 if (GetPartitionName(partition) == name) { in FindPartition()
147 return &partition; in FindPartition()
155 for (uint32_t i = 0; i < partition.num_extents; i++) { in GetPartitionSize()
192 if (name.size() > sizeof(partition->name)) { in UpdatePartitionName()
195 strncpy(partition->name, name.c_str(), sizeof(partition->name)); in UpdatePartitionName()
250 for (auto& partition : metadata->partitions) { in UpdateMetadataForInPlaceSnapshot() local
260 if (!UpdatePartitionName(&partition, new_name)) { in UpdateMetadataForInPlaceSnapshot()
274 partition.attributes |= LP_PARTITION_ATTR_UPDATED; in UpdateMetadataForInPlaceSnapshot()
276 new_partition_ptrs.push_back(&partition); in UpdateMetadataForInPlaceSnapshot()
[all …]
/aosp12/packages/services/Car/car-lib/src/android/car/storagemonitoring/
H A DLifetimeWriteInfo.java48 public final String partition; field in LifetimeWriteInfo
52 public LifetimeWriteInfo(String partition, String fstype, long writtenBytes) { in LifetimeWriteInfo() argument
53 this.partition = Objects.requireNonNull(partition); in LifetimeWriteInfo()
62 this.partition = in.readString(); in LifetimeWriteInfo()
71 partition = in.getString("partition"); in LifetimeWriteInfo()
79 dest.writeString(partition); in writeToParcel()
89 jsonWriter.name("partition").value(partition); in writeToJson()
105 return partition.equals(lifetime.partition) in equals()
116 partition, fstype, writtenBytes); in toString()
/aosp12/build/make/core/
H A Dbuild_rro_package.mk18 partition :=
20 partition := $(TARGET_OUT_ODM)
22 partition := $(TARGET_OUT_VENDOR)
24 partition := $(TARGET_OUT_SYSTEM_EXT)
26 partition := $(TARGET_OUT_PRODUCT)
30 LOCAL_MODULE_PATH := $(partition)/overlay
32 LOCAL_MODULE_PATH := $(partition)/overlay/$(LOCAL_RRO_THEME)
41 partition :=
/aosp12/system/update_engine/scripts/
H A Dpayload_info.py74 for partition in manifest.partitions:
75 DisplayValue(' Number of "%s" ops' % partition.partition_name,
76 len(partition.operations))
77 for partition in manifest.partitions:
79 partition.partition_name, partition.version)
80 for partition in manifest.partitions:
82 partition.partition_name, partition.estimate_cow_size)
175 for partition in manifest.partitions:
177 for curr_op in partition.operations:
214 for partition in self.payload.manifest.partitions:
[all …]
/aosp12/bootable/recovery/tests/unit/
H A Dupdate_verifier_test.cpp64 for (const auto& partition : partitions) { in ConstructProto() local
66 if (partition.find("name") != partition.end()) { in ConstructProto()
67 info.set_name(partition.at("name")); in ConstructProto()
69 if (partition.find("ranges") != partition.end()) { in ConstructProto()
70 info.set_ranges(partition.at("ranges")); in ConstructProto()
72 if (partition.find("id") != partition.end()) { in ConstructProto()
73 info.set_id(partition.at("id")); in ConstructProto()
75 if (partition.find("fingerprint") != partition.end()) { in ConstructProto()
76 info.set_fingerprint(partition.at("fingerprint")); in ConstructProto()
/aosp12/system/linkerconfig/generator/
H A Dvariableloader.cc57 std::string partition) { in LoadVariableFromPartitionPath() argument
58 auto real_path = GetRealPath(root + partition); in LoadVariableFromPartitionPath()
64 Variables::AddValue(variable_name, partition); in LoadVariableFromPartitionPath()
76 const std::string& partition) { in LoadVndkLibraryListVariables() argument
97 Variables::AddValue("LLNDK_LIBRARIES_" + partition, in LoadVndkLibraryListVariables()
101 Variables::AddValue("PRIVATE_LLNDK_LIBRARIES_" + partition, in LoadVndkLibraryListVariables()
105 Variables::AddValue("VNDK_SAMEPROCESS_LIBRARIES_" + partition, in LoadVndkLibraryListVariables()
109 Variables::AddValue("VNDK_CORE_LIBRARIES_" + partition, in LoadVndkLibraryListVariables()
113 Variables::AddValue("SANITIZER_DEFAULT_" + partition, in LoadVndkLibraryListVariables()
117 if (partition == "VENDOR") { in LoadVndkLibraryListVariables()
/aosp12/build/make/tools/releasetools/
H A Dcommon.py478 partition) if partition else 'build.prop'
1292 "plat" if partition == "system" else partition)
3067 self.partition = partition
3144 partition = self.partition
3157 partition = self.partition
3182 self.device, partition, partition, partition))
3210 partition=partition, code=code))
3227 partition = self.partition
3312 device=self.device, partition=self.partition,
3626 [partition for partition, count in
[all …]
H A Dbuild_super_image.py61 def GetArgumentsForImage(partition, group, image=None): argument
65 "{}:readonly:{}:{}".format(partition, image_size, group)]
67 cmd += ["--image", "{}={}".format(partition, image)]
114 for partition in partition_list:
115 image = info_dict.get("{}_image".format(partition))
120 cmd += GetArgumentsForImage(partition, group, image)
127 cmd += GetArgumentsForImage(partition + "_a", group + "_a", image)
130 if partition == "system" and "system_other_image" in info_dict:
162 for partition in partition_list:
163 image_path = os.path.join(inp, "IMAGES", "{}.img".format(partition))
[all …]
/aosp12/system/update_engine/payload_generator/
H A Dpayload_file.cc144 PartitionUpdate* partition = manifest_.add_partitions(); in WritePayload() local
145 partition->set_partition_name(part.name); in WritePayload()
147 partition->set_version(part.version); in WritePayload()
150 partition->set_estimate_cow_size(part.cow_size); in WritePayload()
153 partition->set_run_postinstall(true); in WritePayload()
155 partition->set_postinstall_path(part.postinstall.path); in WritePayload()
162 *partition->mutable_hash_tree_data_extent() = in WritePayload()
173 partition->set_fec_roots(part.verity.fec_roots); in WritePayload()
177 *partition->add_operations() = aop.op; in WritePayload()
180 *partition->add_merge_operations() = merge_op; in WritePayload()
[all …]
/aosp12/system/extras/partition_tools/
H A DREADME.md5 lpmake is a command-line tool for generating a "super" partition image. It can currently generate t…
11 * `-d,--device-size` - The size of the "super" partition on the device. It must match exactly, and …
12 * `-m,--metadata-size` - The maximum size that partition metadata may consume. A partition entry us…
14 * `-p,--partition=DATA` - Add a partition to the metadata. At least one partition must be defined. …
20 * `--alignment-offset=N` - In some cases, the "super" partition is misaligned within its parent blo…
23 …or the partition named NAME. The file can be a normal file or a sparse image, but the destination …
25 Example usage. This specifies a 10GB super partition for an A/B device, with a single 64MiB "cache"…
38 lpdump displays pretty-printed partition metadata. It accepts a single argument, which can be:
56 * `--readonly` - The partition should be mapped as read-only.
58 * `PART_NAME` - The partition name. It must not already exist.
[all …]
/aosp12/system/core/fastboot/
H A Dfastboot.cpp1046 if (!is_logical(partition)) { in get_partition_size()
1055 if (!is_logical(partition)) { in get_partition_size()
1104 if (partition == "boot" || partition == "boot_a" || partition == "boot_b") { in flash_buf()
1110 if (partition == "vbmeta" || partition == "vbmeta_a" || partition == "vbmeta_b") { in flash_buf()
1113 (partition == "boot" || partition == "boot_a" || partition == "boot_b")) { in flash_buf()
1353 return partition; in repack_ramdisk()
1488 if (is_logical(partition)) { in Flash()
1777 flash_buf(partition, &buf); in fb_perform_format()
2097 fb->Erase(partition); in Main()
2256 fb->DeletePartition(partition); in Main()
[all …]
/aosp12/system/core/fs_mgr/libfiemap/
H A Dmetadata.cpp129 bool FillPartitionExtents(MetadataBuilder* builder, Partition* partition, SplitFiemap* file, in FillPartitionExtents() argument
154 if (!builder->AddLinearExtent(partition, block_device, num_sectors, physical_sector)) { in FillPartitionExtents()
188 auto partition = builder->FindPartition(partition_name); in UpdateMetadata() local
189 if (!partition) { in UpdateMetadata()
193 if ((partition = builder->AddPartition(partition_name, attrs)) == nullptr) { in UpdateMetadata()
198 partition->RemoveExtents(); in UpdateMetadata()
200 if (!FillPartitionExtents(builder.get(), partition, file, partition_size)) { in UpdateMetadata()
216 auto partition = builder->FindPartition(partition_name); in AddAttributes() local
217 if (!partition) { in AddAttributes()
220 partition->set_attributes(partition->attributes() | attributes); in AddAttributes()

12345678910>>...18