Home
last modified time | relevance | path

Searched refs:ptnInfo (Results 1 – 9 of 9) sorted by relevance

/base/update/updater/test/unittest/ptable_parse_test/
Dptable_manager_unittest.cpp33 …int32_t TestGetPartitionInfoIndexByName(const std::vector<Ptable::PtnInfo> &ptnInfo, const std::st… 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()
137 Ptable::PtnInfo ptnInfo; in TestGetPartionInfoByName() local
[all …]
Dptable_unittest.cpp46 … 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/image_writer/
Dimage_writer.cpp39 Ptable::PtnInfo ptnInfo; in GetDataWriter() local
40 if (!devicePtb.GetPartionInfoByName(partition, ptnInfo)) { in GetDataWriter()
44 char lunIndexName = 'a' + ptnInfo.lun; in GetDataWriter()
46 writer_ = DataWriter::CreateDataWriter(WRITE_RAW, writePath, ptnInfo.startAddr); in GetDataWriter()
/base/update/updater/services/ptable_parse/
Dptable.cpp47 bool Ptable::LoadPtnInfo(const std::vector<PtnInfo> &ptnInfo) in LoadPtnInfo() argument
49 if (ptnInfo.empty()) { in LoadPtnInfo()
53 partitionInfo_ = ptnInfo; in LoadPtnInfo()
431 void Ptable::PrintPtableInfo(const std::vector<PtnInfo> &ptnInfo) const in PrintPtableInfo()
433 if (ptnInfo.empty()) { in PrintPtableInfo()
439 LOG(INFO) << "partition count = " << std::dec << ptnInfo.size(); in PrintPtableInfo()
440 for (size_t i = 0; i < ptnInfo.size(); i++) { in PrintPtableInfo()
441 …LOG(INFO) << "ptable.entry[" << i << "].name=" << ptnInfo[i].dispName.c_str() << ", startAddr=0x" … in PrintPtableInfo()
442 std::hex << ptnInfo[i].startAddr << ", size=0x" << ptnInfo[i].partitionSize << ", lun=" << in PrintPtableInfo()
443 std::dec << ptnInfo[i].lun; in PrintPtableInfo()
[all …]
Dptable_manager.cpp84 int32_t PtableManager::GetPartitionInfoIndexByName(const std::vector<Ptable::PtnInfo> &ptnInfo, in GetPartitionInfoIndexByName() argument
87 if (ptnInfo.empty() || name.size() == 0) { in GetPartitionInfoIndexByName()
92 for (size_t i = 0; i < ptnInfo.size(); i++) { in GetPartitionInfoIndexByName()
93 if (ptnInfo[i].dispName == name) { in GetPartitionInfoIndexByName()
203 bool PtableManager::GetPartionInfoByName(const std::string &partitionName, Ptable::PtnInfo &ptnInfo in GetPartionInfoByName() argument
211 if (pPtable_->GetPartionInfoByName(standardPtnName, ptnInfo, index)) { in GetPartionInfoByName()
219 bool PtableManager::GetPartionInfoByName(const std::string &partitionName, Ptable::PtnInfo &ptnInfo) in GetPartionInfoByName() argument
222 return GetPartionInfoByName(partitionName, ptnInfo, index); in GetPartionInfoByName()
Dptable_manager.h38 …bool GetPartionInfoByName(const std::string &partitionName, Ptable::PtnInfo &ptnInfo, int32_t &ind…
39 bool GetPartionInfoByName(const std::string &partitionName, Ptable::PtnInfo &ptnInfo);
55 …int32_t GetPartitionInfoIndexByName(const std::vector<Ptable::PtnInfo> &ptnInfo, const std::string…
Dptable.h45 void PrintPtableInfo(const std::vector<PtnInfo> &ptnInfo) const;
46 bool GetPartionInfoByName(const std::string &partitionName, PtnInfo &ptnInfo, int32_t &index);
48 bool LoadPtnInfo(const std::vector<PtnInfo>& ptnInfo);
/base/update/updater/services/flow_update/update_bin/
Dcomponent_processor.cpp227 Ptable::PtnInfo ptnInfo; in GetWritePathAndOffset() local
228 if (!devicePtb.GetPartionInfoByName(partitionName, ptnInfo)) { in GetWritePathAndOffset()
233 char lunIndexName = 'a' + ptnInfo.lun; in GetWritePathAndOffset()
235 offset = ptnInfo.startAddr; in GetWritePathAndOffset()
236 partitionSize = ptnInfo.partitionSize; in GetWritePathAndOffset()
/base/update/updater/services/updater_binary/
Dupdate_processor.cpp409 Ptable::PtnInfo ptnInfo; in GetWritePathAndOffset() local
410 if (!devicePtb.GetPartionInfoByName(partitionName, ptnInfo)) { in GetWritePathAndOffset()
415 char lunIndexName = 'a' + ptnInfo.lun; in GetWritePathAndOffset()
417 offset = ptnInfo.startAddr; in GetWritePathAndOffset()
418 partitionSize = ptnInfo.partitionSize; in GetWritePathAndOffset()