Lines Matching refs:Control
77 using Control = incfs::Control;
90 using FileCallback = android::base::function_ref<bool(const Control& control, FileId fileId)>;
97 virtual Control openMount(std::string_view path) const = 0;
98 virtual Control createControl(IncFsFd cmd, IncFsFd pendingReads, IncFsFd logs,
100 virtual ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId id,
102 virtual ErrorCode makeMappedFile(const Control& control, std::string_view path, int mode,
104 virtual ErrorCode makeDir(const Control& control, std::string_view path, int mode) const = 0;
105 virtual ErrorCode makeDirs(const Control& control, std::string_view path, int mode) const = 0;
106 virtual incfs::RawMetadata getMetadata(const Control& control, FileId fileid) const = 0;
107 virtual incfs::RawMetadata getMetadata(const Control& control, std::string_view path) const = 0;
108 virtual FileId getFileId(const Control& control, std::string_view path) const = 0;
110 const Control& control, std::string_view path) const = 0;
111 virtual incfs::LoadingState isFileFullyLoaded(const Control& control,
113 virtual incfs::LoadingState isFileFullyLoaded(const Control& control, FileId id) const = 0;
114 virtual incfs::LoadingState isEverythingFullyLoaded(const Control& control) const = 0;
115 virtual ErrorCode link(const Control& control, std::string_view from,
117 virtual ErrorCode unlink(const Control& control, std::string_view path) const = 0;
118 virtual UniqueFd openForSpecialOps(const Control& control, FileId id) const = 0;
120 virtual ErrorCode reserveSpace(const Control& control, FileId id, IncFsSize size) const = 0;
122 const Control& control, std::chrono::milliseconds timeout,
125 const Control& control,
128 virtual ErrorCode forEachFile(const Control& control, FileCallback cb) const = 0;
129 virtual ErrorCode forEachIncompleteFile(const Control& control, FileCallback cb) const = 0;
131 virtual std::optional<LastReadError> getLastReadError(const Control& control) const = 0;