Home
last modified time | relevance | path

Searched refs:permitFreeFormInput (Results 1 - 6 of 6) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_user_input_test.cpp46 bool permitFreeFormInput = true; in HWTEST_F() local
51 auto rrc = std::make_shared<NotificationUserInput>(inputKey, tag, options, permitFreeFormInput, permitMimeTypes, in HWTEST_F()
82 bool permitFreeFormInput = true; in HWTEST_F() local
87 auto rrc = std::make_shared<NotificationUserInput>(inputKey, tag, options, permitFreeFormInput, permitMimeTypes, in HWTEST_F()
155 {"options", {"testOption"}}, {"permitFreeFormInput", 1}, in HWTEST_F()
252 bool permitFreeFormInput = true; in HWTEST_F() local
259 permitFreeFormInput, permitMimeTypes, additional, editType); in HWTEST_F()
274 bool permitFreeFormInput = false; in HWTEST_F() local
281 permitFreeFormInput, permitMimeTypes, additional, editType); in HWTEST_F()
296 bool permitFreeFormInput in HWTEST_F() local
320 bool permitFreeFormInput = false; HWTEST_F() local
346 bool permitFreeFormInput = false; HWTEST_F() local
386 bool permitFreeFormInput = true; HWTEST_F() local
414 bool permitFreeFormInput = true; HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/test/fuzztest/notificationuserinputannex_fuzzer/
H A Dnotificationuserinputannex_fuzzer.cpp40 bool permitFreeFormInput = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
46 Notification::NotificationUserInput::Create(inputKey, tag, options, permitFreeFormInput, in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_user_input.h106 * @param permitFreeFormInput Specifies whether to allow arbitrary text values. The default value is true,
114 * object if permitFreeFormInput is false but editType is InputEditType::EDIT_ENABLED.
117 const std::vector<std::string> &options, bool permitFreeFormInput, const std::set<std::string> &permitMimeTypes,
216 * @param permitFreeFormInput Specifies whether to allow arbitrary text values. The default value is true,
221 void SetPermitFreeFormInput(bool permitFreeFormInput);
287 * @param permitFreeFormInput Specifies whether to allow arbitrary text values. The default value is true,
297 bool permitFreeFormInput, const std::set<std::string> &permitMimeTypes,
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_user_input.cpp72 const std::string &tag, const std::vector<std::string> &options, bool permitFreeFormInput, in Create()
81 if (!permitFreeFormInput) { in Create()
83 ANS_LOGE("Setting editType to enable requires permitFreeFormInput to be set to true"); in Create()
99 NotificationUserInput(inputKey, tag, options, permitFreeFormInput, permitMimeTypes, realAdditional, editType); in Create()
113 const std::vector<std::string> &options, bool permitFreeFormInput, const std::set<std::string> &permitMimeTypes, in NotificationUserInput()
118 permitFreeFormInput_(permitFreeFormInput), in NotificationUserInput()
196 void NotificationUserInput::SetPermitFreeFormInput(bool permitFreeFormInput) in SetPermitFreeFormInput() argument
198 permitFreeFormInput_ = permitFreeFormInput; in SetPermitFreeFormInput()
234 ", permitFreeFormInput = " + (permitFreeFormInput_ ? "true" : "false") + in Dump()
245 jsonObject["permitFreeFormInput"] in ToJson()
71 Create(const std::string &inputKey, const std::string &tag, const std::vector<std::string> &options, bool permitFreeFormInput, const std::set<std::string> &permitMimeTypes, const std::shared_ptr<AAFwk::WantParams> &additional, NotificationConstant::InputEditType editType) Create() argument
112 NotificationUserInput(const std::string &inputKey, const std::string &tag, const std::vector<std::string> &options, bool permitFreeFormInput, const std::set<std::string> &permitMimeTypes, const std::shared_ptr<AAFwk::WantParams> &additional, NotificationConstant::InputEditType editType) NotificationUserInput() argument
[all...]
/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi.cpp308 // permitFreeFormInput?: boolean in GetNotificationUserInputByPermitFreeFormInput()
309 NAPI_CALL(env, napi_has_named_property(env, userInputResult, "permitFreeFormInput", &hasProperty)); in GetNotificationUserInputByPermitFreeFormInput()
311 bool permitFreeFormInput = false; in GetNotificationUserInputByPermitFreeFormInput() local
312 napi_get_named_property(env, userInputResult, "permitFreeFormInput", &value); in GetNotificationUserInputByPermitFreeFormInput()
318 napi_get_value_bool(env, value, &permitFreeFormInput); in GetNotificationUserInputByPermitFreeFormInput()
319 LBSLOGI(NAPI_UTILS, "permitFreeFormInput is: %{public}d", permitFreeFormInput); in GetNotificationUserInputByPermitFreeFormInput()
320 userInput->SetPermitFreeFormInput(permitFreeFormInput); in GetNotificationUserInputByPermitFreeFormInput()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon.cpp579 // permitFreeFormInput?: boolean in GetNotificationUserInputByPermitFreeFormInput()
580 NAPI_CALL(env, napi_has_named_property(env, userInputResult, "permitFreeFormInput", &hasProperty)); in GetNotificationUserInputByPermitFreeFormInput()
582 bool permitFreeFormInput = false; in GetNotificationUserInputByPermitFreeFormInput() local
583 napi_get_named_property(env, userInputResult, "permitFreeFormInput", &value); in GetNotificationUserInputByPermitFreeFormInput()
589 napi_get_value_bool(env, value, &permitFreeFormInput); in GetNotificationUserInputByPermitFreeFormInput()
590 ANS_LOGI("permitFreeFormInput is: %{public}d", permitFreeFormInput); in GetNotificationUserInputByPermitFreeFormInput()
591 userInput->SetPermitFreeFormInput(permitFreeFormInput); in GetNotificationUserInputByPermitFreeFormInput()

Completed in 7 milliseconds