Home
last modified time | relevance | path

Searched refs:profileEvent (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/src/subscribemanager/
H A Dsubscribe_manager.cpp68 auto profileEvent = subscribeInfo.profileEvent; in SubscribeProfileEvents() local
69 auto iter = handlersMap_.find(profileEvent); in SubscribeProfileEvents()
73 failedEvents.emplace_back(profileEvent); in SubscribeProfileEvents()
77 handlersMap_.emplace(profileEvent, handler); in SubscribeProfileEvents()
81 failedEvents.emplace_back(profileEvent); in SubscribeProfileEvents()
87 HILOGE("subscribe event:%{public}d failed", profileEvent); in SubscribeProfileEvents()
88 failedEvents.emplace_back(profileEvent); in SubscribeProfileEvents()
90 subProfileEvents.set(static_cast<uint32_t>(profileEvent)); in SubscribeProfileEvents()
114 for (auto profileEvent : profileEvents) { in UnsubscribeProfileEvents() local
115 auto iter = handlersMap_.find(profileEvent); in UnsubscribeProfileEvents()
[all …]
H A Dsubscribe_info.cpp40 PARCEL_WRITE_HELPER_RET(parcel, Uint32, profileEvent, false); in Marshalling()
47 profileEvent = static_cast<ProfileEvent>(parcel.ReadUint32()); in Unmarshalling()
48 if (profileEvent >= EVENT_PROFILE_END || profileEvent == EVENT_UNKNOWN) { in Unmarshalling()
49 HILOGE("invalid profile event, %{public}u", static_cast<uint32_t>(profileEvent)); in Unmarshalling()
63 return ((profileEvent != rhs.profileEvent) || (extraInfo != rhs.extraInfo)); in operator !=()
H A Dprofile_event_handler_factory.cpp38 …::shared_ptr<ProfileEventHandler> ProfileEventHandlerFactory::GetHandler(ProfileEvent profileEvent) in GetHandler() argument
40 HILOGI("get handler for event = %{public}u", static_cast<uint32_t>(profileEvent)); in GetHandler()
41 switch (static_cast<uint32_t>(profileEvent)) { in GetHandler()
47 …LOGW("unknown request code, please check, code = %{public}u", static_cast<uint32_t>(profileEvent)); in GetHandler()
H A Dsubscribe_info_checker.cpp38 auto profileEvent = subscribeInfo.profileEvent; in Check() local
39 switch (static_cast<uint32_t>(profileEvent)) { in Check()
45 HILOGE("unknown profile event = %{public}u", static_cast<uint32_t>(profileEvent)); in Check()
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/
H A Dsubscribe_info_checker_test.cpp71 subInfo.profileEvent = ProfileEvent::EVENT_UNKNOWN;
90 subInfo.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED;
109 subInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
128 subInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
146 subInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
166 subInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
182 subInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
198 subInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
231 subInfo.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED;
250 subInfo.profileEvent = ProfileEvent::EVENT_UNKNOWN;
H A Dprofile_crud_test.cpp411 info1.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
416 info2.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED;
485 info1.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
490 info2.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED;
524 info1.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
529 info2.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED;
662 ProfileEvent profileEvent; variable
663 profileEvents.emplace_back(profileEvent);
856 info2.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED;
1013 info2.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED;
[all …]
H A Devent_subscribe_test.cpp133 eventChange.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in MockSubscribeEvents()
138 eventSync.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED; in MockSubscribeEvents()
171 subscribeInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in MockSubscribeEvent()
323 eventChange.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
/ohos5.0/foundation/deviceprofile/device_info_manager/old/common/src/
H A Ddevice_profile_utils.cpp38 for (auto profileEvent : profileEvents) { in WriteProfileEvents() local
39 PARCEL_WRITE_HELPER_RET(parcel, Uint32, static_cast<uint32_t>(profileEvent), false); in WriteProfileEvents()
52 ProfileEvent profileEvent = static_cast<ProfileEvent>(parcel.ReadUint32()); in ReadProfileEvents() local
53 if (profileEvent >= EVENT_PROFILE_END || profileEvent == EVENT_UNKNOWN) { in ReadProfileEvents()
56 profileEvents.emplace_back(profileEvent); in ReadProfileEvents()
/ohos5.0/foundation/deviceprofile/device_info_manager/old/interfaces/innerkits/core/src/
H A Ddistributed_device_profile_client.cpp194 subProfileEvents.set(static_cast<uint32_t>(subscribeInfo.profileEvent)); in SubscribeProfileEvents()
235 int32_t DistributedDeviceProfileClient::UnsubscribeProfileEvent(ProfileEvent profileEvent, in UnsubscribeProfileEvent() argument
239 profileEvents.emplace_back(profileEvent); in UnsubscribeProfileEvent()
254 for (auto profileEvent : profileEvents) { in UnsubscribeProfileEvents() local
255 unsubProfileEvents.set(static_cast<uint32_t>(profileEvent)); in UnsubscribeProfileEvents()
363 return subscribeInfo.profileEvent == newSubscribeInfo.profileEvent; in MergeSubscribeInfoLocked()
/ohos5.0/foundation/deviceprofile/device_info_manager/
H A DREADME_zh.md170 changeEventInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
176 syncEventInfo.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED;
H A DREADME.md166 changeEventInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
172 syncEventInfo.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED;
/ohos5.0/docs/zh-cn/readme/
H A DDeviceProfile子系统.md170 info1.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
176 info2.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED;
/ohos5.0/foundation/deviceprofile/device_info_manager/old/interfaces/innerkits/core/include/
H A Dsubscribe_info.h31 ProfileEvent profileEvent {ProfileEvent::EVENT_UNKNOWN};
H A Ddistributed_device_profile_client.h49 int32_t UnsubscribeProfileEvent(ProfileEvent profileEvent,
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/include/subscribemanager/
H A Dprofile_event_handler_factory.h32 std::shared_ptr<ProfileEventHandler> GetHandler(ProfileEvent profileEvent);
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/src/
H A Ddistributed_device_profile_stub.cpp284 HILOGD("profile event = %{public}u", static_cast<uint32_t>(subscribeInfo.profileEvent)); in SubscribeProfileEventInner()
312 ProfileEvent profileEvent = static_cast<ProfileEvent>(data.ReadUint32()); in UnsubscribeProfileEventInner() local
313 if (profileEvent >= EVENT_PROFILE_END || profileEvent == EVENT_UNKNOWN) { in UnsubscribeProfileEventInner()
316 profileEvents.emplace_back(profileEvent); in UnsubscribeProfileEventInner()
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/include/collect/
H A Dicollect_plugin.h50 virtual bool CheckExtraMessage(int64_t extraDataId, const OnDemandEvent& profileEvent) in CheckExtraMessage() argument
H A Dcommon_event_collect.h51 bool CheckExtraMessage(int64_t extraDataId, const OnDemandEvent& profileEvent) override;
/ohos5.0/docs/en/readme/
H A DDeviceProfile.md164 info1.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED;
170 info2.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED;
/ohos5.0/foundation/deviceprofile/device_info_manager/old/tools/dp/src/
H A Ddp_command.cpp316 info1.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in SubscribeCommand()
321 info2.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED; in SubscribeCommand()
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/
H A Dcommon_event_collect.cpp298 bool CommonEventCollect::CheckExtraMessage(int64_t extraDataId, const OnDemandEvent& profileEvent) in CheckExtraMessage() argument
305 for (auto [key, profileValue] : profileEvent.extraMessages) { in CheckExtraMessage()
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/src/dbstorage/
H A Ddevice_profile_storage_manager.cpp430 subscribeInfo.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED; in NotifySyncStart()