Lines Matching refs:vol
189 auto vol = std::shared_ptr<android::vold::VolumeBase>( in start() local
191 vol->setMountUserId(0); in start()
192 vol->create(); in start()
193 mInternalEmulatedVolumes.push_back(vol); in start()
324 for (const auto& vol : mInternalEmulatedVolumes) { in findVolume() local
325 if (vol->getId() == id) { in findVolume()
326 return vol; in findVolume()
330 auto vol = disk->findVolume(id); in findVolume() local
331 if (vol != nullptr) { in findVolume()
332 return vol; in findVolume()
335 for (const auto& vol : mObbVolumes) { in findVolume() local
336 if (vol->getId() == id) { in findVolume()
337 return vol; in findVolume()
376 auto vol = *i; in destroyEmulatedVolumesForUser() local
377 if (vol->getMountUserId() == userId) { in destroyEmulatedVolumesForUser()
378 vol->destroy(); in destroyEmulatedVolumesForUser()
392 for (const auto& vol : pvol->getVolumes()) { in destroyEmulatedVolumesForUser() local
393 if (vol->getMountUserId() == userId) { in destroyEmulatedVolumesForUser()
394 vols_to_remove.push_back(vol); in destroyEmulatedVolumesForUser()
397 for (const auto& vol : vols_to_remove) { in destroyEmulatedVolumesForUser() local
398 vol->destroy(); in destroyEmulatedVolumesForUser()
399 pvol->removeVolume(vol); in destroyEmulatedVolumesForUser()
407 auto vol = std::shared_ptr<android::vold::VolumeBase>( in createEmulatedVolumesForUser() local
409 vol->setMountUserId(userId); in createEmulatedVolumesForUser()
410 mInternalEmulatedVolumes.push_back(vol); in createEmulatedVolumesForUser()
411 vol->create(); in createEmulatedVolumesForUser()
875 for (auto& vol : mInternalEmulatedVolumes) { in handleAppStorageDirs() local
876 if (vol->getMountUserId() == userId && vol->getState() == VolumeBase::State::kMounted) { in handleAppStorageDirs()
877 auto* emulatedVol = static_cast<android::vold::EmulatedVolume*>(vol.get()); in handleAppStorageDirs()
897 for (const auto& vol : mInternalEmulatedVolumes) { in reset() local
898 vol->destroy(); in reset()
918 for (const auto& vol : mInternalEmulatedVolumes) { in shutdown() local
919 vol->destroy(); in shutdown()
938 for (const auto& vol : mInternalEmulatedVolumes) { in unmountAll() local
939 vol->unmount(); in unmountAll()
1000 auto filter_fn = [&](const VolumeBase& vol) { in setupAppDir() argument
1001 if (vol.getState() != VolumeBase::State::kMounted) { in setupAppDir()
1005 if ((vol.getMountFlags() & VolumeBase::MountFlags::kVisible) == 0) { in setupAppDir()
1009 if (vol.getInternalPath().empty()) { in setupAppDir()
1012 if (vol.getMountUserId() != USER_UNKNOWN && in setupAppDir()
1013 vol.getMountUserId() != multiuser_get_user_id(appUid)) { in setupAppDir()
1017 if (!path.empty() && StartsWith(path, vol.getPath())) { in setupAppDir()
1075 auto filter_fn = [&](const VolumeBase& vol) { in createObb() argument
1076 if (vol.getState() != VolumeBase::State::kMounted) { in createObb()
1080 if ((vol.getMountFlags() & VolumeBase::MountFlags::kVisible) == 0) { in createObb()
1084 if (vol.getInternalPath().empty()) { in createObb()
1087 if (!sourcePath.empty() && StartsWith(sourcePath, vol.getPath())) { in createObb()
1105 auto vol = std::shared_ptr<android::vold::VolumeBase>( in createObb() local
1107 vol->create(); in createObb()
1109 mObbVolumes.push_back(vol); in createObb()
1110 *outVolId = vol->getId(); in createObb()
1132 auto vol = std::shared_ptr<android::vold::StubVolume>( in createStubVolume() local
1147 disk->initializePartition(vol); in createStubVolume()
1149 *outVolId = vol->getId(); in createStubVolume()