Home
last modified time | relevance | path

Searched refs:OH_Preferences_SetString (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/preferences/test/ndk/unittest/
H A Dpreferences_ndk_value_test.cpp143 errCode = OH_Preferences_SetString(nullptr, stringKey.c_str(), "test");
154 errCode = OH_Preferences_SetString(pref, "", "test");
159 errCode = OH_Preferences_SetString(pref, nullptr, "test");
164 errCode = OH_Preferences_SetString(pref, stringKey.c_str(), "123 test");
283 errCode = OH_Preferences_SetString(pref, stringKey.c_str(), "test");
285 errCode = OH_Preferences_SetString(pref, stringKey.append("a").c_str(), "test");
288 errCode = OH_Preferences_SetString(pref, "test", stringValue.c_str());
290 errCode = OH_Preferences_SetString(pref, "test", stringValue.append("a").c_str());
315 EXPECT_EQ(OH_Preferences_SetString(pref, "abc", ""), PREFERENCES_OK);
355 EXPECT_EQ(OH_Preferences_SetString(pref, key.c_str(), ""), PREFERENCES_OK);
H A Dpreferences_ndk_test.cpp141 EXPECT_EQ(OH_Preferences_SetString(pref, key.c_str(), value.c_str()), PREFERENCES_OK); in SetAllValuesWithCheck()
242 EXPECT_EQ(OH_Preferences_SetString(pref, key, value), PREFERENCES_OK);
385 EXPECT_EQ(OH_Preferences_SetString(pref, key, newValue), PREFERENCES_OK);
524 EXPECT_EQ(OH_Preferences_SetString(pref, key.c_str(), newValue), PREFERENCES_OK);
/ohos5.0/foundation/distributeddatamgr/preferences/interfaces/ndk/include/
H A Doh_preferences.h211 int OH_Preferences_SetString(OH_Preferences *preference, const char *key, const char *value);
/ohos5.0/docs/zh-cn/application-dev/database/
H A Dpreferences-guidelines.md25 | int OH_Preferences_SetString (OH_Preferences \*preference, const char \*key, const char \*value) …
157 ret = OH_Preferences_SetString(preference, keys[2], "string value");
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/
H A D_preferences.md59 | int [OH_Preferences_SetString](#oh_preferences_setstring) ([OH_Preferences](#oh_preferences) \*pr…
611 ### OH_Preferences_SetString()
614 int OH_Preferences_SetString (OH_Preferences *preference, const char *key, const char *value )
H A Doh__preferences_8h.md42 | int [OH_Preferences_SetString](_preferences.md#oh_preferences_setstring) ([OH_Preferences](_prefe…
/ohos5.0/docs/en/application-dev/database/
H A Dpreferences-guidelines.md25 | int OH_Preferences_SetString (OH_Preferences \*preference, const char \*key, const char \*value) …
157 ret = OH_Preferences_SetString(preference, keys[2], "string value");
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/
H A Doh__preferences_8h.md42 | int [OH_Preferences_SetString](_preferences.md#oh_preferences_setstring) ([OH_Preferences](_prefe…
H A D_preferences.md58 | int [OH_Preferences_SetString](#oh_preferences_setstring) ([OH_Preferences](#oh_preferences) \*pr…
610 ### OH_Preferences_SetString()
613 int OH_Preferences_SetString (OH_Preferences *preference, const char *key, const char *value )
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/ndk/src/
H A Doh_preferences.cpp330 int OH_Preferences_SetString(OH_Preferences *preference, const char *key, const char *value) in OH_Preferences_SetString() function