Searched refs:OH_Preferences_SetString (Results 1 - 4 of 4) sorted by relevance
/foundation/distributeddatamgr/preferences/test/ndk/unittest/ |
H A D | preferences_ndk_value_test.cpp | 143 errCode = OH_Preferences_SetString(nullptr, stringKey.c_str(), "test"); in HWTEST_F() 154 errCode = OH_Preferences_SetString(pref, "", "test"); in HWTEST_F() 159 errCode = OH_Preferences_SetString(pref, nullptr, "test"); in HWTEST_F() 164 errCode = OH_Preferences_SetString(pref, stringKey.c_str(), "123 test"); in HWTEST_F() 283 errCode = OH_Preferences_SetString(pref, stringKey.c_str(), "test"); in HWTEST_F() 285 errCode = OH_Preferences_SetString(pref, stringKey.append("a").c_str(), "test"); in HWTEST_F() 288 errCode = OH_Preferences_SetString(pref, "test", stringValue.c_str()); in HWTEST_F() 290 errCode = OH_Preferences_SetString(pref, "test", stringValue.append("a").c_str()); in HWTEST_F() 315 EXPECT_EQ(OH_Preferences_SetString(pref, "abc", ""), PREFERENCES_OK); in HWTEST_F() 355 EXPECT_EQ(OH_Preferences_SetString(pre in HWTEST_F() [all...] |
H A D | preferences_ndk_test.cpp | 145 EXPECT_EQ(OH_Preferences_SetString(pref, key.c_str(), value.c_str()), PREFERENCES_OK); in SetAllValuesWithCheck() 246 EXPECT_EQ(OH_Preferences_SetString(pref, key, value), PREFERENCES_OK); in HWTEST_F() 389 EXPECT_EQ(OH_Preferences_SetString(pref, key, newValue), PREFERENCES_OK); in HWTEST_F() 528 EXPECT_EQ(OH_Preferences_SetString(pref, key.c_str(), newValue), PREFERENCES_OK); in HWTEST_F()
|
/foundation/distributeddatamgr/preferences/interfaces/ndk/include/ |
H A D | oh_preferences.h | 211 int OH_Preferences_SetString(OH_Preferences *preference, const char *key, const char *value);
|
/foundation/distributeddatamgr/preferences/frameworks/ndk/src/ |
H A D | oh_preferences.cpp | 330 int OH_Preferences_SetString(OH_Preferences *preference, const char *key, const char *value) in OH_Preferences_SetString() function
|
Completed in 5 milliseconds