Home
last modified time | relevance | path

Searched refs:listenerMap (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/deviceprofile/device_info_manager/common/src/utils/
H A Dipc_utils.cpp105 OHOS::DistributedDeviceProfile::SubscribeInfo>& listenerMap) in Marshalling() argument
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()
232 OHOS::DistributedDeviceProfile::SubscribeInfo>& listenerMap) in UnMarshalling() argument
245listenerMap[subscribeInfo.GetSubscribeKey() + SEPARATOR + std::to_string(subscribeInfo.GetSaId())]… in UnMarshalling()
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/unittest/
H A Dipc_utils_test.cpp171 std::map<std::string, OHOS::DistributedDeviceProfile::SubscribeInfo> listenerMap; variable
172 bool ret = IpcUtils::Marshalling(parcel, listenerMap);
174 ret = IpcUtils::UnMarshalling(parcel, listenerMap);
177 listenerMap.insert({"12345", subscribeInfo});
178 ret = IpcUtils::Marshalling(parcel, listenerMap);
180 ret = IpcUtils::UnMarshalling(parcel, listenerMap);
H A Ddistributed_device_profile_stub_new_test.cpp63 int32_t SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) override;
226 …stributedDeviceProfileStubNew::SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) in SendSubscribeInfos() argument
228 (void)listenerMap; in SendSubscribeInfos()
/ohos5.0/foundation/distributedhardware/device_manager/services/service/src/ipc/lite/
H A Dipc_server_listener.cpp71 …const std::map<std::string, CommonSvcId> &listenerMap = IpcServerListenermgr::GetInstance().GetAll… in SendAll() local
72 for (const auto &kv : listenerMap) { in SendAll()
98 …const std::map<std::string, CommonSvcId> &listenerMap = IpcServerListenermgr::GetInstance().GetAll… in GetAllPkgName() local
99 for (const auto &kv : listenerMap) { in GetAllPkgName()
/ohos5.0/foundation/multimedia/av_session/services/session/server/
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.cpp917 std::map<pid_t, sptr<ISessionListener>> listenerMap = GetUsersManager().GetSessionListener(); in NotifySessionCreate() local
918 for (const auto& [pid, listener] : listenerMap) { in NotifySessionCreate()
940 std::map<pid_t, sptr<ISessionListener>> listenerMap = GetUsersManager().GetSessionListener(); in NotifySessionRelease() local
941 for (const auto& [pid, listener] : listenerMap) { in NotifySessionRelease()
961 std::map<pid_t, sptr<ISessionListener>> listenerMap = GetUsersManager().GetSessionListener(); in NotifyTopSessionChanged() local
962 for (const auto& [pid, listener] : listenerMap) { in NotifyTopSessionChanged()
986 std::map<pid_t, sptr<ISessionListener>> listenerMap = GetUsersManager().GetSessionListener(); in NotifyAudioSessionCheck() local
987 for (const auto& [pid, listener] : listenerMap) { in NotifyAudioSessionCheck()
1111 for (const auto& [pid, listener] : listenerMap) { in NotifyDeviceAvailable()
1127 for (const auto& [pid, listener] : listenerMap) { in NotifyDeviceLogEvent()
[all …]
/ohos5.0/foundation/deviceprofile/device_info_manager/common/include/utils/
H A Dipc_utils.h46 OHOS::DistributedDeviceProfile::SubscribeInfo>& listenerMap);
54 OHOS::DistributedDeviceProfile::SubscribeInfo>& listenerMap);
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/input/
H A Dcamera_manager.cpp231 auto listenerMap = cameraManager->GetCameraMngrCallbackMap(); in OnCameraStatusChanged() local
233 if (listenerMap.IsEmpty()) { in OnCameraStatusChanged()
251 listenerMap.Iterate([&](std::thread::id threadId, in OnCameraStatusChanged()
275 if (listenerMap.IsEmpty()) { in OnFlashlightStatusChanged()
967 auto listenerMap = GetCameraMngrCallbackMap(); in CameraServerDied() local
968 listenerMap.Iterate([&](std::thread::id threadId, in CameraServerDied()
1936 auto listenerMap = cameraManager->GetTorchListenerMap(); in OnTorchStatusChange() local
1938 if (listenerMap.IsEmpty()) { in OnTorchStatusChange()
1964 auto listenerMap = cameraManager->GetFoldListenerMap(); in OnFoldStatusChanged() local
1966 CHECK_ERROR_RETURN_RET(listenerMap.IsEmpty(), CAMERA_OK); in OnFoldStatusChanged()
[all …]
/ohos5.0/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.cpp501 …ibutedDeviceProfileServiceNew::SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) in SendSubscribeInfos() argument
503 return SubscribeProfileManager::GetInstance().SubscribeDeviceProfile(listenerMap); in SendSubscribeInfos()
/ohos5.0/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;
/ohos5.0/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;
/ohos5.0/foundation/deviceprofile/device_info_manager/interfaces/innerkits/core/src/
H A Ddistributed_device_profile_proxy.cpp325 …DistributedDeviceProfileProxy::SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) in SendSubscribeInfos() argument
331 if (!IpcUtils::Marshalling(data, listenerMap)) { in SendSubscribeInfos()
/ohos5.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;
/ohos5.0/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()