Home
last modified time | relevance | path

Searched refs:FileWatcher (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_watcher/
H A Dwatcher_entity.cpp31 mutex FileWatcher::watchMutex_;
33 FileWatcher::FileWatcher() {} in FileWatcher() function in OHOS::FileManagement::ModuleFileIO::FileWatcher
35 FileWatcher::~FileWatcher() {} in ~FileWatcher()
37 int32_t FileWatcher::GetNotifyId() in GetNotifyId()
42 bool FileWatcher::InitNotify() in InitNotify()
71 int FileWatcher::StartNotify(shared_ptr<WatcherInfoArg> arg) in StartNotify()
117 int FileWatcher::CloseNotifyFd() in CloseNotifyFd()
137 int FileWatcher::StopNotify(shared_ptr<WatcherInfoArg> arg) in StopNotify()
165 void FileWatcher::ReadNotifyEvent(WatcherCallback callback) in ReadNotifyEvent()
179 void FileWatcher::GetNotifyEvent(WatcherCallback callback) in GetNotifyEvent()
[all …]
H A Dwatcher_entity.h46 class FileWatcher : public Singleton<FileWatcher> {
48 FileWatcher();
49 ~FileWatcher();
51 FileWatcher(FileWatcher const &) = delete;
52 void operator=(FileWatcher const &) = delete;
H A Dwatcher_n_exporter.cpp71 int ret = FileWatcher::GetInstance().StopNotify(watchEntity->data_); in Stop()
96 int ret = FileWatcher::GetInstance().StartNotify(watchEntity->data_); in Start()
104 FileWatcher::GetInstance().GetNotifyEvent(WatcherCallback); in Start()
/ohos5.0/base/account/os_account/services/accountmgr/src/
H A Daccount_file_watcher_manager.cpp324 std::shared_ptr<FileWatcher> fileWatcher; in AddFileWatcher()
328 fileWatcher = std::make_shared<FileWatcher>(id, checkCallbackFunc); in AddFileWatcher()
454 FileWatcher::FileWatcher(int32_t id, const CheckNotifyEventCallbackFunc &checkCallbackFunc) in FileWatcher() function in OHOS::AccountSA::FileWatcher
461 FileWatcher::FileWatcher(int32_t id, const std::string &filePath, in FileWatcher() function in OHOS::AccountSA::FileWatcher
466 FileWatcher::~FileWatcher() in ~FileWatcher()
469 std::string FileWatcher::GetFilePath() const in GetFilePath()
474 bool FileWatcher::StartNotify(int32_t fd, const uint32_t &watchEvents) in StartNotify()
484 bool FileWatcher::CheckNotifyEvent(uint32_t event) in CheckNotifyEvent()
497 int32_t FileWatcher::GetLocalId() const in GetLocalId()
502 int32_t FileWatcher::GetWd() const in GetWd()
[all …]
/ohos5.0/base/account/os_account/services/accountmgr/include/
H A Daccount_file_watcher_manager.h33 class FileWatcher {
35 FileWatcher(int32_t id, const CheckNotifyEventCallbackFunc &checkCallbackFunc);
36FileWatcher(int32_t id, const std::string &filePath, const CheckNotifyEventCallbackFunc &checkCall…
37 ~FileWatcher();
80 std::unordered_map<int32_t, std::shared_ptr<FileWatcher>> fileNameMgrMap_;
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dwatcher.cpp34 if (FileWatcher::GetInstance().GetNotifyId() < 0 && !FileWatcher::GetInstance().InitNotify()) { in CreateAndCheckForWatcherEntity()
63 if (!succGetEvent || events <= 0 || !FileWatcher::GetInstance().CheckEventValid(events)) { in ParseParam()
112 bool ret = FileWatcher::GetInstance().AddWatcherInfo(infoArg->fileName, infoArg); in CreateWatcher()