Home
last modified time | relevance | path

Searched refs:userProperty (Results 1 - 10 of 10) sorted by relevance

/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/
H A Dapp_event_processor_proxy.cpp108 [&userProperties, this](const auto& userProperty) { in GetValidUserProperties()
109 if (reportConfig_.userPropertyNames.find(userProperty.name) != reportConfig_.userPropertyNames.end() in GetValidUserProperties()
110 && processor_->ValidateUserProperty(userProperty) == 0) { in GetValidUserProperties()
111 userProperties.emplace_back(userProperty); in GetValidUserProperties()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
H A Dnapi_hiappevent_userinfo.cpp108 bool SetUserProperty(const napi_env env, const napi_value name, const napi_value userProperty) in SetUserProperty() argument
120 if (IsStringEmptyOrNull(env, userProperty)) { in SetUserProperty()
127 if (!NapiUtil::IsString(env, userProperty)) { in SetUserProperty()
131 std::string strUserProperty = NapiUtil::GetString(env, userProperty); in SetUserProperty()
H A Dnapi_hiappevent_js_v9.cpp159 HILOG_ERROR(LOG_CORE, "failed to set userProperty"); in SetUserProperty()
172 napi_value userProperty = nullptr; in GetUserProperty() local
173 if (!NapiHiAppEventUserInfo::GetUserProperty(env, params[0], userProperty)) { in GetUserProperty()
174 HILOG_ERROR(LOG_CORE, "failed to get userProperty"); in GetUserProperty()
176 return userProperty; in GetUserProperty()
H A Dnapi_hiappevent_processor.cpp175 for (auto userProperty : userPropertyNames) { in GenConfigUserPropertiesProp()
176 if (!IsValidUserPropName(userProperty)) { in GenConfigUserPropertiesProp()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
H A Dhiappevent_userinfo.cpp114 HILOG_DEBUG(LOG_CORE, "start to set userProperty."); in SetUserProperty()
141 HILOG_DEBUG(LOG_CORE, "start to get userProperty."); in GetUserProperty()
155 HILOG_DEBUG(LOG_CORE, "start to remove userProperty."); in RemoveUserProperty()
206 HiAppEvent::UserProperty userProperty; in GetUserProperties() local
207 userProperty.name = it->first; in GetUserProperties()
208 userProperty.value = it->second; in GetUserProperties()
209 userProperties.emplace_back(userProperty); in GetUserProperties()
/base/hiviewdfx/hiappevent/frameworks/js/napi/include/
H A Dnapi_hiappevent_userinfo.h26 bool SetUserProperty(const napi_env env, const napi_value name, const napi_value userProperty);
/base/hiviewdfx/hiappevent/test/processor/
H A Dtest_processor.h30 int ValidateUserProperty(const UserProperty& userProperty) override;
H A Dtest_processor.cpp82 int TestProcessor::ValidateUserProperty(const UserProperty& userProperty) in ValidateUserProperty() argument
/base/hiviewdfx/hiappevent/interfaces/native/inner_api/include/
H A Dapp_event_processor.h44 virtual int ValidateUserProperty(const UserProperty& userProperty) = 0;
/base/hiviewdfx/hiappevent/test/unittest/common/native/
H A Dhiappevent_inner_api_test.cpp243 int ValidateUserProperty(const UserProperty& userProperty) override;
278 int AppEventProcessorTest::ValidateUserProperty(const UserProperty& userProperty) in ValidateUserProperty() argument
280 return (userProperty.name.find("test") == std::string::npos) ? -1 : 0; in ValidateUserProperty()

Completed in 6 milliseconds