Home
last modified time | relevance | path

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

/system/vold/model/
DDisk.cpp134 for (auto vol : mVolumes) { in findVolume() local
135 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() local
148 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() local
182 vol->setSilent(true); in createPublicVolume()
183 vol->create(); in createPublicVolume()
[all …]
DVolumeBase.cpp156 for (auto vol : mVolumes) { in findVolume() local
157 if (vol->getId() == id) { in findVolume()
158 return vol; in findVolume()
229 for (const auto& vol : mVolumes) { in unmount() local
230 if (vol->destroy()) { in unmount()
231 LOG(WARNING) << getId() << " failed to destroy " << vol->getId() in unmount()
DPrivateVolume.cpp163 auto vol = std::shared_ptr<VolumeBase>( in doMount() local
165 addVolume(vol); in doMount()
166 vol->create(); in doMount()
/system/vold/
DMoveStorage.cpp174 static void bringOffline(const std::shared_ptr<VolumeBase>& vol) { in bringOffline() argument
175 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() argument
183 vol->destroy(); in bringOnline()
184 vol->setSilent(false); in bringOnline()
185 vol->create(); in bringOnline()
DVoldNativeService.cpp319 auto vol = VolumeManager::Instance()->findVolume(volId); in mount() local
320 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() local
340 if (vol == nullptr) { in unmount()
343 return translate(vol->unmount()); in unmount()
351 auto vol = VolumeManager::Instance()->findVolume(volId); in format() local
[all …]
DVolumeManager.cpp302 auto vol = disk->findVolume(id); in findVolume() local
303 if (vol != nullptr) { in findVolume()
304 return vol; in findVolume()
307 for (const auto& vol : mObbVolumes) { in findVolume() local
308 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() argument
409 mPrimary = vol; in setPrimary()
802 auto vol = std::shared_ptr<android::vold::VolumeBase>( in createObb() local
804 vol->create(); in createObb()
[all …]
DIdleMaint.cpp81 PrivateVolume* vol = static_cast<PrivateVolume*>(vm->findVolume(id).get()); in addFromVolumeManager() local
82 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()
DVolumeManager.h99 int setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol);
/system/bt/profile/avrcp/
Dconnection_handler.h68 VolumeInterface* vol);
Dconnection_handler.cc46 VolumeInterface* vol) { in Initialize() argument
57 instance_->vol_ = vol; in Initialize()