Home
last modified time | relevance | path

Searched refs:userInput (Results 1 – 11 of 11) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_action_button.cpp29 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 …]
Dnotification_user_input.cpp45 void NotificationUserInput::AddMimeInputToWant(const NotificationUserInput &userInput, AAFwk::Want … in AddMimeInputToWant() argument
/base/notification/distributed_notification_service/test/fuzztest/notificationactionbutton_fuzzer/
Dnotificationactionbutton_fuzzer.cpp42 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/
Dnotification_action_button.h54 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);
Dnotification_user_input.h74 static void AddMimeInputToWant(const NotificationUserInput &userInput, AAFwk::Want &want,
/base/notification/distributed_notification_service/test/fuzztest/notificationuserinputannex_fuzzer/
Dnotificationuserinputannex_fuzzer.cpp33 Notification::NotificationUserInput userInput(stringData); in DoSomethingInterestingWithMyAPI() local
35 notificationUserInput.AddMimeInputToWant(userInput, want, results); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_action_button_test.cpp119 std::shared_ptr<NotificationUserInput> userInput; variable
125 autoCreatedReplies, mimeTypeOnlyInputs, userInput, isContextual);
146 std::shared_ptr<NotificationUserInput> userInput; variable
151 autoCreatedReplies, mimeTypeOnlyInputs, userInput, isContextual);
Dnotification_user_input_test.cpp106 std::shared_ptr<NotificationUserInput> userInput = nullptr; variable
/base/notification/distributed_notification_service/frameworks/test/moduletest/
Dans_innerkits_module_publish_test.cpp220 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/
Dcommon.h531 … 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/
Dcommon.cpp1321 … 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 …]