/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_live_view_content.cpp | 85 for (auto &picture : pictureMap_) { in Dump() 86 pictureStr += " { key = " + picture.first + ", value = " + in Dump() 87 (picture.second.empty() ? "empty" : "not empty") + " },"; in Dump() 107 for (const auto &picture : pictureMap_) { in PictureToJson() 109 for (const auto &pixelMap : picture.second) { in PictureToJson() 112 pixelMap[picture.first] = pixelRecordArr; in PictureToJson() 149 for (const auto &picture : pictureArray) { in ConvertPictureFromJson() 150 pictureMap_[it.key()].emplace_back(AnsImageUtil::UnPackImage(picture)); in ConvertPictureFromJson() 297 for (const auto &picture : pictureMarshallingMap_) { in MarshallingPictureMap() 298 if (!parcel.WriteString(picture in MarshallingPictureMap() [all...] |
H A D | notification_request.cpp | 2629 auto picture = conversationalContent->GetMessageUser().GetPixelMap(); in CheckImageSizeForConverSation() local 2630 if (CheckImageOverSizeForPixelMap(picture, MAX_ICON_SIZE)) { in CheckImageSizeForConverSation() 2631 ANS_LOGE("The size of picture in ConversationalContent's message user exceeds limit"); in CheckImageSizeForConverSation() 2642 ANS_LOGE("The size of picture in ConversationalContent's message exceeds limit"); in CheckImageSizeForConverSation() 2654 ANS_LOGE("The size of big picture in PictureContent exceeds limit"); in CheckImageSizeForPicture() 2666 ANS_LOGE("Picture key exist, but picture content is empty."); in CheckImageSizeForLiveView() 2670 ANS_LOGE("Picture key exist, but picture content count exceeds limit."); in CheckImageSizeForLiveView() 2675 ANS_LOGE("The size of big picture in PictureContent exceeds limit."); in CheckImageSizeForLiveView() 2780 ANS_LOGE("The size of lockScreen picture in live view exceeds limit"); in CheckLockScreenPictureSizeForLiveView()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_live_view_content_test.cpp | 133 auto picture = std::make_pair(std::string{"test"}, pixelVec); in HWTEST_F() local 134 pictureMap.insert(picture); in HWTEST_F() 162 auto picture = std::make_pair(std::string{"test"}, pixelVec); in HWTEST_F() local 163 pictureMap.insert(picture); in HWTEST_F() 222 auto picture = std::make_pair(std::string{"picture"}, pixelVec); in HWTEST_F() local 223 pictureMap.insert(picture); in HWTEST_F() 296 auto picture = std::make_pair(std::string{"test"}, pixelVec); in HWTEST_F() local 297 pictureMap.insert(picture); in HWTEST_F() 320 auto picture in HWTEST_F() local [all...] |
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_utils.cpp | 383 // picture: image.PixelMap in GetNotificationPictureContentDetailed() 384 auto pixelMap = FFIData::GetData<Media::PixelMapImpl>(contentResult->picture); in GetNotificationPictureContentDetailed() 852 if (content.picture == nullptr || !GetNotificationPictureContent(content.picture, request)) { in GetNotificationContent() 1152 static void freeNotificationPictureContent(CNotificationPictureContent* picture) in freeNotificationPictureContent() argument 1154 free(picture->title); in freeNotificationPictureContent() 1155 free(picture->text); in freeNotificationPictureContent() 1156 free(picture->additionalText); in freeNotificationPictureContent() 1157 free(picture->briefText); in freeNotificationPictureContent() 1158 free(picture in freeNotificationPictureContent() 1166 SetNotificationPictureContent(NotificationBasicContent *basicContent, CNotificationPictureContent* picture) SetNotificationPictureContent() argument [all...] |
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/ |
H A D | notification_utils.h | 78 int64_t picture; member 122 CNotificationPictureContent* picture; member 312 CNotificationPictureContent* picture);
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | common_convert_content.cpp | 40 case ContentType::NOTIFICATION_CONTENT_PICTURE: // picture?: NotificationPictureContent in GetPropertyNameByContentType() 41 return "picture"; in GetPropertyNameByContentType() 81 case ContentType::NOTIFICATION_CONTENT_PICTURE: // picture?: NotificationPictureContent in SetNotificationContentDetailed() 227 // picture: image.PixelMap in SetNotificationPictureContent() 228 std::shared_ptr<Media::PixelMap> picture = pictureContent->GetBigPicture(); in SetNotificationPictureContent() local 229 if (picture) { in SetNotificationPictureContent() 232 pictureResult = Media::PixelMapNapi::CreatePixelMap(env, picture); in SetNotificationPictureContent() 236 napi_set_named_property(env, result, "picture", NapiGetNull(env)); in SetNotificationPictureContent() 238 napi_set_named_property(env, result, "picture", pictureResult); in SetNotificationPictureContent() 722 NAPI_CALL(env, napi_has_named_property(env, result, "picture", in GetNotificationPictureContent() 1460 std::shared_ptr<Media::PixelMap> picture = basicContent->GetLockScreenPicture(); SetLockScreenPicture() local [all...] |
H A D | common_convert_liveview.cpp | 350 ANS_LOGE("Set live view picture map failed."); in SetNotificationLiveViewContent() 370 for (auto picture : iter->second) { in SetLiveViewPictureInfo() 371 napi_value pictureObj = Media::PixelMapNapi::CreatePixelMap(env, picture); in SetLiveViewPictureInfo() 956 ANS_LOGI("No picture maps."); in GetNotificationLiveViewContentDetailed() 962 ANS_LOGE("Failed to get picture map from liveView content."); in GetNotificationLiveViewContentDetailed() 979 ANS_LOGE("The picture is not array."); in GetLiveViewPictures() 1019 ANS_LOGE("Get picture names failed."); in GetLiveViewPictureInfo()
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | advanced_notification_live_view_service.cpp | 293 ANS_LOGE("Failed to set lock screen picture to db"); in SetNotificationRequestToDb() 323 ANS_LOGE("Get request lock screen picture failed, key %{public}s.", key.c_str()); in GetNotificationRequestFromDb() 385 ANS_LOGE("Get request lock screen picture failed."); in GetBatchNotificationRequestsFromDb() 417 ANS_LOGE("Delete notification lock screen picture failed, key %{public}s.", lockScreenPictureKey.c_str()); in DeleteNotificationRequestFromDb() 486 ANS_LOGE("Failed to set lock screen picture to db, res is %{public}d.", res); in SetLockScreenPictureToDb() 499 ANS_LOGE("Failed to get lock screen picture from db, res is %{public}d.", res); in GetLockScreenPictureFromDb() 518 std::shared_ptr<Media::PixelMap> picture = std::shared_ptr<Media::PixelMap>(pixelMapPtr.release()); in GetLockScreenPictureFromDb() local 519 request->GetContent()->GetNotificationContent()->SetLockScreenPicture(picture); in GetLockScreenPictureFromDb()
|