/external/webrtc/pc/ |
D | rtp_media_utils.cc | 17 RtpTransceiverDirection RtpTransceiverDirectionFromSendRecv(bool send, in RtpTransceiverDirectionFromSendRecv() 20 return RtpTransceiverDirection::kSendRecv; in RtpTransceiverDirectionFromSendRecv() 22 return RtpTransceiverDirection::kSendOnly; in RtpTransceiverDirectionFromSendRecv() 24 return RtpTransceiverDirection::kRecvOnly; in RtpTransceiverDirectionFromSendRecv() 26 return RtpTransceiverDirection::kInactive; in RtpTransceiverDirectionFromSendRecv() 30 bool RtpTransceiverDirectionHasSend(RtpTransceiverDirection direction) { in RtpTransceiverDirectionHasSend() 31 return direction == RtpTransceiverDirection::kSendRecv || in RtpTransceiverDirectionHasSend() 32 direction == RtpTransceiverDirection::kSendOnly; in RtpTransceiverDirectionHasSend() 35 bool RtpTransceiverDirectionHasRecv(RtpTransceiverDirection direction) { in RtpTransceiverDirectionHasRecv() 36 return direction == RtpTransceiverDirection::kSendRecv || in RtpTransceiverDirectionHasRecv() [all …]
|
D | rtp_media_utils.h | 20 RtpTransceiverDirection RtpTransceiverDirectionFromSendRecv(bool send, 24 bool RtpTransceiverDirectionHasSend(RtpTransceiverDirection direction); 27 bool RtpTransceiverDirectionHasRecv(RtpTransceiverDirection direction); 31 RtpTransceiverDirection RtpTransceiverDirectionReversed( 32 RtpTransceiverDirection direction); 35 RtpTransceiverDirection RtpTransceiverDirectionWithSendSet( 36 RtpTransceiverDirection direction, 40 RtpTransceiverDirection RtpTransceiverDirectionWithRecvSet( 41 RtpTransceiverDirection direction, 45 const char* RtpTransceiverDirectionToString(RtpTransceiverDirection direction); [all …]
|
D | rtp_media_utils_unittest.cc | 24 RtpTransceiverDirection kAllDirections[] = { 25 RtpTransceiverDirection::kSendRecv, RtpTransceiverDirection::kSendOnly, 26 RtpTransceiverDirection::kRecvOnly, RtpTransceiverDirection::kInactive}; 29 : public ::testing::TestWithParam<RtpTransceiverDirection> {}; 34 RtpTransceiverDirection direction = GetParam(); in TEST_P() 44 RtpTransceiverDirection direction = GetParam(); in TEST_P() 55 RtpTransceiverDirection direction = GetParam(); in TEST_P() 67 std::tuple<RtpTransceiverDirection, bool>> {}; 70 RtpTransceiverDirection direction = std::get<0>(GetParam()); in TEST_P() 73 RtpTransceiverDirection result = in TEST_P() [all …]
|
D | rtp_transceiver.h | 141 void set_direction(RtpTransceiverDirection direction) { in set_direction() 148 void set_current_direction(RtpTransceiverDirection direction); 153 void set_fired_direction(RtpTransceiverDirection direction); 186 RtpTransceiverDirection direction() const override; 187 void SetDirection(RtpTransceiverDirection new_direction) override; 188 absl::optional<RtpTransceiverDirection> current_direction() const override; 189 absl::optional<RtpTransceiverDirection> fired_direction() const override; 214 RtpTransceiverDirection direction_ = RtpTransceiverDirection::kInactive; 215 absl::optional<RtpTransceiverDirection> current_direction_; 216 absl::optional<RtpTransceiverDirection> fired_direction_; [all …]
|
D | media_session_unittest.cc | 103 using webrtc::RtpTransceiverDirection; 288 static RtpTransceiverDirection GetMediaDirection(const ContentInfo* content) { in GetMediaDirection() 331 RtpTransceiverDirection direction, in AddMediaDescriptionOptions() 338 static void AddAudioVideoSections(RtpTransceiverDirection direction, in AddAudioVideoSections() 347 RtpTransceiverDirection direction, in AddDataSection() 411 RtpTransceiverDirection::kRecvOnly, kActive, in CreatePlanBMediaSessionOptions() 605 AddAudioVideoSections(RtpTransceiverDirection::kRecvOnly, &options); in TestCryptoWithBundle() 606 AddDataSection(cricket::DCT_RTP, RtpTransceiverDirection::kRecvOnly, in TestCryptoWithBundle() 652 RtpTransceiverDirection direction_in_offer, in TestMediaDirectionInAnswer() 653 RtpTransceiverDirection expected_direction_in_answer) { in TestMediaDirectionInAnswer() [all …]
|
D | rtp_transceiver_unittest.cc | 92 RtpTransceiverDirection::kSendOnly), in RtpTransceiverTestForHeaderExtensions() 95 RtpTransceiverDirection::kRecvOnly), in RtpTransceiverTestForHeaderExtensions() 98 RtpTransceiverDirection::kSendRecv), in RtpTransceiverTestForHeaderExtensions() 101 RtpTransceiverDirection::kSendRecv)}), in RtpTransceiverTestForHeaderExtensions() 122 modified_extensions[0].direction = RtpTransceiverDirection::kSendOnly; in TEST_F() 126 modified_extensions[0].direction = RtpTransceiverDirection::kRecvOnly; in TEST_F() 130 modified_extensions[0].direction = RtpTransceiverDirection::kSendRecv; in TEST_F() 134 modified_extensions[0].direction = RtpTransceiverDirection::kInactive; in TEST_F() 142 modified_extensions[0].direction = RtpTransceiverDirection::kStopped; in TEST_F() 151 RtpTransceiverDirection::kSendRecv)}); in TEST_F() [all …]
|
D | peer_connection_header_extension_unittest.cc | 40 RtpTransceiverDirection::kStopped), in PeerConnectionHeaderExtensionTest() 43 RtpTransceiverDirection::kSendOnly), in PeerConnectionHeaderExtensionTest() 46 RtpTransceiverDirection::kRecvOnly), in PeerConnectionHeaderExtensionTest() 50 RtpTransceiverDirection::kSendRecv)}) {} in PeerConnectionHeaderExtensionTest() 155 modified_extensions[0].direction = RtpTransceiverDirection::kSendRecv; in TEST_P() 156 modified_extensions[3].direction = RtpTransceiverDirection::kStopped; in TEST_P()
|
D | media_session.h | 54 webrtc::RtpTransceiverDirection direction, in MediaDescriptionOptions() 74 webrtc::RtpTransceiverDirection direction; 187 const webrtc::RtpTransceiverDirection& direction) const; 189 const webrtc::RtpTransceiverDirection& offer, 190 const webrtc::RtpTransceiverDirection& answer) const; 192 const webrtc::RtpTransceiverDirection& direction) const; 194 const webrtc::RtpTransceiverDirection& offer, 195 const webrtc::RtpTransceiverDirection& answer) const;
|
D | rtp_transceiver.cc | 258 void RtpTransceiver::set_current_direction(RtpTransceiverDirection direction) { in set_current_direction() 272 void RtpTransceiver::set_fired_direction(RtpTransceiverDirection direction) { in set_fired_direction() 280 RtpTransceiverDirection RtpTransceiver::direction() const { in direction() 284 void RtpTransceiver::SetDirection(RtpTransceiverDirection new_direction) { in SetDirection() 295 absl::optional<RtpTransceiverDirection> RtpTransceiver::current_direction() in current_direction() 300 absl::optional<RtpTransceiverDirection> RtpTransceiver::fired_direction() in fired_direction() 389 entry.direction != RtpTransceiverDirection::kSendRecv) { in SetOfferedRtpHeaderExtensions()
|
D | peer_connection_rtp_unittest.cc | 373 transceiver->SetDirection(RtpTransceiverDirection::kInactive); in TEST_F() 378 transceiver->SetDirection(RtpTransceiverDirection::kSendOnly); in TEST_F() 385 transceiver->SetDirection(RtpTransceiverDirection::kSendRecv); in TEST_F() 405 RtpTransceiverDirection::kInactive); in TEST_F() 414 RtpTransceiverDirection::kRecvOnly); in TEST_F() 473 callee_transceiver->SetDirection(RtpTransceiverDirection::kSendOnly); in TEST_F() 556 EXPECT_EQ(RtpTransceiverDirection::kInactive, in TEST_P() 580 EXPECT_EQ(RtpTransceiverDirection::kInactive, in TEST_P() 608 EXPECT_EQ(RtpTransceiverDirection::kInactive, in TEST_P() 626 EXPECT_EQ(RtpTransceiverDirection::kInactive, in TEST_P() [all …]
|
D | media_session.cc | 43 using webrtc::RtpTransceiverDirection; 80 return capability.direction == RtpTransceiverDirection::kStopped; in UnstoppedRtpHeaderExtensionCapabilities() 100 if (capability.direction != RtpTransceiverDirection::kStopped || in UnstoppedOrPresentRtpHeaderExtensions() 140 static RtpTransceiverDirection NegotiateRtpTransceiverDirection( in NegotiateRtpTransceiverDirection() 141 RtpTransceiverDirection offer, in NegotiateRtpTransceiverDirection() 142 RtpTransceiverDirection wants) { in NegotiateRtpTransceiverDirection() 1795 const RtpTransceiverDirection& direction) const { in GetAudioCodecsForOffer() 1798 case RtpTransceiverDirection::kSendRecv: in GetAudioCodecsForOffer() 1799 case RtpTransceiverDirection::kInactive: in GetAudioCodecsForOffer() 1801 case RtpTransceiverDirection::kSendOnly: in GetAudioCodecsForOffer() [all …]
|
D | channel.h | 174 void set_local_content_direction(webrtc::RtpTransceiverDirection direction) { in set_local_content_direction() 177 void set_remote_content_direction(webrtc::RtpTransceiverDirection direction) { in set_remote_content_direction() 313 webrtc::RtpTransceiverDirection local_content_direction_ = 314 webrtc::RtpTransceiverDirection::kInactive; 315 webrtc::RtpTransceiverDirection remote_content_direction_ = 316 webrtc::RtpTransceiverDirection::kInactive;
|
D | peer_connection_media_unittest.cc | 163 RtpTransceiverDirection GetMediaContentDirection( in GetMediaContentDirection() 623 std::tuple<bool, int, RtpTransceiverDirection>>> { 635 RtpTransceiverDirection expected_direction_; 652 if (expected_direction_ == RtpTransceiverDirection::kInactive) { in TEST_P() 666 Values(std::make_tuple(false, -1, RtpTransceiverDirection::kInactive), 667 std::make_tuple(false, 0, RtpTransceiverDirection::kInactive), 668 std::make_tuple(false, 1, RtpTransceiverDirection::kRecvOnly), 669 std::make_tuple(true, -1, RtpTransceiverDirection::kSendRecv), 670 std::make_tuple(true, 0, RtpTransceiverDirection::kSendOnly), 671 std::make_tuple(true, 1, RtpTransceiverDirection::kSendRecv)))); [all …]
|
D | peer_connection_jsep_unittest.cc | 173 init.direction = RtpTransceiverDirection::kSendOnly; in TEST_F() 183 EXPECT_EQ(RtpTransceiverDirection::kSendRecv, in TEST_F() 189 EXPECT_EQ(RtpTransceiverDirection::kSendRecv, in TEST_F() 195 EXPECT_EQ(RtpTransceiverDirection::kSendOnly, in TEST_F() 265 EXPECT_EQ(RtpTransceiverDirection::kRecvOnly, transceivers[0]->direction()); in TEST_F() 270 EXPECT_EQ(RtpTransceiverDirection::kRecvOnly, transceivers[1]->direction()); in TEST_F() 303 caller_audio->SetDirection(RtpTransceiverDirection::kSendOnly); in TEST_F() 449 init.direction = RtpTransceiverDirection::kSendOnly; in TEST_F() 459 EXPECT_EQ(RtpTransceiverDirection::kRecvOnly, in TEST_F() 472 caller_audio->SetDirection(RtpTransceiverDirection::kRecvOnly); in TEST_F() [all …]
|
D | session_description.h | 105 virtual webrtc::RtpTransceiverDirection direction() const { in direction() 108 virtual void set_direction(webrtc::RtpTransceiverDirection direction) { in set_direction() 260 webrtc::RtpTransceiverDirection direction_ = 261 webrtc::RtpTransceiverDirection::kSendRecv;
|
/external/webrtc/sdk/android/api/org/webrtc/ |
D | RtpTransceiver.java | 37 public enum RtpTransceiverDirection { enum in RtpTransceiver 45 private RtpTransceiverDirection(int nativeIndex) { in RtpTransceiverDirection() method in RtpTransceiver.RtpTransceiverDirection 55 static RtpTransceiverDirection fromNativeIndex(int nativeIndex) { in fromNativeIndex() 56 for (RtpTransceiverDirection type : RtpTransceiverDirection.values()) { in fromNativeIndex() 73 private final RtpTransceiverDirection direction; 78 this(RtpTransceiverDirection.SEND_RECV); in RtpTransceiverInit() 81 public RtpTransceiverInit(RtpTransceiverDirection direction) { in RtpTransceiverInit() 85 public RtpTransceiverInit(RtpTransceiverDirection direction, List<String> streamIds) { in RtpTransceiverInit() 89 public RtpTransceiverInit(RtpTransceiverDirection direction, List<String> streamIds, in RtpTransceiverInit() 180 public RtpTransceiverDirection getDirection() { in getDirection() [all …]
|
/external/webrtc/media/base/ |
D | media_engine_unittest.cc | 21 using ::webrtc::RtpTransceiverDirection; 41 RtpTransceiverDirection::kInactive), in TEST() 43 RtpTransceiverDirection::kSendRecv), in TEST() 45 RtpTransceiverDirection::kStopped), in TEST() 47 RtpTransceiverDirection::kSendOnly), in TEST() 49 RtpTransceiverDirection::kRecvOnly)}); in TEST()
|
/external/webrtc/sdk/objc/api/peerconnection/ |
D | RTCRtpTransceiver.mm | 147 + (webrtc::RtpTransceiverDirection)nativeRtpTransceiverDirectionFromDirection: 151 return webrtc::RtpTransceiverDirection::kSendRecv; 153 return webrtc::RtpTransceiverDirection::kSendOnly; 155 return webrtc::RtpTransceiverDirection::kRecvOnly; 157 return webrtc::RtpTransceiverDirection::kInactive; 159 return webrtc::RtpTransceiverDirection::kStopped; 164 (webrtc::RtpTransceiverDirection)nativeDirection { argument 166 case webrtc::RtpTransceiverDirection::kSendRecv: 168 case webrtc::RtpTransceiverDirection::kSendOnly: 170 case webrtc::RtpTransceiverDirection::kRecvOnly: [all …]
|
D | RTCRtpTransceiver+Private.h | 38 + (webrtc::RtpTransceiverDirection)nativeRtpTransceiverDirectionFromDirection: 42 (webrtc::RtpTransceiverDirection)nativeDirection;
|
/external/webrtc/api/ |
D | rtp_transceiver_interface.h | 38 RtpTransceiverDirection direction = RtpTransceiverDirection::kSendRecv; 95 virtual RtpTransceiverDirection direction() const = 0; 102 virtual void SetDirection(RtpTransceiverDirection new_direction) = 0; 108 virtual absl::optional<RtpTransceiverDirection> current_direction() const = 0; 115 virtual absl::optional<RtpTransceiverDirection> fired_direction() const;
|
D | rtp_transceiver_direction.h | 17 enum class RtpTransceiverDirection { enum
|
D | rtp_transceiver_interface.cc | 23 absl::optional<RtpTransceiverDirection>
|
D | rtp_parameters.h | 227 RtpTransceiverDirection direction = RtpTransceiverDirection::kSendRecv; 235 RtpTransceiverDirection direction);
|
/external/webrtc/sdk/android/src/jni/pc/ |
D | rtp_transceiver.cc | 30 RtpTransceiverDirection rtp_transceiver_direction) { in NativeToJavaRtpTransceiverDirection() 43 init.direction = static_cast<RtpTransceiverDirection>( in JavaToNativeRtpTransceiverInit() 135 absl::optional<RtpTransceiverDirection> direction = in JNI_RtpTransceiver_CurrentDirection() 154 RtpTransceiverDirection direction = static_cast<RtpTransceiverDirection>( in JNI_RtpTransceiver_SetDirection()
|
/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/ |
D | RtpTransceiverTest.java | 59 RtpTransceiver.RtpTransceiverDirection.SEND_ONLY, Collections.emptyList(), encodings); in testSetRidInSimulcast()
|