Home
last modified time | relevance | path

Searched refs:dataGroupId (Results 1 - 25 of 62) sorted by relevance

123

/foundation/distributeddatamgr/preferences/frameworks/cj/src/
H A Dpreferences_ffi.cpp32 const char* dataGroupId, int32_t* errCode) in FfiOHOSPreferencesGetPreferences()
34 auto nativePreferences = FFIData::Create<PreferencesImpl>(context, name, dataGroupId, errCode); in FfiOHOSPreferencesGetPreferences()
42 const char* dataGroupId) in FfiOHOSPreferencesDeletePreferences()
44 return PreferencesImpl::DeletePreferences(context, name, dataGroupId); in FfiOHOSPreferencesDeletePreferences()
48 const char* dataGroupId) in FfiOHOSPreferencesRemovePreferencesFromCache()
50 return PreferencesImpl::RemovePreferencesFromCache(context, name, dataGroupId); in FfiOHOSPreferencesRemovePreferencesFromCache()
31 FfiOHOSPreferencesGetPreferences(OHOS::AbilityRuntime::Context* context, const char* name, const char* dataGroupId, int32_t* errCode) FfiOHOSPreferencesGetPreferences() argument
41 FfiOHOSPreferencesDeletePreferences(OHOS::AbilityRuntime::Context* context, const char* name, const char* dataGroupId) FfiOHOSPreferencesDeletePreferences() argument
47 FfiOHOSPreferencesRemovePreferencesFromCache(OHOS::AbilityRuntime::Context* context, const char* name, const char* dataGroupId) FfiOHOSPreferencesRemovePreferencesFromCache() argument
H A Dpreferences_ffi.h30 const char* dataGroupId, int32_t* errCode);
33 const char* dataGroupId);
36 const char* name, const char* dataGroupId);
H A Dpreferences_impl.h42 const std::string& name, const std::string& dataGroupId, int32_t* errCode);
45 const std::string &dataGroupId);
48 const std::string &dataGroupId);
H A Dpreferences_impl.cpp38 const std::string &dataGroupId) in GetInstancePath()
50 errcode = context->GetSystemPreferencesDir(dataGroupId, false, preferencesDir); in GetInstancePath()
59 const std::string& name, const std::string& dataGroupId, int32_t* errCode) in PreferencesImpl()
66 auto [code, path] = GetInstancePath(context, name, dataGroupId); in PreferencesImpl()
71 NativePreferences::Options options(path, context->GetBundleName(), dataGroupId); in PreferencesImpl()
87 const std::string &dataGroupId) in DeletePreferences()
89 auto [code, path] = GetInstancePath(context, name, dataGroupId); in DeletePreferences()
101 const std::string &dataGroupId) in RemovePreferencesFromCache()
103 auto [code, path] = GetInstancePath(context, name, dataGroupId); in RemovePreferencesFromCache()
37 GetInstancePath(OHOS::AbilityRuntime::Context* context, const std::string &name, const std::string &dataGroupId) GetInstancePath() argument
58 PreferencesImpl(OHOS::AbilityRuntime::Context* context, const std::string& name, const std::string& dataGroupId, int32_t* errCode) PreferencesImpl() argument
86 DeletePreferences(OHOS::AbilityRuntime::Context* context, const std::string &name, const std::string &dataGroupId) DeletePreferences() argument
100 RemovePreferencesFromCache(OHOS::AbilityRuntime::Context* context, const std::string &name, const std::string &dataGroupId) RemovePreferencesFromCache() argument
H A Dpreferences_interface.h62 std::string dataGroupId; member
/foundation/distributeddatamgr/preferences/frameworks/ndk/src/
H A Doh_preferences_option.cpp44 dataGroupId = str; in SetDataGroupId()
59 return dataGroupId; in GetDataGroupId()
100 int OH_PreferencesOption_SetDataGroupId(OH_PreferencesOption *option, const char *dataGroupId) in OH_PreferencesOption_SetDataGroupId() argument
102 if (option == nullptr || dataGroupId == nullptr || in OH_PreferencesOption_SetDataGroupId()
105 LOG_ERROR("set option's dataGroupId failed, option is null: %{public}d, " in OH_PreferencesOption_SetDataGroupId()
106 "dataGroupId is null: %{public}d, errCode: %{public}d", (option == nullptr), in OH_PreferencesOption_SetDataGroupId()
107 (dataGroupId == nullptr), OH_Preferences_ErrCode::PREFERENCES_ERROR_INVALID_PARAM); in OH_PreferencesOption_SetDataGroupId()
110 option->SetDataGroupId(std::string(dataGroupId)); in OH_PreferencesOption_SetDataGroupId()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Ddata_group_info.cpp27 const char* DATA_GROUP_ID = "dataGroupId";
36 dataGroupId = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel()
47 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(dataGroupId)); in Marshalling()
70 {DATA_GROUP_ID, dataGroupInfo.dataGroupId}, in to_json()
85 dataGroupInfo.dataGroupId, in from_json()
125 return "[ dataGroupId = " + dataGroupId in ToString()
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/
H A Djs_ability.cpp37 const std::string &dataGroupId, ContextInfo &contextInfo) in GetContextInfo()
41 int errcode = stageContext->GetSystemPreferencesDir(dataGroupId, false, contextInfo.preferencesDir); in GetContextInfo()
54 if (!dataGroupId.empty()) { in GetContextInfo()
55 LOG_ERROR("dataGroupId should be empty in fa mode"); in GetContextInfo()
36 GetContextInfo(napi_env env, napi_value value, const std::string &dataGroupId, ContextInfo &contextInfo) GetContextInfo() argument
/foundation/distributeddatamgr/preferences/frameworks/native/include/
H A Dpreferences_xml_utils.h35 const std::string &dataGroupId, std::vector<Element> &settings);
37 const std::string &dataGroupId, const std::vector<Element> &settings);
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/mock/cross_platform/src/
H A Djs_ability.cpp29 const std::string &dataGroupId, ContextInfo &contextInfo) in GetContextInfo()
31 if (!dataGroupId.empty()) { in GetContextInfo()
28 GetContextInfo(napi_env env, napi_value value, const std::string &dataGroupId, ContextInfo &contextInfo) GetContextInfo() argument
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/mock/src/
H A Djs_ability.cpp31 const std::string &dataGroupId, ContextInfo &contextInfo) in GetContextInfo()
33 if (!dataGroupId.empty()) { in GetContextInfo()
30 GetContextInfo(napi_env env, napi_value value, const std::string &dataGroupId, ContextInfo &contextInfo) GetContextInfo() argument
/foundation/distributeddatamgr/preferences/frameworks/native/platform/src/
H A Dpreferences_file_lock.cpp48 PreferencesFileLock::PreferencesFileLock(const std::string &path, const std::string &dataGroupId) in PreferencesFileLock() argument
52 if (dataGroupId.empty()) { in PreferencesFileLock()
96 PreferencesFileLock::PreferencesFileLock(const std::string &path, const std::string &dataGroupId) in PreferencesFileLock() argument
/foundation/distributeddatamgr/preferences/frameworks/native/src/
H A Dpreferences_xml_utils.cpp128 static xmlDoc *XmlReadFile(const std::string &fileName, const std::string &bundleName, const std::string &dataGroupId) in XmlReadFile() argument
132 PreferencesFileLock fileLock(MakeFilePath(fileName, STR_LOCK), dataGroupId); in XmlReadFile() local
164 const std::string &dataGroupId, std::vector<Element> &settings) in ReadSettingXml()
172 std::shared_ptr<xmlDoc>(XmlReadFile(fileName, bundleName, dataGroupId), [](xmlDoc *doc) { xmlFreeDoc(doc); }); in ReadSettingXml()
326 const std::string &fileName, const std::string &bundleName, const std::string &dataGroupId, xmlDoc *doc) in XmlSaveFormatFileEnc()
328 PreferencesFileLock fileLock(MakeFilePath(fileName, STR_LOCK), dataGroupId); in XmlSaveFormatFileEnc() local
368 const std::string &dataGroupId, const std::vector<Element> &settings) in WriteSettingXml()
408 bool result = XmlSaveFormatFileEnc(fileName, bundleName, dataGroupId, doc.get()); in WriteSettingXml()
163 ReadSettingXml(const std::string &fileName, const std::string &bundleName, const std::string &dataGroupId, std::vector<Element> &settings) ReadSettingXml() argument
325 XmlSaveFormatFileEnc( const std::string &fileName, const std::string &bundleName, const std::string &dataGroupId, xmlDoc *doc) XmlSaveFormatFileEnc() argument
367 WriteSettingXml(const std::string &fileName, const std::string &bundleName, const std::string &dataGroupId, const std::vector<Element> &settings) WriteSettingXml() argument
H A Dpreferences_helper.cpp197 std::string dataGroupId = ""; in DeletePreferences() local
205 dataGroupId = pref->GetGroupId(); in DeletePreferences()
225 PreferencesFileLock fileLock(lockFilePath, dataGroupId); in DeletePreferences()
233 if (!dataGroupId.empty()) { in DeletePreferences()
/foundation/distributeddatamgr/preferences/frameworks/js/napi/sendable_preferences/src/
H A Dnapi_preferences_helper.cpp31 constexpr const char *DATA_GROUP_ID = "dataGroupId";
38 std::string dataGroupId; member
63 PRE_CHECK_RETURN_ERR_SET(Utils::ConvertFromSendable(env, temp, context->dataGroupId) == napi_ok, in ParseParameters()
64 std::make_shared<ParamTypeError>("The dataGroupId must be string.")); in ParseParameters()
69 std::shared_ptr<JSError> err = JSAbility::GetContextInfo(env, argv[0], context->dataGroupId, contextInfo); in ParseParameters()
86 Options options(context->path, context->bundleName, context->dataGroupId); in GetPreferences()
/foundation/distributeddatamgr/preferences/frameworks/js/napi/preferences/src/
H A Dnapi_preferences_helper.cpp30 constexpr const char* DATA_GROUP_ID = "dataGroupId";
37 std::string dataGroupId; member
62 PRE_CHECK_RETURN_ERR_SET(JSUtils::Convert2NativeValue(env, temp, context->dataGroupId) == napi_ok, in ParseParameters()
63 std::make_shared<ParamTypeError>("The dataGroupId must be string.")); in ParseParameters()
68 std::shared_ptr<JSError> err = JSAbility::GetContextInfo(env, argv[0], context->dataGroupId, contextInfo); in ParseParameters()
85 Options options(context->path, context->bundleName, context->dataGroupId); in GetPreferences()
/foundation/distributeddatamgr/preferences/test/js/unittest/preferences/src/
H A DPreferencesHelperJsunit.test.js94 await data_preferences.getPreferences(context, { name: NAME, dataGroupId: "123456" });
184 await data_preferences.removePreferencesFromCache(context, { name: NAME, dataGroupId: "123456" });
228 await data_preferences.deletePreferences(context, { name: NAME, dataGroupId: "123456" });
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_data_group_test/
H A Dbms_bundle_data_group_test.cpp114 dataGroupInfo.dataGroupId = DATA_GROUP_ID_TEST_ONE; in HWTEST_F()
133 dataGroupInfo.dataGroupId = DATA_GROUP_ID_TEST_ONE; in HWTEST_F()
147 oldDataGroupInfo.dataGroupId = DATA_GROUP_ID_TEST_TWO; in HWTEST_F()
237 dataGroupInfo.dataGroupId = DATA_GROUP_ID_TEST_ONE; in HWTEST_F()
267 dataGroupInfo.dataGroupId = DATA_GROUP_ID_TEST_ONE; in HWTEST_F()
391 dataGroupInfo.dataGroupId = DATA_GROUP_ID_TEST_ONE; in HWTEST_F()
416 dataGroupInfo.dataGroupId = DATA_GROUP_ID_TEST_ONE; in HWTEST_F()
445 dataGroupInfo.dataGroupId = DATA_GROUP_ID_TEST_ONE; in HWTEST_F()
529 dataGroupInfo.dataGroupId = DATA_GROUP_ID_TEST_THREE; in HWTEST_F()
/foundation/distributeddatamgr/preferences/interfaces/ndk/include/
H A Doh_preferences_option.h95 * @param dataGroupId Represents preferences data group id param.
102 int OH_PreferencesOption_SetDataGroupId(OH_PreferencesOption *option, const char *dataGroupId);
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Ddata_group_info.h28 std::string dataGroupId; member
/foundation/distributeddatamgr/preferences/interfaces/inner_api/include/
H A Dpreferences.h43 : filePath(inputFilePath), bundleName(inputbundleName), dataGroupId(inputdataGroupId) in Options()
48 bool inputIsEnhance) : filePath(inputFilePath), bundleName(inputbundleName), dataGroupId(inputdataGroupId), in Options()
56 std::string dataGroupId{ "" };
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/include/
H A Djs_ability.h40 const std::string &dataGroupId, ContextInfo &contextInfo);
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/mock/cross_platform/include/
H A Djs_ability.h40 const std::string &dataGroupId, ContextInfo &contextInfo);
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/mock/include/
H A Djs_ability.h38 const std::string &dataGroupId, ContextInfo &contextInfo);
/foundation/distributeddatamgr/preferences/frameworks/native/platform/include/
H A Dpreferences_file_lock.h38 PreferencesFileLock(const std::string &path, const std::string &dataGroupId);

Completed in 12 milliseconds

123