/foundation/multimedia/av_session/services/session/server/ |
H A D | hw_cast_provider.cpp | 123 int castId;
in StartCastSession() local 134 castId = iter - castFlag_.begin();
in StartCastSession() 139 hwCastProviderSessionMap_[castId] = hwCastProviderSession;
in StartCastSession() 141 SLOGI("StartCastSession successed and return the castId is %{public}d", castId);
in StartCastSession() 143 return castId;
in StartCastSession() 147 void HwCastProvider::StopCastSession(int castId)
in StopCastSession() argument 149 SLOGI("StopCastSession begin with %{public}d", castId);
in StopCastSession() 153 auto hwCastStreamPlayer = avCastControllerMap_[castId];
in StopCastSession() 158 if (hwCastProviderSessionMap_.find(castId) in StopCastSession() 173 AddCastDevice(int castId, DeviceInfo deviceInfo) AddCastDevice() argument 192 RemoveCastDevice(int castId, DeviceInfo deviceInfo) RemoveCastDevice() argument 252 GetRemoteController(int castId) GetRemoteController() argument 282 SetStreamState(int32_t castId, DeviceInfo deviceInfo) SetStreamState() argument 298 GetRemoteNetWorkId(int32_t castId, std::string deviceId, std::string &networkId) GetRemoteNetWorkId() argument 318 RegisterCastSessionStateListener(int castId, std::shared_ptr<IAVCastSessionStateListener> listener) RegisterCastSessionStateListener() argument 341 UnRegisterCastSessionStateListener(int castId, std::shared_ptr<IAVCastSessionStateListener> listener) UnRegisterCastSessionStateListener() argument [all...] |
H A D | avrouter_impl.cpp | 214 int32_t AVRouterImpl::OnCastSessionCreated(const int32_t castId) in OnCastSessionCreated() argument 216 SLOGI("AVRouterImpl On cast session created, cast id is %{public}d", castId); in OnCastSessionCreated() 224 // The first 32 bits are providerId, the last 32 bits are castId in OnCastSessionCreated() 226 static_cast<const uint32_t>(castId)); in OnCastSessionCreated() 232 castHandleToOutputDeviceMap_[castId] = outputDeviceInfo; in OnCastSessionCreated() 265 // The first 32 bits are providerId, the last 32 bits are castId in GetRemoteController() 268 // The first 32 bits are providerId, the last 32 bits are castId in GetRemoteController() 269 int32_t castId = static_cast<int32_t>((static_cast<const uint64_t>(castHandle) << 32) >> 32); in GetRemoteController() local 274 return providerManagerMap_[providerNumber]->provider_->GetRemoteController(castId); in GetRemoteController() 288 int32_t castId in StartCast() local 298 AddDevice(const int32_t castId, const OutputDeviceInfo& outputDeviceInfo) AddDevice() argument 317 int32_t castId = static_cast<int32_t>((static_cast<const uint64_t>(castHandle) << 32) >> 32); StopCast() local 342 int32_t castId = static_cast<int32_t>((static_cast<uint64_t>(castHandle) << 32) >> 32); StopCastSession() local 357 int32_t castId = static_cast<int32_t>((static_cast<uint64_t>(castHandle) << 32) >> 32); SetServiceAllConnectState() local 371 int32_t castId = static_cast<int32_t>((static_cast<uint64_t>(castHandle) << 32) >> 32); GetRemoteNetWorkId() local 386 int32_t castId = static_cast<int32_t>((static_cast<uint64_t>(castHandle) << 32) >> 32); RegisterCallback() local 403 int32_t castId = static_cast<int32_t>((static_cast<uint64_t>(castHandle) << 32) >> 32); UnRegisterCallback() local [all...] |
H A D | hw_cast_provider.h | 44 void StopCastSession(int castId) override;
45 bool AddCastDevice(int castId, DeviceInfo deviceInfo) override;
46 bool RemoveCastDevice(int castId, DeviceInfo deviceInfo) override;
47 std::shared_ptr<IAVCastControllerProxy> GetRemoteController(int castId) override;
50 bool RegisterCastSessionStateListener(int castId, std::shared_ptr<IAVCastSessionStateListener> listener) override;
51 bool UnRegisterCastSessionStateListener(int castId, std::shared_ptr<IAVCastSessionStateListener> listener) override;
58 bool SetStreamState(int32_t castId, DeviceInfo deviceInfo) override;
60 bool GetRemoteNetWorkId(int32_t castId, std::string deviceId, std::string &networkId) override;
|
H A D | avcast_provider_manager.cpp | 62 void AVCastProviderManager::OnSessionCreated(const int32_t castId) in OnSessionCreated() argument 66 AVRouter::GetInstance().OnCastSessionCreated(castId); in OnSessionCreated()
|
H A D | avrouter_impl.h | 49 int32_t OnCastSessionCreated(const int32_t castId) override; 58 int32_t AddDevice(const int32_t castId, const OutputDeviceInfo& outputDeviceInfo) override;
|
H A D | avcast_provider_manager.h | 39 void OnSessionCreated(const int32_t castId) override;
|
H A D | avsession_item.cpp | 1117 int32_t castId = static_cast<int32_t>(castHandle_); 1118 int32_t ret = AVRouter::GetInstance().AddDevice(castId, outputDeviceInfo);
|
/foundation/multimedia/av_session/services/session/server/test/ |
H A D | hw_cast_supplement_test.cpp | 104 int32_t castId = 0; in HWTEST() local 105 hwCastProvider->hwCastProviderSessionMap_[castId] = nullptr; in HWTEST() 106 hwCastProvider->StopCastSession(castId); in HWTEST() 122 int32_t castId = 0; in HWTEST() local 124 hwCastProvider->hwCastProviderSessionMap_[castId] = hwCastProviderSession; in HWTEST() 125 hwCastProvider->StopCastSession(castId); in HWTEST() 141 int32_t castId = -1; in HWTEST() local 143 hwCastProvider->hwCastProviderSessionMap_[castId] = hwCastProviderSession; in HWTEST() 144 hwCastProvider->StopCastSession(castId); in HWTEST() 160 int32_t castId in HWTEST() local 179 int32_t castId = 0; HWTEST() local 199 int32_t castId = 0; HWTEST() local 220 int32_t castId = 0; HWTEST() local 239 int32_t castId = 0; HWTEST() local 259 int32_t castId = 0; HWTEST() local 356 int castId = 0; HWTEST() local 376 int castId = 0; HWTEST() local 397 int castId = 0; HWTEST() local 419 int castId = 0; HWTEST() local 439 int castId = 0; HWTEST() local 460 int castId = 0; HWTEST() local 482 int castId = 0; HWTEST() local 500 int castId = 0; HWTEST() local 519 int castId = 0; HWTEST() local 538 int castId = 0; HWTEST() local 558 int castId = 0; HWTEST() local 577 int castId = 0; HWTEST() local 597 int castId = 0; HWTEST() local 618 int castId = 0; HWTEST() local 638 int castId = 0; HWTEST() local 659 int castId = 0; HWTEST() local [all...] |
H A D | hw_cast_test.cpp | 1074 int castId = 0; in HWTEST() local 1075 hwCastProvider->StopCastSession(castId); in HWTEST() 1091 int castId = 0; in HWTEST() local 1093 EXPECT_EQ(hwCastProvider->AddCastDevice(castId, deviceInfo), false); in HWTEST() 1109 int castId = 0; in HWTEST() local 1111 EXPECT_EQ(hwCastProvider->RemoveCastDevice(castId, deviceInfo), false); in HWTEST() 1127 int castId = 0; in HWTEST() local 1128 EXPECT_EQ(hwCastProvider->GetRemoteController(castId), nullptr); in HWTEST() 1176 int castId = 0; in HWTEST() local 1177 EXPECT_EQ(hwCastProvider->RegisterCastSessionStateListener(castId, nullpt in HWTEST() 1193 int castId = 0; HWTEST() local [all...] |
/foundation/multimedia/av_session/interfaces/inner_api/native/session/include/ |
H A D | av_cast_provider.h | 119 * @param { int32_t } castId - Find the corresponding provider through this ID.
124 virtual bool AddCastDevice(int castId, DeviceInfo deviceInfo) = 0;
129 * @param { int32_t } castId - Find the corresponding provider through this ID.
134 virtual bool RemoveCastDevice(int castId, DeviceInfo deviceInfo) = 0;
147 * @param { int } castId - The ID corresponding to the provider that needs to be stopped.
150 virtual void StopCastSession(int castId) = 0;
155 * @param { int } castId - castId corresponding to cast engine session.
159 virtual std::shared_ptr<IAVCastControllerProxy> GetRemoteController(int castId) = 0;
164 * @param { int } castId [all...] |
H A D | av_router.h | 138 * @param { int32_t } castId - Cast id for AVRouter's control. 142 virtual int32_t OnCastSessionCreated(const int32_t castId) = 0; 176 * @param { int32_t } castId - Find the corresponding provider through this ID. 181 virtual int32_t AddDevice(const int32_t castId, const OutputDeviceInfo& outputDeviceInfo) = 0;
|
H A D | i_avcast_state_listener.h | 64 * @param { int32_t } castId - Cast id for AVRouter's control. 67 virtual void OnSessionCreated(const int32_t castId) = 0;
|