• Home
  • Raw
  • Download

Lines Matching refs:vold

78 using android::vold::BindMount;
79 using android::vold::CreateDir;
80 using android::vold::DeleteDirContents;
81 using android::vold::DeleteDirContentsAndDir;
82 using android::vold::Symlink;
83 using android::vold::Unlink;
84 using android::vold::UnmountTree;
85 using android::vold::VoldNativeService;
138 auto disk = new android::vold::Disk( in updateVirtualDisk()
140 android::vold::Disk::Flags::kAdoptable | android::vold::Disk::Flags::kSd); in updateVirtualDisk()
141 mVirtualDisk = std::shared_ptr<android::vold::Disk>(disk); in updateVirtualDisk()
178 mInternalEmulated = std::shared_ptr<android::vold::VolumeBase>( in start()
179 new android::vold::EmulatedVolume("/data/media")); in start()
221 if (major == kMajorBlockMmc || (android::vold::IsRunningInEmulator() && in handleBlockEvent()
224 flags |= android::vold::Disk::Flags::kSd; in handleBlockEvent()
226 flags |= android::vold::Disk::Flags::kUsb; in handleBlockEvent()
230 new android::vold::Disk(eventPath, device, source->getNickname(), flags); in handleBlockEvent()
231 handleDiskAdded(std::shared_ptr<android::vold::Disk>(disk)); in handleBlockEvent()
253 void VolumeManager::handleDiskAdded(const std::shared_ptr<android::vold::Disk>& disk) { in handleDiskAdded()
303 std::shared_ptr<android::vold::Disk> VolumeManager::findDisk(const std::string& id) { in findDisk()
312 std::shared_ptr<android::vold::VolumeBase> VolumeManager::findVolume(const std::string& id) { in findVolume()
338 void VolumeManager::listVolumes(android::vold::VolumeBase::Type type, in listVolumes()
348 if (android::vold::NormalizeHex(partGuid, normalizedGuid)) { in forgetPartition()
354 std::string keyPath = android::vold::BuildKeyPath(normalizedGuid); in forgetPartition()
425 int VolumeManager::setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol) { in setPrimary()
476 if (!android::vold::Readlinkat(dirfd(dir), "1/ns/mnt", &rootName)) { in remountUid()
505 if (!android::vold::Readlinkat(pidFd, "ns/mnt", &pidName)) { in remountUid()
524 if (!android::vold::Readlinkat(pidFd, "exe", &exeName)) { in remountUid()
548 android::vold::UnmountTree("/storage/"); in remountUid()
622 android::vold::sSleepOnUnmount = false; in shutdown()
631 android::vold::sSleepOnUnmount = true; in shutdown()
677 android::vold::ForceUnmount(path); in unmountAll()
698 auto vol = std::shared_ptr<android::vold::VolumeBase>( in createObb()
699 new android::vold::ObbVolume(id, sourcePath, sourceKey, ownerGid)); in createObb()
724 auto vol = std::shared_ptr<android::vold::VolumeBase>( in createStubVolume()
725 new android::vold::StubVolume(id, sourcePath, mountPath, fsType, fsUuid, fsLabel)); in createStubVolume()
747 return android::vold::MountAppFuse(uid, mountId, device_fd); in mountAppFuse()
751 return android::vold::UnmountAppFuse(uid, mountId); in unmountAppFuse()
755 return android::vold::OpenAppFuseFile(uid, mountId, fileId, flags); in openAppFuseFile()