Searched refs:vol (Results 1 – 10 of 10) sorted by relevance
134 for (auto vol : mVolumes) { in findVolume() local135 if (vol->getId() == id) { in findVolume()136 return vol; in findVolume()138 auto stackedVol = vol->findVolume(id); in findVolume()147 for (const auto& vol : mVolumes) { in listVolumes() local148 if (vol->getType() == type) { in listVolumes()149 list.push_back(vol->getId()); in listVolumes()179 auto vol = std::shared_ptr<VolumeBase>(new PublicVolume(device)); in createPublicVolume() local182 vol->setSilent(true); in createPublicVolume()183 vol->create(); in createPublicVolume()[all …]
156 for (auto vol : mVolumes) { in findVolume() local157 if (vol->getId() == id) { in findVolume()158 return vol; in findVolume()229 for (const auto& vol : mVolumes) { in unmount() local230 if (vol->destroy()) { in unmount()231 LOG(WARNING) << getId() << " failed to destroy " << vol->getId() in unmount()
163 auto vol = std::shared_ptr<VolumeBase>( in doMount() local165 addVolume(vol); in doMount()166 vol->create(); in doMount()
174 static void bringOffline(const std::shared_ptr<VolumeBase>& vol) { in bringOffline() argument175 vol->destroy(); in bringOffline()176 vol->setSilent(true); in bringOffline()177 vol->create(); in bringOffline()178 vol->setMountFlags(0); in bringOffline()179 vol->mount(); in bringOffline()182 static void bringOnline(const std::shared_ptr<VolumeBase>& vol) { in bringOnline() argument183 vol->destroy(); in bringOnline()184 vol->setSilent(false); in bringOnline()185 vol->create(); in bringOnline()
319 auto vol = VolumeManager::Instance()->findVolume(volId); in mount() local320 if (vol == nullptr) { in mount()324 vol->setMountFlags(mountFlags); in mount()325 vol->setMountUserId(mountUserId); in mount()327 int res = vol->mount(); in mount()329 VolumeManager::Instance()->setPrimary(vol); in mount()339 auto vol = VolumeManager::Instance()->findVolume(volId); in unmount() local340 if (vol == nullptr) { in unmount()343 return translate(vol->unmount()); in unmount()351 auto vol = VolumeManager::Instance()->findVolume(volId); in format() local[all …]
302 auto vol = disk->findVolume(id); in findVolume() local303 if (vol != nullptr) { in findVolume()304 return vol; in findVolume()307 for (const auto& vol : mObbVolumes) { in findVolume() local308 if (vol->getId() == id) { in findVolume()309 return vol; in findVolume()408 int VolumeManager::setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol) { in setPrimary() argument409 mPrimary = vol; in setPrimary()802 auto vol = std::shared_ptr<android::vold::VolumeBase>( in createObb() local804 vol->create(); in createObb()[all …]
81 PrivateVolume* vol = static_cast<PrivateVolume*>(vm->findVolume(id).get()); in addFromVolumeManager() local82 if (vol != nullptr && vol->getState() == VolumeBase::State::kMounted) { in addFromVolumeManager()84 paths->push_back(vol->getPath()); in addFromVolumeManager()87 const std::string& fs_type = vol->getFsType(); in addFromVolumeManager()89 Realpath(vol->getRawDevPath(), &gc_path)) { in addFromVolumeManager()
99 int setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol);
68 VolumeInterface* vol);
46 VolumeInterface* vol) { in Initialize() argument57 instance_->vol_ = vol; in Initialize()