Home
last modified time | relevance | path

Searched refs:NetError (Results 1 – 22 of 22) sorted by relevance

/external/cronet/net/android/java/src/org/chromium/net/
DHttpNegotiateAuthenticator.java107 HttpNegotiateAuthenticator.this, NetError.ERR_UNEXPECTED, null); in run()
116 HttpNegotiateAuthenticator.this, NetError.ERR_MISSING_AUTH_CREDENTIALS, in run()
127 HttpNegotiateAuthenticator.this, NetError.ERR_MISSING_AUTH_CREDENTIALS, in run()
141 NetError.ERR_MISCONFIGURED_AUTH_ENVIRONMENT, null); in run()
167 HttpNegotiateAuthenticator.this, NetError.ERR_UNEXPECTED, null); in run()
260 @NetError in processResult()
265 status = NetError.OK; in processResult()
268 status = NetError.ERR_UNEXPECTED; in processResult()
271 status = NetError.ERR_ABORTED; in processResult()
274 status = NetError.ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS; in processResult()
[all …]
/external/crosvm/devices/src/virtio/sys/unix/
Dnet.rs16 use super::super::super::net::NetError;
29 ) -> result::Result<(), NetError> { in process_rx() argument
58 return Err(NetError::WriteBuffer(e)); in process_rx()
82 Err(NetError::RxDescriptorsExhausted) in process_rx()
130 ) -> result::Result<(), NetError> { in handle_rx_token() argument
133 Err(NetError::RxDescriptorsExhausted) => { in handle_rx_token()
136 .map_err(NetError::WaitContextDisableTap)?; in handle_rx_token()
146 ) -> result::Result<(), NetError> { in handle_rx_queue() argument
150 .map_err(NetError::WaitContextEnableTap)?; in handle_rx_queue()
154 pub(super) fn process_rx(&mut self) -> result::Result<(), NetError> { in process_rx() argument
/external/crosvm/devices/src/virtio/sys/windows/
Dnet.rs23 use super::super::super::net::NetError;
206 ) -> Result<Net<net_util::Slirp>, NetError>; in new_slirp() argument
216 ) -> Result<Net<net_util::Slirp>, NetError> { in new_slirp() argument
219 let slirp_kill_evt = Event::new().map_err(NetError::CreateKillEvent)?; in new_slirp()
223 .map_err(NetError::CreateKillEvent)?, in new_slirp()
227 .map_err(NetError::SlirpCreateError)?; in new_slirp()
259 ) -> result::Result<(), NetError> { in handle_rx_token() argument
278 .map_err(NetError::EventRemoveTap)?; in handle_rx_token()
293 ) -> result::Result<(), NetError> { in handle_rx_queue() argument
309 return Err(NetError::EventAddTap(e)); in handle_rx_queue()
/external/crosvm/devices/src/virtio/
Dnet.rs68 pub enum NetError { enum
226 ) -> Result<(), NetError> { in process_ctrl() argument
231 Reader::new(mem.clone(), desc_chain.clone()).map_err(NetError::DescriptorChain)?; in process_ctrl()
232 let mut writer = Writer::new(mem.clone(), desc_chain).map_err(NetError::DescriptorChain)?; in process_ctrl()
233 let ctrl_hdr: virtio_net_ctrl_hdr = reader.read_obj().map_err(NetError::ReadCtrlHeader)?; in process_ctrl()
238 .map_err(NetError::WriteAck)?; in process_ctrl()
253 let offloads: Le64 = reader.read_obj().map_err(NetError::ReadCtrlData)?; in process_ctrl()
262 writer.write_all(&[ack]).map_err(NetError::WriteAck)?; in process_ctrl()
266 let pairs: Le16 = reader.read_obj().map_err(NetError::ReadCtrlData)?; in process_ctrl()
277 writer.write_all(&[ack]).map_err(NetError::WriteAck)?; in process_ctrl()
[all …]
/external/cronet/net/android/junit/src/org/chromium/net/
DHttpNegotiateAuthenticatorTest.java185 .setResult(eq(42L), eq(authenticator), eq(NetError.ERR_MISSING_AUTH_CREDENTIALS), in testGetAccountCallback()
198 .setResult(eq(42L), eq(authenticator), eq(NetError.ERR_MISSING_AUTH_CREDENTIALS), in testGetAccountCallback()
276 verify(mAuthenticatorJniMock).setResult(5678, authenticator, NetError.ERR_UNEXPECTED, null); in testAccountManagerCallbackRun()
287 eq(NetError.ERR_MISCONFIGURED_AUTH_ENVIRONMENT), (String) isNull()); in testPermissionDenied()
293 checkErrorReturn(null, NetError.ERR_UNEXPECTED); in testAccountManagerCallbackNullErrorReturns()
299 checkErrorReturn(HttpNegotiateConstants.ERR_UNEXPECTED, NetError.ERR_UNEXPECTED); in testAccountManagerCallbackUnexpectedErrorReturns()
305 checkErrorReturn(HttpNegotiateConstants.ERR_ABORTED, NetError.ERR_ABORTED); in testAccountManagerCallbackAbortedErrorReturns()
312 NetError.ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS); in testAccountManagerCallbackSecLibErrorReturns()
319 HttpNegotiateConstants.ERR_INVALID_RESPONSE, NetError.ERR_INVALID_RESPONSE); in testAccountManagerCallbackInvalidResponseErrorReturns()
326 NetError.ERR_INVALID_AUTH_CREDENTIALS); in testAccountManagerCallbackInvalidAuthCredsErrorReturns()
[all …]
/external/cronet/components/cronet/android/java/src/org/chromium/net/impl/
DBidirectionalStreamNetworkException.java9 import org.chromium.net.NetError;
24 case NetError.ERR_HTTP2_PING_FAILED: in isImmediatelyRetryable()
25 case NetError.ERR_QUIC_HANDSHAKE_FAILED: in isImmediatelyRetryable()
/external/cronet/net/android/java/
DNetError.template13 #define NET_ERROR(name, value) NetError.ERR_##name,
16 NetError.OK
19 public @interface NetError {
/external/cronet/net/android/javatests/src/org/chromium/net/
DNetErrorsTest.java36 Assert.assertEquals(IO_PENDING_ERROR, NetError.ERR_IO_PENDING); in testExampleErrorDefined()
37 Assert.assertEquals(FAILED_ERROR, NetError.ERR_FAILED); in testExampleErrorDefined()
/external/cronet/components/cronet/android/test/javatests/src/org/chromium/net/
DBidirectionalStreamQuicTest.java325 assertTrue(NetError.ERR_QUIC_PROTOCOL_ERROR == networkError.getInternalErrorCode() in testStreamFailBeforeWriteIsExecutedOnNetworkThread()
326 || NetError.ERR_CONNECTION_REFUSED == networkError.getInternalErrorCode()); in testStreamFailBeforeWriteIsExecutedOnNetworkThread()
327 if (NetError.ERR_CONNECTION_REFUSED == networkError.getInternalErrorCode()) return; in testStreamFailBeforeWriteIsExecutedOnNetworkThread()
DBidirectionalStreamTest.java1526 checkSpecificErrorCode(NetError.ERR_NAME_NOT_RESOLVED, in testErrorCodes()
1528 checkSpecificErrorCode(NetError.ERR_INTERNET_DISCONNECTED, in testErrorCodes()
1531 NetError.ERR_NETWORK_CHANGED, NetworkException.ERROR_NETWORK_CHANGED, true); in testErrorCodes()
1533 NetError.ERR_CONNECTION_CLOSED, NetworkException.ERROR_CONNECTION_CLOSED, true); in testErrorCodes()
1535 NetError.ERR_CONNECTION_REFUSED, NetworkException.ERROR_CONNECTION_REFUSED, false); in testErrorCodes()
1537 NetError.ERR_CONNECTION_RESET, NetworkException.ERROR_CONNECTION_RESET, true); in testErrorCodes()
1538 checkSpecificErrorCode(NetError.ERR_CONNECTION_TIMED_OUT, in testErrorCodes()
1540 checkSpecificErrorCode(NetError.ERR_TIMED_OUT, NetworkException.ERROR_TIMED_OUT, true); in testErrorCodes()
1541 checkSpecificErrorCode(NetError.ERR_ADDRESS_UNREACHABLE, in testErrorCodes()
1544 checkSpecificErrorCode(NetError.ERR_HTTP2_PING_FAILED, NetworkException.ERROR_OTHER, true); in testErrorCodes()
[all …]
DNetworkChangeNotifierTest.java108 assertEquals(NetError.ERR_NETWORK_CHANGED, in testNetworkChangeNotifier()
DPkpTest.java392 expectedErrors.add(NetError.ERR_CONNECTION_REFUSED); in assertErrorResponse()
393 expectedErrors.add(NetError.ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN); in assertErrorResponse()
DExperimentalOptionsTest.java354 assertEquals(NetError.ERR_HTTP2_PING_FAILED, in testDetectBrokenConnectionOnNetworkFailure()
DCronetUrlRequestTest.java2142 FailurePhase.START, NetError.ERR_QUIC_PROTOCOL_ERROR)); in testQuicErrorCode()
2159 FailurePhase.START, NetError.ERR_NETWORK_CHANGED)); in testQuicErrorCodeForNetworkChanged()
/external/crosvm/devices/src/virtio/vhost/user/device/net/sys/
Dwindows.rs43 use crate::virtio::net::NetError;
69 let slirp = Slirp::new_for_multi_process(guest_pipe).map_err(NetError::SlirpCreateError)?; in new_slirp()
Dunix.rs37 use crate::virtio::net::NetError;
151 Err(NetError::RxDescriptorsExhausted) => { in run_rx_queue()
/external/rust/crates/remain/
DREADME.md37 NetDeviceNew(virtio::NetError),
74 NetDeviceNew(virtio::NetError),
/external/crosvm/src/crosvm/sys/unix/
Ddevice_helpers.rs48 use devices::virtio::NetError;
769 .map_err(NetError::TapOpen)?; in create_tap_for_net_device()
788 let tap = Tap::new(true, multi_vq).map_err(NetError::TapOpen)?; in create_tap_for_net_device()
789 tap.set_ip_addr(*host_ip).map_err(NetError::TapSetIp)?; in create_tap_for_net_device()
790 tap.set_netmask(*netmask).map_err(NetError::TapSetNetmask)?; in create_tap_for_net_device()
792 .map_err(NetError::TapSetMacAddress)?; in create_tap_for_net_device()
793 tap.enable().map_err(NetError::TapEnable)?; in create_tap_for_net_device()
/external/crosvm/src/crosvm/plugin/
Dprocess.rs58 use net_util::Error as NetError;
525 fn map_net_error(s: &str, e: NetError) -> SysError { in handle_get_net_config()
/external/cronet/net/android/
DBUILD.gn204 sources = [ "java/NetError.template" ]
/external/cronet/
DAndroid.bp14035 cmd: "cp $(in) $(genDir)/NetError.java && " +
14036 "$(location soong_zip) -o $(out) -srcjar -C $(genDir) -f $(genDir)/NetError.java",
14038 "NetError.srcjar",
14060 "net/android/java/NetError.template",
14064 "NetError.cc",
/external/cronet/android/tools/gn2bp/
DAndroid.bp.swp14025 cmd: "cp $(in) $(genDir)/NetError.java && " +
14026 "$(location soong_zip) -o $(out) -srcjar -C $(genDir) -f $(genDir)/NetError.java",
14028 "NetError.srcjar",
14050 "net/android/java/NetError.template",
14054 "NetError.cc",