/base/update/updater/services/fs_manager/ |
H A D | do_partition.cpp | 52 LOG(ERROR) << "ioctl of partition " << part.partName << " with operation " << op << " failed"; in BlkpgPartCommand() 59 std::string partName = std::string("/") + part.partName; in DoUmountDiskPartition() local 60 int ret = UmountForPath(partName); in DoUmountDiskPartition() 62 LOG(ERROR) << "Umount " << partName << " failed: " << errno; in DoUmountDiskPartition() 157 if (strncpy_s(blkPart.volname, BLKPG_VOLNAMELTH, part.partName.c_str(), part.partName.size()) != EOK) { in BlkpgAddPartition() 253 if (p->partName == "userdata") { in WriteDiskPartitionToMisc() 255 p->partName.c_str()) == -1) { in WriteDiskPartitionToMisc() 261 size, p->partName in WriteDiskPartitionToMisc() [all...] |
H A D | cmp_partition.cpp | 27 if (!strcmp(p->partName.c_str(), newp.partName.c_str())) { in ComparePartition() 28 LOG(INFO) << "compare_partition old " << p->partName; in ComparePartition() 73 LOG(INFO) << "change p->partName " << p->partName; in TraversePartitionList()
|
H A D | partitions.cpp | 335 char partName[64] = {0}; in NewPartition() local 337 if (snprintf_s(partName, sizeof(partName), sizeof(partName) - 1, "%sp%d", devName.c_str(), partn) == -1) { in NewPartition() 343 snprintf_s(partName, sizeof(partName), sizeof(partName) - 1, "%s%d", devName.c_str(), partn) == -1) { in NewPartition() 348 std::string strstart = ReadPartitionFromSys(devName, partName, "start", ""); in NewPartition() 355 std::string strsize = ReadPartitionFromSys(devName, partName, "size", ""); in NewPartition() 362 std::string strdevname = ReadPartitionFromSys(devName, partName, "ueven in NewPartition() [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()
|
/base/update/updater/services/flashd/daemon/ |
H A D | flash_commander.cpp | 80 bool FlashCommander::InitPartition(const std::string &partName, const uint8_t *buffer, int bufferSize) in InitPartition() argument 86 partName, buffer, bufferSize); in InitPartition() 91 partition_ = std::make_unique<Partition>(partName, std::move(writer)); in InitPartition()
|
H A D | flash_commander.h | 33 bool InitPartition(const std::string &partName, const uint8_t *buffer, int bufferSize);
|
/base/update/updater/services/updater_binary/ |
H A D | update_image_patch.cpp | 62 uint32_t ret = static_cast<uint32_t>(context.GetParam(index++, para.partName));
in GetParam() 72 para.devPath = GetBlockDeviceByMountPoint(para.partName);
in GetParam() 74 LOG(ERROR) << "get " << para.partName << " dev path error";
in GetParam() 131 patchName = para.partName;
in CreatePatchStream() 153 LOG(INFO) << "USInstrImagePatch::CreatePatchStream " << para.partName;
in CreatePatchStream() 160 std::string srcFile = UPDATER_PATH + para.partName + ".backup";
in GetSourceFile() 186 if (PartitionRecord::GetInstance().IsPartitionUpdated(para.partName)) {
in ExecuteImagePatch() 187 LOG(INFO) << para.partName << " already updated, skip";
in ExecuteImagePatch() 222 PartitionRecord::GetInstance().RecordPartitionUpdateStatus(para.partName, true);
in ExecuteImagePatch() 243 uint32_t ret = static_cast<uint32_t>(context.GetParam(index++, para.partName));
in GetParam() [all...] |
H A D | update_image_patch.h | 28 std::string partName {};
53 std::string partName {};
|
H A D | update_partitions.cpp | 73 item = cJSON_GetObjectItem(thisPartition, "partName"); in SetPartitionInfo() 75 LOG(ERROR) << "Error get partName"; in SetPartitionInfo() 78 myPartition->partName = (item->valuestring); in SetPartitionInfo() 89 myPartition->partName << " " << myPartition->fsType; in SetPartitionInfo()
|
/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()
|
/base/update/updater/test/unittest/flashd_test/ |
H A D | flashd_unittest.cpp | 206 std::string partName = ""; in HWTEST_F() local 209 int bufferSize = partName.size(); in HWTEST_F() 210 std::unique_ptr<FlashdWriter> writer = FlashdImageWriter::GetInstance().GetWriter(partName, buffer, bufferSize); in HWTEST_F() 216 partName = "test"; in HWTEST_F() 217 writer = FlashdImageWriter::GetInstance().GetWriter(partName, buffer, bufferSize); in HWTEST_F() 220 int ret = writer->Write(partName, reinterpret_cast<uint8_t*>(temp.data()), temp.size()); in HWTEST_F() 226 std::string partName = "updater_ramdisk.img"; in HWTEST_F() local 234 int ret = writer->Write(partName, reinterpret_cast<uint8_t*>(temp.data()), temp.size()); in HWTEST_F() 274 std::string partName = "updater"; in HWTEST_F() local 278 std::unique_ptr<Partition> partition_ = std::make_unique<Partition>(partName, st in HWTEST_F() [all...] |
/base/startup/init/interfaces/innerkits/fs_manager/ |
H A D | fstab.c | 500 int GetBlockDevicePath(const char *partName, char *path, size_t size) in GetBlockDevicePath() argument 502 BEGET_CHECK_RETURN_VALUE(partName != NULL && path != NULL, -1); in GetBlockDevicePath() 511 int ret = GetBlockDeviceByMountPoint(partName, fstab, path, size); in GetBlockDevicePath() 512 BEGET_INFO_CHECK(ret == 0, ret = GetBlockDeviceByName(partName, fstab, path, size), in GetBlockDevicePath() 531 char partName[NAME_SIZE] = {}; in ParseRequiredMountInfo() local 539 BEGET_ERROR_CHECK(strncpy_s(partName, NAME_SIZE -1, q, p - q) == EOK, in ParseRequiredMountInfo() 545 BEGET_LOGV("Config mount option of partition %s is [%s]", partName, mountOptions); in ParseRequiredMountInfo() 547 BEGET_LOGE("Failed to parse mount options of partition \' %s \', options: %s", partName, mountOptions); in ParseRequiredMountInfo()
|
/base/update/updater/services/applypatch/ |
H A D | data_writer.cpp | 92 const std::string &partName, uint64_t startAddr, uint64_t offset) in CreateDataWriter() 95 return it->second(path, partName, startAddr, offset); in CreateDataWriter() 91 CreateDataWriter(const std::string &mode, const std::string &path, const std::string &partName, uint64_t startAddr, uint64_t offset) CreateDataWriter() argument
|
H A D | raw_writer.cpp | 26 [](const std::string &path, const std::string &partName, uint64_t startAddr, in RegisterRawWriter()
|
/base/update/updater/services/include/applypatch/ |
H A D | data_writer.h | 43 const std::string &partName = {}, uint64_t startAddr = 0, uint64_t offset = 0);
|
/base/update/updater/services/include/fs_manager/ |
H A D | partitions.h | 88 std::string partName; member
|
/base/startup/init/interfaces/innerkits/include/fs_manager/ |
H A D | fs_manager.h | 107 int GetBlockDevicePath(const char *partName, char *path, size_t size);
|
/base/powermgr/battery_statistics/test/unittest/src/clienttest/ |
H A D | stats_dump_test.cpp | 214 std::string partName = "Battery"; in HWTEST_F() local 218 HiSysEvent::EventType::STATISTIC, "NAME", partName, "TEMPERATURE", temperature); in HWTEST_F() 224 .append(partName); in HWTEST_F()
|
/base/powermgr/battery_statistics/test/unittest/src/servicetest/ |
H A D | stats_service_dump_test.cpp | 281 std::string partName = "Battery"; in HWTEST_F() local 286 partName, "TEMPERATURE", temperature); in HWTEST_F() 292 .append(partName); in HWTEST_F()
|
/base/powermgr/battery_statistics/test/systemtest/src/ |
H A D | batterystats_sys_test.cpp | 253 std::string partName = "Battery";
in HWTEST_F() local 257 HiSysEvent::EventType::STATISTIC, "NAME", partName, "TEMPERATURE", temperature);
in HWTEST_F() 264 .append(partName);
in HWTEST_F()
|