Home
last modified time | relevance | path

Searched refs:devicePtnInfo (Results 1 – 3 of 3) sorted by relevance

/base/update/updater/test/unittest/ptable_parse_test/
Dptable_manager_unittest.cpp38 bool TestIsPtableChanged(const std::vector<Ptable::PtnInfo> &devicePtnInfo, in TestIsPtableChanged() argument
41 return IsPtableChanged(devicePtnInfo, pkgPtnInfo); in TestIsPtableChanged()
53 bool TestIsPartitionChanged(const std::vector<Ptable::PtnInfo> &devicePtnInfo, in TestIsPartitionChanged() argument
56 return IsPartitionChanged(devicePtnInfo, pkgPtnInfo, partitionName); in TestIsPartitionChanged()
93 std::vector<Ptable::PtnInfo> devicePtnInfo; in TestIsPtableChanged() local
95 bool ret = context.TestIsPtableChanged(devicePtnInfo, pkgPtnInfo); in TestIsPtableChanged()
99 ret = context.TestIsPtableChanged(devicePtnInfo, pkgPtnInfo); in TestIsPtableChanged()
101 devicePtnInfo.push_back(tmp); in TestIsPtableChanged()
102 ret = context.TestIsPtableChanged(devicePtnInfo, pkgPtnInfo); in TestIsPtableChanged()
104 devicePtnInfo.push_back(tmp); in TestIsPtableChanged()
[all …]
/base/update/updater/services/ptable_parse/
Dptable_manager.cpp100 bool PtableManager::IsPartitionChanged(const std::vector<Ptable::PtnInfo> &devicePtnInfo, in IsPartitionChanged() argument
107 if (devicePtnInfo.empty()) { in IsPartitionChanged()
111 int32_t deviceIndex = GetPartitionInfoIndexByName(devicePtnInfo, partitionName); in IsPartitionChanged()
122 if (devicePtnInfo[deviceIndex].startAddr != pkgPtnInfo[updateIndex].startAddr) { in IsPartitionChanged()
125devicePtnInfo[deviceIndex].startAddr << ", in package ptable[" << updateIndex << "] startAddr is 0… in IsPartitionChanged()
129 if (devicePtnInfo[deviceIndex].partitionSize != pkgPtnInfo[updateIndex].partitionSize) { in IsPartitionChanged()
132 devicePtnInfo[deviceIndex].partitionSize << ", in package ptable[" << updateIndex << in IsPartitionChanged()
139 bool PtableManager::IsPtableChanged(const std::vector<Ptable::PtnInfo> &devicePtnInfo, in IsPtableChanged() argument
146 if (devicePtnInfo.empty() || pkgPtnInfo.size() != devicePtnInfo.size()) { in IsPtableChanged()
151 if (devicePtnInfo[i].dispName != pkgPtnInfo[i].dispName) { in IsPtableChanged()
[all …]
Dptable_manager.h51 bool IsPartitionChanged(const std::vector<Ptable::PtnInfo> &devicePtnInfo,
53 bool IsPtableChanged(const std::vector<Ptable::PtnInfo> &devicePtnInfo,