Lines Matching refs:VolumeManager

74 const char *VolumeManager::SEC_ASECDIR_EXT   = "/mnt/secure/asec";
79 const char *VolumeManager::SEC_ASECDIR_INT = "/data/app-asec";
84 const char *VolumeManager::ASECDIR = "/mnt/asec";
89 const char *VolumeManager::LOOPDIR = "/mnt/obb";
196 VolumeManager *VolumeManager::sInstance = NULL;
198 VolumeManager *VolumeManager::Instance() { in Instance()
200 sInstance = new VolumeManager(); in Instance()
204 VolumeManager::VolumeManager() { in VolumeManager() function in VolumeManager
214 VolumeManager::~VolumeManager() { in ~VolumeManager()
218 char *VolumeManager::asecHash(const char *id, char *buffer, size_t len) { in asecHash()
250 int VolumeManager::setDebug(bool enable) { in setDebug()
255 int VolumeManager::start() { in start()
270 int VolumeManager::stop() { in stop()
277 void VolumeManager::handleBlockEvent(NetlinkEvent *evt) { in handleBlockEvent()
346 void VolumeManager::addDiskSource(const std::shared_ptr<DiskSource>& diskSource) { in addDiskSource()
350 std::shared_ptr<android::vold::Disk> VolumeManager::findDisk(const std::string& id) { in findDisk()
359 std::shared_ptr<android::vold::VolumeBase> VolumeManager::findVolume(const std::string& id) { in findVolume()
372 void VolumeManager::listVolumes(android::vold::VolumeBase::Type type, in listVolumes()
380 nsecs_t VolumeManager::benchmarkPrivate(const std::string& id) { in benchmarkPrivate()
399 int VolumeManager::forgetPartition(const std::string& partGuid) { in forgetPartition()
415 int VolumeManager::linkPrimary(userid_t userId) { in linkPrimary()
437 int VolumeManager::onUserAdded(userid_t userId, int userSerialNumber) { in onUserAdded()
442 int VolumeManager::onUserRemoved(userid_t userId) { in onUserRemoved()
447 int VolumeManager::onUserStarted(userid_t userId) { in onUserStarted()
461 int VolumeManager::onUserStopped(userid_t userId) { in onUserStopped()
466 int VolumeManager::setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol) { in setPrimary()
514 int VolumeManager::remountUid(uid_t uid, const std::string& mode) { in remountUid()
627 int VolumeManager::reset() { in reset()
641 int VolumeManager::shutdown() { in shutdown()
650 int VolumeManager::unmountAll() { in unmountAll()
689 int VolumeManager::getObbMountPath(const char *sourceFile, char *mountPath, int mountPathLen) { in getObbMountPath()
697 int written = snprintf(mountPath, mountPathLen, "%s/%s", VolumeManager::LOOPDIR, idHash); in getObbMountPath()
711 int VolumeManager::getAsecMountPath(const char *id, char *buffer, int maxlen) { in getAsecMountPath()
731 int written = snprintf(buffer, maxlen, "%s/%s", VolumeManager::ASECDIR, id); in getAsecMountPath()
741 int VolumeManager::getAsecFilesystemPath(const char *id, char *buffer, int maxlen) { in getAsecFilesystemPath()
770 int VolumeManager::createAsec(const char *id, unsigned int numSectors, const char *fstype, in createAsec()
812 …const char *asecDir = isExternal ? VolumeManager::SEC_ASECDIR_EXT : VolumeManager::SEC_ASECDIR_INT; in createAsec()
888 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in createAsec()
964 int VolumeManager::resizeAsec(const char *id, unsigned numSectors, const char *key) { in resizeAsec()
980 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in resizeAsec()
1107 int VolumeManager::finalizeAsec(const char *id) { in finalizeAsec()
1141 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in finalizeAsec()
1167 int VolumeManager::fixupAsecPermissions(const char *id, gid_t gid, const char* filename) { in fixupAsecPermissions()
1206 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in fixupAsecPermissions()
1295 int VolumeManager::renameAsec(const char *id1, const char *id2) { in renameAsec()
1321 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id1); in renameAsec()
1333 written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id2); in renameAsec()
1366 int VolumeManager::unmountAsec(const char *id, bool force) { in unmountAsec()
1381 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in unmountAsec()
1396 int VolumeManager::unmountObb(const char *fileName, bool force) { in unmountObb()
1405 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::LOOPDIR, idHash); in unmountObb()
1414 int VolumeManager::unmountLoopImage(const char *id, const char *idHash, in unmountLoopImage()
1502 int VolumeManager::destroyAsec(const char *id, bool force) { in destroyAsec()
1517 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in destroyAsec()
1549 bool VolumeManager::isLegalAsecId(const char *id) const { in isLegalAsecId()
1576 bool VolumeManager::isAsecInDirectory(const char *dir, const char *asecName) const { in isAsecInDirectory()
1592 int VolumeManager::findAsec(const char *id, char *asecPath, size_t asecPathLen, in findAsec()
1608 if (isAsecInDirectory(VolumeManager::SEC_ASECDIR_INT, asecName)) { in findAsec()
1609 dir = VolumeManager::SEC_ASECDIR_INT; in findAsec()
1610 } else if (isAsecInDirectory(VolumeManager::SEC_ASECDIR_EXT, asecName)) { in findAsec()
1611 dir = VolumeManager::SEC_ASECDIR_EXT; in findAsec()
1634 int VolumeManager::mountAsec(const char *id, const char *key, int ownerUid, bool readOnly) { in mountAsec()
1649 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in mountAsec()
1741 int VolumeManager::mountObb(const char *img, const char *key, int ownerGid) { in mountObb()
1750 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::LOOPDIR, idHash); in mountObb()
1825 int VolumeManager::listMountedObbs(SocketClient* cli) { in listMountedObbs()
1833 int loopDirLen = strlen(VolumeManager::LOOPDIR); in listMountedObbs()
1835 strcpy(loopDir, VolumeManager::LOOPDIR); in listMountedObbs()
1858 VolumeManager *vm = VolumeManager::Instance(); in vold_unmountAll()
1862 bool VolumeManager::isMountpointMounted(const char *mp) in isMountpointMounted()
1882 int VolumeManager::mkdirs(char* path) { in mkdirs()