/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | notification_action_button.cpp | 29 const std::shared_ptr<NotificationUserInput> &userInput, bool isContextual) in Create() argument 45 std::shared_ptr<NotificationUserInput> textInput = userInput; in Create() 47 if (userInput && (userInput->IsMimeTypeOnly())) { in Create() 48 onlyInputs.push_back(userInput); in Create() 91 const std::shared_ptr<NotificationUserInput> &userInput, bool isContextual) in NotificationActionButton() argument 99 userInput_(userInput), in NotificationActionButton() 140 …tionActionButton::AddMimeTypeOnlyUserInput(const std::shared_ptr<NotificationUserInput> &userInput) in AddMimeTypeOnlyUserInput() argument 142 if (!userInput) { in AddMimeTypeOnlyUserInput() 147 if (!userInput->IsMimeTypeOnly()) { in AddMimeTypeOnlyUserInput() 152 mimeTypeOnlyUserInputs_.emplace_back(userInput); in AddMimeTypeOnlyUserInput() [all …]
|
D | notification_user_input.cpp | 45 void NotificationUserInput::AddMimeInputToWant(const NotificationUserInput &userInput, AAFwk::Want … in AddMimeInputToWant() argument
|
/base/notification/distributed_notification_service/test/fuzztest/notificationactionbutton_fuzzer/ |
D | notificationactionbutton_fuzzer.cpp | 42 std::shared_ptr<Notification::NotificationUserInput> userInput = in DoSomethingInterestingWithMyAPI() local 44 actionButton->AddMimeTypeOnlyUserInput(userInput); in DoSomethingInterestingWithMyAPI() 45 actionButton->AddNotificationUserInput(userInput); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
D | notification_action_button.h | 54 const std::shared_ptr<NotificationUserInput> &userInput = {}, bool isContextual = false); 124 void AddMimeTypeOnlyUserInput(const std::shared_ptr<NotificationUserInput> &userInput); 139 void AddNotificationUserInput(const std::shared_ptr<NotificationUserInput> &userInput); 245 const std::shared_ptr<NotificationUserInput> &userInput, bool isContextual);
|
D | notification_user_input.h | 74 static void AddMimeInputToWant(const NotificationUserInput &userInput, AAFwk::Want &want,
|
/base/notification/distributed_notification_service/test/fuzztest/notificationuserinputannex_fuzzer/ |
D | notificationuserinputannex_fuzzer.cpp | 33 Notification::NotificationUserInput userInput(stringData); in DoSomethingInterestingWithMyAPI() local 35 notificationUserInput.AddMimeInputToWant(userInput, want, results); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
D | notification_action_button_test.cpp | 119 std::shared_ptr<NotificationUserInput> userInput; variable 125 autoCreatedReplies, mimeTypeOnlyInputs, userInput, isContextual); 146 std::shared_ptr<NotificationUserInput> userInput; variable 151 autoCreatedReplies, mimeTypeOnlyInputs, userInput, isContextual);
|
D | notification_user_input_test.cpp | 106 std::shared_ptr<NotificationUserInput> userInput = nullptr; variable
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
D | ans_innerkits_module_publish_test.cpp | 220 std::shared_ptr<NotificationUserInput> userInput = actionButton->GetUserInput(); in CheckCaseTwoResult() local 221 EXPECT_EQ(NotificationConstant::FREE_FORM_INPUT, userInput->GetInputsSource(g_want)); in CheckCaseTwoResult() 222 EXPECT_EQ(nullptr, userInput->GetInputsFromWant(g_want)); in CheckCaseTwoResult() 223 … std::map<std::string, std::shared_ptr<Uri>> map = userInput->GetMimeInputsFromWant(g_want, ""); in CheckCaseTwoResult() 225 EXPECT_EQ("inputKey", userInput->GetInputKey()); in CheckCaseTwoResult() 226 EXPECT_NE(nullptr, userInput->GetAdditionalData()); in CheckCaseTwoResult() 227 EXPECT_EQ(NotificationConstant::InputEditType::EDIT_DISABLED, userInput->GetEditType()); in CheckCaseTwoResult() 228 for (auto option : userInput->GetOptions()) { in CheckCaseTwoResult() 231 for (auto type : userInput->GetPermitMimeTypes()) { in CheckCaseTwoResult() 234 EXPECT_EQ(false, userInput->IsMimeTypeOnly()); in CheckCaseTwoResult() [all …]
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
D | common.h | 531 … const napi_env &env, const std::shared_ptr<NotificationUserInput> &userInput, napi_value &result); 994 …pi_env &env, const napi_value &userInputResult, std::shared_ptr<NotificationUserInput> &userInput); 1005 …pi_env &env, const napi_value &userInputResult, std::shared_ptr<NotificationUserInput> &userInput); 1016 …pi_env &env, const napi_value &userInputResult, std::shared_ptr<NotificationUserInput> &userInput); 1027 …pi_env &env, const napi_value &userInputResult, std::shared_ptr<NotificationUserInput> &userInput); 1038 …pi_env &env, const napi_value &userInputResult, std::shared_ptr<NotificationUserInput> &userInput); 1049 …pi_env &env, const napi_value &userInputResult, std::shared_ptr<NotificationUserInput> &userInput); 1060 …pi_env &env, const napi_value &userInputResult, std::shared_ptr<NotificationUserInput> &userInput);
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | common.cpp | 1321 … const napi_env &env, const std::shared_ptr<NotificationUserInput> &userInput, napi_value &result) in SetNotificationActionButtonByUserInput() argument 1325 if (!userInput) { in SetNotificationActionButtonByUserInput() 1335 napi_create_string_utf8(env, userInput->GetInputKey().c_str(), NAPI_AUTO_LENGTH, &value); in SetNotificationActionButtonByUserInput() 1339 napi_create_string_utf8(env, userInput->GetTag().c_str(), NAPI_AUTO_LENGTH, &value); in SetNotificationActionButtonByUserInput() 1344 for (auto vec : userInput->GetOptions()) { in SetNotificationActionButtonByUserInput() 1354 napi_get_boolean(env, userInput->IsPermitFreeFormInput(), &value); in SetNotificationActionButtonByUserInput() 1360 for (auto vec : userInput->GetPermitMimeTypes()) { in SetNotificationActionButtonByUserInput() 1370 napi_create_int64(env, userInput->GetEditType(), &value); in SetNotificationActionButtonByUserInput() 1374 auto additionalData = userInput->GetAdditionalData(); in SetNotificationActionButtonByUserInput() 2531 std::shared_ptr<NotificationUserInput> userInput = nullptr; in GetNotificationUserInput() local [all …]
|