/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/ |
H A D | js-apidiff-notification.md | 13 |新增|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 D | js-apidiff-notification.md | 13 …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 D | workschedulerstartwork_fuzzer.cpp | 207 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 D | common_event_listener_test.cpp | 71 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 D | js-apis-commonEvent.md | 137 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 D | js-apis-commonEventManager.md | 165 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 D | js-apis-commonEvent-sys.md | 131 | 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 D | network_listener_test.cpp | 67 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 D | screen_listener_test.cpp | 62 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 D | battery_level_listener.cpp | 77 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 D | battery_status_listener.cpp | 69 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 D | storage_listener.cpp | 68 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 D | screen_listener.cpp | 94 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 D | charger_listener.cpp | 96 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 D | network_listener.cpp | 112 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 D | app_data_clear_listener.cpp | 79 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 D | app_data_clear_listener_test.cpp | 65 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 D | InjectNoticeUtil.ts | 56 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 D | js-apis-commonEvent.md | 137 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 D | js-apis-commonEventManager.md | 165 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 D | workschedulerservice_test.cpp | 674 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 D | commoneventproxy_fuzzer.cpp | 30 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 D | common_event_listener.cpp | 26 …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 D | js-apidiff-event-and-notification_api-9-canary.md | 9 | commonEventSubscriber | CommonEventSubscriber | finishCommonEvent(callback: AsyncCallback\<void>)…
|
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/include/conditions/ |
H A D | network_listener.h | 52 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber = nullptr; variable
|