Home
last modified time | relevance | path

Searched refs:messageUser (Results 1 – 15 of 15) sorted by relevance

/base/notification/distributed_notification_service/test/fuzztest/messageuser_fuzzer/
Dmessageuser_fuzzer.cpp30 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/
Dmessage_user_test.cpp43 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 …]
Dnotification_conversational_content_test.cpp43 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 …]
Dnotification_request_test.cpp225 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/
Dmessage_user.cpp128 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 …]
Dnotification_conversational_content.cpp23 NotificationConversationalContent::NotificationConversationalContent(const MessageUser &messageUser) in NotificationConversationalContent() argument
24 : messageUser_(messageUser) in NotificationConversationalContent()
Dnotification_request.cpp217 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/
Dnotificationconversationalcontent_fuzzer.cpp30 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/
Dnotificationtemplateannex_fuzzer.cpp27 Notification::MessageUser messageUser; in DoSomethingInterestingWithMyAPI() local
28 … Notification::NotificationConversationalContent NotificationConversationalContent(messageUser); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/setprogressbar_fuzzer/
Dsetprogressbar_fuzzer.cpp31 std::shared_ptr<Notification::MessageUser> messageUser = nullptr; in DoSomethingInterestingWithMyAPI() local
32 request.AddMessageUser(messageUser); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_conversational_content.h38 explicit NotificationConversationalContent(const MessageUser &messageUser);
Dnotification_request.h372 void AddMessageUser(const std::shared_ptr<MessageUser> &messageUser);
/base/notification/distributed_notification_service/frameworks/test/moduletest/
Dans_innerkits_module_publish_test.cpp202 … 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/
Dcommon.h476 …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/
Dcommon.cpp1137 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 …]