Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 8 of 8) sorted by relevance

/system/vold/
DDisk.cpp96 for (auto vol : mVolumes) { in findVolume() local
97 if (vol->getId() == id) { in findVolume()
98 return vol; in findVolume()
100 auto stackedVol = vol->findVolume(id); in findVolume()
109 for (auto vol : mVolumes) { in listVolumes() local
110 if (vol->getType() == type) { in listVolumes()
111 list.push_back(vol->getId()); in listVolumes()
135 auto vol = std::shared_ptr<VolumeBase>(new PublicVolume(device)); in createPublicVolume() local
138 vol->setSilent(true); in createPublicVolume()
139 vol->create(); in createPublicVolume()
[all …]
DMoveTask.cpp159 static void bringOffline(const std::shared_ptr<VolumeBase>& vol) { in bringOffline() argument
160 vol->destroy(); in bringOffline()
161 vol->setSilent(true); in bringOffline()
162 vol->create(); in bringOffline()
163 vol->setMountFlags(0); in bringOffline()
164 vol->mount(); in bringOffline()
167 static void bringOnline(const std::shared_ptr<VolumeBase>& vol) { in bringOnline() argument
168 vol->destroy(); in bringOnline()
169 vol->setSilent(false); in bringOnline()
170 vol->create(); in bringOnline()
DVolumeBase.cpp155 for (auto vol : mVolumes) { in findVolume() local
156 if (vol->getId() == id) { in findVolume()
157 return vol; in findVolume()
222 for (auto vol : mVolumes) { in unmount() local
223 if (vol->destroy()) { in unmount()
224 LOG(WARNING) << getId() << " failed to destroy " << vol->getId() in unmount()
DTrimTask.cpp57 auto vol = vm->findVolume(id); in TrimTask() local
58 if (vol != nullptr && vol->getState() == VolumeBase::State::kMounted) { in TrimTask()
59 mPaths.push_back(vol->getPath()); in TrimTask()
DCommandListener.cpp206 auto vol = vm->findVolume(id); in runCommand() local
207 if (vol == nullptr) { in runCommand()
214 vol->setMountFlags(mountFlags); in runCommand()
215 vol->setMountUserId(mountUserId); in runCommand()
217 int res = vol->mount(); in runCommand()
219 vm->setPrimary(vol); in runCommand()
226 auto vol = vm->findVolume(id); in runCommand() local
227 if (vol == nullptr) { in runCommand()
231 return sendGenericOkFail(cli, vol->unmount()); in runCommand()
237 auto vol = vm->findVolume(id); in runCommand() local
[all …]
DPrivateVolume.cpp172 auto vol = std::shared_ptr<VolumeBase>( in doMount() local
174 addVolume(vol); in doMount()
175 vol->create(); in doMount()
DVolumeManager.cpp364 auto vol = disk->findVolume(id); in findVolume() local
365 if (vol != nullptr) { in findVolume()
366 return vol; in findVolume()
385 auto vol = findVolume(id); in benchmarkPrivate() local
386 if (vol != nullptr && vol->getState() == android::vold::VolumeBase::State::kMounted) { in benchmarkPrivate()
387 path = vol->getPath(); in benchmarkPrivate()
466 int VolumeManager::setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol) { in setPrimary() argument
467 mPrimary = vol; in setPrimary()
DVolumeManager.h132 int setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol);