/base/notification/distributed_notification_service/test/fuzztest/messageuser_fuzzer/ |
D | messageuser_fuzzer.cpp | 30 Notification::MessageUser messageUser; in DoSomethingInterestingWithMyAPI() local 32 messageUser.SetKey(key); in DoSomethingInterestingWithMyAPI() 35 messageUser.SetName(name); in DoSomethingInterestingWithMyAPI() 37 messageUser.SetPixelMap(nullptr); in DoSomethingInterestingWithMyAPI() 40 messageUser.SetUri(uri); in DoSomethingInterestingWithMyAPI() 43 messageUser.SetMachine(enabled); in DoSomethingInterestingWithMyAPI() 45 messageUser.SetUserAsImportant(enabled); in DoSomethingInterestingWithMyAPI() 47 messageUser.GetKey(); in DoSomethingInterestingWithMyAPI() 49 messageUser.GetName(); in DoSomethingInterestingWithMyAPI() 51 messageUser.GetPixelMap(); in DoSomethingInterestingWithMyAPI() [all …]
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
D | message_user_test.cpp | 43 sptr<MessageUser> messageUser = nullptr; variable 45 EXPECT_EQ(messageUser ->FromJson(jsonObject), nullptr); 56 MessageUser messageUser; variable 58 messageUser.FromJson(jsonObject); 60 EXPECT_EQ(messageUser.FromJson(jsonObject), nullptr); 71 MessageUser messageUser; variable 77 messageUser.FromJson(jsonObject); 109 MessageUser messageUser; variable 112 EXPECT_EQ(messageUser.ReadFromParcel(parcel), false); 123 MessageUser messageUser; variable [all …]
|
D | notification_conversational_content_test.cpp | 43 MessageUser messageUser; variable 45 auto rrc = std::make_shared<NotificationConversationalContent>(messageUser); 58 MessageUser messageUser; variable 59 auto rrc = std::make_shared<NotificationConversationalContent>(messageUser); 75 MessageUser messageUser; variable 76 auto rrc = std::make_shared<NotificationConversationalContent>(messageUser); 83 messageUser.FromJson(jsonObject); 95 MessageUser messageUser; variable 97 auto rrc = std::make_shared<NotificationConversationalContent>(messageUser); 109 MessageUser messageUser; variable [all …]
|
D | notification_request_test.cpp | 225 std::shared_ptr<MessageUser> messageUser = nullptr; in HWTEST_F() local 226 notificationRequest.AddMessageUser(messageUser); in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | message_user.cpp | 128 MessageUser *messageUser = new (std::nothrow) MessageUser(); in FromJson() local 129 if (messageUser == nullptr) { in FromJson() 136 messageUser->key_ = jsonObject.at("key").get<std::string>(); in FromJson() 140 messageUser->name_ = jsonObject.at("name").get<std::string>(); in FromJson() 145 messageUser->pixelMap_ = AnsImageUtil::UnPackImage(pmStr); in FromJson() 149 messageUser->uri_ = Uri(jsonObject.at("uri").get<std::string>()); in FromJson() 153 messageUser->isMachine_ = jsonObject.at("isMachine").get<bool>(); in FromJson() 157 messageUser->isUserImportant_ = jsonObject.at("isUserImportant").get<bool>(); in FromJson() 160 return messageUser; in FromJson() 248 MessageUser *messageUser = new (std::nothrow) MessageUser(); in Unmarshalling() local [all …]
|
D | notification_conversational_content.cpp | 23 NotificationConversationalContent::NotificationConversationalContent(const MessageUser &messageUser) in NotificationConversationalContent() argument 24 : messageUser_(messageUser) in NotificationConversationalContent()
|
D | notification_request.cpp | 217 void NotificationRequest::AddMessageUser(const std::shared_ptr<MessageUser> &messageUser) in AddMessageUser() argument 219 if (!messageUser) { in AddMessageUser() 224 messageUsers_.emplace_back(messageUser); in AddMessageUser()
|
/base/notification/distributed_notification_service/test/fuzztest/notificationconversationalcontent_fuzzer/ |
D | notificationconversationalcontent_fuzzer.cpp | 30 Notification::MessageUser messageUser; in DoSomethingInterestingWithMyAPI() local 31 … Notification::NotificationConversationalContent NotificationConversationalContent(messageUser); in DoSomethingInterestingWithMyAPI() 40 … NotificationConversationalContent.AddConversationalMessage(stringData, timestamp, messageUser); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/notificationtemplateannex_fuzzer/ |
D | notificationtemplateannex_fuzzer.cpp | 27 Notification::MessageUser messageUser; in DoSomethingInterestingWithMyAPI() local 28 … Notification::NotificationConversationalContent NotificationConversationalContent(messageUser); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/setprogressbar_fuzzer/ |
D | setprogressbar_fuzzer.cpp | 31 std::shared_ptr<Notification::MessageUser> messageUser = nullptr; in DoSomethingInterestingWithMyAPI() local 32 request.AddMessageUser(messageUser); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
D | notification_conversational_content.h | 38 explicit NotificationConversationalContent(const MessageUser &messageUser);
|
D | notification_request.h | 372 void AddMessageUser(const std::shared_ptr<MessageUser> &messageUser);
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
D | ans_innerkits_module_publish_test.cpp | 202 … std::vector<std::shared_ptr<MessageUser>> messageUser = notificationRequest.GetMessageUsers(); in CheckCaseOneResult() local 203 for (auto user : messageUser) { in CheckCaseOneResult() 765 MessageUser messageUser, sender; variable 766 messageUser.SetKey("key"); 767 messageUser.SetName("Name"); 768 messageUser.SetPixelMap(nullptr); 769 messageUser.SetUri(Uri(".")); 770 messageUser.SetUserAsImportant(false); 771 messageUser.SetMachine(false); 772 GTEST_LOG_(INFO) << "ANS_Interface_MT_Publish_00400::messgaeUser is::" << messageUser.Dump(); [all …]
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
D | common.h | 476 …static napi_value SetMessageUser(const napi_env &env, const MessageUser &messageUser, napi_value &… 1308 …napi_value GetMessageUser(const napi_env &env, const napi_value &result, MessageUser &messageUser); 1318 …ue GetMessageUserByString(const napi_env &env, const napi_value &result, MessageUser &messageUser); 1328 …alue GetMessageUserByBool(const napi_env &env, const napi_value &result, MessageUser &messageUser); 1338 …ue GetMessageUserByCustom(const napi_env &env, const napi_value &result, MessageUser &messageUser);
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | common.cpp | 1137 napi_value Common::SetMessageUser(const napi_env &env, const MessageUser &messageUser, napi_value &… in SetMessageUser() argument 1143 napi_create_string_utf8(env, messageUser.GetName().c_str(), NAPI_AUTO_LENGTH, &value); in SetMessageUser() 1147 napi_create_string_utf8(env, messageUser.GetKey().c_str(), NAPI_AUTO_LENGTH, &value); in SetMessageUser() 1151 napi_create_string_utf8(env, messageUser.GetUri().ToString().c_str(), NAPI_AUTO_LENGTH, &value); in SetMessageUser() 1155 napi_get_boolean(env, messageUser.IsMachine(), &value); in SetMessageUser() 1159 napi_get_boolean(env, messageUser.IsUserImportant(), &value); in SetMessageUser() 1163 std::shared_ptr<Media::PixelMap> icon = messageUser.GetPixelMap(); in SetMessageUser() 3661 …lue Common::GetMessageUser(const napi_env &env, const napi_value &result, MessageUser &messageUser) in GetMessageUser() argument 3665 if (GetMessageUserByString(env, result, messageUser) == nullptr) { in GetMessageUser() 3669 if (GetMessageUserByBool(env, result, messageUser) == nullptr) { in GetMessageUser() [all …]
|