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/
H A 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 in TestIsPtableChanged()
159 std::vector<Ptable::PtnInfo> devicePtnInfo; TestIsPartitionChanged() local
[all...]
/base/update/updater/services/ptable_parse/
H A Dptable_manager.cpp107 bool PtableManager::IsPartitionChanged(const std::vector<Ptable::PtnInfo> &devicePtnInfo, in IsPartitionChanged() argument
114 if (devicePtnInfo.empty()) { in IsPartitionChanged()
118 int32_t deviceIndex = GetPartitionInfoIndexByName(devicePtnInfo, partitionName); in IsPartitionChanged()
129 if (devicePtnInfo[deviceIndex].startAddr != pkgPtnInfo[updateIndex].startAddr) { in IsPartitionChanged()
132 devicePtnInfo[deviceIndex].startAddr << ", in package ptable[" << updateIndex << "] startAddr is 0x" << in IsPartitionChanged()
136 if (devicePtnInfo[deviceIndex].partitionSize != pkgPtnInfo[updateIndex].partitionSize) { in IsPartitionChanged()
139 devicePtnInfo[deviceIndex].partitionSize << ", in package ptable[" << updateIndex << in IsPartitionChanged()
146 bool PtableManager::IsPtableChanged(const std::vector<Ptable::PtnInfo> &devicePtnInfo, in IsPtableChanged() argument
153 if (devicePtnInfo.empty() || pkgPtnInfo.size() != devicePtnInfo in IsPtableChanged()
[all...]
H A Dptable_manager.h54 bool IsPartitionChanged(const std::vector<Ptable::PtnInfo> &devicePtnInfo,
56 bool IsPtableChanged(const std::vector<Ptable::PtnInfo> &devicePtnInfo,

Completed in 2 milliseconds