Home
last modified time | relevance | path

Searched refs:strUserProperty (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/hiviewdfx/hiappevent/test/unittest/common/native/
H A Dhiappevent_userinfo_test.cpp172 std::string strUserProperty; variable
173 …nt ret = HiAppEvent::UserInfo::GetInstance().GetUserProperty(TEST_USER_PROP_NAME, strUserProperty);
175 ASSERT_NE(strUserProperty, "");
196 std::string strUserProperty; variable
197 int ret = HiAppEvent::UserInfo::GetInstance().GetUserProperty("", strUserProperty);
199 ASSERT_EQ(strUserProperty, "");
223 std::string strUserProperty; variable
224 …nt ret = HiAppEvent::UserInfo::GetInstance().GetUserProperty(TEST_USER_PROP_NAME, strUserProperty);
226 ASSERT_EQ(strUserProperty, "testUserProperty1");
250 std::string strUserProperty; variable
[all …]
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
H A Dnapi_hiappevent_userinfo.cpp131 std::string strUserProperty = NapiUtil::GetString(env, userProperty); in SetUserProperty() local
132 if (!IsValidUserPropValue(strUserProperty)) { in SetUserProperty()
137 if (HiAppEvent::UserInfo::GetInstance().SetUserProperty(strName, strUserProperty) != 0) { in SetUserProperty()
156 std::string strUserProperty; in GetUserProperty() local
157 if (HiAppEvent::UserInfo::GetInstance().GetUserProperty(strName, strUserProperty) != 0) { in GetUserProperty()
161 out = NapiUtil::CreateString(env, strUserProperty); in GetUserProperty()
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/
H A Dhiappevent_impl.cpp199 std::string strUserProperty; in GetUserProperty() local
200 if (UserInfo::GetInstance().GetUserProperty(name, strUserProperty) != 0) { in GetUserProperty()
204 return {SUCCESS_CODE, strUserProperty}; in GetUserProperty()