Home
last modified time | relevance | path

Searched refs:closeable (Results 1 – 25 of 29) sorted by relevance

12

/external/guava/guava/src/com/google/common/io/
DCloser.java124 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 …]
DCloseables.java72 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/
DCloser.java124 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 …]
DCloseables.java72 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/
DIOUtil.java53 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/
DCloseablesTest.java102 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()
DCloserTest.java378 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/
DCloseablesTest.java102 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()
DCloserTest.java378 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/
DParametrizedDispatcherBase.kt25 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/
DIoUtils.java31 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/
DIoUtils.java35 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/
DUtil.java67 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/
DAgentJar.java116 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/
DTraceTrampolineTest.java55 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/
DCertBlacklist.java112 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/
DCertBlacklist.java116 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/
DInvocationTest.java121 MDC.MDCCloseable closeable = MDC.putCloseable("k", "v"); in testMDCCloseable() local
123 closeable.close(); in testMDCCloseable()
/external/conscrypt/platform/src/main/java/org/conscrypt/
DCertBlacklistImpl.java118 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/
DCertBlacklistImpl.java122 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/
DHtmlStreamRenderer.java392 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/
DUtil.java70 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/
DUtil.java68 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/
DUtil.java73 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/
DAbstractTestCase.java393 protected void closeQuietly(final Closeable closeable){ in closeQuietly() argument
394 if (closeable != null) { in closeQuietly()
396 closeable.close(); in closeQuietly()

12