/base/update/updater/test/unittest/ptable_parse_test/ |
H A D | ptable_manager_unittest.cpp | 33 int32_t TestGetPartitionInfoIndexByName(const std::vector<Ptable::PtnInfo> &ptnInfo, const std::string &name) in TestGetPartitionInfoIndexByName() argument 35 return GetPartitionInfoIndexByName(ptnInfo, name); in TestGetPartitionInfoIndexByName() 69 std::vector<Ptable::PtnInfo> ptnInfo; in TestGetPartitionInfoIndexByName() local 72 int32_t ret = context.TestGetPartitionInfoIndexByName(ptnInfo, name); in TestGetPartitionInfoIndexByName() 75 ret = context.TestGetPartitionInfoIndexByName(ptnInfo, name); in TestGetPartitionInfoIndexByName() 78 ptnInfo.push_back(tmp); in TestGetPartitionInfoIndexByName() 80 ret = context.TestGetPartitionInfoIndexByName(ptnInfo, name); in TestGetPartitionInfoIndexByName() 83 ret = context.TestGetPartitionInfoIndexByName(ptnInfo, name); in TestGetPartitionInfoIndexByName() 86 ret = context.TestGetPartitionInfoIndexByName(ptnInfo, name); in TestGetPartitionInfoIndexByName() 139 Ptable::PtnInfo ptnInfo; in TestGetPartionInfoByName() local 164 Ptable::PtnInfo ptnInfo = {0, 0, {0}, 0, "TestIsPartitionChangedForCheck", "", ""}; TestIsPartitionChanged() local [all...] |
H A D | ptable_unittest.cpp | 46 bool TestGetPartionInfoByName(const std::string &partitionName, PtnInfo &ptnInfo, int32_t &index) in TestGetPartionInfoByName() argument 48 return GetPartionInfoByName(partitionName, ptnInfo, index); in TestGetPartionInfoByName() 73 PtableTest::PtnInfo ptnInfo; in TestGetPartionInfoByName() local 74 bool ret = ptableTest.TestGetPartionInfoByName(partionName, ptnInfo, index); in TestGetPartionInfoByName() 77 ptnInfo.dispName = "updater"; in TestGetPartionInfoByName() 78 partionInfo.push_back(ptnInfo); in TestGetPartionInfoByName() 80 ret = ptableTest.TestGetPartionInfoByName(partionName, ptnInfo, index); in TestGetPartionInfoByName() 83 ret = ptableTest.TestGetPartionInfoByName(partionName, ptnInfo, index); in TestGetPartionInfoByName()
|
/base/update/updater/services/flashd/ |
H A D | partition.cpp | 49 Ptable::PtnInfo ptnInfo;
in DoErase() local 51 if (!devicePtb.GetPartionInfoByName(devName_, ptnInfo)) {
in DoErase() 55 if (ptnInfo.writeMode == "WRITE_IOCTL") {
in DoErase() 57 return DoEraseExt(ptnInfo);
in DoErase() 98 int Partition::DoEraseExt(const Ptable::PtnInfo &ptnInfo) const
in DoEraseExt() 100 uint64_t partitionSize = ptnInfo.partitionSize;
in DoEraseExt() 101 std::unique_ptr<DataWriter> dataWriter = DataWriter::CreateDataWriter(ptnInfo.writeMode,
in DoEraseExt() 102 ptnInfo.writePath, devName_, ptnInfo.startAddr);
in DoEraseExt()
|
H A D | partition.h | 38 int DoEraseExt(const Ptable::PtnInfo &ptnInfo) const;
|
/base/update/updater/services/flashd/image_writer/ |
H A D | image_writer.cpp | 39 Ptable::PtnInfo ptnInfo; in GetDataWriter() local 40 if (!devicePtb.GetPartionInfoByName(partition, ptnInfo)) { in GetDataWriter() 44 writer_ = DataWriter::CreateDataWriter(ptnInfo.writeMode, ptnInfo.writePath, partition, ptnInfo.startAddr); in GetDataWriter()
|
/base/update/updater/services/ptable_parse/ |
H A D | composite_ptable.cpp | 124 void CompositePtable::AppendChildPtnInfo(const std::vector<PtnInfo> &ptnInfo) in AppendChildPtnInfo() argument 126 partitionInfo_.insert(partitionInfo_.end(), ptnInfo.begin(), ptnInfo.end()); in AppendChildPtnInfo()
|
H A D | ptable.cpp | 48 bool Ptable::LoadPtnInfo(const std::vector<PtnInfo> &ptnInfo) in LoadPtnInfo() argument 50 if (ptnInfo.empty()) { in LoadPtnInfo() 51 LOG(ERROR) << "ptnInfo is empty"; in LoadPtnInfo() 54 partitionInfo_ = ptnInfo; in LoadPtnInfo() 447 LOG(INFO) << "ptnInfo : ==========================================="; in PrintPtableInfo() 454 LOG(INFO) << "ptnInfo : ==========================================="; in PrintPtableInfo() 457 void Ptable::PrintPtableInfo(const std::vector<PtnInfo> &ptnInfo) const in PrintPtableInfo() 459 if (ptnInfo.empty()) { in PrintPtableInfo() 464 LOG(INFO) << "ptnInfo : ==========================================="; in PrintPtableInfo() 465 LOG(INFO) << "partition count = " << std::dec << ptnInfo in PrintPtableInfo() 517 GetPartionInfoByName(const std::string &partitionName, PtnInfo &ptnInfo, int32_t &index) GetPartionInfoByName() argument [all...] |
H A D | ptable_manager.h | 40 bool GetPartionInfoByName(const std::string &partitionName, Ptable::PtnInfo &ptnInfo, int32_t &index); 41 bool GetPartionInfoByName(const std::string &partitionName, Ptable::PtnInfo &ptnInfo); 58 int32_t GetPartitionInfoIndexByName(const std::vector<Ptable::PtnInfo> &ptnInfo, const std::string &name);
|
H A D | ptable_manager.cpp | 91 int32_t PtableManager::GetPartitionInfoIndexByName(const std::vector<Ptable::PtnInfo> &ptnInfo, in GetPartitionInfoIndexByName() argument 94 if (ptnInfo.empty() || name.size() == 0) { in GetPartitionInfoIndexByName() 95 LOG(ERROR) << "invalid input: ptnInfo is empty or name is null"; in GetPartitionInfoIndexByName() 99 for (size_t i = 0; i < ptnInfo.size(); i++) { in GetPartitionInfoIndexByName() 100 if (ptnInfo[i].dispName == name) { in GetPartitionInfoIndexByName() 210 bool PtableManager::GetPartionInfoByName(const std::string &partitionName, Ptable::PtnInfo &ptnInfo, int32_t &index) in GetPartionInfoByName() argument 222 if (pPtable_->GetPartionInfoByName(standardPtnName, ptnInfo, index)) { in GetPartionInfoByName() 229 bool PtableManager::GetPartionInfoByName(const std::string &partitionName, Ptable::PtnInfo &ptnInfo) in GetPartionInfoByName() argument 232 return GetPartionInfoByName(partitionName, ptnInfo, index); in GetPartionInfoByName()
|
H A D | composite_ptable.h | 41 void AppendChildPtnInfo(const std::vector<PtnInfo> &ptnInfo);
|
H A D | ptable.h | 56 void PrintPtableInfo(const std::vector<PtnInfo> &ptnInfo) const; 57 bool GetPartionInfoByName(const std::string &partitionName, PtnInfo &ptnInfo, int32_t &index); 59 bool LoadPtnInfo(const std::vector<PtnInfo>& ptnInfo);
|
/base/update/updater/services/flow_update/update_bin/ |
H A D | component_processor.cpp | 232 Ptable::PtnInfo ptnInfo; in GetWritePathAndOffset() local 233 if (!devicePtb.GetPartionInfoByName(partitionName, ptnInfo)) { in GetWritePathAndOffset() 238 writePath = ptnInfo.writePath; in GetWritePathAndOffset() 239 offset = ptnInfo.startAddr; in GetWritePathAndOffset() 240 partitionSize = ptnInfo.partitionSize; in GetWritePathAndOffset()
|
/base/update/updater/services/updater_binary/ |
H A D | update_processor.cpp | 441 Ptable::PtnInfo ptnInfo; in GetWritePathAndOffset() local 442 if (!devicePtb.GetPartionInfoByName(partitionName, ptnInfo)) { in GetWritePathAndOffset() 447 writePath = ptnInfo.writePath; in GetWritePathAndOffset() 448 offset = ptnInfo.startAddr; in GetWritePathAndOffset() 449 partitionSize = ptnInfo.partitionSize; in GetWritePathAndOffset()
|