Lines Matching refs:PtableManager
24 std::string PtableManager::ptbImgTag_ = "";
25 // class PtableManager
26 PtableManager::PtableManager() : pPtable_(nullptr)
29 PtableManager::ptbImgTag_ = "ptable.img";
32 PtableManager::StorageType PtableManager::GetDeviceStorageType()
37 void PtableManager::SetDeviceStorageType()
51 bool PtableManager::IsUfsDevice()
56 void PtableManager::ReloadDevicePartition(Hpackage::PkgManager *pkgManager)
61 void PtableManager::InitPtablePtr()
78 bool PtableManager::InitPtableManager()
91 int32_t PtableManager::GetPartitionInfoIndexByName(const std::vector<Ptable::PtnInfo> &ptnInfo,
107 bool PtableManager::IsPartitionChanged(const std::vector<Ptable::PtnInfo> &devicePtnInfo,
146 bool PtableManager::IsPtableChanged(const std::vector<Ptable::PtnInfo> &devicePtnInfo,
184 bool PtableManager::WritePtableToDevice()
198 void PtableManager::PrintPtableInfo()
210 bool PtableManager::GetPartionInfoByName(const std::string &partitionName, Ptable::PtnInfo &ptnInfo, int32_t &index)
229 bool PtableManager::GetPartionInfoByName(const std::string &partitionName, Ptable::PtnInfo &ptnInfo)
235 void PtableManager::RegisterPtable(uint32_t bitIndex, PtableConstructor constructor)
244 bool PtableManager::IsCompositePtable()
255 uint32_t PtableManager::GetBootdevType()
269 void PtableManager::InitCompositePtable()
289 PackagePtable::PackagePtable() : PtableManager() {}
337 const Hpackage::FileInfo *info = pkgManager->GetFileInfo(PtableManager::ptbImgTag_);
341 LOG(ERROR) << "Can not get file info " << PtableManager::ptbImgTag_;
347 (void)pkgManager->CreatePkgStream(outStream, PtableManager::ptbImgTag_, info->unpackedSize,
354 if (pkgManager->ExtractFile(PtableManager::ptbImgTag_, outStream) != Hpackage::PKG_SUCCESS) {
373 DevicePtable::DevicePtable() : PtableManager() {}
392 bool DevicePtable::ComparePartition(PtableManager &newPtbManager, const std::string partitionName)
407 bool DevicePtable::ComparePtable(PtableManager &newPtbManager)