Lines Matching refs:vold
77 using android::vold::BindMount;
78 using android::vold::CreateDir;
79 using android::vold::DeleteDirContents;
80 using android::vold::DeleteDirContentsAndDir;
81 using android::vold::IsVirtioBlkDevice;
82 using android::vold::Symlink;
83 using android::vold::Unlink;
84 using android::vold::UnmountTree;
85 using android::vold::VoldNativeService;
136 auto disk = new android::vold::Disk( in updateVirtualDisk()
138 android::vold::Disk::Flags::kAdoptable | android::vold::Disk::Flags::kSd); in updateVirtualDisk()
139 mVirtualDisk = std::shared_ptr<android::vold::Disk>(disk); in updateVirtualDisk()
176 mInternalEmulated = std::shared_ptr<android::vold::VolumeBase>( in start()
177 new android::vold::EmulatedVolume("/data/media")); in start()
220 flags |= android::vold::Disk::Flags::kSd; in handleBlockEvent()
222 flags |= android::vold::Disk::Flags::kUsb; in handleBlockEvent()
226 new android::vold::Disk(eventPath, device, source->getNickname(), flags); in handleBlockEvent()
227 handleDiskAdded(std::shared_ptr<android::vold::Disk>(disk)); in handleBlockEvent()
249 void VolumeManager::handleDiskAdded(const std::shared_ptr<android::vold::Disk>& disk) { in handleDiskAdded()
299 std::shared_ptr<android::vold::Disk> VolumeManager::findDisk(const std::string& id) { in findDisk()
308 std::shared_ptr<android::vold::VolumeBase> VolumeManager::findVolume(const std::string& id) { in findVolume()
334 void VolumeManager::listVolumes(android::vold::VolumeBase::Type type, in listVolumes()
344 if (android::vold::NormalizeHex(partGuid, normalizedGuid)) { in forgetPartition()
350 std::string keyPath = android::vold::BuildKeyPath(normalizedGuid); in forgetPartition()
421 int VolumeManager::setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol) { in setPrimary()
472 if (!android::vold::Readlinkat(dirfd(dir), "1/ns/mnt", &rootName)) { in remountUid()
501 if (!android::vold::Readlinkat(pidFd, "ns/mnt", &pidName)) { in remountUid()
520 if (!android::vold::Readlinkat(pidFd, "exe", &exeName)) { in remountUid()
544 android::vold::UnmountTree("/storage/"); in remountUid()
618 android::vold::sSleepOnUnmount = false; in shutdown()
627 android::vold::sSleepOnUnmount = true; in shutdown()
673 android::vold::ForceUnmount(path); in unmountAll()
694 auto vol = std::shared_ptr<android::vold::VolumeBase>( in createObb()
695 new android::vold::ObbVolume(id, sourcePath, sourceKey, ownerGid)); in createObb()
720 auto vol = std::shared_ptr<android::vold::VolumeBase>( in createStubVolume()
721 new android::vold::StubVolume(id, sourcePath, mountPath, fsType, fsUuid, fsLabel)); in createStubVolume()
743 return android::vold::MountAppFuse(uid, mountId, device_fd); in mountAppFuse()
747 return android::vold::UnmountAppFuse(uid, mountId); in unmountAppFuse()
751 return android::vold::OpenAppFuseFile(uid, mountId, fileId, flags); in openAppFuseFile()