Home
last modified time | relevance | path

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

/system/vold/model/
DDisk.cpp144 for (auto vol : mVolumes) { in findVolume() local
145 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() local
158 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() local
192 vol->setSilent(true); in createPublicVolume()
193 vol->create(); in createPublicVolume()
[all …]
DVolumeBase.cpp163 for (auto vol : mVolumes) { in findVolume() local
164 if (vol->getId() == id) { in findVolume()
165 return vol; in findVolume()
234 for (const auto& vol : mVolumes) { in unmount() local
235 if (vol->destroy()) { in unmount()
236 LOG(WARNING) << getId() << " failed to destroy " << vol->getId() << " stacked above"; in unmount()
DPrivateVolume.cpp161 auto vol = std::shared_ptr<VolumeBase>(new EmulatedVolume(mediaPath, mRawDevice, mFsUuid)); in doMount() local
162 addVolume(vol); in doMount()
163 vol->create(); in doMount()
/system/vold/
DMoveStorage.cpp180 static void bringOffline(const std::shared_ptr<VolumeBase>& vol) { in bringOffline() argument
181 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() argument
189 vol->destroy(); in bringOnline()
190 vol->setSilent(false); in bringOnline()
191 vol->create(); in bringOnline()
DVolumeManager.cpp320 auto vol = disk->findVolume(id); in findVolume() local
321 if (vol != nullptr) { in findVolume()
322 return vol; in findVolume()
325 for (const auto& vol : mStubVolumes) { in findVolume() local
326 if (vol->getId() == id) { in findVolume()
327 return vol; in findVolume()
330 for (const auto& vol : mObbVolumes) { in findVolume() local
331 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 …]
DVoldNativeService.cpp334 auto vol = VolumeManager::Instance()->findVolume(volId); in mount() local
335 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() local
361 if (vol == nullptr) { in unmount()
364 return translate(vol->unmount()); in unmount()
372 auto vol = VolumeManager::Instance()->findVolume(volId); in format() local
[all …]
DIdleMaint.cpp90 PrivateVolume* vol = static_cast<PrivateVolume*>(vm->findVolume(id).get()); in addFromVolumeManager() local
91 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()
DVolumeManager.h96 int setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol);
/system/bt/profile/avrcp/
Dconnection_handler.h68 VolumeInterface* vol);
Dconnection_handler.cc62 VolumeInterface* vol) { in Initialize() argument
73 instance_->vol_ = vol; in Initialize()