Home
last modified time | relevance | path

Searched refs:suppressed (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DWithContextExceptionHandlingTest.kt34 val suppressed = e.suppressed in <lambda>() constant
35 assertTrue(suppressed.isEmpty()) in <lambda>()
50 val suppressed = e.suppressed in <lambda>() constant
51 assertTrue(suppressed.isEmpty()) in <lambda>()
66 val suppressed = e.suppressed in <lambda>() constant
67 assertTrue(suppressed.isEmpty()) in <lambda>()
82 val suppressed = e.suppressed in <lambda>() constant
83 assertTrue(suppressed.isEmpty()) in <lambda>()
100 assertTrue(e.suppressed.isEmpty()) in <lambda>()
116 assertTrue(e.suppressed.isEmpty()) in <lambda>()
[all …]
DJobExceptionHandlingTest.kt53 assertTrue(e.suppressed.isEmpty()) in <lambda>()
54 assertTrue(e.cause?.suppressed?.isEmpty() ?: false) in <lambda>()
197 assertTrue(exception.suppressed.isEmpty()) in <lambda>()
236 val suppressed = exception.suppressed in <lambda>() constant
237 assertEquals(2, suppressed.size) in <lambda>()
238 assertTrue(suppressed[0] is IOException) in <lambda>()
239 assertTrue(suppressed[1] is IllegalArgumentException) in <lambda>()
273 val suppressed = exception.suppressed in <lambda>() constant
274 assertEquals(2, suppressed.size) in <lambda>()
275 assertTrue(suppressed[0] is IOException) in <lambda>()
[all …]
DSuppressionTests.kt26 assertTrue(cause.suppressed.isEmpty()) in <lambda>()
36 checkException<IOException>(cause.suppressed[0]) in <lambda>()
43 assertTrue(it.suppressed.isEmpty()) in <lambda>()
49 checkException<IOException>(it.suppressed[0]) in <lambda>()
81 assertTrue(e.suppressed.isEmpty()) in <lambda>()
82 assertTrue(e.cause!!.suppressed.isEmpty()) in <lambda>()
DWithContextCancellationStressTest.kt97 val suppressed: Array<Throwable> = suppressed in Throwable() constant
99 … assertTrue(suppressed.any { it is TestException }, "TestException should be present: $this") in Throwable()
102 … assertTrue(suppressed.any { it is TestException1 }, "TestException1 should be present: $this") in Throwable()
105 … assertTrue(suppressed.any { it is TestException2 }, "TestException2 should be present: $this") in Throwable()
DJobNestedExceptionsTest.kt84 checkException<IOException>(exception.suppressed[0]) in testNestedAtomicThrow()
114 val suppressed = exception.suppressed in testChildThrowsDuringCompletion() constant
115 val ioe = suppressed[0] in testChildThrowsDuringCompletion()
117 checkException<NullPointerException>(ioe.suppressed[0]) in testChildThrowsDuringCompletion()
DProduceExceptionsTest.kt36 … runTest(unhandled = listOf({ e -> e is TestException && e.suppressed[0] is TestException2 })) { in <lambda>()
68 assertTrue(e.suppressed[0] is TestException2) in <lambda>()
91 assertTrue(e.suppressed.isEmpty()) in <lambda>()
116 assertTrue(e.suppressed.isEmpty()) in <lambda>()
140 assertTrue(e.suppressed.isEmpty()) in <lambda>()
/external/desugar/java/com/google/devtools/build/android/desugar/runtime/
DThrowableExtension.java83 public static void addSuppressed(Throwable receiver, Throwable suppressed) { in addSuppressed() argument
84 STRATEGY.addSuppressed(receiver, suppressed); in addSuppressed()
182 public abstract void addSuppressed(Throwable receiver, Throwable suppressed); in addSuppressed() argument
197 public void addSuppressed(Throwable receiver, Throwable suppressed) { in addSuppressed() argument
198 receiver.addSuppressed(suppressed); in addSuppressed()
233 public void addSuppressed(Throwable receiver, Throwable suppressed) { in addSuppressed() argument
234 if (suppressed == receiver) { in addSuppressed()
235 throw new IllegalArgumentException("Self suppression is not allowed.", suppressed); in addSuppressed()
237 if (suppressed == null) { in addSuppressed()
241 map.get(receiver, /*createOnAbsence=*/true).add(suppressed); in addSuppressed()
[all …]
/external/llvm-project/compiler-rt/lib/asan/
Dasan_interceptors_memintrinsics.h63 bool suppressed = false; \ in DECLARE_REAL()
65 suppressed = IsInterceptorSuppressed(_ctx->interceptor_name); \ in DECLARE_REAL()
66 if (!suppressed && HaveStackTraceBasedSuppressions()) { \ in DECLARE_REAL()
68 suppressed = IsStackTraceSuppressed(&stack); \ in DECLARE_REAL()
71 if (!suppressed) { \ in DECLARE_REAL()
141 bool suppressed = IsInterceptorSuppressed(name); \ in DECLARE_REAL()
142 if (!suppressed && HaveStackTraceBasedSuppressions()) { \ in DECLARE_REAL()
143 suppressed = IsStackTraceSuppressed(&stack); \ in DECLARE_REAL()
145 if (!suppressed) { \ in DECLARE_REAL()
/external/desugar/test/java/com/google/devtools/build/android/desugar/runtime/
DThrowableExtensionTest.java199 FileNotFoundException suppressed = new FileNotFoundException(); in testLightweightStackTraceRecorder() local
200 strategy.addSuppressed(receiver, suppressed); in testLightweightStackTraceRecorder()
211 FileNotFoundException suppressed = new FileNotFoundException(); in testMimicDesugaringStrategy() local
212 strategy.addSuppressed(receiver, suppressed); in testMimicDesugaringStrategy()
230 FileNotFoundException suppressed = new FileNotFoundException(); in testThrowableExtensionWithMimicDesugaringStrategy() local
231 ThrowableExtension.addSuppressed(receiver, suppressed); in testThrowableExtensionWithMimicDesugaringStrategy()
288 FileNotFoundException suppressed = new FileNotFoundException(); in testNullDesugaringStrategy() local
289 strategy.addSuppressed(receiver, suppressed); in testNullDesugaringStrategy()
292 strategy.addSuppressed(receiver, suppressed); in testNullDesugaringStrategy()
311 FileNotFoundException suppressed = new FileNotFoundException(); in testThrowableExtensionWithNullDesugaringStrategy() local
[all …]
DConcurrentWeakIdentityHashMapTest.java107 Exception suppressed = new ExceptionWithLatch("suppressed-" + j + "-main-" + i, latch); in createExceptionWithSuppressed() local
108 suppressedList.add(suppressed); in createExceptionWithSuppressed()
221 final Throwable suppressed; field in ConcurrentWeakIdentityHashMapTest.Pair
223 public Pair(Throwable throwable, Throwable suppressed) { in Pair() argument
225 this.suppressed = suppressed; in Pair()
256 List<Throwable> suppressed = map.get(pair.throwable, true); in run() local
257 System.out.printf("add suppressed %s to %s\n", pair.suppressed, pair.throwable); in run()
258 suppressed.add(pair.suppressed); in run()
/external/guava/android/guava/src/com/google/common/io/
DCloser.java237 void suppress(Closeable closeable, Throwable thrown, Throwable suppressed); in suppress() argument
247 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument
250 Level.WARNING, "Suppressing exception thrown when closing " + closeable, suppressed); in suppress()
278 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument
280 if (thrown == suppressed) { in suppress()
284 addSuppressed.invoke(thrown, suppressed); in suppress()
287 LoggingSuppressor.INSTANCE.suppress(closeable, thrown, suppressed); in suppress()
/external/guava/guava/src/com/google/common/io/
DCloser.java237 void suppress(Closeable closeable, Throwable thrown, Throwable suppressed); in suppress() argument
247 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument
250 Level.WARNING, "Suppressing exception thrown when closing " + closeable, suppressed); in suppress()
278 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument
280 if (thrown == suppressed) { in suppress()
284 addSuppressed.invoke(thrown, suppressed); in suppress()
287 LoggingSuppressor.INSTANCE.suppress(closeable, thrown, suppressed); in suppress()
/external/guava/guava-tests/test/com/google/common/io/
DCloserTest.java343 ImmutableSet<Throwable> suppressed = ImmutableSet.copyOf(getSuppressed(thrownException)); in testSuppressingSuppressorIfPossible() local
344 assertEquals(2, suppressed.size()); in testSuppressingSuppressorIfPossible()
346 assertEquals(ImmutableSet.of(c1Exception, c2Exception), suppressed); in testSuppressingSuppressorIfPossible() local
378 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument
379 suppressions.add(new Suppression(closeable, thrown, suppressed)); in suppress()
387 private final Throwable suppressed; field in CloserTest.Suppression
389 private Suppression(Closeable closeable, Throwable thrown, Throwable suppressed) { in Suppression() argument
392 this.suppressed = suppressed; in Suppression()
401 && suppressed.equals(other.suppressed); in equals()
408 return Objects.hashCode(closeable, thrown, suppressed); in hashCode()
[all …]
DCharSourceTest.java326 int suppressed = runSuppressionFailureTest(in, newNormalCharSink()); in testCopyExceptions() local
327 assertEquals(0, suppressed); in testCopyExceptions()
329 suppressed = runSuppressionFailureTest(in, BROKEN_CLOSE_SINK); in testCopyExceptions()
330 assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, suppressed); in testCopyExceptions()
334 int suppressed = runSuppressionFailureTest(newNormalCharSource(), out); in testCopyExceptions() local
335 assertEquals(0, suppressed); in testCopyExceptions()
337 suppressed = runSuppressionFailureTest(BROKEN_CLOSE_SOURCE, out); in testCopyExceptions()
338 assertEquals(1, suppressed); in testCopyExceptions()
343 int suppressed = runSuppressionFailureTest(in, out); in testCopyExceptions() local
344 assertTrue(suppressed <= 1); in testCopyExceptions()
DByteSourceTest.java433 int suppressed = runSuppressionFailureTest(in, newNormalByteSink()); in testCopyExceptions() local
434 assertEquals(0, suppressed); in testCopyExceptions()
436 suppressed = runSuppressionFailureTest(in, BROKEN_CLOSE_SINK); in testCopyExceptions()
437 assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, suppressed); in testCopyExceptions()
441 int suppressed = runSuppressionFailureTest(newNormalByteSource(), out); in testCopyExceptions() local
442 assertEquals(0, suppressed); in testCopyExceptions()
444 suppressed = runSuppressionFailureTest(BROKEN_CLOSE_SOURCE, out); in testCopyExceptions()
445 assertEquals(1, suppressed); in testCopyExceptions()
450 int suppressed = runSuppressionFailureTest(in, out); in testCopyExceptions() local
451 assertTrue(suppressed <= 1); in testCopyExceptions()
/external/guava/android/guava-tests/test/com/google/common/io/
DCloserTest.java343 ImmutableSet<Throwable> suppressed = ImmutableSet.copyOf(getSuppressed(thrownException)); in testSuppressingSuppressorIfPossible() local
344 assertEquals(2, suppressed.size()); in testSuppressingSuppressorIfPossible()
346 assertEquals(ImmutableSet.of(c1Exception, c2Exception), suppressed); in testSuppressingSuppressorIfPossible() local
378 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument
379 suppressions.add(new Suppression(closeable, thrown, suppressed)); in suppress()
387 private final Throwable suppressed; field in CloserTest.Suppression
389 private Suppression(Closeable closeable, Throwable thrown, Throwable suppressed) { in Suppression() argument
392 this.suppressed = suppressed; in Suppression()
401 && suppressed.equals(other.suppressed); in equals()
408 return Objects.hashCode(closeable, thrown, suppressed); in hashCode()
[all …]
DCharSourceTest.java296 int suppressed = runSuppressionFailureTest(in, newNormalCharSink()); in testCopyExceptions() local
297 assertEquals(0, suppressed); in testCopyExceptions()
299 suppressed = runSuppressionFailureTest(in, BROKEN_CLOSE_SINK); in testCopyExceptions()
300 assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, suppressed); in testCopyExceptions()
304 int suppressed = runSuppressionFailureTest(newNormalCharSource(), out); in testCopyExceptions() local
305 assertEquals(0, suppressed); in testCopyExceptions()
307 suppressed = runSuppressionFailureTest(BROKEN_CLOSE_SOURCE, out); in testCopyExceptions()
308 assertEquals(1, suppressed); in testCopyExceptions()
313 int suppressed = runSuppressionFailureTest(in, out); in testCopyExceptions() local
314 assertTrue(suppressed <= 1); in testCopyExceptions()
DByteSourceTest.java433 int suppressed = runSuppressionFailureTest(in, newNormalByteSink()); in testCopyExceptions() local
434 assertEquals(0, suppressed); in testCopyExceptions()
436 suppressed = runSuppressionFailureTest(in, BROKEN_CLOSE_SINK); in testCopyExceptions()
437 assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, suppressed); in testCopyExceptions()
441 int suppressed = runSuppressionFailureTest(newNormalByteSource(), out); in testCopyExceptions() local
442 assertEquals(0, suppressed); in testCopyExceptions()
444 suppressed = runSuppressionFailureTest(BROKEN_CLOSE_SOURCE, out); in testCopyExceptions()
445 assertEquals(1, suppressed); in testCopyExceptions()
450 int suppressed = runSuppressionFailureTest(in, out); in testCopyExceptions() local
451 assertTrue(suppressed <= 1); in testCopyExceptions()
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DDesugarTryWithResourcesFunctionalTest.java37 Throwable[] suppressed = ClassUsingTryWithResources.checkSuppressedExceptions(false); in testCheckSuppressedExceptionsReturningEmptySuppressedExceptions() local
38 assertThat(suppressed).isEmpty(); in testCheckSuppressedExceptionsReturningEmptySuppressedExceptions()
57 Throwable[] suppressed = ClassUsingTryWithResources.checkSuppressedExceptions(true); in testCheckSuppressedExceptionReturningOneSuppressedException() local
60 assertThat(suppressed).hasLength(1); in testCheckSuppressedExceptionReturningOneSuppressedException()
62 assertThat(suppressed).hasLength(1); in testCheckSuppressedExceptionReturningOneSuppressedException()
64 assertThat(suppressed).isEmpty(); in testCheckSuppressedExceptionReturningOneSuppressedException()
DTryWithResourcesRewriterTest.java88 Throwable[] suppressed = ClassUsingTryWithResources.checkSuppressedExceptions(false); in testCheckSuppressedExceptionsReturningEmptySuppressedExceptions() local
89 assertThat(suppressed).isEmpty(); in testCheckSuppressedExceptionsReturningEmptySuppressedExceptions()
92 Throwable[] suppressed = in testCheckSuppressedExceptionsReturningEmptySuppressedExceptions() local
97 assertThat(suppressed).isEmpty(); in testCheckSuppressedExceptionsReturningEmptySuppressedExceptions()
132 Throwable[] suppressed = ClassUsingTryWithResources.checkSuppressedExceptions(true); in testCheckSuppressedExceptionReturningOneSuppressedException() local
133 assertThat(suppressed).hasLength(1); in testCheckSuppressedExceptionReturningOneSuppressedException()
136 Throwable[] suppressed = in testCheckSuppressedExceptionReturningOneSuppressedException() local
143 assertThat(suppressed).hasLength(1); in testCheckSuppressedExceptionReturningOneSuppressedException()
145 assertThat(suppressed).hasLength(1); in testCheckSuppressedExceptionReturningOneSuppressedException()
147 assertThat(suppressed).isEmpty(); in testCheckSuppressedExceptionReturningOneSuppressedException()
/external/libchrome/base/third_party/valgrind/
Dmemcheck.h203 #define VALGRIND_COUNT_LEAKS(leaked, dubious, reachable, suppressed) \ argument
220 suppressed = _qzz_suppressed; \
225 #define VALGRIND_COUNT_LEAK_BLOCKS(leaked, dubious, reachable, suppressed) \ argument
242 suppressed = _qzz_suppressed; \
/external/deqp-deps/amber/tests/
Drun_tests.py293 self.suppressed.append(tc.GetInputPath())
309 if len(self.suppressed) > 0:
310 self.suppressed.sort()
313 for suppression in self.suppressed:
318 …print(' Successes: {}'.format((len(self.test_cases) - len(self.suppressed) - len(self.failures))…
320 print(' Suppressed: {}'.format(len(self.suppressed)))
398 self.suppressed = []
/external/deqp-deps/amber/tools/
Dcheck_language.py122 suppressed = False
127 suppressed = True
135 suppressed = True
137 if not suppressed:
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DFileSystemStateTest.java132 Throwable[] suppressed = expected.getSuppressed(); in testClose_resourcesThatThrowOnClose()
133 assertEquals(2, suppressed.length); in testClose_resourcesThatThrowOnClose()
136 expected.getMessage(), suppressed[0].getMessage(), suppressed[1].getMessage()); in testClose_resourcesThatThrowOnClose()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DRouteException.java53 private void addSuppressedIfPossible(IOException e, IOException suppressed) { in addSuppressedIfPossible() argument
56 addSuppressedExceptionMethod.invoke(e, suppressed); in addSuppressedIfPossible()

12345678910>>...13