/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() 38 messageUser.SetPixelMap(pixelMap); in DoSomethingInterestingWithMyAPI() 41 messageUser.SetUri(uri); in DoSomethingInterestingWithMyAPI() 44 messageUser.SetMachine(enabled); in DoSomethingInterestingWithMyAPI() 46 messageUser.SetUserAsImportant(enabled); in DoSomethingInterestingWithMyAPI() 48 messageUser.GetKey(); in DoSomethingInterestingWithMyAPI() 50 messageUser.GetName(); in DoSomethingInterestingWithMyAPI() 52 messageUser.GetPixelMap(); in DoSomethingInterestingWithMyAPI() [all …]
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
D | notification_conversational_content_test.cpp | 43 MessageUser messageUser; variable 45 auto rrc = std::make_shared<NotificationConversationalContent>(messageUser); 58 MessageUser messageUser; variable 60 auto rrc = std::make_shared<NotificationConversationalContent>(messageUser); 72 MessageUser messageUser; variable 76 std::make_shared<NotificationConversationalContent>(messageUser); 94 MessageUser messageUser; variable 96 auto rrc = std::make_shared<NotificationConversationalContent>(messageUser);
|
D | message_user_test.cpp | 43 sptr<MessageUser> messageUser = nullptr; variable 45 EXPECT_EQ(messageUser ->FromJson(jsonObject), nullptr); 76 MessageUser messageUser; variable 79 EXPECT_EQ(messageUser.ReadFromParcel(parcel), false); 90 MessageUser messageUser; variable 95 EXPECT_EQ(messageUser.ReadFromParcel(parcel), false);
|
/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 | 21 NotificationConversationalContent::NotificationConversationalContent(const MessageUser &messageUser) in NotificationConversationalContent() argument 22 : messageUser_(messageUser) in NotificationConversationalContent()
|
D | notification_request.cpp | 216 void NotificationRequest::AddMessageUser(const std::shared_ptr<MessageUser> &messageUser) in AddMessageUser() argument 218 if (!messageUser) { in AddMessageUser() 223 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 | 31 Notification::MessageUser messageUser; in DoSomethingInterestingWithMyAPI() local 32 … 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 | 194 … std::vector<std::shared_ptr<MessageUser>> messageUser = notificationRequest.GetMessageUsers(); in CheckCaseOneResult() local 195 for (auto user : messageUser) { in CheckCaseOneResult() 750 MessageUser messageUser, sender; variable 751 messageUser.SetKey("key"); 752 messageUser.SetName("Name"); 753 messageUser.SetPixelMap(nullptr); 754 messageUser.SetUri(Uri(".")); 755 messageUser.SetUserAsImportant(false); 756 messageUser.SetMachine(false); 757 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 &… 1304 …napi_value GetMessageUser(const napi_env &env, const napi_value &result, MessageUser &messageUser); 1314 …ue GetMessageUserByString(const napi_env &env, const napi_value &result, MessageUser &messageUser); 1324 …alue GetMessageUserByBool(const napi_env &env, const napi_value &result, MessageUser &messageUser); 1334 …ue GetMessageUserByCustom(const napi_env &env, const napi_value &result, MessageUser &messageUser);
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | common.cpp | 1135 napi_value Common::SetMessageUser(const napi_env &env, const MessageUser &messageUser, napi_value &… in SetMessageUser() argument 1141 napi_create_string_utf8(env, messageUser.GetName().c_str(), NAPI_AUTO_LENGTH, &value); in SetMessageUser() 1145 napi_create_string_utf8(env, messageUser.GetKey().c_str(), NAPI_AUTO_LENGTH, &value); in SetMessageUser() 1149 napi_create_string_utf8(env, messageUser.GetUri().ToString().c_str(), NAPI_AUTO_LENGTH, &value); in SetMessageUser() 1153 napi_get_boolean(env, messageUser.IsMachine(), &value); in SetMessageUser() 1157 napi_get_boolean(env, messageUser.IsUserImportant(), &value); in SetMessageUser() 1161 std::shared_ptr<Media::PixelMap> icon = messageUser.GetPixelMap(); in SetMessageUser() 3609 …lue Common::GetMessageUser(const napi_env &env, const napi_value &result, MessageUser &messageUser) in GetMessageUser() argument 3613 if (GetMessageUserByString(env, result, messageUser) == nullptr) { in GetMessageUser() 3617 if (GetMessageUserByBool(env, result, messageUser) == nullptr) { in GetMessageUser() [all …]
|