Home
last modified time | relevance | path

Searched refs:wantAgentInfo (Results 1 - 12 of 12) sorted by relevance

/base/notification/distributed_notification_service/test/fuzztest/reminderrequestannex_fuzzer/
H A Dreminderrequestannex_fuzzer.cpp35 std::shared_ptr< Notification::ReminderRequest::WantAgentInfo> wantAgentInfo = in DoSomethingInterestingWithMyAPI() local
37 reminderRequest.SetWantAgentInfo(wantAgentInfo); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/
H A Dreminder_common.cpp378 std::shared_ptr<ReminderRequest::WantAgentInfo>& wantAgentInfo) in GenWantAgent()
383 wantAgentInfo = std::make_shared<ReminderRequest::WantAgentInfo>(); in GenWantAgent()
385 wantAgentInfo->pkgName = str; in GenWantAgent()
389 wantAgentInfo->abilityName = str; in GenWantAgent()
393 wantAgentInfo->uri = str; in GenWantAgent()
399 wantAgentInfo->parameters = wantParams; in GenWantAgent()
488 std::shared_ptr<ReminderRequest::WantAgentInfo> wantAgentInfo; in GenReminder() local
489 if (!GenWantAgent(env, value, ReminderAgentNapi::WANT_AGENT, wantAgentInfo)) { in GenReminder()
492 reminder->SetWantAgentInfo(wantAgentInfo); in GenReminder()
836 std::shared_ptr<ReminderRequest::WantAgentInfo> wantAgentInfo; in CreateReminderCalendar() local
376 GenWantAgent( const napi_env &env, const napi_value &value, const char* name, std::shared_ptr<ReminderRequest::WantAgentInfo>& wantAgentInfo) GenWantAgent() argument
[all...]
H A Dpublish.cpp659 napi_value wantAgentInfo = nullptr; in ParseActionButtons() local
660 napi_create_object(env, &wantAgentInfo); in ParseActionButtons()
661 napi_set_named_property(env, actionButton, WANT_AGENT, wantAgentInfo); in ParseActionButtons()
666 napi_set_named_property(env, wantAgentInfo, WANT_AGENT_PKG, info); in ParseActionButtons()
668 napi_set_named_property(env, wantAgentInfo, WANT_AGENT_ABILITY, info); in ParseActionButtons()
670 napi_set_named_property(env, wantAgentInfo, BUTTON_WANT_AGENT_URI, info); in ParseActionButtons()
685 napi_value wantAgentInfo = nullptr; in ParseWantAgent() local
686 napi_create_object(env, &wantAgentInfo); in ParseWantAgent()
687 napi_set_named_property(env, result, WANT_AGENT, wantAgentInfo); in ParseWantAgent()
691 napi_set_named_property(env, wantAgentInfo, WANT_AGENT_PK in ParseWantAgent()
[all...]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dreminder_request_test.cpp854 std::shared_ptr<ReminderRequest::WantAgentInfo> wantAgentInfo = std::make_shared<ReminderRequest::WantAgentInfo>(); in HWTEST_F() local
856 rrc->SetWantAgentInfo(wantAgentInfo); in HWTEST_F()
857 EXPECT_EQ(rrc->GetWantAgentInfo(), wantAgentInfo); in HWTEST_F()
1367 std::string wantAgentInfo = "sour<SEP#/>123"; in HWTEST_F() local
1369 std::vector<std::string> ret1 = rrc->StringSplit(wantAgentInfo, "<SEP#/>"); in HWTEST_F()
1371 rrc->DeserializeWantAgent(wantAgentInfo, type); in HWTEST_F()
1383 std::string wantAgentInfo = "sour<SEP#/>123"; in HWTEST_F() local
1385 std::vector<std::string> ret1 = rrc->StringSplit(wantAgentInfo, "<SEP#/>"); in HWTEST_F()
1387 rrc->DeserializeWantAgent(wantAgentInfo, type); in HWTEST_F()
1399 std::string wantAgentInfo in HWTEST_F() local
1415 std::string wantAgentInfo = "sour<SEP#/>123<SEP#/>uri"; HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dreminder_request.cpp572 void ReminderRequest::RecoverWantAgentByJson(const std::string& wantAgentInfo, const uint8_t& type) in RecoverWantAgentByJson() argument
574 nlohmann::json root = nlohmann::json::parse(wantAgentInfo, nullptr, false); in RecoverWantAgentByJson()
614 void ReminderRequest::DeserializeWantAgent(const std::string &wantAgentInfo, const uint8_t type) in DeserializeWantAgent() argument
616 if (nlohmann::json::accept(wantAgentInfo)) { in DeserializeWantAgent()
617 RecoverWantAgentByJson(wantAgentInfo, type); in DeserializeWantAgent()
620 std::vector<std::string> info = StringSplit(wantAgentInfo, ReminderRequest::SEP_WANT_AGENT); in DeserializeWantAgent()
732 ReminderRequest& ReminderRequest::SetWantAgentInfo(const std::shared_ptr<WantAgentInfo> &wantAgentInfo) in SetWantAgentInfo() argument
734 if (wantAgentInfo != nullptr) { in SetWantAgentInfo()
735 wantAgentInfo_ = wantAgentInfo; in SetWantAgentInfo()
1105 WRITE_STRING_RETURN_FALSE_LOG(parcel, wantAgentInfo_->abilityName, "wantAgentInfo' in Marshalling()
[all...]
H A Dreminder_request_calendar.cpp67 void ReminderRequestCalendar::SetRRuleWantAgentInfo(const std::shared_ptr<WantAgentInfo> &wantAgentInfo) in SetRRuleWantAgentInfo() argument
69 rruleWantAgentInfo_ = wantAgentInfo; in SetRRuleWantAgentInfo()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dreminder_request.h761 * @param wantAgentInfo Indicates want agent information.
764 ReminderRequest& SetWantAgentInfo(const std::shared_ptr<WantAgentInfo> &wantAgentInfo);
931 void DeserializeWantAgent(const std::string& wantAgentInfo, const uint8_t type);
1100 void RecoverWantAgentByJson(const std::string& wantAgentInfo, const uint8_t& type);
H A Dreminder_request_calendar.h67 void SetRRuleWantAgentInfo(const std::shared_ptr<WantAgentInfo> &wantAgentInfo);
/base/usb/usb_manager/services/native/src/
H A Dusb_mass_storage_notification.cpp203 OHOS::AbilityRuntime::WantAgent::WantAgentInfo wantAgentInfo( in PublishUsbNotification()
208 auto wantAgent = OHOS::AbilityRuntime::WantAgent::WantAgentHelper::GetWantAgent(wantAgentInfo); in PublishUsbNotification()
/base/notification/distributed_notification_service/frameworks/js/napi/include/reminder/
H A Dreminder_common.h164 std::shared_ptr<ReminderRequest::WantAgentInfo>& wantAgentInfo);
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dpublish.cpp296 WantAgentInfo wantAgentInfo(-1, WantAgentConstant::OperationType::START_ABILITY, wantAgentFlags, in ParseShowOptions()
301 WantAgentHelper::GetWantAgent(context, wantAgentInfo, wantAgent); in ParseShowOptions()
/base/notification/distributed_notification_service/services/ans/src/
H A Dreminder_data_manager.cpp492 AbilityRuntime::WantAgent::WantAgentInfo wantAgentInfo( in CreateTimerInfo()
499 AbilityRuntime::WantAgent::WantAgentHelper::GetWantAgent(wantAgentInfo, 0); in CreateTimerInfo()

Completed in 31 milliseconds