Home
last modified time | relevance | path

Searched refs:contentResult (Results 1 - 11 of 11) sorted by relevance

/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi_convert_content.cpp124 napi_value contentResult = nullptr; in GetNotificationBasicContent() local
131 napi_get_named_property(env, result, "normal", &contentResult); in GetNotificationBasicContent()
132 NAPI_CALL(env, napi_typeof(env, contentResult, &valuetype)); in GetNotificationBasicContent()
139 if (GetNotificationBasicContentDetailed(env, contentResult, normalContent) == nullptr) { in GetNotificationBasicContent()
149 const napi_env &env, const napi_value &contentResult, std::shared_ptr<NotificationBasicContent> basicContent) in GetNotificationBasicContentDetailed()
158 auto value = AppExecFwk::GetPropertyValueByPropertyName(env, contentResult, "title", napi_string); in GetNotificationBasicContentDetailed()
172 value = AppExecFwk::GetPropertyValueByPropertyName(env, contentResult, "text", napi_string); in GetNotificationBasicContentDetailed()
186 NAPI_CALL(env, napi_has_named_property(env, contentResult, "additionalText", &hasProperty)); in GetNotificationBasicContentDetailed()
188 value = AppExecFwk::GetPropertyValueByPropertyName(env, contentResult, "additionalText", napi_string); in GetNotificationBasicContentDetailed()
199 return GetLockScreenPicture(env, contentResult, basicConten in GetNotificationBasicContentDetailed()
148 GetNotificationBasicContentDetailed( const napi_env &env, const napi_value &contentResult, std::shared_ptr<NotificationBasicContent> basicContent) GetNotificationBasicContentDetailed() argument
208 napi_value contentResult = nullptr; GetNotificationLongTextContent() local
235 GetNotificationLongTextContentDetailed( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationLongTextContent> &longContent) GetNotificationLongTextContentDetailed() argument
321 napi_value contentResult = nullptr; GetNotificationPictureContent() local
347 GetNotificationPictureContentDetailed(const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationPictureContent> &pictureContent) GetNotificationPictureContentDetailed() argument
429 napi_value contentResult = nullptr; GetNotificationConversationalContent() local
469 GetNotificationConversationalContentByUser( const napi_env &env, const napi_value &contentResult, MessageUser &user) GetNotificationConversationalContentByUser() argument
656 GetNotificationConversationalContentTitle( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationConversationalContent> &conversationalContent) GetNotificationConversationalContentTitle() argument
686 GetNotificationConversationalContentGroup( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationConversationalContent> &conversationalContent) GetNotificationConversationalContentGroup() argument
715 GetNotificationConversationalContentMessages( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationConversationalContent> &conversationalContent) GetNotificationConversationalContentMessages() argument
906 napi_value contentResult = nullptr; GetNotificationMultiLineContent() local
1026 GetLockScreenPicture( const napi_env &env, const napi_value &contentResult, std::shared_ptr<NotificationBasicContent> basicContent) GetLockScreenPicture() argument
[all...]
H A Dnotification_napi_convert_liveview.cpp39 napi_value contentResult = nullptr; in GetNotificationLocalLiveViewContent() local
46 napi_get_named_property(env, result, "systemLiveView", &contentResult); in GetNotificationLocalLiveViewContent()
47 NAPI_CALL(env, napi_typeof(env, contentResult, &valuetype)); in GetNotificationLocalLiveViewContent()
55 if (GetNotificationLocalLiveViewContentDetailed(env, contentResult, localLiveViewContent) == nullptr) { in GetNotificationLocalLiveViewContent()
68 const napi_env &env, const napi_value &contentResult, in GetNotificationLocalLiveViewCapsule()
81 NAPI_CALL(env, napi_has_named_property(env, contentResult, "capsule", &hasProperty)); in GetNotificationLocalLiveViewCapsule()
83 napi_get_named_property(env, contentResult, "capsule", &capsuleResult); in GetNotificationLocalLiveViewCapsule()
142 const napi_env &env, const napi_value &contentResult, in GetNotificationLocalLiveViewButton()
156 napi_get_named_property(env, contentResult, "button", &buttonResult); in GetNotificationLocalLiveViewButton()
222 napi_value NotificationNapi::GetNotificationLocalLiveViewProgress(const napi_env &env, const napi_value &contentResult, in GetNotificationLocalLiveViewProgress() argument
67 GetNotificationLocalLiveViewCapsule( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationLocalLiveViewContent> content) GetNotificationLocalLiveViewCapsule() argument
141 GetNotificationLocalLiveViewButton( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationLocalLiveViewContent> content) GetNotificationLocalLiveViewButton() argument
288 GetNotificationLocalLiveViewTime(const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationLocalLiveViewContent> content) GetNotificationLocalLiveViewTime() argument
368 GetNotificationLocalLiveViewContentDetailed( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationLocalLiveViewContent> content) GetNotificationLocalLiveViewContentDetailed() argument
433 napi_value contentResult = AppExecFwk::GetPropertyValueByPropertyName(env, result, "liveView", napi_object); GetNotificationLiveViewContent() local
449 GetNotificationLiveViewContentDetailed( const napi_env &env, const napi_value &contentResult, std::shared_ptr<NotificationLiveViewContent> &liveViewContent) GetNotificationLiveViewContentDetailed() argument
[all...]
H A Dnotification_napi.cpp392 napi_value contentResult = nullptr; in GetNotificationContentType() local
399 napi_get_named_property(env, result, "notificationContentType", &contentResult); in GetNotificationContentType()
400 NAPI_CALL(env, napi_typeof(env, contentResult, &valuetype)); in GetNotificationContentType()
405 napi_get_value_int32(env, contentResult, &type); in GetNotificationContentType()
414 napi_get_named_property(env, result, "contentType", &contentResult); in GetNotificationContentType()
415 NAPI_CALL(env, napi_typeof(env, contentResult, &valuetype)); in GetNotificationContentType()
420 napi_get_value_int32(env, contentResult, &type); in GetNotificationContentType()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon_convert_content.cpp72 napi_value contentResult = nullptr; in SetNotificationContentDetailed() local
73 napi_create_object(env, &contentResult); in SetNotificationContentDetailed()
76 ret = SetNotificationBasicContent(env, basicContent.get(), contentResult); in SetNotificationContentDetailed()
79 ret = SetNotificationLongTextContent(env, basicContent.get(), contentResult); in SetNotificationContentDetailed()
82 ret = SetNotificationPictureContent(env, basicContent.get(), contentResult); in SetNotificationContentDetailed()
85 ret = SetNotificationConversationalContent(env, basicContent.get(), contentResult); in SetNotificationContentDetailed()
88 ret = SetNotificationMultiLineContent(env, basicContent.get(), contentResult); in SetNotificationContentDetailed()
91 ret = SetNotificationLocalLiveViewContent(env, basicContent.get(), contentResult); in SetNotificationContentDetailed()
94 ret = SetNotificationLiveViewContent(env, basicContent.get(), contentResult); in SetNotificationContentDetailed()
102 napi_set_named_property(env, result, propertyName, contentResult); in SetNotificationContentDetailed()
512 napi_value contentResult = nullptr; GetNotificationBasicContent() local
541 GetNotificationBasicContentDetailed( const napi_env &env, const napi_value &contentResult, std::shared_ptr<NotificationBasicContent> basicContent) GetNotificationBasicContentDetailed() argument
601 napi_value contentResult = nullptr; GetNotificationLongTextContent() local
633 GetNotificationLongTextContentDetailed( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationLongTextContent> &longContent) GetNotificationLongTextContentDetailed() argument
719 napi_value contentResult = nullptr; GetNotificationPictureContent() local
749 GetNotificationPictureContentDetailed(const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationPictureContent> &pictureContent) GetNotificationPictureContentDetailed() argument
831 napi_value contentResult = nullptr; GetNotificationConversationalContent() local
876 GetNotificationConversationalContentByUser( const napi_env &env, const napi_value &contentResult, MessageUser &user) GetNotificationConversationalContentByUser() argument
1060 GetNotificationConversationalContentTitle( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationConversationalContent> &conversationalContent) GetNotificationConversationalContentTitle() argument
1090 GetNotificationConversationalContentGroup( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationConversationalContent> &conversationalContent) GetNotificationConversationalContentGroup() argument
1119 GetNotificationConversationalContentMessages( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationConversationalContent> &conversationalContent) GetNotificationConversationalContentMessages() argument
1306 napi_value contentResult = nullptr; GetNotificationMultiLineContent() local
1431 GetLockScreenPicture( const napi_env &env, const napi_value &contentResult, std::shared_ptr<NotificationBasicContent> basicContent) GetLockScreenPicture() argument
[all...]
H A Dcommon_convert_liveview.cpp390 napi_value contentResult = nullptr; in GetNotificationLocalLiveViewContent() local
397 napi_get_named_property(env, result, "systemLiveView", &contentResult); in GetNotificationLocalLiveViewContent()
398 NAPI_CALL(env, napi_typeof(env, contentResult, &valuetype)); in GetNotificationLocalLiveViewContent()
411 if (GetNotificationLocalLiveViewContentDetailed(env, contentResult, localLiveViewContent) == nullptr) { in GetNotificationLocalLiveViewContent()
424 const napi_env &env, const napi_value &contentResult, in GetNotificationLocalLiveViewCapsule()
437 NAPI_CALL(env, napi_has_named_property(env, contentResult, "capsule", &hasProperty)); in GetNotificationLocalLiveViewCapsule()
439 napi_get_named_property(env, contentResult, "capsule", &capsuleResult); in GetNotificationLocalLiveViewCapsule()
563 const napi_env &env, const napi_value &contentResult, in GetNotificationLocalLiveViewButton()
577 napi_get_named_property(env, contentResult, "button", &buttonResult); in GetNotificationLocalLiveViewButton()
671 napi_value Common::GetNotificationLocalLiveViewProgress(const napi_env &env, const napi_value &contentResult, in GetNotificationLocalLiveViewProgress() argument
423 GetNotificationLocalLiveViewCapsule( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationLocalLiveViewContent> content) GetNotificationLocalLiveViewCapsule() argument
562 GetNotificationLocalLiveViewButton( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationLocalLiveViewContent> content) GetNotificationLocalLiveViewButton() argument
737 GetNotificationLocalLiveViewTime(const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationLocalLiveViewContent> content) GetNotificationLocalLiveViewTime() argument
817 GetNotificationLocalLiveViewContentDetailed( const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationLocalLiveViewContent> content) GetNotificationLocalLiveViewContentDetailed() argument
882 napi_value contentResult = AppExecFwk::GetPropertyValueByPropertyName(env, result, "liveView", napi_object); GetNotificationLiveViewContent() local
903 GetNotificationLiveViewContentDetailed( const napi_env &env, const napi_value &contentResult, std::shared_ptr<NotificationLiveViewContent> &liveViewContent) GetNotificationLiveViewContentDetailed() argument
[all...]
H A Dcommon.cpp663 napi_value contentResult = nullptr; in GetNotificationContentType() local
670 napi_get_named_property(env, result, "notificationContentType", &contentResult); in GetNotificationContentType()
671 NAPI_CALL(env, napi_typeof(env, contentResult, &valuetype)); in GetNotificationContentType()
676 napi_get_value_int32(env, contentResult, &type); in GetNotificationContentType()
685 napi_get_named_property(env, result, "contentType", &contentResult); in GetNotificationContentType()
686 NAPI_CALL(env, napi_typeof(env, contentResult, &valuetype)); in GetNotificationContentType()
691 napi_get_value_int32(env, contentResult, &type); in GetNotificationContentType()
H A Dcommon_convert_request.cpp295 napi_value contentResult = nullptr; in SetNotificationRequestByCustom() local
296 napi_create_object(env, &contentResult); in SetNotificationRequestByCustom()
297 if (!SetNotificationContent(env, content, contentResult)) { in SetNotificationRequestByCustom()
301 napi_set_named_property(env, result, "content", contentResult); in SetNotificationRequestByCustom()
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/
H A Dnotification_utils.h261 bool GetNotificationBasicContentDetailed(CNotificationBasicContent* contentResult,
263 bool GetNotificationBasicContent(CNotificationBasicContent* contentResult,
265 bool GetNotificationLongTextContentDetailed(CNotificationLongTextContent* contentResult,
267 bool GetNotificationLongTextContent(CNotificationLongTextContent* contentResult,
269 bool GetNotificationPictureContentDetailed(CNotificationPictureContent* contentResult,
271 bool GetNotificationPictureContent(CNotificationPictureContent* contentResult,
275 bool GetNotificationMultiLineContent(CNotificationMultiLineContent* contentResult,
277 bool GetNotificationLocalLiveViewCapsule(CNotificationSystemLiveViewContent* contentResult,
279 bool GetNotificationLocalLiveViewButton(CNotificationSystemLiveViewContent* contentResult,
281 bool GetNotificationLocalLiveViewProgress(CNotificationSystemLiveViewContent* contentResult,
[all...]
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_utils.cpp226 bool GetNotificationBasicContentDetailed(CNotificationBasicContent* contentResult, in GetNotificationBasicContentDetailed() argument
231 if (strcpy_s(str, STR_MAX_SIZE, contentResult->title) != EOK) { in GetNotificationBasicContentDetailed()
240 if (strcpy_s(str, STR_MAX_SIZE, contentResult->text) != EOK) { in GetNotificationBasicContentDetailed()
249 if (strcpy_s(str, STR_MAX_SIZE, contentResult->additionalText) != EOK) { in GetNotificationBasicContentDetailed()
255 if (contentResult->lockscreenPicture != -1) { in GetNotificationBasicContentDetailed()
256 auto pixelMap = FFIData::GetData<Media::PixelMapImpl>(contentResult->lockscreenPicture); in GetNotificationBasicContentDetailed()
266 bool GetNotificationBasicContent(CNotificationBasicContent* contentResult, NotificationRequest &request) in GetNotificationBasicContent() argument
274 if (!GetNotificationBasicContentDetailed(contentResult, normalContent)) { in GetNotificationBasicContent()
282 CNotificationLongTextContent* contentResult, in GetNotificationLongTextContentDetailed()
289 tempContent->title = contentResult in GetNotificationLongTextContentDetailed()
281 GetNotificationLongTextContentDetailed( CNotificationLongTextContent* contentResult, std::shared_ptr<NotificationLongTextContent> &longContent) GetNotificationLongTextContentDetailed() argument
330 GetNotificationLongTextContent( CNotificationLongTextContent* contentResult, NotificationRequest &request) GetNotificationLongTextContent() argument
348 GetNotificationPictureContentDetailed( CNotificationPictureContent* contentResult, std::shared_ptr<NotificationPictureContent> &pictureContent) GetNotificationPictureContentDetailed() argument
394 GetNotificationPictureContent( CNotificationPictureContent* contentResult, NotificationRequest &request) GetNotificationPictureContent() argument
432 GetNotificationMultiLineContent( CNotificationMultiLineContent* contentResult, NotificationRequest &request) GetNotificationMultiLineContent() argument
483 GetNotificationLocalLiveViewCapsule(CNotificationSystemLiveViewContent* contentResult, std::shared_ptr<NotificationLocalLiveViewContent> &content) GetNotificationLocalLiveViewCapsule() argument
514 GetNotificationLocalLiveViewButton(CNotificationSystemLiveViewContent* contentResult, std::shared_ptr<NotificationLocalLiveViewContent> &content) GetNotificationLocalLiveViewButton() argument
549 GetNotificationLocalLiveViewProgress(CNotificationSystemLiveViewContent* contentResult, std::shared_ptr<NotificationLocalLiveViewContent> &content) GetNotificationLocalLiveViewProgress() argument
566 GetNotificationLocalLiveViewTime(CNotificationSystemLiveViewContent* contentResult, std::shared_ptr<NotificationLocalLiveViewContent> &content) GetNotificationLocalLiveViewTime() argument
585 GetNotificationLocalLiveViewContentDetailed(CNotificationSystemLiveViewContent* contentResult, std::shared_ptr<NotificationLocalLiveViewContent> &content) GetNotificationLocalLiveViewContentDetailed() argument
629 GetNotificationLocalLiveViewContent(CNotificationSystemLiveViewContent* contentResult, NotificationRequest &request) GetNotificationLocalLiveViewContent() argument
[all...]
/base/location/frameworks/js/napi/notification/include/
H A Dnotification_napi.h832 * @param contentResult Indicates a js object to be converted
837 const napi_env &env, const napi_value &contentResult, std::shared_ptr<NotificationBasicContent> basicContent);
854 * @param contentResult Indicates a js object to be converted
859 const napi_env &env, const napi_value &contentResult,
877 * @param contentResult Indicates a js object to be converted
882 const napi_env &env, const napi_value &contentResult,
900 * @param contentResult Indicates a js object to be converted
905 const napi_env &env, const napi_value &contentResult,
912 * @param contentResult Indicates a js object to be converted
917 const napi_env &env, const napi_value &contentResult,
[all...]
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Dcommon.h1220 * @param contentResult Indicates a js object to be converted
1225 const napi_env &env, const napi_value &contentResult, std::shared_ptr<NotificationBasicContent> basicContent);
1242 * @param contentResult Indicates a js object to be converted
1247 const napi_env &env, const napi_value &contentResult,
1265 * @param contentResult Indicates a js object to be converted
1270 const napi_env &env, const napi_value &contentResult,
1288 * @param contentResult Indicates a js object to be converted
1293 const napi_env &env, const napi_value &contentResult,
1300 * @param contentResult Indicates a js object to be converted
1305 const napi_env &env, const napi_value &contentResult,
[all...]

Completed in 15 milliseconds