Home
last modified time | relevance | path

Searched refs:preferencesDir (Results 1 – 25 of 48) sorted by relevance

12

/ohos5.0/foundation/distributeddatamgr/preferences/test/ndk/mock/
H A Dapplication_context.cpp36 std::string &preferencesDir) in GetSystemPreferencesDir() argument
38 preferencesDir = "/data/test"; in GetSystemPreferencesDir()
H A Dapplication_context.h31 std::string &preferencesDir) = 0;
40 …mPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/mock/src/
H A Djs_ability.cpp40 contextInfo.preferencesDir = baseDir + "\\HuaweiDevEcoStudioPreferences"; in GetContextInfo()
48 contextInfo.preferencesDir = baseDir + "/HuaweiDevEcoStudioPreferences"; in GetContextInfo()
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/
H A Djs_ability.cpp41 …nt errcode = stageContext->GetSystemPreferencesDir(dataGroupId, false, contextInfo.preferencesDir); in GetContextInfo()
70 abilityContext->GetSystemPreferencesDir("", false, contextInfo.preferencesDir); in GetContextInfo()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app/context/
H A Dcontext.js141 get preferencesDir() {
142 return this.__context_impl__.preferencesDir;
/ohos5.0/docs/zh-cn/application-dev/application-models/
H A Dapplication-context-stage.md93 | preferencesDir | <路径前缀>/<加密等级>/base/preferences |
130 let preferencesDir = applicationContext.preferencesDir;
158 | preferencesDir | <路径前缀>/<加密等级>/base/**haps/\<module-name>**/preferences |
194 let preferencesDir = this.context.preferencesDir;
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/
H A Dcontext_impl.cpp206 int32_t ContextImpl::GetPreferencesDirWithCheck(bool checkExist, std::string &preferencesDir) in GetPreferencesDirWithCheck() argument
208 preferencesDir = GetBaseDir() + CONTEXT_FILE_SEPARATOR + CONTEXT_PREFERENCES; in GetPreferencesDirWithCheck()
209 CreateDirIfNotExistWithCheck(preferencesDir, MODE, checkExist); in GetPreferencesDirWithCheck()
214 std::string &preferencesDir) in GetGroupPreferencesDirWithCheck() argument
216 int32_t ret = GetGroupDirWithCheck(groupId, checkExist, preferencesDir); in GetGroupPreferencesDirWithCheck()
220 preferencesDir = preferencesDir + CONTEXT_FILE_SEPARATOR + CONTEXT_PREFERENCES; in GetGroupPreferencesDirWithCheck()
221 CreateDirIfNotExistWithCheck(preferencesDir, GROUP_MODE, checkExist); in GetGroupPreferencesDirWithCheck()
225 …::GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) in GetSystemPreferencesDir() argument
229 ret = GetPreferencesDirWithCheck(checkExist, preferencesDir); in GetSystemPreferencesDir()
231 ret = GetGroupPreferencesDirWithCheck(groupId, checkExist, preferencesDir); in GetSystemPreferencesDir()
[all …]
H A Dability_stage_context.cpp285 std::string &preferencesDir) in GetSystemPreferencesDir() argument
292 return contextImpl_->GetSystemPreferencesDir(groupId, checkExist, preferencesDir); in GetSystemPreferencesDir()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app/application_context/
H A Dapplication_context.js252 get preferencesDir() {
253 return this.__context_impl__.preferencesDir;
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/include/
H A Djs_ability.h35 std::string preferencesDir; member
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/mock/cross_platform/include/
H A Djs_ability.h35 std::string preferencesDir; member
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/mock/include/
H A Djs_ability.h33 std::string preferencesDir; member
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/mock/cross_platform/src/
H A Djs_ability.cpp39 contextInfo.preferencesDir = stageContext->GetPreferencesDir(); in GetContextInfo()
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/context/
H A Dcontext_impl.h128 …mPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
452 int32_t GetPreferencesDirWithCheck(bool checkExist, std::string &preferencesDir);
453 …pPreferencesDirWithCheck(const std::string &groupId, bool checkExist, std::string &preferencesDir);
H A Dability_stage_context.h65 …mPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
H A Dcontext.h169 std::string &preferencesDir) = 0;
/ohos5.0/docs/en/application-dev/application-models/
H A Dapplication-context-stage.md95 | preferencesDir | \<Path prefix>/\<Encryption level>/base/preferences|
132 let preferencesDir = applicationContext.preferencesDir;
160 | preferencesDir | \<Path prefix>/\<Encryption level>/base/**haps/\<module-name>**/preferences|
196 let preferencesDir = this.context.preferencesDir;
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/cj/src/
H A Dpreferences_impl.cpp49 std::string preferencesDir; in GetInstancePath() local
50 errcode = context->GetSystemPreferencesDir(dataGroupId, false, preferencesDir); in GetInstancePath()
54 tempContext->path = preferencesDir.append("/").append(tempContext->name); in GetInstancePath()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/application_context_test/
H A Dmock_context_impl.h51 …mPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
H A Dmock_context_impl.cpp93 std::string &preferencesDir) in GetSystemPreferencesDir() argument
/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/
H A Dmock_ability_runtime_context.cpp181 std::string &preferencesDir) in GetSystemPreferencesDir() argument
H A Dmock_ability_runtime_context.h67 …mPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_ability_runtime_test/
H A Dmock_context.h58 …mPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) override;
H A Dmock_context.cpp195 …::GetSystemPreferencesDir(const std::string &groupId, bool checkExist, std::string &preferencesDir) in GetSystemPreferencesDir() argument
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_ability_common/
H A Dfeature_ability_common.h131 std::string preferencesDir; member

12