Home
last modified time | relevance | path

Searched refs:Err (Results 1 – 25 of 1906) sorted by relevance

12345678910>>...77

/external/rust/crates/nom/src/sequence/
Dtests.rs4 use crate::internal::{Err, IResult, Needed};
10 use crate::{error::ErrorKind, Err}; in single_element_tuples()
16 Err(Err::Error(("123def", ErrorKind::Alpha))) in single_element_tuples()
83 Err(Err::Error(error_position!(&b"mn"[..], ErrorKind::Tag))) in complete()
99 Err(Err::Incomplete(Needed::new(1))) in pair_test()
103 Err(Err::Incomplete(Needed::new(2))) in pair_test()
107 Err(Err::Error(error_position!(&b"xxx"[..], ErrorKind::Tag))) in pair_test()
111 Err(Err::Error(error_position!(&b"xxxdef"[..], ErrorKind::Tag))) in pair_test()
115 Err(Err::Error(error_position!(&b"xxx"[..], ErrorKind::Tag))) in pair_test()
131 Err(Err::Incomplete(Needed::new(1))) in separated_pair_test()
[all …]
/external/giflib/
Dgif_err.c18 const char *Err; in GifErrorString() local
22 Err = "Failed to open given file"; in GifErrorString()
25 Err = "Failed to write to given file"; in GifErrorString()
28 Err = "Screen descriptor has already been set"; in GifErrorString()
31 Err = "Image descriptor is still active"; in GifErrorString()
34 Err = "Neither global nor local color map"; in GifErrorString()
37 Err = "Number of pixels bigger than width * height"; in GifErrorString()
40 Err = "Failed to allocate required memory"; in GifErrorString()
43 Err = "Write failed (disk full?)"; in GifErrorString()
46 Err = "Failed to close given file"; in GifErrorString()
[all …]
/external/rust/crates/nom/src/multi/
Dmod.rs8 use crate::internal::{Err, IResult, Needed, Parser};
51 Err(Err::Error(_)) => return Ok((i, acc)), in many0()
52 Err(e) => return Err(e), in many0()
56 return Err(Err::Error(E::from_error_kind(i, ErrorKind::Many0))); in many0()
102 Err(Err::Error(err)) => Err(Err::Error(E::append(i, ErrorKind::Many1, err))), in many1()
103 Err(e) => Err(e), in many1()
112 Err(Err::Error(_)) => return Ok((i, acc)), in many1()
113 Err(e) => return Err(e), in many1()
117 return Err(Err::Error(E::from_error_kind(i, ErrorKind::Many1))); in many1()
165 Err(Err::Error(_)) => { in many_till()
[all …]
Dtests.rs6 internal::{Err, IResult, Needed},
56 Err(Err::Error(error_position!( in separated_list0_test()
64 assert_eq!(multi(f), Err(Err::Incomplete(Needed::new(1)))); in separated_list0_test()
65 assert_eq!(multi_longsep(g), Err(Err::Incomplete(Needed::new(1)))); in separated_list0_test()
66 assert_eq!(multi(h), Err(Err::Incomplete(Needed::new(1)))); in separated_list0_test()
94 Err(Err::Error(error_position!(c, ErrorKind::Tag))) in separated_list1_test()
99 assert_eq!(multi(f), Err(Err::Incomplete(Needed::new(1)))); in separated_list1_test()
100 assert_eq!(multi_longsep(g), Err(Err::Incomplete(Needed::new(1)))); in separated_list1_test()
101 assert_eq!(multi(h), Err(Err::Incomplete(Needed::new(1)))); in separated_list1_test()
120 assert_eq!(multi(&b"abcdab"[..]), Err(Err::Incomplete(Needed::new(2)))); in many0_test()
[all …]
/external/rust/crates/nom/src/character/
Dstreaming.rs9 use crate::internal::{Err, IResult, Needed};
40 None => Err(Err::Incomplete(Needed::new(c.len() - i.input_len()))), in char()
41 Some((_, false)) => Err(Err::Error(Error::from_char(i, c))), in char()
72 None => Err(Err::Incomplete(Needed::Unknown)), in satisfy()
73 Some((_, false)) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::Satisfy))), in satisfy()
97 None => Err(Err::Incomplete(Needed::new(1))), in one_of()
98 Some((_, false)) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::OneOf))), in one_of()
122 None => Err(Err::Incomplete(Needed::new(1))), in none_of()
123 Some((_, false)) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::NoneOf))), in none_of()
149 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(2))), in crlf()
[all …]
Dcomplete.rs9 use crate::internal::{Err, IResult};
42 _ => Err(Err::Error(Error::from_char(i, c))), in char()
73 _ => Err(Err::Error(Error::from_error_kind(i, ErrorKind::Satisfy))), in satisfy()
97 _ => Err(Err::Error(Error::from_error_kind(i, ErrorKind::OneOf))), in one_of()
121 _ => Err(Err::Error(Error::from_error_kind(i, ErrorKind::NoneOf))), in none_of()
152 Err(Err::Error(E::from_error_kind(input, e))) in crlf()
201 Err(Err::Error(E::from_error_kind(input, e))) in not_line_ending()
235 CompareResult::Incomplete => Err(Err::Error(E::from_error_kind(input, ErrorKind::CrLf))), in line_ending()
240 _ => Err(Err::Error(E::from_error_kind(input, ErrorKind::CrLf))), in line_ending()
316 None => Err(Err::Error(E::from_error_kind(input, ErrorKind::Eof))), in anychar()
[all …]
/external/rust/crates/nom/src/bytes/
Dtests.rs7 use crate::internal::{Err, IResult, Needed};
34 Err(Err::Error(error_position!(c, ErrorKind::IsA))) in is_a()
58 Err(Err::Error(error_position!(c, ErrorKind::IsNot))) in is_not()
65 assert_eq!(a_or_b(e), Err(Err::Incomplete(Needed::new(1)))); in is_not()
84 Err(Err::Error(error_position!( in escaping()
91 Err(Err::Error(error_node_position!( in escaping()
119 Err(Err::Error(error_position!("AB\\", ErrorKind::Escaped)))
123 Err(Err::Error(error_node_position!(
180 Err(Err::Error(error_position!( in escape_transform()
187 Err(Err::Error(error_node_position!( in escape_transform()
[all …]
Dstreaming.rs5 use crate::internal::{Err, IResult, Needed, Parser};
44 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(tag_len - i.input_len()))), in tag()
47 Err(Err::Error(Error::from_error_kind(i, e))) in tag()
86 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(tag_len - i.input_len()))), in tag_no_case()
89 Err(Err::Error(Error::from_error_kind(i, e))) in tag_no_case()
279 Err(Err::Error(Error::from_error_kind( in take_while_m_n()
289 Err(Err::Error(Error::from_error_kind( in take_while_m_n()
298 Err(Err::Error(Error::from_error_kind(input, e))) in take_while_m_n()
306 Err(_needed) => Err(Err::Error(Error::from_error_kind( in take_while_m_n()
313 Err(Err::Incomplete(Needed::new(needed))) in take_while_m_n()
[all …]
/external/rust/crates/der-parser/tests/
Dder_constructed.rs7 use nom::{Err, Needed};
11 #[test_case(&hex!("a2 80 02 03 01 00 01 00 00"), Err(BerError::DerConstraintFailed) ; "indefinite t…
12 #[test_case(&hex!("a3 05 02 03 01 00 01"), Err(BerError::InvalidTag) ; "invalid tag")]
13 #[test_case(&hex!("22 05 02 03 01 00 01"), Err(BerError::InvalidClass) ; "invalid class")]
14 #[test_case(&hex!("82 05 02 03 01 00 01"), Err(BerError::ConstructExpected) ; "construct expected")]
28 Err(e) => { in tc_der_tagged_explicit_g()
29 pretty_assertions::assert_eq!(res, Err(Err::Error(e))); in tc_der_tagged_explicit_g()
35 #[test_case(&hex!("83 03 01 00 01"), Err(BerError::InvalidTag) ; "invalid tag")]
49 Err(e) => { in tc_der_tagged_implicit_g()
50 pretty_assertions::assert_eq!(res, Err(Err::Error(e))); in tc_der_tagged_implicit_g()
[all …]
Dconstructed.rs43 return Err(Err::Error(BerError::InvalidTag)); in parse_struct04()
54 #[test_case(&hex!("30 07 02 03 01 00 01 02 03 01"), Err(Err::Error(BerError::NomError(ErrorKind::Eo…
55 #[test_case(&hex!("31 0a 02 03 01 00 01 02 03 01 00 00"), Err(Err::Error(BerError::InvalidTag)) ; "…
57 #[test_case(&hex!("30 80"), Err(Err::Incomplete(Needed::new(1))) ; "indefinite incomplete")]
58 fn tc_ber_seq_of(i: &[u8], out: Result<&[u32], Err<BerError>>) { in tc_ber_seq_of()
76 Err(e) => { in tc_ber_seq_of()
77 pretty_assertions::assert_eq!(res, Err(e)); in tc_ber_seq_of()
83 #[test_case(&hex!("30 07 02 03 01 00 01 02 01"), Err(Err::Incomplete(Needed::new(1))) ; "incomplete…
84 #[test_case(&hex!("31 0a 02 03 01 00 01 02 03 01 00 00"), Err(Err::Error(BerError::InvalidTag)) ; "…
86 fn tc_ber_seq_defined(i: &[u8], out: Result<&[u32], Err<BerError>>) { in tc_ber_seq_defined()
[all …]
Dber_parser.rs5 use nom::Err;
40 Err(Err::Error(BerError::InvalidLength)) in test_ber_bool()
148 #[test_case(&hex!("02 05 01 23 45 67 01"), Err(BerError::IntegerTooLarge) ; "u32 too large")]
149 #[test_case(&hex!("02 09 01 23 45 67 01 23 45 67 ab"), Err(BerError::IntegerTooLarge) ; "u32 too la…
150 #[test_case(&hex!("03 03 01 00 01"), Err(BerError::InvalidTag) ; "invalid tag")]
157 Err(e) => { in tc_ber_u32()
158 pretty_assertions::assert_eq!(res, Err(Err::Error(e))); in tc_ber_u32()
168 #[test_case(&hex!("02 09 01 23 45 67 01 23 45 67 ab"), Err(BerError::IntegerTooLarge) ; "u64 too la…
169 #[test_case(&hex!("03 03 01 00 01"), Err(BerError::InvalidTag) ; "invalid tag")]
176 Err(e) => { in tc_ber_u64()
[all …]
/external/rust/crates/nom/src/
Dinternal.rs18 pub type IResult<I, O, E = error::Error<I>> = Result<(I, O), Err<E>>;
39 Err(Err::Error(e)) | Err(Err::Failure(e)) => Err(e), in finish()
40 Err(Err::Incomplete(_)) => { in finish()
97 pub enum Err<E> { enum
108 impl<E> Err<E> { impl
111 if let Err::Incomplete(_) = self { in is_incomplete()
119 pub fn map<E2, F>(self, f: F) -> Err<E2> in map()
124 Err::Incomplete(n) => Err::Incomplete(n), in map()
125 Err::Failure(t) => Err::Failure(f(t)), in map()
126 Err::Error(t) => Err::Error(f(t)), in map()
[all …]
/external/rust/crates/nom/src/bits/
Dmod.rs8 use crate::internal::{Err, IResult, Needed};
55 Err(Err::Incomplete(n)) => Err(Err::Incomplete(n.map(|u| u.get() / 8 + 1))), in bits()
56 Err(Err::Error(e)) => Err(Err::Error(e.convert())), in bits()
57 Err(Err::Failure(e)) => Err(Err::Failure(e.convert())), in bits()
102 Err(Err::Incomplete(Needed::Unknown)) => Err(Err::Incomplete(Needed::Unknown)), in bytes()
103 Err(Err::Incomplete(Needed::Size(sz))) => Err(match sz.get().checked_mul(8) { in bytes()
104 Some(v) => Err::Incomplete(Needed::new(v)), in bytes()
105 None => Err::Failure(E2::from_error_kind(i, ErrorKind::TooLarge)), in bytes()
107 Err(Err::Error(e)) => Err(Err::Error(e.convert())), in bytes()
108 Err(Err::Failure(e)) => Err(Err::Failure(e.convert())), in bytes()
/external/rust/crates/rusticata-macros/src/
Dmacros.rs65 Err(::nom::Err::Error($err))
82 Err(::nom::Err::Error(error_position!($i, $err)))
113 return Err("empty"); in bytes_to_u64()
116 return Err("overflow"); in bytes_to_u64()
148 if $i.len() < $len { Err(::nom::Err::Incomplete(::nom::Needed::new($len))) }
154 Err(e) => Err(e)
159 if $i.len() < $len { Err(::nom::Err::Incomplete(::nom::Needed::new($len))) }
165 Err(e) => Err(e)
184 Err(::nom::Err::Error(e)) => Err(::nom::Err::Error(e.into())),
185 Err(::nom::Err::Failure(e)) => Err(::nom::Err::Failure(e.into())),
[all …]
/external/rust/crates/chrono/src/format/
Dparsed.rs121 Err(IMPOSSIBLE) in set_if_consistent()
173 return Err(OUT_OF_RANGE); in set_year_div_100()
182 return Err(OUT_OF_RANGE); in set_year_mod_100()
197 return Err(OUT_OF_RANGE); in set_isoyear_div_100()
206 return Err(OUT_OF_RANGE); in set_isoyear_mod_100()
265 return Err(OUT_OF_RANGE); in set_hour12()
338 return Err(OUT_OF_RANGE); in to_naive_date()
344 Err(IMPOSSIBLE) in to_naive_date()
352 return Err(OUT_OF_RANGE); in to_naive_date()
363 (None, Some(_), None) => Err(NOT_ENOUGH), in to_naive_date()
[all …]
/external/rust/crates/cexpr/src/
Dlib.rs22 pub use nom::{error::ErrorKind, error::Error, Err, IResult, Needed};
122 Err(nom::Err::Incomplete(n)) => Err(nom::Err::Incomplete(n)), in to_cexpr_result()
123 Err(nom::Err::Error(e)) => Err(nom::Err::Error(e.into())), in to_cexpr_result()
124 Err(nom::Err::Failure(e)) => Err(nom::Err::Failure(e.into())), in to_cexpr_result()
142 Err(nom::Err::Error((rem, ErrorKind::Partial).into())) in assert_full_parse()
145 Err(nom::Err::Incomplete(n)) => Err(nom::Err::Incomplete(n)), in assert_full_parse()
146 Err(nom::Err::Failure(e)) => Err(nom::Err::Failure(e)), in assert_full_parse()
147 Err(nom::Err::Error(e)) => Err(nom::Err::Error(e)), in assert_full_parse()
/external/rust/crates/vulkano/src/command_buffer/validity/
Dblit_image.rs60 return Err(CheckBlitImageError::MissingTransferSourceUsage);
64 return Err(CheckBlitImageError::MissingTransferDestinationUsage);
68 return Err(CheckBlitImageError::SourceFormatNotSupported);
72 return Err(CheckBlitImageError::DestinationFormatNotSupported);
76 return Err(CheckBlitImageError::UnexpectedMultisampled);
87 return Err(CheckBlitImageError::DepthStencilFormatMismatch);
91 return Err(CheckBlitImageError::DepthStencilNearestMandatory);
100 return Err(CheckBlitImageError::IncompatibleFormatsTypes {
108 None => return Err(CheckBlitImageError::SourceCoordinatesOutOfRange),
116 None => return Err(CheckBlitImageError::DestinationCoordinatesOutOfRange),
[all …]
/external/rust/crates/nom/src/combinator/
Dmod.rs117 Err(e) => Err(Err::Error(E::from_external_error(i, ErrorKind::MapRes, e))), in map_res()
155 None => Err(Err::Error(E::from_error_kind(i, ErrorKind::MapOpt))), in map_opt()
245 Err(Err::Error(_)) => Ok((i, None)), in opt()
246 Err(e) => Err(e), in opt()
280 Err(e) => Err(e), in cond()
310 Err(e) => Err(e), in peek()
336 Err(Err::Error(E::from_error_kind(input, ErrorKind::Eof))) in eof()
361 Err(Err::Incomplete(_)) => Err(Err::Error(E::from_error_kind(i, ErrorKind::Complete))), in complete()
392 Err(Err::Error(E::from_error_kind(input, ErrorKind::Eof))) in all_consuming()
432 Err(Err::Error(E::from_error_kind(i, ErrorKind::Verify))) in verify()
[all …]
Dtests.rs6 use crate::internal::{Err, IResult, Needed};
35 Err(Err::Error(error_position!(not_over, ErrorKind::Eof))) in eof_on_slices()
50 Err(Err::Error(error_position!(not_over, ErrorKind::Eof))) in eof_on_strs()
130 Err(Err::Error((&[50][..], ErrorKind::MapOpt))) in test_map_opt()
152 Err(Err::Error((&[102][..], ErrorKind::Eof))) in test_all_consuming()
170 Err(Err::Error((&b"defg"[..], ErrorKind::Verify))) in test_verify_ref()
189 Err(Err::Error((&b"defg"[..], ErrorKind::Verify))) in test_verify_alloc()
199 Err, in test_into()
219 assert_eq!(opt_abcd(c), Err(Err::Incomplete(Needed::new(2)))); in opt_test()
229 assert_eq!(peek_tag(&b"ab"[..]), Err(Err::Incomplete(Needed::new(2)))); in peek_test()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/
DEHFrameSupport.cpp58 if (auto Err = processBlock(G, B, BCache)) in operator ()() local
59 return Err; in operator ()()
93 if (auto Err = BlockReader.readInteger(Length)) in processBlock() local
94 return Err; in processBlock()
96 if (auto Err = BlockReader.skip(Length)) in processBlock() local
97 return Err; in processBlock()
100 if (auto Err = BlockReader.readInteger(ExtendedLength)) in processBlock() local
101 return Err; in processBlock()
102 if (auto Err = BlockReader.skip(ExtendedLength)) in processBlock() local
103 return Err; in processBlock()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DDataExtractor.cpp28 bool isLittleEndian, const char *Data, llvm::Error *Err) { in getU() argument
29 ErrorAsOutParameter ErrAsOut(Err); in getU()
31 if (isError(Err)) in getU()
36 unexpectedEndReached(Err); in getU()
51 llvm::Error *Err) { in getUs() argument
52 ErrorAsOutParameter ErrAsOut(Err); in getUs()
53 if (isError(Err)) in getUs()
59 unexpectedEndReached(Err); in getUs()
64 *value_ptr = getU<T>(offset_ptr, de, isLittleEndian, Data, Err); in getUs()
72 uint8_t DataExtractor::getU8(uint64_t *offset_ptr, llvm::Error *Err) const { in getU8()
[all …]
/external/rust/crates/nom/src/number/
Dstreaming.rs56 Err(Err::Incomplete(Needed::new(1))) in be_u8()
86 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u16()
119 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u24()
152 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u32()
185 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u64()
218 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u128()
375 Err(Err::Incomplete(Needed::new(1))) in le_u8()
405 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u16()
438 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u24()
471 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u32()
[all …]
/external/crosvm/vm_control/src/
Dlib.rs167 Err(SysError), enumerator
296 Err(e) => { in map()
298 return Err(SysError::new(EINVAL)); in map()
307 .ok_or_else(|| VmMemoryResponse::Err(SysError::new(EINVAL))) in map()
398 Err(e) => return VmMemoryResponse::Err(e), in execute()
403 Err(e) => return VmMemoryResponse::Err(e), in execute()
408 Err(e) => return VmMemoryResponse::Err(e), in execute()
415 Err(e) => VmMemoryResponse::Err(e), in execute()
426 Err(e) => return VmMemoryResponse::Err(e), in execute()
431 Err(e) => return VmMemoryResponse::Err(e), in execute()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/RPC/
DRPCSerialization.h295 if (auto Err = in serialize() local
298 return Err; in serialize()
299 if (auto Err = SequenceTraits<ChannelT>::emitSeparator(C)) in serialize() local
300 return Err; in serialize()
308 if (auto Err = in deserialize() local
310 return Err; in deserialize()
311 if (auto Err = SequenceTraits<ChannelT>::consumeSeparator(C)) in deserialize() local
312 return Err; in deserialize()
336 std::function<Error(ChannelT &C, Error &Err)>;
367 if (auto Err = serializeSeq(C, *KeyName)) in registerErrorType() local
[all …]
/external/crosvm/src/
Dgdb.rs38 Err(e) => { in gdb_thread()
47 Err(e) => { in gdb_thread()
61 Err(e) => { in gdb_thread()
67 if let Err(e) = gdbstub.vm_request(VmRequest::Resume) { in gdb_thread()
121 Err(e) => Err(Error::VcpuResponse(e)), in vcpu_request()
130 Ok(r) => Err(Error::UnexpectedVmResponse(r)), in vm_request()
131 Err(e) => Err(Error::VmResponse(e)), in vm_request()
164 return Err("Unexpected vCPU response for EnableSinglestep"); in resume()
166 Err(e) => { in resume()
168 return Err("Failed to request EnableSinglestep"); in resume()
[all …]

12345678910>>...77