/ohos5.0/base/notification/common_event_service/frameworks/native/src/ |
H A D | common_event_subscriber.cpp | 21 CommonEventSubscriber::CommonEventSubscriber() : result_(nullptr) in CommonEventSubscriber() function in OHOS::EventFwk::CommonEventSubscriber 26 CommonEventSubscriber::CommonEventSubscriber(const CommonEventSubscribeInfo &subscribeInfo) in CommonEventSubscriber() function in OHOS::EventFwk::CommonEventSubscriber 32 CommonEventSubscriber::~CommonEventSubscriber() in ~CommonEventSubscriber() 42 bool CommonEventSubscriber::SetCode(const int32_t &code) in SetCode() 52 int32_t CommonEventSubscriber::GetCode() const in GetCode() 72 std::string CommonEventSubscriber::GetData() const in GetData() 92 bool CommonEventSubscriber::AbortCommonEvent() in AbortCommonEvent() 102 bool CommonEventSubscriber::ClearAbortCommonEvent() in ClearAbortCommonEvent() 112 bool CommonEventSubscriber::GetAbortCommonEvent() const in GetAbortCommonEvent() 134 bool CommonEventSubscriber::IsStickyCommonEvent() const in IsStickyCommonEvent() [all …]
|
H A D | common_event_manager.cpp | 61 const std::shared_ptr<CommonEventSubscriber> &subscriber) in PublishCommonEvent() 67 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in PublishCommonEventAsUser() 74 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in NewPublishCommonEventAsUser() 82 …const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT… in PublishCommonEvent() 88 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in PublishCommonEventAsUser() 95 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscri… in SubscribeCommonEvent() 100 int32_t CommonEventManager::NewSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &s… in NewSubscribeCommonEvent() 105 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subsc… in UnSubscribeCommonEvent() 110 int32_t CommonEventManager::NewUnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> … in NewUnSubscribeCommonEvent()
|
/ohos5.0/foundation/barrierfree/accessibility/services/test/mock/ |
H A D | mock_common_event_subscriber.cpp | 21 CommonEventSubscriber::CommonEventSubscriber() : result_(nullptr) in CommonEventSubscriber() function in OHOS::EventFwk::CommonEventSubscriber 24 CommonEventSubscriber::CommonEventSubscriber(const CommonEventSubscribeInfo& subscribeInfo) in CommonEventSubscriber() function in OHOS::EventFwk::CommonEventSubscriber 28 CommonEventSubscriber::~CommonEventSubscriber() in ~CommonEventSubscriber() 37 bool CommonEventSubscriber::SetCode(const int& code) in SetCode() 43 int CommonEventSubscriber::GetCode() const in GetCode() 55 std::string CommonEventSubscriber::GetData() const in GetData() 67 bool CommonEventSubscriber::AbortCommonEvent() in AbortCommonEvent() 73 bool CommonEventSubscriber::ClearAbortCommonEvent() in ClearAbortCommonEvent() 79 bool CommonEventSubscriber::GetAbortCommonEvent() const in GetAbortCommonEvent() 99 bool CommonEventSubscriber::IsStickyCommonEvent() const in IsStickyCommonEvent() [all …]
|
H A D | mock_common_event_manager.cpp | 22 static std::shared_ptr<CommonEventSubscriber> subscriberMOCK_ = nullptr; 41 const std::shared_ptr<CommonEventSubscriber>& subscriber) in PublishCommonEvent() 46 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber>& subscri… in SubscribeCommonEvent() 53 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber>& subsc… in UnSubscribeCommonEvent()
|
/ohos5.0/base/notification/common_event_service/services/test/unittest/ |
H A D | mock_common_event_subscriber.cpp | 21 CommonEventSubscriber::CommonEventSubscriber() : result_(nullptr) in CommonEventSubscriber() function in OHOS::EventFwk::CommonEventSubscriber 24 CommonEventSubscriber::CommonEventSubscriber(const CommonEventSubscribeInfo& subscribeInfo) in CommonEventSubscriber() function in OHOS::EventFwk::CommonEventSubscriber 28 CommonEventSubscriber::~CommonEventSubscriber() in ~CommonEventSubscriber() 37 bool CommonEventSubscriber::SetCode(const int& code) in SetCode() 43 int CommonEventSubscriber::GetCode() const in GetCode() 55 std::string CommonEventSubscriber::GetData() const in GetData() 67 bool CommonEventSubscriber::AbortCommonEvent() in AbortCommonEvent() 73 bool CommonEventSubscriber::ClearAbortCommonEvent() in ClearAbortCommonEvent() 79 bool CommonEventSubscriber::GetAbortCommonEvent() const in GetAbortCommonEvent() 99 bool CommonEventSubscriber::IsStickyCommonEvent() const in IsStickyCommonEvent() [all …]
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/ |
H A D | js-apidiff-notification.md | 5 |新增|NA|类名:commonEventManager;<br>方法or属性:export type CommonEventSubscriber = _CommonEventSubscriber;… 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… 18 |新增|NA|类名:CommonEventSubscriber;<br>方法or属性:isOrderedCommonEventSync(): boolean;|commonEventSubscrib… 19 |新增|NA|类名:CommonEventSubscriber;<br>方法or属性:isStickyCommonEventSync(): boolean;|commonEventSubscribe… 20 |新增|NA|类名:CommonEventSubscriber;<br>方法or属性:abortCommonEventSync(): void;|commonEventSubscriber.d.ts| 21 |新增|NA|类名:CommonEventSubscriber;<br>方法or属性:clearAbortCommonEventSync(): void;|commonEventSubscriber… 22 |新增|NA|类名:CommonEventSubscriber;<br>方法or属性:getAbortCommonEventSync(): boolean;|commonEventSubscribe… [all …]
|
/ohos5.0/base/notification/common_event_service/interfaces/inner_api/ |
H A D | common_event_manager.h | 93 const std::shared_ptr<CommonEventSubscriber> &subscriber); 105 const std::shared_ptr<CommonEventSubscriber> &subscriber, const int32_t &userId); 117 const std::shared_ptr<CommonEventSubscriber> &subscriber, const int32_t &userId); 130 …const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT… 144 …const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT… 153 static bool SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber); 161 … static int32_t NewSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber); 169 static bool UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber); 177 …static int32_t NewUnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber);
|
H A D | common_event_subscriber.h | 25 class CommonEventSubscriber { 27 CommonEventSubscriber(); 35 explicit CommonEventSubscriber(const CommonEventSubscribeInfo &subscribeInfo); 37 virtual ~CommonEventSubscriber();
|
/ohos5.0/base/notification/common_event_service/frameworks/core/include/ |
H A D | common_event.h | 41 const std::shared_ptr<CommonEventSubscriber> &subscriber); 53 const std::shared_ptr<CommonEventSubscriber> &subscriber, const int32_t &userId); 66 …const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT… 80 …const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT… 89 int32_t SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber); 97 int32_t UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber); 219 …const std::shared_ptr<CommonEventSubscriber> &subscriber, sptr<IRemoteObject> &commonEventListener… 230 …const std::shared_ptr<CommonEventSubscriber> &subscriber, sptr<IRemoteObject> &commonEventListener… 236 std::map<std::shared_ptr<CommonEventSubscriber>, sptr<CommonEventListener>> eventListeners_;
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/ |
H A D | js-apis-commonEvent.md | 129 let subscriber:CommonEventManager.CommonEventSubscriber; // 用于保存创建成功的订阅者对象,后续使用其完成订阅及退订的动作 137 … createCB(err:Base.BusinessError, commonEventSubscriber:CommonEventManager.CommonEventSubscriber) { 152 createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise\<CommonEventSubscriber> 170 | Promise\<[CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md)> | 返回订阅者对象… 178 let subscriber:CommonEventManager.CommonEventSubscriber; // 用于保存创建成功的订阅者对象,后续使用其完成订阅及退订的动作 196 subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback\<CommonEventData>): void 218 let subscriber:CommonEventManager.CommonEventSubscriber;// 用于保存创建成功的订阅者对象,后续使用其完成订阅及退订的动作 235 … createCB(err:Base.BusinessError, commonEventSubscriber:CommonEventManager.CommonEventSubscriber) { 252 unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback\<void>): void 274 let subscriber:CommonEventManager.CommonEventSubscriber; // 用于保存创建成功的订阅者对象,后续使用其完成订阅及退订的动作 [all …]
|
H A D | js-apis-commonEventManager.md | 159 let subscriber:commonEventManager.CommonEventSubscriber; 165 …tion createCB(err: BusinessError, commonEventSubscriber:commonEventManager.CommonEventSubscriber) { 184 createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise\<CommonEventSubscriber> 217 let subscriber:commonEventManager.CommonEventSubscriber; 233 createSubscriberSync(subscribeInfo: CommonEventSubscribeInfo): CommonEventSubscriber 250 | [CommonEventSubscriber](./js-apis-inner-commonEvent-commonEventSubscriber.md) | 返回订阅者对象。 | 266 let subscriber: commonEventManager.CommonEventSubscriber; 282 subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback\<CommonEventData>): void 314 let subscriber:commonEventManager.CommonEventSubscriber; 354 unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback\<void>): void [all …]
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v4.0-beta2/ |
H A D | js-apidiff-notification.md | 5 …ame: commonEventManager;<br>Method or attribute name: export type CommonEventSubscriber = _CommonE… 13 |Added|NA|Class name: CommonEventSubscriber;<br>Method or attribute name: getCodeSync(): number;|co… 14 |Added|NA|Class name: CommonEventSubscriber;<br>Method or attribute name: setCodeSync(code: number)… 15 |Added|NA|Class name: CommonEventSubscriber;<br>Method or attribute name: getDataSync(): string;|co… 16 |Added|NA|Class name: CommonEventSubscriber;<br>Method or attribute name: setDataSync(data: string)… 18 |Added|NA|Class name: CommonEventSubscriber;<br>Method or attribute name: isOrderedCommonEventSync(… 19 |Added|NA|Class name: CommonEventSubscriber;<br>Method or attribute name: isStickyCommonEventSync()… 20 |Added|NA|Class name: CommonEventSubscriber;<br>Method or attribute name: abortCommonEventSync(): v… 21 |Added|NA|Class name: CommonEventSubscriber;<br>Method or attribute name: clearAbortCommonEventSync… 22 |Added|NA|Class name: CommonEventSubscriber;<br>Method or attribute name: getAbortCommonEventSync()… [all …]
|
/ohos5.0/base/location/test/location_locator/mock/include/ |
H A D | mock_common_event_manager.h | 31 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… 33 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… 35 const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid)); 36 …MOCK_METHOD(bool, SubscribeCommonEvent, (const std::shared_ptr<CommonEventSubscriber> &subscriber)… 37 …MOCK_METHOD(bool, UnSubscribeCommonEvent, (const std::shared_ptr<CommonEventSubscriber> &subscribe…
|
/ohos5.0/base/location/test/location_manager/mock/include/ |
H A D | mock_common_event_manager.h | 31 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… 33 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… 35 const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid)); 36 …MOCK_METHOD(bool, SubscribeCommonEvent, (const std::shared_ptr<CommonEventSubscriber> &subscriber)… 37 …MOCK_METHOD(bool, UnSubscribeCommonEvent, (const std::shared_ptr<CommonEventSubscriber> &subscribe…
|
/ohos5.0/base/telephony/call_manager/services/call/call_state_observer/include/ |
H A D | call_records_manager.h | 34 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber; variable 36 class UserSwitchEventSubscriber : public CommonEventSubscriber { 38 …it UserSwitchEventSubscriber(const CommonEventSubscribeInfo &info) : CommonEventSubscriber(info) {} in UserSwitchEventSubscriber() 43 class DataShareReadyEventSubscriber : public CommonEventSubscriber { 45 …ataShareReadyEventSubscriber(const CommonEventSubscribeInfo &info) : CommonEventSubscriber(info) {} in DataShareReadyEventSubscriber()
|
/ohos5.0/base/powermgr/battery_manager/test/systemtest/src/ |
H A D | battery_event_system_test.cpp | 73 : CommonEventSubscriber(subscriberInfo) in CommonEventBatteryChangedTest() 77 class CommonEventBatteryLowTest : public CommonEventSubscriber { 87 : CommonEventSubscriber(subscriberInfo) in CommonEventBatteryLowTest() 91 class CommonEventBatteryOkayTest : public CommonEventSubscriber { 101 : CommonEventSubscriber(subscriberInfo) in CommonEventBatteryOkayTest() 115 : CommonEventSubscriber(subscriberInfo) in CommonEventBatteryChargingTest() 129 : CommonEventSubscriber(subscriberInfo) in CommonEventBatteryDischargingTest() 143 : CommonEventSubscriber(subscriberInfo) in CommonEventBatteryDisconnectTest() 157 : CommonEventSubscriber(subscriberInfo) in CommonEventBatteryConnectTest() 171 : CommonEventSubscriber(subscriberInfo) in CommonEventChargeTypeChangedTest() [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/account_manager/include/ |
H A D | account_manager.h | 30 class CommonEventSubscriber : public EventFwk::CommonEventSubscriber { 32 CommonEventSubscriber(const EventFwk::CommonEventSubscribeInfo &subscribeInfo) in CommonEventSubscriber() function 33 : EventFwk::CommonEventSubscriber(subscribeInfo) {} in CommonEventSubscriber() 34 ~CommonEventSubscriber() = default; 101 std::shared_ptr<CommonEventSubscriber> subscriber_;
|
/ohos5.0/base/theme/wallpaper_mgr/services/include/ |
H A D | wallpaper_common_event_subscriber.h | 26 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber; variable 31 class WallpaperCommonEventSubscriber : public OHOS::EventFwk::CommonEventSubscriber { 34 : CommonEventSubscriber(CreateSubscriberInfo()), wallpaperService_(wallpaperService) in WallpaperCommonEventSubscriber()
|
/ohos5.0/base/location/services/location_gnss/gnss/include/ |
H A D | gnss_common_event_subscriber.h | 27 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber; variable 33 class GnssCommonEventSubscriber : public OHOS::EventFwk::CommonEventSubscriber { 36 : CommonEventSubscriber(subscriberInfo) {} in GnssCommonEventSubscriber()
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
H A D | mock_common_event_manager.cpp | 23 std::list<std::shared_ptr<CommonEventSubscriber>> subscriberList; 39 const std::shared_ptr<CommonEventSubscriber> &subscriber) in PublishCommonEvent() 44 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscri… in SubscribeCommonEvent() 50 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subsc… in UnSubscribeCommonEvent()
|
/ohos5.0/base/useriam/user_auth_framework/services/context/inc/ |
H A D | keyguard_status_listener.h | 29 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber; variable 51 class KeyguardStatusListener : public CommonEventSubscriber { 54 : CommonEventSubscriber(subscriberInfo) {} in KeyguardStatusListener()
|
/ohos5.0/base/notification/common_event_service/frameworks/core/test/unittest/ |
H A D | common_event_listener_test.cpp | 38 class ListenerSubscriberTest : public CommonEventSubscriber { 40 explicit ListenerSubscriberTest(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in ListenerSubscriberTest() 71 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber = nullptr; 101 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber = nullptr; 117 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber = nullptr;
|
/ohos5.0/base/theme/screenlock_mgr/services/include/ |
H A D | commeventsubscriber.h | 27 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber; variable 39 class CommEventSubscriber : public CommonEventSubscriber { 42 : CommonEventSubscriber(subscriberInfo), registry_(registry) in CommEventSubscriber()
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | event_pass_through_subscriber.h | 28 using OHOS::EventFwk::CommonEventSubscriber; 31 class EventPassThroughSubscriber : public CommonEventSubscriber { 34 : CommonEventSubscriber(info) in EventPassThroughSubscriber() 56 std::shared_ptr<CommonEventSubscriber> eventReceiver_;
|
/ohos5.0/foundation/arkui/ace_engine/interfaces/inner_api/ace/uicast/ |
H A D | uicast_subscriber.h | 30 using OHOS::EventFwk::CommonEventSubscriber; 33 class UICastEventSubscriber : public CommonEventSubscriber { 36 : CommonEventSubscriber(info), context_(context) in UICastEventSubscriber() 62 std::shared_ptr<CommonEventSubscriber> eventReceiver_;
|