Lines Matching refs:constants
99 static const Constants& constants() { in constants() function
172 return std::string(constants().mountKeyPrefix) += res; in toMountKey()
237 return makeUniqueName(constants().mountpointMdPrefix); in makeBindMdName()
241 const auto markerPath = path::c_str(path::join(root, constants().readLogsDisabledMarkerName)); in checkReadLogsDisabledMarker()
260 incrementalService.mVold->unmountIncFs(path::join(root, constants().mount)); in ~IncFsMount()
269 base::StringAppendF(&name, "%.*s_%d_%d", int(constants().storagePrefix.size()), in makeStorage()
270 constants().storagePrefix.data(), id, no); in makeStorage()
271 auto fullName = path::join(root, constants().mount, name); in makeStorage()
335 rmDirContent(path::join(root, constants().backing).c_str()); in cleanupFilesystem()
336 ::rmdir(path::join(root, constants().backing).c_str()); in cleanupFilesystem()
337 ::rmdir(path::join(root, constants().mount).c_str()); in cleanupFilesystem()
641 auto mountTarget = path::join(mountRoot, constants().mount); in createStorage()
642 const auto backing = path::join(mountRoot, constants().backing); in createStorage()
718 path::join(ifs->root, constants().mount, in createStorage()
719 constants().infoMdName), in createStorage()
907 const auto metadata = constants().readLogsDisabledMarkerName; in disallowReadLogs()
909 path::join(ifs->root, constants().mount, in disallowReadLogs()
910 constants().readLogsDisabledMarkerName), in disallowReadLogs()
1143 mIncFs->unlink(ifs->control, path::join(ifs->root, constants().mount, savedFile)); in unbind()
1308 metadataFullPath = path::join(ifs.root, constants().mount, mdFileName); in addBindMount()
1462 if (path::basename(root) != constants().mount || in adoptMountedInstances()
1463 path::basename(backingDir) != constants().backing) { in adoptMountedInstances()
1473 if (!path::basename(expectedRoot).starts_with(constants().mountKeyPrefix)) { in adoptMountedInstances()
1501 path::join(root, constants().infoMdName)); in adoptMountedInstances()
1536 if (name.starts_with(constants().mountpointMdPrefix)) { in adoptMountedInstances()
1558 if (name.starts_with(constants().storagePrefix)) { in adoptMountedInstances()
1561 std::from_chars(name.data() + constants().storagePrefix.size() + 1, in adoptMountedInstances()
1661 if (!name.starts_with(constants().mountKeyPrefix)) { in mountExistingImages()
1675 auto mountTarget = path::join(root, constants().mount); in mountExistingImage()
1676 const auto backing = path::join(root, constants().backing); in mountExistingImage()
1698 path::join(mountTarget, constants().infoMdName)); in mountExistingImage()
1730 if (name.starts_with(constants().mountpointMdPrefix)) { in mountExistingImage()
1739 mIncFs->unlink(ifs->control, path::join(ifs->root, constants().mount, name)); in mountExistingImage()
1747 if (name.starts_with(constants().storagePrefix)) { in mountExistingImage()
1749 const auto res = std::from_chars(name.data() + constants().storagePrefix.size() + 1, in mountExistingImage()
1764 path::join(root, constants().mount, name)}); in mountExistingImage()
1830 std::move(healthListener), path::join(ifs.root, constants().mount)); in prepareDataLoaderLocked()
1915 const auto libFilePrefix = path::join(constants().libDir, abi) += "/"; in configureNativeBinaries()
1916 if (StartIteration(zipFile.get(), &cookie, libFilePrefix, constants().libSuffix)) { in configureNativeBinaries()
2151 const int numBlocks = (data.size() + constants().blockSize - 1) / constants().blockSize; in setFileContent()
2154 const auto blockSize = std::min<long>(constants().blockSize, data.size()); in setFileContent()