/external/guava/guava/src/com/google/common/io/ |
D | Closer.java | 124 public <C extends Closeable> C register(@Nullable C closeable) { in register() argument 125 if (closeable != null) { in register() 126 stack.addFirst(closeable); in register() 129 return closeable; in register() 212 Closeable closeable = stack.removeFirst(); in close() local 214 closeable.close(); in close() 219 suppressor.suppress(closeable, throwable, e); in close() 238 void suppress(Closeable closeable, Throwable thrown, Throwable suppressed); in suppress() argument 248 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument 251 Level.WARNING, "Suppressing exception thrown when closing " + closeable, suppressed); in suppress() [all …]
|
D | Closeables.java | 72 public static void close(@Nullable Closeable closeable, boolean swallowIOException) in close() argument 74 if (closeable == null) { in close() 78 closeable.close(); in close()
|
/external/guava/android/guava/src/com/google/common/io/ |
D | Closer.java | 124 public <C extends Closeable> C register(@NullableDecl C closeable) { in register() argument 125 if (closeable != null) { in register() 126 stack.addFirst(closeable); in register() 129 return closeable; in register() 212 Closeable closeable = stack.removeFirst(); in close() local 214 closeable.close(); in close() 219 suppressor.suppress(closeable, throwable, e); in close() 238 void suppress(Closeable closeable, Throwable thrown, Throwable suppressed); in suppress() argument 248 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument 251 Level.WARNING, "Suppressing exception thrown when closing " + closeable, suppressed); in suppress() [all …]
|
D | Closeables.java | 72 public static void close(@NullableDecl Closeable closeable, boolean swallowIOException) in close() argument 74 if (closeable == null) { in close() 78 closeable.close(); in close()
|
/external/mockito/src/main/java/org/mockito/internal/util/io/ |
D | IOUtil.java | 53 public static void closeQuietly(Closeable closeable) { in closeQuietly() argument 55 close(closeable); in closeQuietly() 66 public static void close(Closeable closeable) { in close() argument 67 if (closeable != null) { in close() 69 closeable.close(); in close() 71 throw new MockitoException("Problems closing stream: " + closeable, e); in close()
|
/external/guava/android/guava-tests/test/com/google/common/io/ |
D | CloseablesTest.java | 102 private void doClose(Closeable closeable, boolean swallowException) throws IOException { in doClose() argument 103 doClose(closeable, swallowException, !swallowException); in doClose() 109 private void doClose(Closeable closeable, boolean swallowException, boolean expectThrown) in doClose() argument 112 Closeables.close(closeable, swallowException); in doClose() 121 verify(closeable).close(); in doClose()
|
D | CloserTest.java | 378 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument 379 suppressions.add(new Suppression(closeable, thrown, suppressed)); in suppress() 385 private final Closeable closeable; field in CloserTest.Suppression 389 private Suppression(Closeable closeable, Throwable thrown, Throwable suppressed) { in Suppression() argument 390 this.closeable = closeable; in Suppression() 399 return closeable.equals(other.closeable) in equals() 408 return Objects.hashCode(closeable, thrown, suppressed); in hashCode() 414 .add("closeable", closeable) in toString()
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | CloseablesTest.java | 102 private void doClose(Closeable closeable, boolean swallowException) throws IOException { in doClose() argument 103 doClose(closeable, swallowException, !swallowException); in doClose() 109 private void doClose(Closeable closeable, boolean swallowException, boolean expectThrown) in doClose() argument 112 Closeables.close(closeable, swallowException); in doClose() 121 verify(closeable).close(); in doClose()
|
D | CloserTest.java | 378 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument 379 suppressions.add(new Suppression(closeable, thrown, suppressed)); in suppress() 385 private final Closeable closeable; field in CloserTest.Suppression 389 private Suppression(Closeable closeable, Throwable thrown, Throwable suppressed) { in Suppression() argument 390 this.closeable = closeable; in Suppression() 399 return closeable.equals(other.closeable) in equals() 408 return Objects.hashCode(closeable, thrown, suppressed); in hashCode() 414 .add("closeable", closeable) in toString()
|
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/ |
D | ParametrizedDispatcherBase.kt | 25 var closeable: Closeable? = null variable in benchmarks.ParametrizedDispatcherBase 33 ExperimentalCoroutineDispatcher(CORES_COUNT).also { closeable = it } in setup() 36 … newFixedThreadPoolContext(dispatcher.substring(4).toInt(), dispatcher).also { closeable = it } in setup() 44 closeable?.close() in tearDown()
|
/external/conscrypt/common/src/main/java/org/conscrypt/io/ |
D | IoUtils.java | 31 public static void closeQuietly(Closeable closeable) { in closeQuietly() argument 32 if (closeable != null) { in closeQuietly() 34 closeable.close(); in closeQuietly()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/io/ |
D | IoUtils.java | 35 public static void closeQuietly(Closeable closeable) { in closeQuietly() argument 36 if (closeable != null) { in closeQuietly() 38 closeable.close(); in closeQuietly()
|
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/ |
D | Util.java | 67 static void closeQuietly(/*Auto*/Closeable closeable) { in closeQuietly() argument 68 if (closeable != null) { in closeQuietly() 70 closeable.close(); in closeQuietly()
|
/external/jacoco/org.jacoco.agent/src/org/jacoco/agent/ |
D | AgentJar.java | 116 private static void safeClose(Closeable closeable) { in safeClose() argument 118 if (closeable != null) { in safeClose() 119 closeable.close(); in safeClose()
|
/external/opencensus-java/contrib/agent/src/test/java/io/opencensus/contrib/agent/bootstrap/ |
D | TraceTrampolineTest.java | 55 Closeable closeable = TraceTrampoline.startScopedSpan("test"); in startScopedSpan() local 58 assertThat(closeable).isSameAs(mockCloseable); in startScopedSpan()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | CertBlacklist.java | 112 private static void closeQuietly(Closeable closeable) { in closeQuietly() argument 113 if (closeable != null) { in closeQuietly() 115 closeable.close(); in closeQuietly()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/ |
D | CertBlacklist.java | 116 private static void closeQuietly(Closeable closeable) { in closeQuietly() argument 117 if (closeable != null) { in closeQuietly() 119 closeable.close(); in closeQuietly()
|
/external/slf4j/slf4j-nop/src/test/java/org/slf4j/ |
D | InvocationTest.java | 121 MDC.MDCCloseable closeable = MDC.putCloseable("k", "v"); in testMDCCloseable() local 123 closeable.close(); in testMDCCloseable()
|
/external/conscrypt/platform/src/main/java/org/conscrypt/ |
D | CertBlacklistImpl.java | 118 private static void closeQuietly(Closeable closeable) { in closeQuietly() argument 119 if (closeable != null) { in closeQuietly() 121 closeable.close(); in closeQuietly()
|
/external/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/ |
D | CertBlacklistImpl.java | 122 private static void closeQuietly(Closeable closeable) { in closeQuietly() argument 123 if (closeable != null) { in closeQuietly() 125 closeable.close(); in closeQuietly()
|
/external/owasp/sanitizer/src/main/org/owasp/html/ |
D | HtmlStreamRenderer.java | 392 private final Closeable closeable; field in HtmlStreamRenderer.CloseableHtmlStreamRenderer 399 this.closeable = (Closeable) output; in CloseableHtmlStreamRenderer() 404 closeable.close(); in close()
|
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/ |
D | Util.java | 70 public static void closeQuietly(Closeable closeable) { in closeQuietly() argument 71 if (closeable != null) { in closeQuietly() 73 closeable.close(); in closeQuietly()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
D | Util.java | 68 public static void closeQuietly(Closeable closeable) { in closeQuietly() argument 69 if (closeable != null) { in closeQuietly() 71 closeable.close(); in closeQuietly()
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/ |
D | Util.java | 73 public static void closeQuietly(Closeable closeable) { in closeQuietly() argument 74 if (closeable != null) { in closeQuietly() 76 closeable.close(); in closeQuietly()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/ |
D | AbstractTestCase.java | 393 protected void closeQuietly(final Closeable closeable){ in closeQuietly() argument 394 if (closeable != null) { in closeQuietly() 396 closeable.close(); in closeQuietly()
|