Home
last modified time | relevance | path

Searched refs:profileEvent (Results 1 - 18 of 18) sorted by relevance

/foundation/deviceprofile/device_info_manager/old/services/core/src/subscribemanager/
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 Dsubscribe_manager.cpp68 auto profileEvent = subscribeInfo.profileEvent; in SubscribeProfileEvents() local
69 auto iter = handlersMap_.find(profileEvent); in SubscribeProfileEvents()
71 handler = ProfileEventHandlerFactory::GetInstance().GetHandler(profileEvent); in SubscribeProfileEvents()
73 failedEvents.emplace_back(profileEvent); in SubscribeProfileEvents()
74 HILOGW("get or init handler for event:%{public}d failed", profileEvent); in SubscribeProfileEvents()
77 handlersMap_.emplace(profileEvent, handler); in SubscribeProfileEvents()
81 failedEvents.emplace_back(profileEvent); in SubscribeProfileEvents()
82 HILOGW("get or init handler for event:%{public}d failed", profileEvent); in SubscribeProfileEvents()
87 HILOGE("subscribe event:%{public}d failed", profileEvent); in SubscribeProfileEvents()
[all...]
H A Dprofile_event_handler_factory.cpp38 std::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 HILOGW("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()
39 switch (static_cast<uint32_t>(profileEvent)) { in Check()
45 HILOGE("unknown profile event = %{public}u", static_cast<uint32_t>(profileEvent)); in Check()
/foundation/deviceprofile/device_info_manager/old/common/src/
H A Ddevice_profile_utils.cpp38 for (auto profileEvent : profileEvents) { in WriteProfileEvents()
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()
/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/
H A Dsubscribe_info_checker_test.cpp71 subInfo.profileEvent = ProfileEvent::EVENT_UNKNOWN; in HWTEST_F()
90 subInfo.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED; in HWTEST_F()
109 subInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in HWTEST_F()
128 subInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in HWTEST_F()
146 subInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in HWTEST_F()
166 subInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in HWTEST_F()
182 subInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in HWTEST_F()
198 subInfo.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in HWTEST_F()
231 subInfo.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED; in HWTEST_F()
250 subInfo.profileEvent in HWTEST_F()
[all...]
H A Dprofile_crud_test.cpp335 ProfileEvent profileEvent = static_cast<ProfileEvent>(parcel.ReadUint32()); in HWTEST_F() local
336 int result = DistributedDeviceProfileClient::GetInstance().UnsubscribeProfileEvent(profileEvent, eventCb); in HWTEST_F()
411 info1.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in HWTEST_F()
416 info2.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED; in HWTEST_F()
485 info1.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in HWTEST_F()
490 info2.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED; in HWTEST_F()
524 info1.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in HWTEST_F()
529 info2.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED; in HWTEST_F()
662 ProfileEvent profileEvent; in HWTEST_F() local
663 profileEvents.emplace_back(profileEvent); in HWTEST_F()
[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; in HWTEST_F()
/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()
255 unsubProfileEvents.set(static_cast<uint32_t>(profileEvent)); in UnsubscribeProfileEvents()
363 return subscribeInfo.profileEvent == newSubscribeInfo.profileEvent; in MergeSubscribeInfoLocked()
/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,
/foundation/deviceprofile/device_info_manager/old/services/core/include/subscribemanager/
H A Dprofile_event_handler_factory.h32 std::shared_ptr<ProfileEventHandler> GetHandler(ProfileEvent profileEvent);
/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;
/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()
/foundation/deviceprofile/device_info_manager/old/tools/dp/src/
H A Ddp_command.cpp321 info1.profileEvent = ProfileEvent::EVENT_PROFILE_CHANGED; in SubscribeCommand()
326 info2.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED; in SubscribeCommand()
/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/
H A Dcommon_event_collect.cpp278 bool CommonEventCollect::CheckExtraMessage(int64_t extraDataId, const OnDemandEvent& profileEvent) in CheckExtraMessage() argument
285 for (auto [key, profileValue] : profileEvent.extraMessages) { in CheckExtraMessage()
/foundation/deviceprofile/device_info_manager/old/services/core/src/dbstorage/
H A Ddevice_profile_storage_manager.cpp433 subscribeInfo.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED; in NotifySyncStart()

Completed in 11 milliseconds