/foundation/deviceprofile/device_info_manager/old/services/core/src/subscribemanager/ |
H A D | subscribe_info.cpp | 40 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 D | subscribe_manager.cpp | 68 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 D | profile_event_handler_factory.cpp | 38 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 D | subscribe_info_checker.cpp | 38 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 D | device_profile_utils.cpp | 38 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 D | subscribe_info_checker_test.cpp | 71 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 D | profile_crud_test.cpp | 335 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 D | event_subscribe_test.cpp | 133 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 D | distributed_device_profile_client.cpp | 194 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 D | subscribe_info.h | 31 ProfileEvent profileEvent {ProfileEvent::EVENT_UNKNOWN};
|
H A D | distributed_device_profile_client.h | 49 int32_t UnsubscribeProfileEvent(ProfileEvent profileEvent,
|
/foundation/deviceprofile/device_info_manager/old/services/core/include/subscribemanager/ |
H A D | profile_event_handler_factory.h | 32 std::shared_ptr<ProfileEventHandler> GetHandler(ProfileEvent profileEvent);
|
/foundation/systemabilitymgr/samgr/services/samgr/native/include/collect/ |
H A D | icollect_plugin.h | 50 virtual bool CheckExtraMessage(int64_t extraDataId, const OnDemandEvent& profileEvent) in CheckExtraMessage() argument
|
H A D | common_event_collect.h | 51 bool CheckExtraMessage(int64_t extraDataId, const OnDemandEvent& profileEvent) override;
|
/foundation/deviceprofile/device_info_manager/old/services/core/src/ |
H A D | distributed_device_profile_stub.cpp | 284 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 D | dp_command.cpp | 321 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 D | common_event_collect.cpp | 278 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 D | device_profile_storage_manager.cpp | 433 subscribeInfo.profileEvent = ProfileEvent::EVENT_SYNC_COMPLETED; in NotifySyncStart()
|