Lines Matching refs:virtual
51 virtual ~VoldServiceWrapper() = default;
52 virtual binder::Status mountIncFs(
56 virtual binder::Status unmountIncFs(const std::string& dir) const = 0;
57 virtual binder::Status bindMount(const std::string& sourceDir,
59 virtual binder::Status setIncFsMountOptions(
66 virtual ~DataLoaderManagerWrapper() = default;
67 virtual binder::Status bindToDataLoader(
70 virtual binder::Status getDataLoader(MountId mountId,
72 virtual binder::Status unbindFromDataLoader(MountId mountId) const = 0;
94 virtual ~IncFsWrapper() = default;
95 virtual Features features() const = 0;
96 virtual void listExistingMounts(const ExistingMountCallback& cb) const = 0;
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;
109 virtual std::pair<IncFsBlockIndex, IncFsBlockIndex> countFilledBlocks(
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;
119 virtual ErrorCode writeBlocks(std::span<const incfs::DataBlock> blocks) const = 0;
120 virtual ErrorCode reserveSpace(const Control& control, FileId id, IncFsSize size) const = 0;
121 virtual WaitResult waitForPendingReads(
124 virtual ErrorCode setUidReadTimeouts(
128 virtual ErrorCode forEachFile(const Control& control, FileCallback cb) const = 0;
129 virtual ErrorCode forEachIncompleteFile(const Control& control, FileCallback cb) const = 0;
130 virtual std::optional<Metrics> getMetrics(std::string_view sysfsName) const = 0;
131 virtual std::optional<LastReadError> getLastReadError(const Control& control) const = 0;
136 virtual ~AppOpsManagerWrapper() = default;
137 virtual binder::Status checkPermission(const char* permission, const char* operation,
139 virtual void startWatchingMode(int32_t op, const String16& packageName,
141 virtual void stopWatchingMode(const sp<IAppOpsCallback>& callback) = 0;
146 virtual ~JniWrapper() = default;
147 virtual void initializeForCurrentThread() const = 0;
152 virtual ~LooperWrapper() = default;
153 virtual int addFd(int fd, int ident, int events, android::Looper_callbackFunc callback,
155 virtual int removeFd(int fd) = 0;
156 virtual void wake() = 0;
157 virtual int pollAll(int timeoutMillis) = 0;
162 virtual ~TimedQueueWrapper() = default;
163 virtual void addJob(MountId id, Milliseconds after, Job what) = 0;
164 virtual void removeJobs(MountId id) = 0;
165 virtual void stop() = 0;
170 virtual ~FsWrapper() = default;
173 virtual void listFilesRecursive(std::string_view directoryPath, FileCallback onFile) const = 0;
178 virtual ~ClockWrapper() = default;
179 virtual TimePoint now() const = 0;
184 virtual ~ServiceManagerWrapper() = default;
185 virtual std::unique_ptr<VoldServiceWrapper> getVoldService() = 0;
186 virtual std::unique_ptr<DataLoaderManagerWrapper> getDataLoaderManager() = 0;
187 virtual std::unique_ptr<IncFsWrapper> getIncFs() = 0;
188 virtual std::unique_ptr<AppOpsManagerWrapper> getAppOpsManager() = 0;
189 virtual std::unique_ptr<JniWrapper> getJni() = 0;
190 virtual std::unique_ptr<LooperWrapper> getLooper() = 0;
191 virtual std::unique_ptr<TimedQueueWrapper> getTimedQueue() = 0;
192 virtual std::unique_ptr<TimedQueueWrapper> getProgressUpdateJobQueue() = 0;
193 virtual std::unique_ptr<FsWrapper> getFs() = 0;
194 virtual std::unique_ptr<ClockWrapper> getClock() = 0;