Home
last modified time | relevance | path

Searched refs:RTCError (Results 1 – 25 of 83) sorted by relevance

1234

/external/webrtc/api/
Drtc_error_unittest.cc64 RTCError e; in TEST()
71 RTCError a(RTCErrorType::INVALID_PARAMETER); in TEST()
76 RTCError b(RTCErrorType::UNSUPPORTED_PARAMETER, "foobar"); in TEST()
81 RTCError c(RTCErrorType::INVALID_RANGE, std::string("new")); in TEST()
88 RTCError a(RTCErrorType::INVALID_PARAMETER, "foo"); in TEST()
89 RTCError b(std::move(a)); in TEST()
94 RTCError c(RTCErrorType::UNSUPPORTED_PARAMETER, std::string("bar")); in TEST()
95 RTCError d(std::move(c)); in TEST()
102 RTCError e(RTCErrorType::INVALID_PARAMETER, "foo"); in TEST()
104 e = RTCError(RTCErrorType::UNSUPPORTED_PARAMETER, "bar"); in TEST()
[all …]
Drtc_error.h103 class RTC_EXPORT RTCError {
108 RTCError() {} in RTCError() function
109 explicit RTCError(RTCErrorType type) : type_(type) {} in RTCError() function
111 RTCError(RTCErrorType type, std::string message) in RTCError() function
117 RTCError(const RTCError& other) = default;
118 RTCError(RTCError&&) = default;
119 RTCError& operator=(const RTCError& other) = default;
120 RTCError& operator=(RTCError&&) = default;
125 static RTCError OK();
185 return webrtc::RTCError(type, message); \
[all …]
Drtc_error.cc58 RTCError RTCError::OK() { in OK()
59 return RTCError(); in OK()
62 const char* RTCError::message() const { in message()
66 void RTCError::set_message(std::string message) { in set_message()
Dpeer_connection_interface.cc45 RTCError PeerConnectionInterface::RemoveTrackNew( in RemoveTrackNew()
47 return RTCError(RemoveTrack(sender) ? RTCErrorType::NONE in RemoveTrackNew()
51 RTCError PeerConnectionInterface::SetConfiguration( in SetConfiguration()
53 return RTCError(); in SetConfiguration()
Drtp_transceiver_interface.cc28 RTCError RtpTransceiverInterface::SetCodecPreferences( in SetCodecPreferences()
44 webrtc::RTCError RtpTransceiverInterface::SetOfferedRtpHeaderExtensions( in SetOfferedRtpHeaderExtensions()
47 return webrtc::RTCError(webrtc::RTCErrorType::UNSUPPORTED_OPERATION); in SetOfferedRtpHeaderExtensions()
Dpeer_connection_proxy.h36 PROXY_METHOD1(RTCError, RemoveTrackNew, rtc::scoped_refptr<RtpSenderInterface>)
113 PROXY_METHOD1(RTCError,
120 std::function<void(RTCError)>)
122 PROXY_METHOD1(RTCError, SetBitrate, const BitrateSettings&)
/external/webrtc/pc/
Djsep_transport.cc154 webrtc::RTCError JsepTransport::SetLocalJsepTransportDescription( in SetLocalJsepTransportDescription()
157 webrtc::RTCError error; in SetLocalJsepTransportDescription()
163 webrtc::RTCError ice_parameters_result = ice_parameters.Validate(); in SetLocalJsepTransportDescription()
167 return webrtc::RTCError(webrtc::RTCErrorType::INVALID_PARAMETER, in SetLocalJsepTransportDescription()
173 return webrtc::RTCError(webrtc::RTCErrorType::INVALID_PARAMETER, in SetLocalJsepTransportDescription()
186 return webrtc::RTCError(webrtc::RTCErrorType::INVALID_PARAMETER, in SetLocalJsepTransportDescription()
244 return webrtc::RTCError::OK(); in SetLocalJsepTransportDescription()
247 webrtc::RTCError JsepTransport::SetRemoteJsepTransportDescription( in SetRemoteJsepTransportDescription()
250 webrtc::RTCError error; in SetRemoteJsepTransportDescription()
256 webrtc::RTCError ice_parameters_result = ice_parameters.Validate(); in SetRemoteJsepTransportDescription()
[all …]
Dsctp_data_channel_transport.cc31 RTCError SctpDataChannelTransport::OpenChannel(int channel_id) { in OpenChannel()
33 return RTCError::OK(); in OpenChannel()
36 RTCError SctpDataChannelTransport::SendData( in SendData()
57 return RTCError::OK(); in SendData()
61 return RTCError(RTCErrorType::RESOURCE_EXHAUSTED); in SendData()
64 return RTCError(RTCErrorType::NETWORK_ERROR); in SendData()
66 return RTCError(RTCErrorType::NETWORK_ERROR); in SendData()
69 RTCError SctpDataChannelTransport::CloseChannel(int channel_id) { in CloseChannel()
71 return RTCError::OK(); in CloseChannel()
Djsep_transport_controller.cc29 webrtc::RTCError VerifyCandidate(const cricket::Candidate& cand) { in VerifyCandidate()
32 return webrtc::RTCError(webrtc::RTCErrorType::INVALID_PARAMETER, in VerifyCandidate()
43 return webrtc::RTCError::OK(); in VerifyCandidate()
47 return webrtc::RTCError( in VerifyCandidate()
53 return webrtc::RTCError( in VerifyCandidate()
59 return webrtc::RTCError::OK(); in VerifyCandidate()
62 webrtc::RTCError VerifyCandidates(const cricket::Candidates& candidates) { in VerifyCandidates()
64 webrtc::RTCError error = VerifyCandidate(candidate); in VerifyCandidates()
69 return webrtc::RTCError::OK(); in VerifyCandidates()
101 RTCError JsepTransportController::SetLocalDescription( in SetLocalDescription()
[all …]
Drtp_transceiver.cc27 RTCError VerifyCodecPreferences(const std::vector<RtpCodecCapability>& codecs, in VerifyCodecPreferences()
45 return RTCError(RTCErrorType::INVALID_MODIFICATION, in VerifyCodecPreferences()
58 return RTCError(RTCErrorType::INVALID_MODIFICATION, in VerifyCodecPreferences()
79 return RTCError( in VerifyCodecPreferences()
92 return RTCError(RTCErrorType::INVALID_MODIFICATION, in VerifyCodecPreferences()
97 return RTCError::OK(); in VerifyCodecPreferences()
316 RTCError RtpTransceiver::SetCodecPreferences( in SetCodecPreferences()
324 return RTCError::OK(); in SetCodecPreferences()
335 RTCError result; in SetCodecPreferences()
362 RTCError RtpTransceiver::SetOfferedRtpHeaderExtensions( in SetOfferedRtpHeaderExtensions()
[all …]
Dsrtp_transport.cc40 RTCError SrtpTransport::SetSrtpSendKey(const cricket::CryptoParams& params) { in SetSrtpSendKey()
54 return RTCError(RTCErrorType::INVALID_PARAMETER, in SetSrtpSendKey()
61 return RTCError(RTCErrorType::INVALID_PARAMETER, in SetSrtpSendKey()
68 return RTCError(RTCErrorType::INVALID_PARAMETER, in SetSrtpSendKey()
73 return RTCError(RTCErrorType::INVALID_PARAMETER, in SetSrtpSendKey()
77 return RTCError::OK(); in SetSrtpSendKey()
80 RTCError SrtpTransport::SetSrtpReceiveKey(const cricket::CryptoParams& params) { in SetSrtpReceiveKey()
94 return RTCError(RTCErrorType::INVALID_PARAMETER, in SetSrtpReceiveKey()
101 return RTCError(RTCErrorType::INVALID_PARAMETER, in SetSrtpReceiveKey()
108 return RTCError(RTCErrorType::INVALID_PARAMETER, in SetSrtpReceiveKey()
[all …]
Ddtls_srtp_transport.h51 RTCError SetSrtpSendKey(const cricket::CryptoParams& params) override { in SetSrtpSendKey()
52 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, in SetSrtpSendKey()
55 RTCError SetSrtpReceiveKey(const cricket::CryptoParams& params) override { in SetSrtpReceiveKey()
56 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, in SetSrtpReceiveKey()
Dsctp_data_channel_transport.h27 RTCError OpenChannel(int channel_id) override;
28 RTCError SendData(int channel_id,
31 RTCError CloseChannel(int channel_id) override;
Djsep_transport_controller.h120 RTCError SetLocalDescription(SdpType type,
123 RTCError SetRemoteDescription(SdpType type,
159 RTCError AddRemoteCandidates(
162 RTCError RemoveRemoteCandidates(
228 RTCError ApplyDescription_n(bool local,
231 RTCError ValidateAndMaybeUpdateBundleGroup(
235 RTCError ValidateContent(const cricket::ContentInfo& content_info);
293 RTCError MaybeCreateJsepTransport(
Drtp_data_channel.cc54 PROXY_CONSTMETHOD0(RTCError, error)
141 RTCError RtpDataChannel::error() const { in error()
195 RTCError error = RTCError(RTCErrorType::OPERATION_ERROR_WITH_DATA, in OnTransportChannelClosed()
211 CloseAbruptlyWithError(RTCError()); in RemotePeerRequestClose()
250 RTCError(RTCErrorType::RESOURCE_EXHAUSTED, in OnDataReceived()
270 void RtpDataChannel::CloseAbruptlyWithError(RTCError error) { in CloseAbruptlyWithError()
Djsep_transport.h116 webrtc::RTCError SetLocalJsepTransportDescription(
122 webrtc::RTCError SetRemoteJsepTransportDescription(
125 webrtc::RTCError AddRemoteCandidates(const Candidates& candidates)
243 webrtc::RTCError VerifyCertificateFingerprint(
274 webrtc::RTCError NegotiateAndSetDtlsParameters(
280 webrtc::RTCError NegotiateDtlsRole(
292 static webrtc::RTCError SetNegotiatedDtlsParameters(
Dpeer_connection.cc142 RTCError error;
151 RTCError error;
458 RTCError VerifyCrypto(const SessionDescription* desc, bool dtls_enabled) { in VerifyCrypto()
491 return RTCError(RTCErrorType::INVALID_PARAMETER, in VerifyCrypto()
498 return RTCError(RTCErrorType::INVALID_PARAMETER, kSdpWithoutSdesCrypto); in VerifyCrypto()
502 return RTCError::OK(); in VerifyCrypto()
577 const RTCError& error) { in GetSetDescriptionErrorMessage()
669 void OnFailure(RTCError error) override { in OnFailure()
759 void OnFailure(RTCError error) override { in OnFailure()
772 RTCError(error.type(), in OnFailure()
[all …]
Dpeer_connection.h132 RTCError RemoveTrackNew(
220 RTCError SetConfiguration(
224 std::function<void(RTCError)> callback) override;
228 RTCError SetBitrate(const BitrateSettings& bitrate) override;
558 RTCError&& error);
561 RTCError error);
565 RTCError ApplyLocalDescription(
567 RTCError ApplyRemoteDescription(
572 RTCError UpdateTransceiversAndDataChannels(
581 RTCError UpdateTransceiverChannel(
[all …]
Dsctp_data_channel.cc57 PROXY_CONSTMETHOD0(RTCError, error)
255 RTCError SctpDataChannel::error() const { in error()
307 CloseAbruptlyWithError(RTCError(RTCErrorType::RESOURCE_EXHAUSTED, in Send()
378 RTCError error = RTCError(RTCErrorType::OPERATION_ERROR_WITH_DATA, in OnTransportChannelClosed()
445 RTCError(RTCErrorType::RESOURCE_EXHAUSTED, in OnDataReceived()
468 void SctpDataChannel::CloseAbruptlyWithError(RTCError error) { in CloseAbruptlyWithError()
494 RTCError error(RTCErrorType::OPERATION_ERROR_WITH_DATA, message); in CloseAbruptlyWithDataChannelFailure()
657 RTCError(RTCErrorType::NETWORK_ERROR, "Failure to send data")); in SendDataMessage()
722 CloseAbruptlyWithError(RTCError(RTCErrorType::NETWORK_ERROR, in SendControlMessage()
/external/webrtc/p2p/base/
Dtransport_description.cc20 using webrtc::RTCError;
41 RTCError ValidateIceUfrag(absl::string_view raw_ufrag) { in ValidateIceUfrag()
47 return RTCError(RTCErrorType::SYNTAX_ERROR, sb.Release()); in ValidateIceUfrag()
51 return RTCError( in ValidateIceUfrag()
56 return RTCError::OK(); in ValidateIceUfrag()
59 RTCError ValidateIcePwd(absl::string_view raw_pwd) { in ValidateIcePwd()
65 return RTCError(RTCErrorType::SYNTAX_ERROR, sb.Release()); in ValidateIcePwd()
69 return RTCError( in ValidateIcePwd()
74 return RTCError::OK(); in ValidateIcePwd()
90 RTCError IceParameters::Validate() const { in Validate()
[all …]
/external/webrtc/api/test/
Ddummy_peer_connection.h45 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented"); in AddTrack()
50 RTCError RemoveTrackNew( in RemoveTrackNew()
52 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented"); in RemoveTrackNew()
57 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented"); in AddTransceiver()
62 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented"); in AddTransceiver()
67 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented"); in AddTransceiver()
72 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented"); in AddTransceiver()
180 RTCError SetConfiguration( in SetConfiguration()
182 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented"); in SetConfiguration()
193 RTCError SetBitrate(const BitrateSettings& bitrate) override { in SetBitrate()
[all …]
/external/webrtc/pc/test/
Dfake_peer_connection_base.h50 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented"); in AddTrack()
55 RTCError RemoveTrackNew( in RemoveTrackNew()
57 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION); in RemoveTrackNew()
62 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented"); in AddTransceiver()
68 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented"); in AddTransceiver()
73 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented"); in AddTransceiver()
79 return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented"); in AddTransceiver()
175 RTCError SetConfiguration( in SetConfiguration()
177 return RTCError(); in SetConfiguration()
189 RTCError SetBitrate(const BitrateSettings& bitrate) override { in SetBitrate()
[all …]
Dmock_rtp_sender_internal.h49 MOCK_METHOD(RTCError, SetParameters, (const RtpParameters&), (override));
50 MOCK_METHOD(RTCError,
81 MOCK_METHOD(RTCError,
/external/webrtc/api/transport/
Ddata_channel_transport_interface.h101 virtual RTCError OpenChannel(int channel_id) = 0;
106 virtual RTCError SendData(int channel_id,
113 virtual RTCError CloseChannel(int channel_id) = 0;
/external/webrtc/test/peer_scenario/
Dsdp_callbacks.cc24 void OnFailure(RTCError error) override { in SdpSetObserver()
27 void OnSetRemoteDescriptionComplete(RTCError error) override { in SdpSetObserver()
45 void OnFailure(RTCError error) override { in SdpCreateObserver()

1234