Searched refs:vol (Results 1 – 10 of 10) sorted by relevance
144 for (auto vol : mVolumes) { in findVolume() local145 if (vol->getId() == id) { in findVolume()146 return vol; in findVolume()148 auto stackedVol = vol->findVolume(id); in findVolume()157 for (const auto& vol : mVolumes) { in listVolumes() local158 if (vol->getType() == type) { in listVolumes()159 list.push_back(vol->getId()); in listVolumes()189 auto vol = std::shared_ptr<VolumeBase>(new PublicVolume(device)); in createPublicVolume() local192 vol->setSilent(true); in createPublicVolume()193 vol->create(); in createPublicVolume()[all …]
163 for (auto vol : mVolumes) { in findVolume() local164 if (vol->getId() == id) { in findVolume()165 return vol; in findVolume()234 for (const auto& vol : mVolumes) { in unmount() local235 if (vol->destroy()) { in unmount()236 LOG(WARNING) << getId() << " failed to destroy " << vol->getId() << " stacked above"; in unmount()
161 auto vol = std::shared_ptr<VolumeBase>(new EmulatedVolume(mediaPath, mRawDevice, mFsUuid)); in doMount() local162 addVolume(vol); in doMount()163 vol->create(); in doMount()
180 static void bringOffline(const std::shared_ptr<VolumeBase>& vol) { in bringOffline() argument181 vol->destroy(); in bringOffline()182 vol->setSilent(true); in bringOffline()183 vol->create(); in bringOffline()184 vol->setMountFlags(0); in bringOffline()185 vol->mount(); in bringOffline()188 static void bringOnline(const std::shared_ptr<VolumeBase>& vol) { in bringOnline() argument189 vol->destroy(); in bringOnline()190 vol->setSilent(false); in bringOnline()191 vol->create(); in bringOnline()
320 auto vol = disk->findVolume(id); in findVolume() local321 if (vol != nullptr) { in findVolume()322 return vol; in findVolume()325 for (const auto& vol : mStubVolumes) { in findVolume() local326 if (vol->getId() == id) { in findVolume()327 return vol; in findVolume()330 for (const auto& vol : mObbVolumes) { in findVolume() local331 if (vol->getId() == id) { in findVolume()332 return vol; in findVolume()425 int VolumeManager::setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol) { in setPrimary() argument[all …]
334 auto vol = VolumeManager::Instance()->findVolume(volId); in mount() local335 if (vol == nullptr) { in mount()339 vol->setMountFlags(mountFlags); in mount()340 vol->setMountUserId(mountUserId); in mount()342 int res = vol->mount(); in mount()347 res = VolumeManager::Instance()->setPrimary(vol); in mount()360 auto vol = VolumeManager::Instance()->findVolume(volId); in unmount() local361 if (vol == nullptr) { in unmount()364 return translate(vol->unmount()); in unmount()372 auto vol = VolumeManager::Instance()->findVolume(volId); in format() local[all …]
90 PrivateVolume* vol = static_cast<PrivateVolume*>(vm->findVolume(id).get()); in addFromVolumeManager() local91 if (vol != nullptr && vol->getState() == VolumeBase::State::kMounted) { in addFromVolumeManager()93 paths->push_back(vol->getPath()); in addFromVolumeManager()96 const std::string& fs_type = vol->getFsType(); in addFromVolumeManager()97 if (fs_type == "f2fs" && (Realpath(vol->getRawDmDevPath(), &gc_path) || in addFromVolumeManager()98 Realpath(vol->getRawDevPath(), &gc_path))) { in addFromVolumeManager()
96 int setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol);
68 VolumeInterface* vol);
62 VolumeInterface* vol) { in Initialize() argument73 instance_->vol_ = vol; in Initialize()