Home
last modified time | relevance | path

Searched refs:listenerMap (Results 1 - 16 of 16) sorted by relevance

/foundation/distributedhardware/device_manager/services/service/src/ipc/lite/
H A Dipc_server_listener.cpp71 const std::map<std::string, CommonSvcId> &listenerMap = IpcServerListenermgr::GetInstance().GetAllListeners(); in SendAll() local
72 for (const auto &kv : listenerMap) { in SendAll()
98 const std::map<std::string, CommonSvcId> &listenerMap = IpcServerListenermgr::GetInstance().GetAllListeners(); in GetAllPkgName() local
99 for (const auto &kv : listenerMap) { in GetAllPkgName()
/foundation/deviceprofile/device_info_manager/services/core/test/unittest/
H A Dipc_utils_test.cpp171 std::map<std::string, OHOS::DistributedDeviceProfile::SubscribeInfo> listenerMap; in HWTEST_F() local
172 bool ret = IpcUtils::Marshalling(parcel, listenerMap); in HWTEST_F()
174 ret = IpcUtils::UnMarshalling(parcel, listenerMap); in HWTEST_F()
177 listenerMap.insert({"12345", subscribeInfo}); in HWTEST_F()
178 ret = IpcUtils::Marshalling(parcel, listenerMap); in HWTEST_F()
180 ret = IpcUtils::UnMarshalling(parcel, listenerMap); in HWTEST_F()
H A Ddistributed_device_profile_stub_new_test.cpp63 int32_t SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) override;
226 int32_t MockDistributedDeviceProfileStubNew::SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) in SendSubscribeInfos() argument
228 (void)listenerMap; in SendSubscribeInfos()
/foundation/deviceprofile/device_info_manager/common/src/utils/
H A Dipc_utils.cpp105 OHOS::DistributedDeviceProfile::SubscribeInfo>& listenerMap) in Marshalling()
107 if (listenerMap.size() == 0 || listenerMap.size() > MAX_LISTENER_SIZE) { in Marshalling()
108 HILOGE("listenerMap size is invalid!size : %{public}zu", listenerMap.size()); in Marshalling()
111 uint32_t size = listenerMap.size(); in Marshalling()
113 for (const auto& item : listenerMap) { in Marshalling()
126 HILOGE("listenerMap size is invalid!size : %{public}zu", changeTypes.size()); in Marshalling()
232 OHOS::DistributedDeviceProfile::SubscribeInfo>& listenerMap) in UnMarshalling()
245 listenerMap[subscribeInf in UnMarshalling()
104 Marshalling(MessageParcel& parcel, const std::map<std::string, OHOS::DistributedDeviceProfile::SubscribeInfo>& listenerMap) Marshalling() argument
231 UnMarshalling(MessageParcel& parcel, std::map<std::string, OHOS::DistributedDeviceProfile::SubscribeInfo>& listenerMap) UnMarshalling() argument
[all...]
/foundation/deviceprofile/device_info_manager/common/include/utils/
H A Dipc_utils.h46 OHOS::DistributedDeviceProfile::SubscribeInfo>& listenerMap);
54 OHOS::DistributedDeviceProfile::SubscribeInfo>& listenerMap);
/foundation/multimedia/av_session/services/session/server/
H A Davsession_service_ext.cpp226 std::map<pid_t, sptr<ISessionListener>> listenerMap = GetUsersManager().GetSessionListener(); in NotifyDeviceAvailable() local
227 for (const auto& [pid, listener] : listenerMap) { in NotifyDeviceAvailable()
242 std::map<pid_t, sptr<ISessionListener>> listenerMap = GetUsersManager().GetSessionListener(); in NotifyDeviceLogEvent() local
243 for (const auto& [pid, listener] : listenerMap) { in NotifyDeviceLogEvent()
261 std::map<pid_t, sptr<ISessionListener>> listenerMap = GetUsersManager().GetSessionListener(); in NotifyDeviceOffline() local
262 for (const auto& [pid, listener] : listenerMap) { in NotifyDeviceOffline()
H A Davsession_users_manager.cpp213 std::map<pid_t, sptr<ISessionListener>> listenerMap; in AddSessionListener() local
214 listenerMap[pid] = listener; in AddSessionListener()
215 sessionListenersMapByUserId_[curUserId_] = listenerMap; in AddSessionListener()
249 std::map<pid_t, sptr<ISessionListener>> listenerMap; in GetSessionListenerForCurUser() local
250 sessionListenersMapByUserId_[curUserId_] = listenerMap; in GetSessionListenerForCurUser()
H A Davsession_service.cpp868 std::map<pid_t, sptr<ISessionListener>> listenerMap = GetUsersManager().GetSessionListener(); in NotifySessionCreate() local
869 for (const auto& [pid, listener] : listenerMap) { in NotifySessionCreate()
896 std::map<pid_t, sptr<ISessionListener>> listenerMap = GetUsersManager().GetSessionListener(); in NotifySessionRelease() local
897 for (const auto& [pid, listener] : listenerMap) { in NotifySessionRelease()
922 std::map<pid_t, sptr<ISessionListener>> listenerMap = GetUsersManager().GetSessionListener(); in NotifyTopSessionChanged() local
923 for (const auto& [pid, listener] : listenerMap) { in NotifyTopSessionChanged()
951 std::map<pid_t, sptr<ISessionListener>> listenerMap = GetUsersManager().GetSessionListener(); in NotifyAudioSessionCheck() local
952 for (const auto& [pid, listener] : listenerMap) { in NotifyAudioSessionCheck()
/foundation/multimedia/camera_framework/frameworks/native/camera/src/input/
H A Dcamera_manager.cpp230 auto listenerMap = cameraManager->GetCameraMngrCallbackMap(); in OnCameraStatusChanged() local
231 MEDIA_DEBUG_LOG("CameraMngrCallbackMap size %{public}d", listenerMap.Size()); in OnCameraStatusChanged()
232 if (listenerMap.IsEmpty()) { in OnCameraStatusChanged()
249 listenerMap.Iterate([&](std::thread::id threadId, in OnCameraStatusChanged()
271 auto listenerMap = cameraManager->GetCameraMngrCallbackMap(); in OnFlashlightStatusChanged() local
272 MEDIA_DEBUG_LOG("CameraMngrCallbackMap size %{public}d", listenerMap.Size()); in OnFlashlightStatusChanged()
273 if (listenerMap.IsEmpty()) { in OnFlashlightStatusChanged()
277 listenerMap.Iterate([&](std::thread::id threadId, std::shared_ptr<CameraManagerCallback> cameraManagerCallback) { in OnFlashlightStatusChanged()
967 auto listenerMap = GetCameraMngrCallbackMap(); in CameraServerDied() local
968 listenerMap in CameraServerDied()
1930 auto listenerMap = cameraManager->GetTorchListenerMap(); OnTorchStatusChange() local
1958 auto listenerMap = cameraManager->GetFoldListenerMap(); OnFoldStatusChanged() local
2033 auto listenerMap = cameraManager->GetCameraMuteListenerMap(); OnCameraMute() local
[all...]
/foundation/deviceprofile/device_info_manager/interfaces/innerkits/core/include/
H A Ddistributed_device_profile_proxy.h67 int32_t SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) override;
/foundation/deviceprofile/device_info_manager/common/include/interfaces/
H A Di_distributed_device_profile.h64 virtual int32_t SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) = 0;
/foundation/deviceprofile/device_info_manager/services/core/include/
H A Ddistributed_device_profile_service_new.h70 int32_t SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) override;
/foundation/deviceprofile/device_info_manager/services/core/src/
H A Ddistributed_device_profile_stub_new.cpp507 std::map<std::string, SubscribeInfo> listenerMap; in SendSubscribeInfosInner() local
508 if (!IpcUtils::UnMarshalling(data, listenerMap)) { in SendSubscribeInfosInner()
512 int32_t ret = SendSubscribeInfos(listenerMap); in SendSubscribeInfosInner()
H A Ddistributed_device_profile_service_new.cpp505 int32_t DistributedDeviceProfileServiceNew::SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) in SendSubscribeInfos() argument
507 return SubscribeProfileManager::GetInstance().SubscribeDeviceProfile(listenerMap); in SendSubscribeInfos()
/foundation/deviceprofile/device_info_manager/interfaces/innerkits/core/src/
H A Ddistributed_device_profile_proxy.cpp325 int32_t DistributedDeviceProfileProxy::SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) in SendSubscribeInfos() argument
331 if (!IpcUtils::Marshalling(data, listenerMap)) { in SendSubscribeInfos()
/foundation/deviceprofile/device_info_manager/old/services/core/src/
H A Ddistributed_device_profile_stub.cpp664 std::map<std::string, OHOS::DistributedDeviceProfile::SubscribeInfo> listenerMap; in SendSubscribeInfosInner() local
665 if (!IpcUtils::UnMarshalling(data, listenerMap)) { in SendSubscribeInfosInner()
669 int32_t ret = DistributedDeviceProfileServiceNew::GetInstance().SendSubscribeInfos(listenerMap); in SendSubscribeInfosInner()

Completed in 24 milliseconds