/ohos5.0/foundation/deviceprofile/device_info_manager/common/src/utils/ |
H A D | ipc_utils.cpp | 105 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 245 …listenerMap[subscribeInfo.GetSubscribeKey() + SEPARATOR + std::to_string(subscribeInfo.GetSaId())]… in UnMarshalling()
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | ipc_utils_test.cpp | 171 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 D | distributed_device_profile_stub_new_test.cpp | 63 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 D | ipc_server_listener.cpp | 71 …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 D | avsession_users_manager.cpp | 213 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 D | avsession_service.cpp | 917 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 D | ipc_utils.h | 46 OHOS::DistributedDeviceProfile::SubscribeInfo>& listenerMap); 54 OHOS::DistributedDeviceProfile::SubscribeInfo>& listenerMap);
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/input/ |
H A D | camera_manager.cpp | 231 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 D | distributed_device_profile_stub_new.cpp | 507 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 D | distributed_device_profile_service_new.cpp | 501 …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 D | i_distributed_device_profile.h | 64 virtual int32_t SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) = 0;
|
/ohos5.0/foundation/deviceprofile/device_info_manager/interfaces/innerkits/core/include/ |
H A D | distributed_device_profile_proxy.h | 67 int32_t SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) override;
|
/ohos5.0/foundation/deviceprofile/device_info_manager/interfaces/innerkits/core/src/ |
H A D | distributed_device_profile_proxy.cpp | 325 …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 D | distributed_device_profile_service_new.h | 70 int32_t SendSubscribeInfos(std::map<std::string, SubscribeInfo> listenerMap) override;
|
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/src/ |
H A D | distributed_device_profile_stub.cpp | 664 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()
|