Home | History | Annotate | Download | only in vold

Lines Matching full:vold

71 static const char* kPathVirtualDisk = "/data/misc/vold/virtual_disk";
120 auto disk = new android::vold::Disk("virtual", buf.st_rdev, "virtual",
121 android::vold::Disk::Flags::kAdoptable | android::vold::Disk::Flags::kSd);
122 mVirtualDisk = std::shared_ptr<android::vold::Disk>(disk);
159 mInternalEmulated = std::shared_ptr<android::vold::VolumeBase>(
160 new android::vold::EmulatedVolume("/data/media"));
203 || (android::vold::IsRunningInEmulator()
206 flags |= android::vold::Disk::Flags::kSd;
208 flags |= android::vold::Disk::Flags::kUsb;
211 auto disk = new android::vold::Disk(eventPath, device,
213 handleDiskAdded(std::shared_ptr<android::vold::Disk>(disk));
235 void VolumeManager::handleDiskAdded(const std::shared_ptr<android::vold::Disk>& disk) {
285 std::shared_ptr<android::vold::Disk> VolumeManager::findDisk(const std::string& id) {
294 std::shared_ptr<android::vold::VolumeBase> VolumeManager::findVolume(const std::string& id) {
295 // Vold could receive "mount" after "shutdown" command in the extreme case.
315 void VolumeManager::listVolumes(android::vold::VolumeBase::Type type,
325 if (android::vold::NormalizeHex(partGuid, normalizedGuid)) {
331 std::string keyPath = android::vold::BuildKeyPath(normalizedGuid);
346 if (mPrimary->getType() == android::vold::VolumeBase::Type::kEmulated) {
408 int VolumeManager::setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol) {
461 if (!android::vold::Readlinkat(dirfd(dir), "1/ns/mnt", &rootName)) {
490 if (!android::vold::Readlinkat(pidFd, "ns/mnt", &pidName)) {
588 android::vold::sSleepOnUnmount = false;
596 android::vold::sSleepOnUnmount = true;
636 android::vold::ForceUnmount(path);
643 // Only offer to create directories for paths managed by vold
672 android::vold::ForceUnmount(path);
741 if (!android::vold::Readlinkat(dir.get(), "1/ns/mnt", &rootName)
742 || !android::vold::Readlinkat(pid_fd.get(), "ns/mnt", &pidName)) {
802 auto vol = std::shared_ptr<android::vold::VolumeBase>(
803 new android::vold::ObbVolume(id, sourcePath, sourceKey, ownerGid));
836 const android::status_t result = android::vold::PrepareDir(path, 0700, 0, 0);