/base/update/updater/test/unittest/ptable_parse_test/ |
D | ptable_manager_unittest.cpp | 33 …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 …]
|
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/image_writer/ |
D | image_writer.cpp | 39 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/ |
D | ptable.cpp | 47 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 …]
|
D | ptable_manager.cpp | 84 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()
|
D | ptable_manager.h | 38 …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…
|
D | ptable.h | 45 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/ |
D | component_processor.cpp | 227 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/ |
D | update_processor.cpp | 409 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()
|