Home
last modified time | relevance | path

Searched refs:checkExist (Results 1 - 19 of 19) sorted by relevance

/foundation/distributeddatamgr/preferences/test/ndk/mock/
H A Dapplication_context.h30 virtual int32_t GetSystemPreferencesDir(const std::string &groupId, bool checkExist,
40 int32_t GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
H A Dapplication_context.cpp35 int32_t ApplicationContext::GetSystemPreferencesDir(const std::string &groupId, bool checkExist, in GetSystemPreferencesDir() argument
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/context/
H A Dcontext_impl.h114 int32_t GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) override;
128 int32_t GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
449 void CreateDirIfNotExistWithCheck(const std::string& dirPath, const mode_t& mode, bool checkExist = true);
450 int32_t GetDatabaseDirWithCheck(bool checkExist, std::string &databaseDir);
451 int32_t GetGroupDatabaseDirWithCheck(const std::string &groupId, bool checkExist, std::string &databaseDir);
452 int32_t GetPreferencesDirWithCheck(bool checkExist, std::string &preferencesDir);
453 int32_t GetGroupPreferencesDirWithCheck(const std::string &groupId, bool checkExist, std::string &preferencesDir);
454 int32_t GetGroupDirWithCheck(const std::string &groupId, bool checkExist, std::string &groupDir);
H A Dcontext.h154 virtual int32_t GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) = 0;
168 virtual int32_t GetSystemPreferencesDir(const std::string &groupId, bool checkExist,
H A Dability_stage_context.h64 int32_t GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) override;
65 int32_t GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
H A Dapplication_context.h103 int32_t GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) override;
104 int32_t GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/
H A Dmock_ability_runtime_context.cpp174 int32_t MockAbilityRuntimeContext::GetSystemDatabaseDir(const std::string &groupId, bool checkExist, in GetSystemDatabaseDir() argument
180 int32_t MockAbilityRuntimeContext::GetSystemPreferencesDir(const std::string &groupId, bool checkExist, in GetSystemPreferencesDir() argument
H A Dmock_ability_runtime_context.h66 int32_t GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) override;
67 int32_t GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_ability_runtime_test/
H A Dmock_context.h56 int32_t GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) override;
58 int32_t GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
H A Dmock_context.cpp190 int32_t MockContext::GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) in GetSystemDatabaseDir() argument
195 int32_t MockContext::GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) in GetSystemPreferencesDir() argument
/foundation/ability/ability_runtime/test/unittest/application_context_second_test/
H A Dmock_context_impl.h49 int32_t GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) override;
51 int32_t GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
H A Dmock_context_impl.cpp87 int32_t MockContextImpl::GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) in GetSystemDatabaseDir() argument
92 int32_t MockContextImpl::GetSystemPreferencesDir(const std::string &groupId, bool checkExist, in GetSystemPreferencesDir() argument
/foundation/ability/ability_runtime/test/unittest/application_context_test/
H A Dmock_context_impl.h49 int32_t GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) override;
51 int32_t GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
H A Dmock_context_impl.cpp87 int32_t MockContextImpl::GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) in GetSystemDatabaseDir() argument
92 int32_t MockContextImpl::GetSystemPreferencesDir(const std::string &groupId, bool checkExist, in GetSystemPreferencesDir() argument
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/
H A Dability_stage_context.cpp274 int32_t AbilityStageContext::GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) in GetSystemDatabaseDir() argument
281 return contextImpl_->GetSystemDatabaseDir(groupId, checkExist, databaseDir); in GetSystemDatabaseDir()
284 int32_t AbilityStageContext::GetSystemPreferencesDir(const std::string &groupId, bool checkExist, in GetSystemPreferencesDir() argument
292 return contextImpl_->GetSystemPreferencesDir(groupId, checkExist, preferencesDir); in GetSystemPreferencesDir()
H A Dcontext_impl.cpp144 void ContextImpl::CreateDirIfNotExistWithCheck(const std::string &dirPath, const mode_t &mode, bool checkExist) in CreateDirIfNotExistWithCheck() argument
146 if (checkExist) { in CreateDirIfNotExistWithCheck()
159 int32_t ContextImpl::GetDatabaseDirWithCheck(bool checkExist, std::string &databaseDir) in GetDatabaseDirWithCheck() argument
171 CreateDirIfNotExistWithCheck(databaseDir, 0, checkExist); in GetDatabaseDirWithCheck()
175 int32_t ContextImpl::GetGroupDatabaseDirWithCheck(const std::string &groupId, bool checkExist, std::string &databaseDir) in GetGroupDatabaseDirWithCheck() argument
177 int32_t ret = GetGroupDirWithCheck(groupId, checkExist, databaseDir); in GetGroupDatabaseDirWithCheck()
182 CreateDirIfNotExistWithCheck(databaseDir, GROUP_MODE, checkExist); in GetGroupDatabaseDirWithCheck()
186 int32_t ContextImpl::GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) in GetSystemDatabaseDir() argument
190 ret = GetDatabaseDirWithCheck(checkExist, databaseDir); in GetSystemDatabaseDir()
192 ret = GetGroupDatabaseDirWithCheck(groupId, checkExist, databaseDi in GetSystemDatabaseDir()
206 GetPreferencesDirWithCheck(bool checkExist, std::string &preferencesDir) GetPreferencesDirWithCheck() argument
213 GetGroupPreferencesDirWithCheck(const std::string &groupId, bool checkExist, std::string &preferencesDir) GetGroupPreferencesDirWithCheck() argument
225 GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) GetSystemPreferencesDir() argument
245 GetGroupDirWithCheck(const std::string &groupId, bool checkExist, std::string &groupDir) GetGroupDirWithCheck() argument
[all...]
H A Dapplication_context.cpp626 int32_t ApplicationContext::GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) in GetSystemDatabaseDir() argument
629 contextImpl_->GetSystemDatabaseDir(groupId, checkExist, databaseDir) : ERR_INVALID_VALUE; in GetSystemDatabaseDir()
632 int32_t ApplicationContext::GetSystemPreferencesDir(const std::string &groupId, bool checkExist, in GetSystemPreferencesDir() argument
636 contextImpl_->GetSystemPreferencesDir(groupId, checkExist, preferencesDir) : ERR_INVALID_VALUE; in GetSystemPreferencesDir()
/foundation/ability/ability_runtime/interfaces/kits/native/ability/ability_runtime/
H A Dability_context_impl.h48 int32_t GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) override;
49 int32_t GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
/foundation/ability/ability_runtime/frameworks/native/ability/ability_runtime/
H A Dability_context_impl.cpp76 int32_t AbilityContextImpl::GetSystemDatabaseDir(const std::string &groupId, bool checkExist, std::string &databaseDir) in GetSystemDatabaseDir() argument
79 stageContext_->GetSystemDatabaseDir(groupId, checkExist, databaseDir) : ERR_INVALID_VALUE; in GetSystemDatabaseDir()
87 int AbilityContextImpl::GetSystemPreferencesDir(const std::string &groupId, bool checkExist, in GetSystemPreferencesDir() argument
91 stageContext_->GetSystemPreferencesDir(groupId, checkExist, preferencesDir) : ERR_INVALID_VALUE; in GetSystemPreferencesDir()

Completed in 12 milliseconds