Home
last modified time | relevance | path

Searched refs:commonEventSubscriber (Results 1 – 25 of 55) sorted by relevance

123

/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/
H A Djs-apidiff-notification.md13 |新增|NA|类名:CommonEventSubscriber;<br>方法or属性:getCodeSync(): number;|commonEventSubscriber.d.ts|
14 |新增|NA|类名:CommonEventSubscriber;<br>方法or属性:setCodeSync(code: number): void;|commonEventSubscriber.d…
15 |新增|NA|类名:CommonEventSubscriber;<br>方法or属性:getDataSync(): string;|commonEventSubscriber.d.ts|
16 |新增|NA|类名:CommonEventSubscriber;<br>方法or属性:setDataSync(data: string): void;|commonEventSubscriber.d…
17 …criber;<br>方法or属性:setCodeAndDataSync(code: number, data: string): void;|commonEventSubscriber.d.ts|
18 …名:CommonEventSubscriber;<br>方法or属性:isOrderedCommonEventSync(): boolean;|commonEventSubscriber.d.ts|
19 …类名:CommonEventSubscriber;<br>方法or属性:isStickyCommonEventSync(): boolean;|commonEventSubscriber.d.ts|
20 |新增|NA|类名:CommonEventSubscriber;<br>方法or属性:abortCommonEventSync(): void;|commonEventSubscriber.d.ts|
21 |新增|NA|类名:CommonEventSubscriber;<br>方法or属性:clearAbortCommonEventSync(): void;|commonEventSubscriber
22 …类名:CommonEventSubscriber;<br>方法or属性:getAbortCommonEventSync(): boolean;|commonEventSubscriber.d.ts|
[all …]
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v4.0-beta2/
H A Djs-apidiff-notification.md13 …monEventSubscriber;<br>Method or attribute name: getCodeSync(): number;|commonEventSubscriber.d.ts|
14 …bscriber;<br>Method or attribute name: setCodeSync(code: number): void;|commonEventSubscriber.d.ts|
15 …monEventSubscriber;<br>Method or attribute name: getDataSync(): string;|commonEventSubscriber.d.ts|
16 …bscriber;<br>Method or attribute name: setDataSync(data: string): void;|commonEventSubscriber.d.ts|
17 …r attribute name: setCodeAndDataSync(code: number, data: string): void;|commonEventSubscriber.d.ts|
18 …iber;<br>Method or attribute name: isOrderedCommonEventSync(): boolean;|commonEventSubscriber.d.ts|
19 …riber;<br>Method or attribute name: isStickyCommonEventSync(): boolean;|commonEventSubscriber.d.ts|
20 …tSubscriber;<br>Method or attribute name: abortCommonEventSync(): void;|commonEventSubscriber.d.ts|
21 …criber;<br>Method or attribute name: clearAbortCommonEventSync(): void;|commonEventSubscriber.d.ts|
22 …riber;<br>Method or attribute name: getAbortCommonEventSync(): boolean;|commonEventSubscriber.d.ts|
[all …]
/ohos5.0/foundation/resourceschedule/work_scheduler/test/fuzztest/workschedulerstartwork_fuzzer/
H A Dworkschedulerstartwork_fuzzer.cpp207 batteryLevelListener.commonEventSubscriber->OnReceiveEvent(data); in OnBatteryLevelListener()
212 batteryLevelListener.commonEventSubscriber->OnReceiveEvent(data); in OnBatteryLevelListener()
248 chargerListener.commonEventSubscriber->OnReceiveEvent(data); in OnChargerListener()
254 chargerListener.commonEventSubscriber->OnReceiveEvent(data); in OnChargerListener()
257 chargerListener.commonEventSubscriber->OnReceiveEvent(data); in OnChargerListener()
260 chargerListener.commonEventSubscriber->OnReceiveEvent(data); in OnChargerListener()
265 chargerListener.commonEventSubscriber->OnReceiveEvent(data); in OnChargerListener()
276 screenListener->commonEventSubscriber->OnReceiveEvent(data); in OnScreenListener()
281 screenListener->commonEventSubscriber->OnReceiveEvent(data); in OnScreenListener()
285 screenListener->commonEventSubscriber->OnReceiveEvent(data); in OnScreenListener()
[all …]
/ohos5.0/base/notification/common_event_service/frameworks/core/test/unittest/
H A Dcommon_event_listener_test.cpp71 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber = nullptr; variable
72 CommonEventListener commonEventListener(commonEventSubscriber);
101 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber = nullptr; variable
103 std::make_shared<CommonEventListener>(commonEventSubscriber);
117 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber = nullptr; variable
119 std::make_shared<CommonEventListener>(commonEventSubscriber);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/
H A Djs-apis-commonEvent.md137 function createCB(err:Base.BusinessError, commonEventSubscriber:CommonEventManager.CommonEventSubsc…
142 subscriber = commonEventSubscriber;
170 | Promise\<[CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md)> | 返回订阅者对象…
186 commonEvent.createSubscriber(subscribeInfo).then((commonEventSubscriber:CommonEventManager.CommonEv…
188 subscriber = commonEventSubscriber;
209 | subscriber | [CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md) | …
235 function createCB(err:Base.BusinessError, commonEventSubscriber:CommonEventManager.CommonEventSubsc…
240 subscriber = commonEventSubscriber;
265 | subscriber | [CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md) | 是 …
291 function createCB(err:Base.BusinessError, commonEventSubscriber:CommonEventManager.CommonEventSubsc…
[all …]
H A Djs-apis-commonEventManager.md165 function createCB(err: BusinessError, commonEventSubscriber:commonEventManager.CommonEventSubscribe…
168 subscriber = commonEventSubscriber;
201 | Promise\<[CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md)> | 以Promis…
223 commonEventManager.createSubscriber(subscribeInfo).then((commonEventSubscriber:commonEventManager.C…
225 subscriber = commonEventSubscriber;
250 | [CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md) | 返回订阅者对象。 |
328 function createCB(err: BusinessError, commonEventSubscriber:commonEventManager.CommonEventSubscribe…
331 subscriber = commonEventSubscriber;
366 | subscriber | [CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md) | 是 …
400 function createCB(err: BusinessError, commonEventSubscriber:commonEventManager.CommonEventSubscribe…
[all …]
H A Djs-apis-commonEvent-sys.md131 | subscriber | [CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md) | 是 …
157 function createCB(err:Base.BusinessError, commonEventSubscriber:CommonEventManager.CommonEventSubsc…
162 subscriber = commonEventSubscriber;
/ohos5.0/foundation/resourceschedule/work_scheduler/services/test/src/conditions/
H A Dnetwork_listener_test.cpp67 networkListener_->commonEventSubscriber->OnReceiveEvent(data);
88 networkListener_->commonEventSubscriber->OnReceiveEvent(data);
109 networkListener_->commonEventSubscriber->OnReceiveEvent(data);
130 networkListener_->commonEventSubscriber->OnReceiveEvent(data);
151 networkListener_->commonEventSubscriber->OnReceiveEvent(data);
172 networkListener_->commonEventSubscriber->OnReceiveEvent(data);
193 networkListener_->commonEventSubscriber->OnReceiveEvent(data);
213 networkListener_->commonEventSubscriber->OnReceiveEvent(data);
H A Dscreen_listener_test.cpp62 screenListener_->commonEventSubscriber->OnReceiveEvent(data);
80 screenListener_->commonEventSubscriber->OnReceiveEvent(data);
98 screenListener_->commonEventSubscriber->OnReceiveEvent(data);
116 screenListener_->commonEventSubscriber->OnReceiveEvent(data);
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/conditions/
H A Dbattery_level_listener.cpp77 this->commonEventSubscriber = CreateBatteryEventSubscriber(*this); in Start()
78 return EventFwk::CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber); in Start()
84 if (this->commonEventSubscriber != nullptr) { in Stop()
85 … bool result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber); in Stop()
87 this->commonEventSubscriber = nullptr; in Stop()
H A Dbattery_status_listener.cpp69 this->commonEventSubscriber = CreateBatteryEventSubscriber(*this); in Start()
70 return EventFwk::CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber); in Start()
76 if (this->commonEventSubscriber != nullptr) { in Stop()
77 … bool result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber); in Stop()
79 this->commonEventSubscriber = nullptr; in Stop()
H A Dstorage_listener.cpp68 this->commonEventSubscriber = CreateStorageEventSubscriber(*this); in Start()
69 return EventFwk::CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber); in Start()
75 if (this->commonEventSubscriber != nullptr) { in Stop()
76 … bool result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber); in Stop()
78 this->commonEventSubscriber = nullptr; in Stop()
H A Dscreen_listener.cpp94 this->commonEventSubscriber = CreateScreenEventSubscriber(*this); in Start()
95 return EventFwk::CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber); in Start()
101 if (this->commonEventSubscriber != nullptr) { in Stop()
102 … bool result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber); in Stop()
104 this->commonEventSubscriber = nullptr; in Stop()
H A Dcharger_listener.cpp96 this->commonEventSubscriber = CreateChargerEventSubscriber(*this); in Start()
97 return EventFwk::CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber); in Start()
103 if (this->commonEventSubscriber != nullptr) { in Stop()
104 … bool result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber); in Stop()
106 this->commonEventSubscriber = nullptr; in Stop()
H A Dnetwork_listener.cpp112 this->commonEventSubscriber = CreateNetworkEventSubscriber(*this); in Start()
113 return EventFwk::CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber); in Start()
119 if (this->commonEventSubscriber != nullptr) { in Stop()
120 … bool result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber); in Stop()
122 this->commonEventSubscriber = nullptr; in Stop()
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/policy/
H A Dapp_data_clear_listener.cpp79 this->commonEventSubscriber = CreateAppDataClearSubscriber(*this); in Start()
80 return CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber); in Start()
85 if (this->commonEventSubscriber != nullptr) { in Stop()
86 bool result = CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber); in Stop()
88 this->commonEventSubscriber = nullptr; in Stop()
/ohos5.0/foundation/resourceschedule/work_scheduler/services/test/src/policy/
H A Dapp_data_clear_listener_test.cpp65 appDataClearListener_->commonEventSubscriber->OnReceiveEvent(event1);
70 appDataClearListener_->commonEventSubscriber->OnReceiveEvent(event2);
75 appDataClearListener_->commonEventSubscriber->OnReceiveEvent(event3);
80 appDataClearListener_->commonEventSubscriber->OnReceiveEvent(event4);
85 appDataClearListener_->commonEventSubscriber->OnReceiveEvent(event5);
/ohos5.0/base/powermgr/power_manager/power_dialog/entry/src/main/ets/InjectNotice/
H A DInjectNoticeUtil.ts56 commonEventSubscriber: CommonEventManager.CommonEventSubscriber = null;
178 if (this.commonEventSubscriber !== null) {
186 …CommonEventManager.createSubscriber(subscribeInfo).then((commonEventSubscriber: CommonEventManager…
188 this.commonEventSubscriber = commonEventSubscriber;
198 if (this.commonEventSubscriber === null) {
202 CommonEventManager.subscribe(this.commonEventSubscriber, (err: Base.BusinessError,
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/
H A Djs-apis-commonEvent.md137 function createCB(err:Base.BusinessError, commonEventSubscriber:CommonEventManager.CommonEventSubsc…
142 subscriber = commonEventSubscriber;
170 | Promise\<[CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md)> | Promise…
186 CommonEvent.createSubscriber(subscribeInfo).then((commonEventSubscriber:CommonEventManager.CommonEv…
188 subscriber = commonEventSubscriber;
209 | subscriber | [CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md) | …
235 function createCB(err:Base.BusinessError, commonEventSubscriber:CommonEventManager.CommonEventSubsc…
240 subscriber = commonEventSubscriber;
265 | subscriber | [CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md) | Yes …
291 function createCB(err:Base.BusinessError, commonEventSubscriber:CommonEventManager.CommonEventSubsc…
[all …]
H A Djs-apis-commonEventManager.md165 function createCB(err: BusinessError, commonEventSubscriber:commonEventManager.CommonEventSubscribe…
168 subscriber = commonEventSubscriber;
201 | Promise\<[CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md)> | Promise…
223 commonEventManager.createSubscriber(subscribeInfo).then((commonEventSubscriber:commonEventManager.C…
225 subscriber = commonEventSubscriber;
250 | [CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md) | Promise used to r…
328 function createCB(err: BusinessError, commonEventSubscriber:commonEventManager.CommonEventSubscribe…
331 subscriber = commonEventSubscriber;
366 | subscriber | [CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md) | Yes …
400 function createCB(err: BusinessError, commonEventSubscriber:commonEventManager.CommonEventSubscribe…
[all …]
/ohos5.0/foundation/resourceschedule/work_scheduler/services/test/src/
H A Dworkschedulerservice_test.cpp674 EXPECT_NE(batteryLevelListener.commonEventSubscriber, nullptr);
677 batteryLevelListener.commonEventSubscriber->OnReceiveEvent(data);
682 batteryLevelListener.commonEventSubscriber->OnReceiveEvent(data);
686 batteryLevelListener.commonEventSubscriber->OnReceiveEvent(data);
698 EXPECT_NE(batteryStatusListener.commonEventSubscriber, nullptr);
722 EXPECT_NE(chargerListener.commonEventSubscriber, nullptr);
725 chargerListener.commonEventSubscriber->OnReceiveEvent(data);
731 chargerListener.commonEventSubscriber->OnReceiveEvent(data);
734 chargerListener.commonEventSubscriber->OnReceiveEvent(data);
738 chargerListener.commonEventSubscriber->OnReceiveEvent(data);
[all …]
/ohos5.0/base/notification/common_event_service/test/fuzztest/commoneventproxy_fuzzer/
H A Dcommoneventproxy_fuzzer.cpp30 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber = nullptr; in DoSomethingInterestingWithMyAPI() local
31 EventFwk::CommonEventListener commonEventListener(commonEventSubscriber); in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/notification/common_event_service/frameworks/core/src/
H A Dcommon_event_listener.cpp26 …tListener::CommonEventListener(const std::shared_ptr<CommonEventSubscriber> &commonEventSubscriber) in CommonEventListener() argument
27 : commonEventSubscriber_(commonEventSubscriber) in CommonEventListener()
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-event-and-notification_api-9-canary.md9 | commonEventSubscriber | CommonEventSubscriber | finishCommonEvent(callback: AsyncCallback\<void>)…
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/include/conditions/
H A Dnetwork_listener.h52 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber = nullptr; variable

123