/base/notification/distributed_notification_service/test/fuzztest/notificationactionbutton_fuzzer/ |
D | notificationactionbutton_fuzzer.cpp | 33 std::shared_ptr<Notification::NotificationActionButton> actionButton = in DoSomethingInterestingWithMyAPI() local 35 if (actionButton == nullptr) { in DoSomethingInterestingWithMyAPI() 40 actionButton->AddAdditionalData(extras); in DoSomethingInterestingWithMyAPI() 44 actionButton->AddMimeTypeOnlyUserInput(userInput); in DoSomethingInterestingWithMyAPI() 45 actionButton->AddNotificationUserInput(userInput); in DoSomethingInterestingWithMyAPI() 47 actionButton->GetMimeTypeOnlyUserInputs(); in DoSomethingInterestingWithMyAPI() 49 actionButton->GetUserInput(); in DoSomethingInterestingWithMyAPI() 51 actionButton->IsAutoCreatedReplies(); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/notificationrequest_fuzzer/ |
D | notificationrequest_fuzzer.cpp | 55 std::shared_ptr<Notification::NotificationActionButton> actionButton = in DoSomethingInterestingWithMyAPI() local 61 actionButton->SetSemanticActionButton(semanticActionButton); in DoSomethingInterestingWithMyAPI() 62 actionButton->SetAutoCreatedReplies(enabled); in DoSomethingInterestingWithMyAPI() 63 actionButton->SetContextDependent(enabled); in DoSomethingInterestingWithMyAPI() 64 request.AddActionButton(actionButton); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/bechmarktest/notification_publish_test/ |
D | notification_publish_test.cpp | 100 std::shared_ptr<NotificationActionButton> actionButton = in InitButtonRequest() local 104 actionButton->AddAdditionalData(additional); in InitButtonRequest() 105 actionButton->SetSemanticActionButton(NotificationConstant::NONE_ACTION_BUTTON); in InitButtonRequest() 106 actionButton->SetAutoCreatedReplies(true); in InitButtonRequest() 107 actionButton->AddMimeTypeOnlyUserInput(onlyUserInput); in InitButtonRequest() 108 actionButton->SetContextDependent(true); in InitButtonRequest() 111 reqButton_.AddActionButton(actionButton); in InitButtonRequest()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | notification_action_button.cpp | 69 const std::shared_ptr<NotificationActionButton> &actionButton) in Create() argument 71 if (!actionButton) { in Create() 76 return NotificationActionButton::Create(actionButton->GetIcon(), in Create() 77 actionButton->GetTitle(), in Create() 78 actionButton->GetWantAgent(), in Create() 79 actionButton->GetAdditionalData(), in Create() 80 actionButton->GetSemanticActionButton(), in Create() 81 actionButton->IsAutoCreatedReplies(), in Create() 82 actionButton->GetMimeTypeOnlyUserInputs(), in Create() 83 actionButton->GetUserInput(), in Create() [all …]
|
D | notification_request.cpp | 172 …NotificationRequest::AddActionButton(const std::shared_ptr<NotificationActionButton> &actionButton) in AddActionButton() argument 174 if (!actionButton) { in AddActionButton() 184 actionButtons_.emplace_back(actionButton); in AddActionButton()
|
D | reminder_request.cpp | 1458 std::shared_ptr<NotificationActionButton> actionButton in AddActionButtons() local 1460 notificationRequest_->AddActionButton(actionButton); in AddActionButtons()
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
D | ans_innerkits_module_publish_test.cpp | 219 for (auto actionButton : actionButtons) { in CheckCaseTwoResult() local 220 std::shared_ptr<NotificationUserInput> userInput = actionButton->GetUserInput(); in CheckCaseTwoResult() 244 for (auto actionButton : actionButtons) { in CheckCaseThreeResult() local 245 EXPECT_EQ(nullptr, actionButton->GetIcon()); in CheckCaseThreeResult() 246 EXPECT_EQ("title", actionButton->GetTitle()); in CheckCaseThreeResult() 247 EXPECT_EQ(nullptr, actionButton->GetWantAgent()); in CheckCaseThreeResult() 248 EXPECT_NE(nullptr, actionButton->GetAdditionalData()); in CheckCaseThreeResult() 249 … EXPECT_EQ(NotificationConstant::NONE_ACTION_BUTTON, actionButton->GetSemanticActionButton()); in CheckCaseThreeResult() 250 for (auto userInputs : actionButton->GetMimeTypeOnlyUserInputs()) { in CheckCaseThreeResult() 253 EXPECT_EQ(true, actionButton->IsAutoCreatedReplies()); in CheckCaseThreeResult() [all …]
|
D | ReminderHelperTest.js | 1380 actionButton:[ property 1414 for (let j = 0; j < reminders[i].actionButton.length; j++) { 1415 … console.log("getValidReminders, actionButton.title = " + reminders[i].actionButton[j].title); 1416 … console.log("getValidReminders, actionButton.type = " + reminders[i].actionButton[j].type); 1467 actionButton:[ property 1501 for (let j = 0; j < reminders[i].actionButton.length; j++) { 1502 … console.log("getValidReminders, actionButton.title = " + reminders[i].actionButton[j].title); 1503 … console.log("getValidReminders, actionButton.type = " + reminders[i].actionButton[j].type); 1554 actionButton:[ property 1616 actionButton:[ property
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
D | notification_action_button_test.cpp | 45 std::shared_ptr<NotificationActionButton> actionButton = nullptr; in HWTEST_F() local 47 NotificationActionButton::Create(actionButton); in HWTEST_F()
|
D | notification_request_test.cpp | 191 std::shared_ptr<NotificationActionButton> actionButton = nullptr; in HWTEST_F() local 192 notificationRequest.AddActionButton(actionButton); in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
D | common.h | 509 …const napi_env &env, const std::shared_ptr<NotificationActionButton> &actionButton, napi_value &re… 520 …const napi_env &env, const std::shared_ptr<NotificationActionButton> &actionButton, napi_value &re… 950 …const napi_env &env, const napi_value &actionButton, std::shared_ptr<NotificationActionButton> &pA… 961 …const napi_env &env, const napi_value &actionButton, std::shared_ptr<NotificationActionButton> &pA… 972 …const napi_env &env, const napi_value &actionButton, std::shared_ptr<NotificationActionButton> &pA… 983 …const napi_env &env, const napi_value &actionButton, std::shared_ptr<NotificationActionButton> &pA…
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/ |
D | reminder_common.cpp | 67 napi_value actionButton = nullptr; in GenActionButtons() local 68 napi_get_element(env, actionButtons, i, &actionButton); in GenActionButtons() 69 NAPI_CALL_BASE(env, napi_typeof(env, actionButton, &valuetype), false); in GenActionButtons() 76 if (GetStringUtf8(env, actionButton, in GenActionButtons() 78 GetInt32(env, actionButton, ReminderAgentNapi::ACTION_BUTTON_TYPE, buttonType, false)) { in GenActionButtons() 89 GetButtonWantAgent(env, actionButton, reminder, buttonWantAgent); in GenActionButtons()
|
D | publish.cpp | 519 napi_value actionButton = nullptr; in ParseActionButtons() local 520 napi_create_object(env, &actionButton); in ParseActionButtons() 524 napi_set_named_property(env, actionButton, ACTION_BUTTON_TYPE, buttonInfo); in ParseActionButtons() 526 napi_set_named_property(env, actionButton, ACTION_BUTTON_TITLE, buttonInfo); in ParseActionButtons() 531 napi_set_named_property(env, actionButton, WANT_AGENT, wantAgentInfo); in ParseActionButtons() 544 napi_set_element(env, array, index, actionButton); in ParseActionButtons()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | common.cpp | 1247 …const napi_env &env, const std::shared_ptr<NotificationActionButton> &actionButton, napi_value &re… in SetNotificationActionButton() argument 1250 if (actionButton == nullptr) { in SetNotificationActionButton() 1258 napi_create_string_utf8(env, actionButton->GetTitle().c_str(), NAPI_AUTO_LENGTH, &value); in SetNotificationActionButton() 1262 std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> agent = actionButton->GetWantAgent(); in SetNotificationActionButton() 1273 std::shared_ptr<Media::PixelMap> icon = actionButton->GetIcon(); in SetNotificationActionButton() 1287 if (!SetNotificationActionButtonByExtras(env, actionButton, result)) { in SetNotificationActionButton() 1294 … if (!SetNotificationActionButtonByUserInput(env, actionButton->GetUserInput(), userInputResult)) { in SetNotificationActionButton() 1303 …const napi_env &env, const std::shared_ptr<NotificationActionButton> &actionButton, napi_value &re… in SetNotificationActionButtonByExtras() argument 1306 if (!actionButton) { in SetNotificationActionButtonByExtras() 1311 auto extras = actionButton->GetAdditionalData(); in SetNotificationActionButtonByExtras() [all …]
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
D | notification_action_button.h | 65 const std::shared_ptr<NotificationActionButton> &actionButton);
|
D | notification_request.h | 330 void AddActionButton(const std::shared_ptr<NotificationActionButton> &actionButton);
|