/foundation/distributeddatamgr/preferences/test/ndk/mock/ |
H A D | application_context.h | 30 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 D | application_context.cpp | 35 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 D | context_impl.h | 114 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 D | context.h | 154 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 D | ability_stage_context.h | 64 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 D | application_context.h | 103 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 D | mock_ability_runtime_context.cpp | 174 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 D | mock_ability_runtime_context.h | 66 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 D | mock_context.h | 56 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 D | mock_context.cpp | 190 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 D | mock_context_impl.h | 49 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 D | mock_context_impl.cpp | 87 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 D | mock_context_impl.h | 49 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 D | mock_context_impl.cpp | 87 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 D | ability_stage_context.cpp | 274 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 D | context_impl.cpp | 144 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 D | application_context.cpp | 626 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 D | ability_context_impl.h | 48 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 D | ability_context_impl.cpp | 76 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()
|