/base/update/updater/services/fs_manager/ |
H A D | do_partition.cpp | 39 static int BlkpgPartCommand(const Partition &part, struct blkpg_partition &pg, int op) in BlkpgPartCommand() argument 49 ret = ioctl(part.partfd, BLKPG, &args); in BlkpgPartCommand() 52 LOG(ERROR) << "ioctl of partition " << part.partName << " with operation " << op << " failed"; in BlkpgPartCommand() 57 static int DoUmountDiskPartition(const Partition &part) in DoUmountDiskPartition() argument 59 std::string partName = std::string("/") + part.partName; in DoUmountDiskPartition() 90 static int BlkpgRemovePartition(const Partition &part) in BlkpgRemovePartition() argument 96 blkPart.pno = part.partNum; in BlkpgRemovePartition() 97 return BlkpgPartCommand(part, blkPart, BLKPG_DEL_PARTITION); in BlkpgRemovePartition() 121 Partition *part = nullptr; in DoRmPartition() local 122 part in DoRmPartition() 141 BlkpgAddPartition(Partition &part) BlkpgAddPartition() argument 167 DoAddPartition(const Disk &disk, Partition &part) DoAddPartition() argument [all...] |
H A D | partitions.cpp | 329 Partition* part = (Partition*) calloc (1, sizeof (Partition)); in NewPartition() local 330 if (part == nullptr) { in NewPartition() 338 free(part); in NewPartition() 344 free(part); in NewPartition() 350 free(part); in NewPartition() 353 part->start = static_cast<size_t>(atoi(strstart.c_str())); in NewPartition() 357 free(part); in NewPartition() 360 part->length = static_cast<size_t>(atoi(strsize.c_str())); in NewPartition() 363 part->devName = partName; in NewPartition() 365 part in NewPartition() 382 struct Partition *part = nullptr; GetPartition() local 407 struct Partition* part = nullptr; ProbeAllPartitions() local [all...] |
/base/update/updater/test/fuzztest/dopartitions_fuzzer/ |
H A D | dopartitions_fuzzer.cpp | 29 static void InitEmmcPartition(struct Partition &part, const std::string &partName, size_t start, size_t length) in InitEmmcPartition() argument 31 part.partName = partName; in InitEmmcPartition() 32 part.start = start; in InitEmmcPartition() 33 part.length = length; in InitEmmcPartition() 35 part.devName = "mmcblk0px"; in InitEmmcPartition() 36 part.fsType = "emmc"; in InitEmmcPartition()
|
/base/update/updater/test/unittest/fs_manager/ |
H A D | do_partition_unittest.cpp | 68 static void InitEmmcPartition(struct Partition &part, const std::string &partName, size_t start, size_t length)
in InitEmmcPartition() argument 70 part.partName = partName;
in InitEmmcPartition() 71 part.start = start;
in InitEmmcPartition() 72 part.length = length;
in InitEmmcPartition() 74 part.devName = "mmcblk0px";
in InitEmmcPartition() 75 part.fsType = "emmc";
in InitEmmcPartition()
|
/base/hiviewdfx/hiview/utility/common_utils/ |
H A D | log_parse.cpp | 164 // only one part in GetValidBlock() 171 for (auto part : multiPart) { in GetValidBlock() 175 validStack.insert(validStack.begin(), part.begin(), part.end()); in GetValidBlock() 186 for (auto part : multiPart) { in GetValidBlock() 188 if (size > 1 && !part.empty() && HasExceptionList(part.front())) { in GetValidBlock() 189 part.erase(part.begin()); in GetValidBlock() 192 if (!part in GetValidBlock() [all...] |
/base/update/updater/services/flashd/daemon/ |
H A D | format_commander.cpp | 70 Partition part(partitionName); in DoFormat() 72 return part.DoErase(); in DoFormat() 74 return part.DoFormat(); in DoFormat()
|
H A D | erase_commander.cpp | 59 Partition part(partitionName); in DoErase() 60 if (auto ret = part.DoErase(); ret != 0) { in DoErase()
|
/base/telephony/sms_mms/frameworks/native/mms/src/ |
H A D | mms_msg.cpp | 313 for (auto part : bodyParts) {
in GetAllAttachment() 316 part.GetPartHeader().GetContentId(contentId);
in GetAllAttachment() 323 fileName = part.GetPartFileName();
in GetAllAttachment() 331 part.GetContentType().GetContentType(contentType);
in GetAllAttachment() 333 attachment.SetCharSet(part.GetContentType().GetContentParam().GetCharSet());
in GetAllAttachment() 336 part.GetPartHeader().GetContentLocation(contentLocation);
in GetAllAttachment() 340 part.GetPartHeader().GetContentDisposition(contentDispositon);
in GetAllAttachment() 344 part.GetPartHeader().GetContentTransferEncoding(strContentTransferEncoding);
in GetAllAttachment() 348 std::unique_ptr<char[]> partBodyBuffer = part.ReadBodyPartBuffer(partBodyLen);
in GetAllAttachment()
|
/base/request/request/frameworks/js/napi/src/upload/ |
H A D | curl_adp.cpp | 203 curl_mimepart *part;
in SetMimePost() local 207 part = curl_mime_addpart(mime);
in SetMimePost() 208 curl_mime_name(part, item.name.c_str());
in SetMimePost() 209 curl_mime_data(part, item.value.c_str(), item.value.size());
in SetMimePost() 212 part = curl_mime_addpart(mime);
in SetMimePost() 213 curl_mime_name(part, "file");
in SetMimePost() 214 curl_mime_type(part, mfileData_.type.c_str());
in SetMimePost() 215 curl_mime_filename(part, mfileData_.filename.c_str());
in SetMimePost() 216 curl_mime_data_cb(part, mfileData_.totalsize, ReadCallback, NULL, NULL, &mfileData_);
in SetMimePost()
|
/base/update/packaging_tools/ |
H A D | utils.py | 385 for i, part in enumerate(part_list):
386 start_value = partitions_conversion(part.get('@Start'))
387 length_value = partitions_conversion(part.get('@Length'))
391 (part.get('@PartitionName'), xml_path),
395 if part.get('@PartitionName') not in IGNORED_PARTITION_LIST:
396 partitions_list.append(part.get('@PartitionName'))
399 "%s.img" % part.get('@PartitionName')))
402 'partName': part.get('@PartitionName'),
403 'fsType': part.get('@FlashType')}
|
/base/hiviewdfx/hiview/utility/smart_parser/rule/ |
H A D | extract_rule.cpp | 181 for (auto& part : parts) { in IsMatchPath() 182 if (regex_match(sourceFile, regex(out + part))) { in IsMatchPath() 185 out += part + "/"; in IsMatchPath()
|
/base/telephony/sms_mms/test/gtest/ |
H A D | zero_branch_mms_test.cpp | 927 MmsBodyPart part; in HWTEST_F() local 928 mmsBody.mmsBodyParts_.push_back(part); in HWTEST_F() 977 MmsBodyPart part; in HWTEST_F() local 980 part.SetContentType(strCt); in HWTEST_F() 981 part.GetContentType(getCt); in HWTEST_F() 983 part.SetContentId(strCt); in HWTEST_F() 984 part.GetContentId(getCt); in HWTEST_F() 986 part.SetContentLocation(strCt); in HWTEST_F() 987 part.GetContentLocation(getCt); in HWTEST_F() 989 part in HWTEST_F() [all...] |
/base/hiviewdfx/hisysevent/test/moduletest/common/ |
H A D | hisysevent_wrote_result_check_test.cpp | 28 #include "gtest/gtest-test-part.h" 109 bool IsContains(const std::string& total, const std::string& part) in IsContains() argument 111 if (total.empty() || part.empty()) { in IsContains() 114 return total.find(part) != std::string::npos; in IsContains()
|
/base/telephony/core_service/utils/vcard/src/ |
H A D | vcard_constructor.cpp | 318 void VCardConstructor::AddSinglePartNameField(std::string property, std::string part) in AddSinglePartNameField() argument 320 bool needQuotedPrintable = needQP_ && !VCardUtils::IsPrintableAscii({ part }); in AddSinglePartNameField() 321 std::string encodedPart = needQuotedPrintable ? EncodeQuotedPrintable(part) : DealCharacters(part); in AddSinglePartNameField() 323 AddCharsetOrQuotedPrintable(IsNeedCharsetParam({ part }), needQuotedPrintable); in AddSinglePartNameField()
|
/base/telephony/core_service/utils/vcard/include/ |
H A D | vcard_constructor.h | 47 void AddSinglePartNameField(std::string property, std::string part);
|
/base/security/code_signature/services/key_enable/src/ |
H A D | cert_path_utils.rs | 358 for part in parts { in fabricate_name() 359 let inner: Vec<&str> = part.split('=').collect(); in fabricate_name()
|
/base/web/webview/ohos_interface/ohos_glue/scripts/ |
H A D | file_parser.py | 243 for part in parts: 244 part = part.strip() 245 if len(part) == 0: 247 sparts = part.split('=') 249 raise Exception('Invalid dictionary pair format: ' + part) 1279 # this function is part of a class
|