Home
last modified time | relevance | path

Searched refs:subscribeInfo (Results 1 – 25 of 163) sorted by relevance

1234567

/base/notification/common_event_service/test/fuzztest/subscribecommonevent_fuzzer/
Dsubscribecommonevent_fuzzer.cpp56 EventFwk::CommonEventSubscribeInfo subscribeInfo(matchingSkills); in DoSomethingInterestingWithMyAPI() local
58 subscribeInfo.ReadFromParcel(parcel); in DoSomethingInterestingWithMyAPI()
59 subscribeInfo.Unmarshalling(parcel); in DoSomethingInterestingWithMyAPI()
60 subscribeInfo.SetPriority(priority); in DoSomethingInterestingWithMyAPI()
61 subscribeInfo.SetPermission(stringData); in DoSomethingInterestingWithMyAPI()
62 subscribeInfo.SetDeviceId(stringData); in DoSomethingInterestingWithMyAPI()
63 subscribeInfo.SetThreadMode(threadMode); in DoSomethingInterestingWithMyAPI()
64 subscribeInfo.GetPriority(); in DoSomethingInterestingWithMyAPI()
65 subscribeInfo.SetUserId(priority); in DoSomethingInterestingWithMyAPI()
66 subscribeInfo.GetUserId(); in DoSomethingInterestingWithMyAPI()
[all …]
/base/notification/common_event_service/test/systemtest/common/acts/actsCESSubscribeInfoTest/
DactsCESSubscribeInfoTest.cpp85 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
86 subscribeInfo.SetPriority(PRIORITYTEST1);
87 if (subscribeInfo.GetPriority() != PRIORITYTEST1) {
114 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
115 subscribeInfo.SetPriority(PRIORITYTEST2);
116 if (subscribeInfo.GetPriority() != PRIORITYTEST2) {
143 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
144 subscribeInfo.SetPriority(PRIORITYTEST3);
145 if (subscribeInfo.GetPriority() != PRIORITYTEST3) {
172 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
[all …]
/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/
Dcommon_event_services_module_test.cpp51 explicit CommonEventServicesModuleTest(const CommonEventSubscribeInfo &subscribeInfo);
57 …entServicesModuleTest::CommonEventServicesModuleTest(const CommonEventSubscribeInfo &subscribeInfo) in CommonEventServicesModuleTest() argument
58 : CommonEventSubscriber(subscribeInfo) in CommonEventServicesModuleTest()
121 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
122 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo);
126 subscribeInfo, commonEventListener), ERR_OK);
141 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
142 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo);
146 subscribeInfo, commonEventListener), ERR_OK);
161 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
[all …]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_subscribe_info_test.cpp44 NotificationSubscribeInfo subscribeInfo; variable
45 auto rrc = std::make_shared<NotificationSubscribeInfo>(subscribeInfo);
60 NotificationSubscribeInfo subscribeInfo; variable
61 auto rrc = std::make_shared<NotificationSubscribeInfo>(subscribeInfo);
76 NotificationSubscribeInfo subscribeInfo; variable
77 auto rrc = std::make_shared<NotificationSubscribeInfo>(subscribeInfo);
91 NotificationSubscribeInfo subscribeInfo; variable
92 auto rrc = std::make_shared<NotificationSubscribeInfo>(subscribeInfo);
106 NotificationSubscribeInfo subscribeInfo; variable
108 std::make_shared<NotificationSubscribeInfo>(subscribeInfo);
[all …]
/base/notification/common_event_service/test/benchmarktest/common_event_service_test/
Dcommon_event_manager_service_test.cpp57 …explicit CommonEventSubscriberBenchmark(const CommonEventSubscribeInfo &subscribeInfo) : CommonEve… in CommonEventSubscriberBenchmark() argument
58 subscribeInfo) {}; in CommonEventSubscriberBenchmark()
73 CommonEventSubscribeInfo subscribeInfo(matchingSkills); in BENCHMARK_F() local
74 auto subscriberPtr = std::make_shared<CommonEventSubscriberBenchmark>(subscribeInfo); in BENCHMARK_F()
79 subscribeInfo, commonEventListener); in BENCHMARK_F()
97 CommonEventSubscribeInfo subscribeInfo(matchingSkills); in BENCHMARK_F() local
98 auto subscriberPtr = std::make_shared<CommonEventSubscriberBenchmark>(subscribeInfo); in BENCHMARK_F()
103 subscribeInfo, commonEventListener); in BENCHMARK_F()
121 CommonEventSubscribeInfo subscribeInfo(matchingSkills); in BENCHMARK_F() local
122 auto subscriberPtr = std::make_shared<CommonEventSubscriberBenchmark>(subscribeInfo); in BENCHMARK_F()
[all …]
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/
Dcommon_event_services_system_test.cpp63 explicit CommonEventServicesSystemTest(const CommonEventSubscribeInfo &subscribeInfo);
68 …entServicesSystemTest::CommonEventServicesSystemTest(const CommonEventSubscribeInfo &subscribeInfo) in CommonEventServicesSystemTest() argument
69 : CommonEventSubscriber(subscribeInfo) in CommonEventServicesSystemTest()
84 explicit CommonEventServicesSystemTestSubscriber(const CommonEventSubscribeInfo &subscribeInfo);
90 const CommonEventSubscribeInfo &subscribeInfo) in CommonEventServicesSystemTestSubscriber() argument
91 : CommonEventSubscriber(subscribeInfo) in CommonEventServicesSystemTestSubscriber()
108 explicit CESPublishOrderTimeOutOne(const CommonEventSubscribeInfo &subscribeInfo);
113 CESPublishOrderTimeOutOne::CESPublishOrderTimeOutOne(const CommonEventSubscribeInfo &subscribeInfo) in CESPublishOrderTimeOutOne() argument
114 : CommonEventSubscriber(subscribeInfo) in CESPublishOrderTimeOutOne()
124 explicit CESPublishOrderTimeOutTwo(const CommonEventSubscribeInfo &subscribeInfo);
[all …]
/base/account/os_account/frameworks/appaccount/native/src/
Dapp_account_subscribe_info.cpp54 AppAccountSubscribeInfo *subscribeInfo = new (std::nothrow) AppAccountSubscribeInfo(); in Unmarshalling() local
56 if (subscribeInfo && !subscribeInfo->ReadFromParcel(parcel)) { in Unmarshalling()
58 delete subscribeInfo; in Unmarshalling()
59 subscribeInfo = nullptr; in Unmarshalling()
62 return subscribeInfo; in Unmarshalling()
Dapp_account_subscriber.cpp26 AppAccountSubscriber::AppAccountSubscriber(const AppAccountSubscribeInfo &subscribeInfo) in AppAccountSubscriber() argument
27 : subscribeInfo_(subscribeInfo) in AppAccountSubscriber()
30 ErrCode AppAccountSubscriber::GetSubscribeInfo(AppAccountSubscribeInfo &subscribeInfo) const in GetSubscribeInfo()
32 subscribeInfo = subscribeInfo_; in GetSubscribeInfo()
/base/account/os_account/frameworks/osaccount/native/src/
Dos_account_subscriber.cpp24 …er::OsAccountSubscriber(const OsAccountSubscribeInfo &subscribeInfo) : subscribeInfo_(subscribeInf… in OsAccountSubscriber() argument
30 void OsAccountSubscriber::GetSubscribeInfo(OsAccountSubscribeInfo &subscribeInfo) const in GetSubscribeInfo()
32 subscribeInfo = subscribeInfo_; in GetSubscribeInfo()
Dos_account_subscribe_info.cpp67 OsAccountSubscribeInfo *subscribeInfo = new (std::nothrow) OsAccountSubscribeInfo(); in Unmarshalling() local
69 if (subscribeInfo && !subscribeInfo->ReadFromParcel(parcel)) { in Unmarshalling()
71 delete subscribeInfo; in Unmarshalling()
72 subscribeInfo = nullptr; in Unmarshalling()
75 return subscribeInfo; in Unmarshalling()
/base/notification/common_event_service/frameworks/native/test/unittest/
Dcommon_event_subscribe_test.cpp104 …const CommonEventSubscribeInfo &subscribeInfo, const OHOS::sptr<IRemoteObject> &commonEventListene… in SubscribeCommonEvent() argument
157 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
158 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo);
217 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
218 std::shared_ptr<SubscriberTest> subscribera = std::make_shared<SubscriberTest>(subscribeInfo);
219 std::shared_ptr<SubscriberTest> subscriberb = std::make_shared<SubscriberTest>(subscribeInfo);
259 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
260 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo);
280 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
281 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo);
[all …]
Dcommon_event_unsubscribe_test.cpp80 …const CommonEventSubscribeInfo &subscribeInfo, const OHOS::sptr<IRemoteObject> &commonEventListene… in SubscribeCommonEvent() argument
156 CommonEventSubscribeInfo subscribeInfo(matchingSkills_);
157 …std::shared_ptr<DreivedSubscriber> subscriber = std::make_shared<DreivedSubscriber>(subscribeInfo);
173 CommonEventSubscribeInfo subscribeInfo(matchingSkills_);
174 …std::shared_ptr<DreivedSubscriber> subscriber = std::make_shared<DreivedSubscriber>(subscribeInfo);
189 CommonEventSubscribeInfo subscribeInfo(matchingSkills_);
190 …std::shared_ptr<DreivedSubscriber> subscriber = std::make_shared<DreivedSubscriber>(subscribeInfo);
206 CommonEventSubscribeInfo subscribeInfo(matchingSkills_);
207 …std::shared_ptr<DreivedSubscriber> subscriber = std::make_shared<DreivedSubscriber>(subscribeInfo);
224 CommonEventSubscribeInfo subscribeInfo(matchingSkills_);
[all …]
/base/account/os_account/services/accountmgr/test/unittest/app_account/
Dapp_account_subscribe_info_test.cpp63 AppAccountSubscribeInfo subscribeInfo(owners);
67 ErrCode result = subscribeInfo.GetOwners(ownersFromSubscribeInfo);
89 AppAccountSubscribeInfo subscribeInfo; variable
92 ErrCode result = subscribeInfo.SetOwners(owners);
96 EXPECT_EQ(owners.size(), subscribeInfo.owners_.size());
98 EXPECT_EQ(owners.front(), subscribeInfo.owners_.front());
114 AppAccountSubscribeInfo subscribeInfo(owners);
118 EXPECT_EQ(subscribeInfo.Marshalling(parcel), true);
/base/notification/common_event_service/services/test/unittest/
Dcommon_event_unsubscribe_unit_test.cpp95 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
98 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo);
132 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
135 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo);
173 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
174 subscribeInfo.SetPriority(PRIORITY);
175 subscribeInfo.SetPermission(PERMISSION);
176 subscribeInfo.SetDeviceId(DEVICEDID);
179 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo);
199 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
[all …]
Dcommon_event_publish_permission_event_unit_test.cpp117 CommonEventSubscribeInfo subscribeInfo(matchingSkillsObj);
118 subscribeInfo.SetPermission("123");
119 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo);
121 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello");
158 CommonEventSubscribeInfo subscribeInfo(matchingSkillsObj);
159 subscribeInfo.SetPermission("123");
160 subscribeInfo.SetPriority(1);
161 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo);
163 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello");
201 CommonEventSubscribeInfo subscribeInfo(matchingSkillsObj);
[all …]
/base/notification/common_event_service/test/benchmarktest/common_event_publish_test/
Dcommon_event_publish_test.cpp52 …explicit CommonEventSubscriberBenchmark(const CommonEventSubscribeInfo &subscribeInfo) : CommonEve… in CommonEventSubscriberBenchmark() argument
53 subscribeInfo) {}; in CommonEventSubscriberBenchmark()
69 CommonEventSubscribeInfo subscribeInfo(matchingSkills); in BENCHMARK_F() local
70 auto subscriberPtr = std::make_shared<CommonEventSubscriberBenchmark>(subscribeInfo); in BENCHMARK_F()
87 CommonEventSubscribeInfo subscribeInfo(matchingSkills); in BENCHMARK_F() local
88 subscribeInfo.SetPriority(1000); in BENCHMARK_F()
89 auto subscriberPtr = std::make_shared<CommonEventSubscriberBenchmark>(subscribeInfo); in BENCHMARK_F()
/base/account/os_account/frameworks/appaccount/native/test/unittest/
Dapp_account_manager_subscribe_test.cpp74 explicit AppAccountSubscriberTest(const AppAccountSubscribeInfo &subscribeInfo) in AppAccountSubscriberTest() argument
75 : AppAccountSubscriber(subscribeInfo) in AppAccountSubscriberTest()
104 AppAccountSubscribeInfo subscribeInfo(owners);
107 auto subscriberTestPtr = std::make_shared<AppAccountSubscriberTest>(subscribeInfo);
128 AppAccountSubscribeInfo subscribeInfo(owners);
131 auto subscriberTestPtr = std::make_shared<AppAccountSubscriberTest>(subscribeInfo);
154 AppAccountSubscribeInfo subscribeInfo(owners);
157 auto subscriberTestPtr = std::make_shared<AppAccountSubscriberTest>(subscribeInfo);
179 AppAccountSubscribeInfo subscribeInfo(owners);
182 auto subscriberTestPtr = std::make_shared<AppAccountSubscriberTest>(subscribeInfo);
[all …]
/base/account/os_account/test/fuzztest/appaccount_stub/subscribeappaccountstub_fuzzer/
Dsubscribeappaccountstub_fuzzer.cpp31 explicit AppAccountSubscriberTest(const AppAccountSubscribeInfo &subscribeInfo) in AppAccountSubscriberTest() argument
32 : AppAccountSubscriber(subscribeInfo) in AppAccountSubscriberTest()
56 AppAccountSubscribeInfo subscribeInfo; in SubscribeAppAccountStubFuzzTest() local
57 if (!dataTemp.WriteParcelable(&subscribeInfo)) { in SubscribeAppAccountStubFuzzTest()
62 std::make_shared<AppAccountSubscriberTest>(subscribeInfo); in SubscribeAppAccountStubFuzzTest()
/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/
DactsCESManagertest.cpp56 explicit CommonEventServicesSystemTest(const CommonEventSubscribeInfo &subscribeInfo);
61 …entServicesSystemTest::CommonEventServicesSystemTest(const CommonEventSubscribeInfo &subscribeInfo) in CommonEventServicesSystemTest() argument
62 : CommonEventSubscriber(subscribeInfo) in CommonEventServicesSystemTest()
78 explicit CommonEventServicesSystemTestSubscriber(const CommonEventSubscribeInfo &subscribeInfo);
84 const CommonEventSubscribeInfo &subscribeInfo) in CommonEventServicesSystemTestSubscriber() argument
85 : CommonEventSubscriber(subscribeInfo) in CommonEventServicesSystemTestSubscriber()
143 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
144 auto subscriberPtr = std::make_shared<CommonEventServicesSystemTest>(subscribeInfo);
173 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
174 auto subscriberPtr = std::make_shared<CommonEventServicesSystemTest>(subscribeInfo);
[all …]
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_manager_service_subscribe_module_test.cpp79 explicit AppAccountSubscriberTest(const AppAccountSubscribeInfo &subscribeInfo) in AppAccountSubscriberTest() argument
80 : AppAccountSubscriber(subscribeInfo) in AppAccountSubscriberTest()
115 explicit AppAccountSubscriberTestTwo(const AppAccountSubscribeInfo &subscribeInfo) in AppAccountSubscriberTestTwo() argument
116 : AppAccountSubscriber(subscribeInfo) in AppAccountSubscriberTestTwo()
138 explicit AppAccountSubscriberTestThree(const AppAccountSubscribeInfo &subscribeInfo) in AppAccountSubscriberTestThree() argument
139 : AppAccountSubscriber(subscribeInfo) in AppAccountSubscriberTestThree()
176 explicit AppAccountSubscriberTestFour(const AppAccountSubscribeInfo &subscribeInfo) in AppAccountSubscriberTestFour() argument
177 : AppAccountSubscriber(subscribeInfo) in AppAccountSubscriberTestFour()
236 AppAccountSubscribeInfo subscribeInfo(owners);
239 auto subscriberTestPtr = std::make_shared<AppAccountSubscriberTest>(subscribeInfo);
[all …]
/base/account/os_account/test/fuzztest/appaccount/subscribeappaccount_fuzzer/
Dsubscribeappaccount_fuzzer.cpp28 explicit AppAccountSubscriberTest(const AppAccountSubscribeInfo &subscribeInfo) in AppAccountSubscriberTest() argument
29 : AppAccountSubscriber(subscribeInfo) in AppAccountSubscriberTest()
50 AppAccountSubscribeInfo subscribeInfo(owners); in SubscribeAppAccountFuzzTest() local
51 auto subscriberTestPtr = std::make_shared<AppAccountSubscriberTest>(subscribeInfo); in SubscribeAppAccountFuzzTest()
/base/account/os_account/test/fuzztest/appaccount/unsubscribeappaccount_fuzzer/
Dunsubscribeappaccount_fuzzer.cpp28 explicit AppAccountSubscriberTest(const AppAccountSubscribeInfo &subscribeInfo) in AppAccountSubscriberTest() argument
29 : AppAccountSubscriber(subscribeInfo) in AppAccountSubscriberTest()
50 AppAccountSubscribeInfo subscribeInfo(owners); in UnsubscribeAppAccountFuzzTest() local
51 auto subscriberTestPtr = std::make_shared<AppAccountSubscriberTest>(subscribeInfo); in UnsubscribeAppAccountFuzzTest()
/base/notification/common_event_service/test/fuzztest/unsubscribecommonevent_fuzzer/
Dunsubscribecommonevent_fuzzer.cpp46 EventFwk::CommonEventSubscribeInfo subscribeInfo(matchingSkills); in DoSomethingInterestingWithMyAPI() local
48 subscribeInfo.SetPriority(priority); in DoSomethingInterestingWithMyAPI()
49 subscribeInfo.SetPermission(stringData); in DoSomethingInterestingWithMyAPI()
50 subscribeInfo.SetDeviceId(stringData); in DoSomethingInterestingWithMyAPI()
53 std::make_shared<EventFwk::TestSubscriber>(subscribeInfo); in DoSomethingInterestingWithMyAPI()
/base/notification/common_event_service/tools/test/systemtest/cem/
Dcommon_event_command_publish_system_test.cpp107 explicit CommonEventSubscriberTest(const CommonEventSubscribeInfo &subscribeInfo) in CommonEventSubscriberTest() argument
108 : CommonEventSubscriber(subscribeInfo) in CommonEventSubscriberTest()
159 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
162 auto subscriberTestPtr = std::make_shared<CommonEventSubscriberTest>(subscribeInfo);
216 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
219 subscribeInfo.SetDeviceId(STRING_DEVICE_ID_001);
222 auto subscriberTestPtr = std::make_shared<CommonEventSubscriberTest>(subscribeInfo);
276 CommonEventSubscribeInfo subscribeInfo(matchingSkills);
279 subscribeInfo.SetDeviceId(STRING_DEVICE_ID_002);
282 auto subscriberTestPtr = std::make_shared<CommonEventSubscriberTest>(subscribeInfo);
[all …]
/base/account/os_account/services/accountmgr/src/
Daccount_event_subscribe.cpp32 …const EventFwk::CommonEventSubscribeInfo &subscribeInfo, const AccountCommonEventCallback &callbac… in AccountEventSubscriberCallback() argument
33 : CommonEventSubscriber(subscribeInfo), callback_(callback) in AccountEventSubscriberCallback()
50 EventFwk::CommonEventSubscribeInfo subscribeInfo(matchingSkills); in AccountEventSubscriber() local
51 subscriber_ = std::make_shared<AccountEventSubscriberCallback>(subscribeInfo, callback_); in AccountEventSubscriber()

1234567