Home
last modified time | relevance | path

Searched refs:strUserId (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/hiviewdfx/hiappevent/test/unittest/common/native/
H A Dhiappevent_userinfo_test.cpp70 std::string strUserId; variable
71 int ret = HiAppEvent::UserInfo::GetInstance().GetUserId(TEST_USER_ID_NAME, strUserId);
73 ASSERT_NE(strUserId, "");
94 std::string strUserId; variable
95 int ret = HiAppEvent::UserInfo::GetInstance().GetUserId("", strUserId);
97 ASSERT_EQ(strUserId, "");
121 std::string strUserId; variable
122 int ret = HiAppEvent::UserInfo::GetInstance().GetUserId(TEST_USER_ID_NAME, strUserId);
124 ASSERT_EQ(strUserId, "testUserId1");
148 std::string strUserId; variable
[all …]
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
H A Dnapi_hiappevent_userinfo.cpp74 std::string strUserId = NapiUtil::GetString(env, userId); in SetUserId() local
75 if (!IsValidUserIdValue(strUserId)) { in SetUserId()
80 if (HiAppEvent::UserInfo::GetInstance().SetUserId(strName, strUserId) != 0) { in SetUserId()
99 std::string strUserId; in GetUserId() local
100 if (HiAppEvent::UserInfo::GetInstance().GetUserId(strName, strUserId) != 0) { in GetUserId()
104 out = NapiUtil::CreateString(env, strUserId); in GetUserId()
/ohos5.0/base/security/access_token/services/el5filekeymanager/src/
H A Del5_filekey_manager_service_ability.cpp59 std::string strUserId = startReason.GetValue(); in OnStart() local
61 if (StrToInt(strUserId, userId)) { in OnStart()
65 LOG_ERROR("el5 manager start, invalid userId:%{public}s", strUserId.c_str()); in OnStart()
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/
H A Dhiappevent_impl.cpp173 std::string strUserId; in GetUserId() local
174 if (UserInfo::GetInstance().GetUserId(name, strUserId) != 0) { in GetUserId()
178 return {SUCCESS_CODE, strUserId}; in GetUserId()