Home | History | Annotate | Download | only in vold

Lines Matching refs:vold

34 #define LOG_TAG "Vold"
92 static const char* kPathVirtualDisk = "/data/misc/vold/virtual_disk";
276 auto disk = new android::vold::Disk("virtual", buf.st_rdev, "virtual",
277 android::vold::Disk::Flags::kAdoptable | android::vold::Disk::Flags::kSd);
279 mVirtualDisk = std::shared_ptr<android::vold::Disk>(disk);
320 mInternalEmulated = std::shared_ptr<android::vold::VolumeBase>(
321 new android::vold::EmulatedVolume("/data/media"));
364 || (android::vold::IsRunningInEmulator()
367 flags |= android::vold::Disk::Flags::kSd;
369 flags |= android::vold::Disk::Flags::kUsb;
372 auto disk = new android::vold::Disk(eventPath, device,
375 mDisks.push_back(std::shared_ptr<android::vold::Disk>(disk));
415 std::shared_ptr<android::vold::Disk> VolumeManager::findDisk(const std::string& id) {
424 std::shared_ptr<android::vold::VolumeBase> VolumeManager::findVolume(const std::string& id) {
437 void VolumeManager::listVolumes(android::vold::VolumeBase::Type type,
451 if (vol != nullptr && vol->getState() == android::vold::VolumeBase::State::kMounted) {
461 return android::vold::BenchmarkPrivate(path);
466 if (android::vold::NormalizeHex(partGuid, normalizedGuid)) {
471 std::string keyPath = android::vold::BuildKeyPath(normalizedGuid);
482 if (mPrimary->getType() == android::vold::VolumeBase::Type::kEmulated) {
531 int VolumeManager::setPrimary(const std::shared_ptr<android::vold
585 if (android::vold::SaneReadLinkAt(dirfd(dir), "1/ns/mnt", rootName, PATH_MAX) == -1) {
610 if (android::vold::SaneReadLinkAt(pidFd, "ns/mnt", pidName, PATH_MAX) == -1) {
748 android::vold::ForceUnmount(path);
965 formatStatus = android::vold::ext4::Format(dmDevice, numImgSectors, mountPoint);
967 formatStatus = android::vold::vfat::Format(dmDevice, numImgSectors);
994 mountStatus = android::vold::ext4::Mount(dmDevice, mountPoint,
997 mountStatus = android::vold::vfat::Mount(dmDevice, mountPoint,
1155 if (android::vold::ext4::Resize(dmDevice, numImgSectors)) {
1212 result = android::vold::ext4::Mount(loopDevice, mountPoint,
1215 result = android::vold::vfat::Mount(loopDevice, mountPoint,
1280 int ret = android::vold::ext4::Mount(loopDevice, mountPoint,
1342 result |= android::vold::ext4::Mount(loopDevice, mountPoint,
1778 result = android::vold::ext4::Mount(dmDevice, mountPoint,
1781 result = android::vold::vfat::Mount(dmDevice, mountPoint,
1871 if (android::vold::vfat::Mount(dmDevice, mountPoint,
1946 // Only offer to create directories for paths managed by vold