Lines Matching refs:StorageId
59 using StorageId = int; variable
86 using IfsStateCallback = std::function<bool(StorageId, IfsState)>;
97 static constexpr StorageId kInvalidStorageId = -1;
98 static constexpr StorageId kMaxStorageId = std::numeric_limits<int>::max() - 1;
99 static constexpr StorageId kAllStoragesId = kMaxStorageId + 1;
154 StorageId createStorage(std::string_view mountPoint,
157 StorageId createLinkedStorage(std::string_view mountPoint, StorageId linkedStorage,
159 StorageId openStorage(std::string_view path);
161 bool startLoading(StorageId storage, content::pm::DataLoaderParamsParcel dataLoaderParams,
166 void onInstallationComplete(StorageId storage);
168 int bind(StorageId storage, std::string_view source, std::string_view target, BindKind kind);
169 int unbind(StorageId storage, std::string_view target);
170 void deleteStorage(StorageId storage);
172 void disallowReadLogs(StorageId storage);
173 int setStorageParams(StorageId storage, bool enableReadLogs);
175 int makeFile(StorageId storage, std::string_view path, int mode, FileId id,
177 int makeDir(StorageId storage, std::string_view path, int mode = 0755);
178 int makeDirs(StorageId storage, std::string_view path, int mode = 0755);
180 int link(StorageId sourceStorageId, std::string_view oldPath, StorageId destStorageId,
182 int unlink(StorageId storage, std::string_view path);
184 incfs::LoadingState isFileFullyLoaded(StorageId storage, std::string_view filePath) const;
185 incfs::LoadingState isMountFullyLoaded(StorageId storage) const;
187 LoadingProgress getLoadingProgress(StorageId storage) const;
189 bool registerLoadingProgressListener(StorageId storage,
191 bool unregisterLoadingProgressListener(StorageId storage);
193 RawMetadata getMetadata(StorageId storage, std::string_view path) const;
194 RawMetadata getMetadata(StorageId storage, FileId node) const;
196 bool configureNativeBinaries(StorageId storage, std::string_view apkFullPath,
199 bool waitForNativeBinariesExtraction(StorageId storage);
327 StorageId storage;
340 using StorageMap = std::unordered_map<StorageId, Storage>;
366 StorageMap::iterator makeStorage(StorageId id);
405 void setUidReadTimeouts(StorageId storage,
407 void clearUidReadTimeouts(StorageId storage);
408 bool checkUidReadTimeouts(StorageId storage, IfsState state, Clock::time_point timeLimit);
414 IfsMountPtr getIfs(StorageId storage) const;
415 const IfsMountPtr& getIfsLocked(StorageId storage) const;
416 int addBindMount(IncFsMount& ifs, StorageId storage, std::string_view storageRoot,
420 int addBindMountWithMd(IncFsMount& ifs, StorageId storage, std::string&& metadataName,
424 void addBindMountRecordLocked(IncFsMount& ifs, StorageId storage, std::string&& metadataName,
435 StorageId findStorageId(std::string_view path) const;
440 std::string normalizePathToStorage(const IncFsMount& incfs, StorageId storage,
445 int makeDirs(const IncFsMount& ifs, StorageId storageId, std::string_view path, int mode);
469 void addIfsStateCallback(StorageId storageId, IfsStateCallback callback);
470 void removeIfsStateCallbacks(StorageId storageId);
472 void processIfsStateCallbacks(StorageId storageId, std::vector<IfsStateCallback>& callbacks);
501 using IfsStateCallbacks = std::map<StorageId, std::vector<IfsStateCallback>>;
506 StorageId mNextId = 0;