Lines Matching refs:castId

214 int32_t AVRouterImpl::OnCastSessionCreated(const int32_t castId)
216 SLOGI("AVRouterImpl On cast session created, cast id is %{public}d", castId);
224 // The first 32 bits are providerId, the last 32 bits are castId
226 static_cast<const uint32_t>(castId));
232 castHandleToOutputDeviceMap_[castId] = outputDeviceInfo;
265 // The first 32 bits are providerId, the last 32 bits are castId
268 // The first 32 bits are providerId, the last 32 bits are castId
269 int32_t castId = static_cast<int32_t>((static_cast<const uint64_t>(castHandle) << 32) >> 32);
274 return providerManagerMap_[providerNumber]->provider_->GetRemoteController(castId);
288 int32_t castId = providerManagerMap_[outputDeviceInfo.deviceInfos_[0].
291 // The first 32 bits are providerId, the last 32 bits are castId
292 castHandle = static_cast<int64_t>((static_cast<uint64_t>(tempId) << 32) | static_cast<uint32_t>(castId));
298 int32_t AVRouterImpl::AddDevice(const int32_t castId, const OutputDeviceInfo& outputDeviceInfo)
301 bool ret = providerManagerMap_[outputDeviceInfo.deviceInfos_[0].providerId_]->provider_->AddCastDevice(castId,
304 castHandleToOutputDeviceMap_[castId] = outputDeviceInfo;
316 // The first 32 bits are providerId, the last 32 bits are castId
317 int32_t castId = static_cast<int32_t>((static_cast<const uint64_t>(castHandle) << 32) >> 32);
318 SLOGI("Stop cast, the castId is %{public}d, removeTimes is %{public}d", castId, removeTimes);
319 CHECK_AND_RETURN_RET_LOG(castHandleToOutputDeviceMap_.find(castId) != castHandleToOutputDeviceMap_.end(),
320 AVSESSION_ERROR, "Can not find corresponding castId");
323 CHECK_AND_RETURN_RET_LOG(castId != providerManagerMap_[providerNumber]->provider_->GetMirrorCastId() ||
325 providerManagerMap_[providerNumber]->provider_->RemoveCastDevice(castId,
326 castHandleToOutputDeviceMap_[castId].deviceInfos_[0]);
341 // The first 32 bits are providerId, the last 32 bits are castId
342 int32_t castId = static_cast<int32_t>((static_cast<uint64_t>(castHandle) << 32) >> 32);
343 castHandleToOutputDeviceMap_[castId] = castOutputDeviceInfo_;
344 CHECK_AND_RETURN_RET_LOG(castHandleToOutputDeviceMap_.find(castId) != castHandleToOutputDeviceMap_.end(),
345 AVSESSION_ERROR, "Can not find corresponding castId");
348 providerManagerMap_[providerNumber]->provider_->StopCastSession(castId);
357 int32_t castId = static_cast<int32_t>((static_cast<uint64_t>(castHandle) << 32) >> 32);
359 castHandleToOutputDeviceMap_[castId] = castOutputDeviceInfo_;
364 providerManagerMap_[providerNumber]->provider_->SetStreamState(castId, deviceInfo);
371 int32_t castId = static_cast<int32_t>((static_cast<uint64_t>(castHandle) << 32) >> 32);
376 providerManagerMap_[providerNumber]->provider_->GetRemoteNetWorkId(castId, deviceId, networkId);
383 // The first 32 bits are providerId, the last 32 bits are castId
385 // The first 32 bits are providerId, the last 32 bits are castId
386 int32_t castId = static_cast<int32_t>((static_cast<uint64_t>(castHandle) << 32) >> 32);
391 providerManagerMap_[providerNumber]->provider_->RegisterCastSessionStateListener(castId, callback);
400 // The first 32 bits are providerId, the last 32 bits are castId
402 // The first 32 bits are providerId, the last 32 bits are castId
403 int32_t castId = static_cast<int32_t>((static_cast<uint64_t>(castHandle) << 32) >> 32);
408 providerManagerMap_[providerNumber]->provider_->UnRegisterCastSessionStateListener(castId, callback);