Home
last modified time | relevance | path

Searched refs:Throws (Results 1 – 25 of 227) sorted by relevance

12345678910

/external/okio/okio/src/jvmMain/kotlin/okio/
DBufferedSource.kt34 @Throws(IOException::class)
37 @Throws(IOException::class)
40 @Throws(IOException::class)
43 @Throws(IOException::class)
46 @Throws(IOException::class)
49 @Throws(IOException::class)
52 @Throws(IOException::class)
55 @Throws(IOException::class)
58 @Throws(IOException::class)
61 @Throws(IOException::class)
[all …]
DBufferedSink.kt34 @Throws(IOException::class)
37 @Throws(IOException::class)
40 @Throws(IOException::class)
43 @Throws(IOException::class)
46 @Throws(IOException::class)
49 @Throws(IOException::class)
52 @Throws(IOException::class)
55 @Throws(IOException::class)
58 @Throws(IOException::class)
61 @Throws(IOException::class)
[all …]
DBuffer.kt111 @Throws(EOFException::class) in <lambda>()
145 @Throws(IOException::class) in <lambda>()
189 @Throws(IOException::class) in <lambda>()
216 @Throws(IOException::class) in <lambda>()
223 @Throws(IOException::class) in <lambda>()
230 @Throws(IOException::class) in <lambda>()
254 @Throws(EOFException::class) in <lambda>()
260 @Throws(EOFException::class) in <lambda>()
263 @Throws(EOFException::class) in <lambda>()
266 @Throws(EOFException::class) in <lambda>()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/sequences/deque/deque.modifiers/
Derase_iter.pass.cpp23 struct Throws { struct
24 Throws() : v_(0) {} in Throws() argument
25 Throws(int v) : v_(v) {} in Throws() argument
26 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() argument
27 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
28 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
29 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
35 bool Throws::sThrows = false; argument
115 Throws arr[] = {1, 2, 3}; in main()
116 std::deque<Throws> v(arr, arr+3); in main()
[all …]
Derase_iter_iter.pass.cpp25 struct Throws { struct
26 Throws() : v_(0) {} in Throws() function
27 Throws(int v) : v_(v) {} in Throws() function
28 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
29 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
30 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
31 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
37 bool Throws::sThrows = false; argument
121 Throws arr[] = {1, 2, 3}; in main()
122 std::deque<Throws> v(arr, arr+3); in main()
[all …]
/external/libcxx/test/std/containers/sequences/deque/deque.modifiers/
Derase_iter.pass.cpp24 struct Throws { struct
25 Throws() : v_(0) {} in Throws() function
26 Throws(int v) : v_(v) {} in Throws() function
27 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() argument
28 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
29 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
30 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
36 bool Throws::sThrows = false; argument
116 Throws arr[] = {1, 2, 3}; in main()
117 std::deque<Throws> v(arr, arr+3); in main()
[all …]
Derase_iter_iter.pass.cpp26 struct Throws { struct
27 Throws() : v_(0) {} in Throws() argument
28 Throws(int v) : v_(v) {} in Throws() argument
29 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
30 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
31 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
32 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
38 bool Throws::sThrows = false; argument
122 Throws arr[] = {1, 2, 3}; in main()
123 std::deque<Throws> v(arr, arr+3); in main()
[all …]
/external/libcxx/test/std/containers/sequences/vector/vector.modifiers/
Derase_iter.pass.cpp22 struct Throws { struct
23 Throws() : v_(0) {} in Throws() function
24 Throws(int v) : v_(v) {} in Throws() argument
25 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
26 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
27 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
28 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
33 bool Throws::sThrows = false; argument
94 Throws arr[] = {1, 2, 3}; in main()
95 std::vector<Throws> v(arr, arr+3); in main()
[all …]
Derase_iter_iter.pass.cpp22 struct Throws { struct
23 Throws() : v_(0) {} in Throws() argument
24 Throws(int v) : v_(v) {} in Throws() argument
25 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
26 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() argument
27 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
28 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
33 bool Throws::sThrows = false; argument
147 Throws arr[] = {1, 2, 3}; in main()
148 std::vector<Throws> v(arr, arr+3); in main()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/sequences/vector/vector.modifiers/
Derase_iter.pass.cpp22 struct Throws { struct
23 Throws() : v_(0) {} in Throws() function
24 Throws(int v) : v_(v) {} in Throws() function
25 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() argument
26 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
27 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
28 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
33 bool Throws::sThrows = false; argument
120 Throws arr[] = {1, 2, 3}; in main()
121 std::vector<Throws> v(arr, arr+3); in main()
[all …]
Derase_iter_iter.pass.cpp22 struct Throws { struct
23 Throws() : v_(0) {} in Throws() function
24 Throws(int v) : v_(v) {} in Throws() function
25 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() argument
26 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
27 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
28 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
33 bool Throws::sThrows = false; argument
158 Throws arr[] = {1, 2, 3}; in main()
159 std::vector<Throws> v(arr, arr+3); in main()
[all …]
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs70 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues()
71 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues()
80 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys()
87 Assert.Throws<ArgumentNullException>(() => map[null] = new ForeignMessage()); in Indexer_ForbidsNullKeys()
187 Assert.Throws<ArgumentException>(() => map.Add("foo", "baz")); in Add_KeyAlreadyExists()
197 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair()
220 Assert.Throws<ArgumentNullException>(() => map.Remove(null)); in Remove_Key()
236 …Assert.Throws<ArgumentException>(() => collection.Remove(new KeyValuePair<string, string>(null, ""… in Remove_Pair()
266 Assert.Throws<KeyNotFoundException>(() => { var ignored = map["z"]; }); in Indexer_Get()
318 Assert.Throws<ArgumentException>(() => dictionary.Add("a", "duplicate")); in IDictionary_Add()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs70 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues()
71 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues()
80 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys()
87 Assert.Throws<ArgumentNullException>(() => map[null] = new ForeignMessage()); in Indexer_ForbidsNullKeys()
187 Assert.Throws<ArgumentException>(() => map.Add("foo", "baz")); in Add_KeyAlreadyExists()
197 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair()
220 Assert.Throws<ArgumentNullException>(() => map.Remove(null)); in Remove_Key()
236 …Assert.Throws<ArgumentException>(() => collection.Remove(new KeyValuePair<string, string>(null, ""… in Remove_Pair()
266 Assert.Throws<KeyNotFoundException>(() => { var ignored = map["z"]; }); in Indexer_Get()
318 Assert.Throws<ArgumentException>(() => dictionary.Add("a", "duplicate")); in IDictionary_Add()
[all …]
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DMetadataTest.cs42 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc-bin", "xyz")); in AsciiEntry()
54 Assert.Throws(typeof(InvalidOperationException), () => { var v = entry.Value; }); in BinaryEntry()
57 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc", bytes)); in BinaryEntry()
71 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc[", "xyz")); in AsciiEntry_KeyValidity()
72 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc/", "xyz")); in AsciiEntry_KeyValidity()
78 Assert.Throws(typeof(ArgumentNullException), () => new Metadata.Entry(null, "xyz")); in Entry_ConstructionPreconditions()
79 … Assert.Throws(typeof(ArgumentNullException), () => new Metadata.Entry("abc", (string)null)); in Entry_ConstructionPreconditions()
80 … Assert.Throws(typeof(ArgumentNullException), () => new Metadata.Entry("abc-bin", (byte[])null)); in Entry_ConstructionPreconditions()
114 Assert.Throws(typeof(InvalidOperationException), () => { var v = entry.Value; }); in Entry_CreateUnsafe_Binary()
212 Assert.Throws<InvalidOperationException>(() => metadata.Insert(0, entry)); in FreezeMakesReadOnly()
[all …]
/external/flatbuffers/tests/FlatBuffers.Test/
DByteBufferTests.cs49 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutByte(1, 99)); in ByteBuffer_PutByteCannotPutAtOffsetPastLength()
70 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutShort(2, 99)); in ByteBuffer_PutShortCannotPutAtOffsetPastLength()
79 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutShort(0, 99)); in ByteBuffer_PutShortChecksLength()
86 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutShort(1, 99)); in ByteBuffer_PutShortChecksLengthAndOffset()
109 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutInt(2, 0x0A0B0C0D)); in ByteBuffer_PutIntCannotPutAtOffsetPastLength()
116 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutInt(0, 0x0A0B0C0D)); in ByteBuffer_PutIntChecksLength()
123 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutInt(2, 0x0A0B0C0D)); in ByteBuffer_PutIntChecksLengthAndOffset()
150 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutLong(2, 0x010203040A0B0C0D)); in ByteBuffer_PutLongCannotPutAtOffsetPastLength()
157 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutLong(0, 0x010203040A0B0C0D)); in ByteBuffer_PutLongChecksLength()
164 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutLong(2, 0x010203040A0B0C0D)); in ByteBuffer_PutLongChecksLengthAndOffset()
[all …]
/external/clang/test/CodeGenCXX/
Dnew-array-init-exceptions.cpp4 struct Throws { struct
5 Throws(int);
6 Throws();
7 ~Throws();
20 new Throws[n] { 1, 2, 3 }; in cleanup()
36 new Throws[3] { 1, 2, 3 }; in cleanup()
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs71 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues()
72 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues()
81 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys()
88 Assert.Throws<ArgumentNullException>(() => map[null] = new ForeignMessage()); in Indexer_ForbidsNullKeys()
188 Assert.Throws<ArgumentException>(() => map.Add("foo", "baz")); in Add_KeyAlreadyExists()
198 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair()
221 Assert.Throws<ArgumentNullException>(() => map.Remove(null)); in Remove_Key()
237 …Assert.Throws<ArgumentException>(() => collection.Remove(new KeyValuePair<string, string>(null, ""… in Remove_Pair()
267 Assert.Throws<KeyNotFoundException>(() => { var ignored = map["z"]; }); in Indexer_Get()
319 Assert.Throws<ArgumentException>(() => dictionary.Add("a", "duplicate")); in IDictionary_Add()
[all …]
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs71 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues()
72 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues()
81 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys()
88 Assert.Throws<ArgumentNullException>(() => map[null] = new ForeignMessage()); in Indexer_ForbidsNullKeys()
188 Assert.Throws<ArgumentException>(() => map.Add("foo", "baz")); in Add_KeyAlreadyExists()
198 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair()
221 Assert.Throws<ArgumentNullException>(() => map.Remove(null)); in Remove_Key()
237 …Assert.Throws<ArgumentException>(() => collection.Remove(new KeyValuePair<string, string>(null, ""… in Remove_Pair()
267 Assert.Throws<KeyNotFoundException>(() => { var ignored = map["z"]; }); in Indexer_Get()
319 Assert.Throws<ArgumentException>(() => dictionary.Add("a", "duplicate")); in IDictionary_Add()
[all …]
/external/lottie/snapshot-tests/src/androidTest/java/com/airbnb/lottie/snapshots/utils/
DTeeOutputStream.kt5 import kotlin.Throws
11 @Throws(IOException::class)
17 @Throws(IOException::class)
23 @Throws(IOException::class)
29 @Throws(IOException::class)
35 @Throws(IOException::class)
/external/robolectric/plugins/maven-dependency-resolver/src/test/java/org/robolectric/internal/dependency/
DMavenDependencyResolverTest.kt29 @Throws(Exception::class)
47 @Throws(Exception::class)
57 @Throws(Exception::class)
69 @Throws(Exception::class)
85 @Throws(Exception::class)
98 @Throws(Exception::class)
114 @Throws(Exception::class)
127 @Throws(Exception::class)
136 @Throws(Exception::class)
196 @Throws(Exception::class) in createFetchToFileTask()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DJsonParserTest.cs71 … Assert.Throws<InvalidProtocolBufferException>(() => JsonParser.Default.Parse<TestMap>(json)); in IntegerMapKeysAreStrict()
198 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited()
214 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited()
270 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid()
291 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt32_Invalid()
314 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt64_Invalid()
335 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt64_Invalid()
388 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToDouble_Invalid()
418 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToFloat_Invalid()
453 Assert.Throws(expectedExceptionType, () => TestAllTypes.Parser.ParseJson(json)); in NumberToInt32_Invalid()
[all …]
DCodedInputStreamTest.cs99 … var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32()); in AssertReadVarintFailure()
103 … exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint64()); in AssertReadVarintFailure()
107 …exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(n… in AssertReadVarintFailure()
284 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadMaliciouslyLargeBlob()
321 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(beyondRe… in MaliciousRecursion()
324 … Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input)); in MaliciousRecursion()
334 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(input)); in SizeLimit()
422 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadTag()); in Tag0Throws()
498 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in SkipGroup_WrongEndGroupTag()
515 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in RogueEndGroupTag()
[all …]
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DJsonParserTest.cs71 … Assert.Throws<InvalidProtocolBufferException>(() => JsonParser.Default.Parse<TestMap>(json)); in IntegerMapKeysAreStrict()
198 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited()
214 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited()
270 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid()
291 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt32_Invalid()
314 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt64_Invalid()
335 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt64_Invalid()
388 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToDouble_Invalid()
418 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToFloat_Invalid()
453 Assert.Throws(expectedExceptionType, () => TestAllTypes.Parser.ParseJson(json)); in NumberToInt32_Invalid()
[all …]
DCodedInputStreamTest.cs99 … var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32()); in AssertReadVarintFailure()
103 … exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint64()); in AssertReadVarintFailure()
107 …exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(n… in AssertReadVarintFailure()
284 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadMaliciouslyLargeBlob()
321 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(beyondRe… in MaliciousRecursion()
324 … Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input)); in MaliciousRecursion()
334 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(input)); in SizeLimit()
422 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadTag()); in Tag0Throws()
498 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in SkipGroup_WrongEndGroupTag()
515 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in RogueEndGroupTag()
[all …]
/external/robolectric/utils/src/test/java/org/robolectric/util/
DPerfStatsCollectorTest.kt18 @Throws(Exception::class)
25 @Throws(Exception::class)
35 @Throws(Exception::class)
51 @Throws(Exception::class)
65 @Throws(Exception::class)
85 @Throws(Exception::class)
101 @Throws(Exception::class)

12345678910