/external/guava/guava/src/com/google/common/io/ |
H A D | LegacyCloseables.java | 46 * @param closeable the {@code Closeable} object to be closed, or null, in which case this method 62 public static void closeQuietly(@Nullable Closeable closeable) { argument 63 if (closeable == null) { 67 closeable.close();
|
H A D | Closeables.java | 66 * @param closeable the {@code Closeable} object to be closed, or null, in which case this method 73 public static void close(@Nullable Closeable closeable, argument 75 if (closeable == null) { 79 closeable.close(); 91 * Equivalent to calling {@code close(closeable, true)}, but with no IOException in the signature. 93 * @param closeable the {@code Closeable} object to be closed, or null, in which case this method 108 public static void closeQuietly(@Nullable Closeable closeable) { argument 110 close(closeable, true);
|
H A D | Closer.java | 118 * Registers the given {@code closeable} to be closed when this {@code Closer} is 121 * @return the given {@code closeable} 124 public <C extends Closeable> C register(@Nullable C closeable) { argument 125 if (closeable != null) { 126 stack.addFirst(closeable); 129 return closeable; 202 * any exceptions thrown when attempting to close a closeable will be suppressed. Otherwise, the 203 * <i>first</i> exception to be thrown from an attempt to close a closeable will be thrown and any 212 Closeable closeable = stack.removeFirst(); 214 closeable 239 suppress(Closeable closeable, Throwable thrown, Throwable suppressed) argument 250 suppress(Closeable closeable, Throwable thrown, Throwable suppressed) argument 280 suppress(Closeable closeable, Throwable thrown, Throwable suppressed) argument [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
H A D | CloseablesTest.java | 105 // Set up a closeable to expect to be closed, and optionally to throw an 116 private void doClose(Closeable closeable, boolean swallowException) { argument 117 doClose(closeable, swallowException, !swallowException); 120 // Close the closeable using the Closeables, passing in the swallowException 123 private void doClose(Closeable closeable, boolean swallowException, argument 126 Closeables.close(closeable, swallowException); 135 verify(closeable);
|
H A D | CloserTest.java | 389 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { argument 390 suppressions.add(new Suppression(closeable, thrown, suppressed)); 398 private final Closeable closeable; field in class:CloserTest.Suppression 402 private Suppression(Closeable closeable, Throwable thrown, Throwable suppressed) { argument 403 this.closeable = closeable; 412 return closeable.equals(other.closeable) 421 return Objects.hashCode(closeable, thrown, suppressed); 427 .add("closeable", closeabl [all...] |
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/ |
H A D | Util.java | 67 static void closeQuietly(/*Auto*/Closeable closeable) { argument 68 if (closeable != null) { 70 closeable.close();
|
/external/jacoco/org.jacoco.agent/src/org/jacoco/agent/ |
H A D | AgentJar.java | 113 * @param closeable 116 private static void safeClose(Closeable closeable) { argument 118 if (closeable != null) { 119 closeable.close();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
H A D | CertBlacklist.java | 112 private static void closeQuietly(Closeable closeable) { argument 113 if (closeable != null) { 115 closeable.close();
|
/external/slf4j/slf4j-nop/src/test/java/org/slf4j/ |
H A D | InvocationTest.java | 121 MDC.MDCCloseable closeable = MDC.putCloseable("k", "v"); 123 closeable.close();
|
/external/conscrypt/src/platform/java/org/conscrypt/ |
H A D | CertBlacklist.java | 111 private static void closeQuietly(Closeable closeable) { argument 112 if (closeable != null) { 114 closeable.close();
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
H A D | Util.java | 65 * Closes {@code closeable}, ignoring any checked exceptions. Does nothing 66 * if {@code closeable} is null. 68 public static void closeQuietly(Closeable closeable) { argument 69 if (closeable != null) { 71 closeable.close();
|
/external/owasp/sanitizer/src/main/org/owasp/html/ |
H A D | HtmlStreamRenderer.java | 392 private final Closeable closeable; field in class:HtmlStreamRenderer.CloseableHtmlStreamRenderer 399 this.closeable = (Closeable) output; 404 closeable.close();
|
/external/nanohttpd/core/src/main/java/fi/iki/elonen/ |
H A D | NanoHTTPD.java | 1765 private static final void safeClose(Object closeable) { argument 1767 if (closeable != null) { 1768 if (closeable instanceof Closeable) { 1769 ((Closeable) closeable).close(); 1770 } else if (closeable instanceof Socket) { 1771 ((Socket) closeable).close(); 1772 } else if (closeable instanceof ServerSocket) { 1773 ((ServerSocket) closeable).close();
|
/external/skia/platform_tools/android/apps/gradle/wrapper/ |
H A D | gradle-wrapper.jar | ... FileChannel channel
private static void maybeCloseQuietly (java.io.Closeable) Exception ignore
java.io.Closeable closeable
}
org/gradle ... |
/external/smali/gradle/wrapper/ |
H A D | gradle-wrapper.jar | ... FileChannel channel
private static void maybeCloseQuietly (java.io.Closeable) Exception ignore
java.io.Closeable closeable
}
org/gradle ... |
/external/testng/gradle/wrapper/ |
H A D | gradle-wrapper.jar | ... FileChannel channel
private static void maybeCloseQuietly (java.io.Closeable) Exception ignore
java.io.Closeable closeable
}
org/gradle ... |
/external/vulkan-validation-layers/build-android/gradle-templates/gradle/wrapper/ |
H A D | gradle-wrapper.jar | ... FileChannel channel
private static void maybeCloseQuietly (java.io.Closeable) Exception ignore
java.io.Closeable closeable
}
org/gradle ... |
/external/vulkan-validation-layers/demos/smoke/android/gradle/wrapper/ |
H A D | gradle-wrapper.jar | ... FileChannel channel
private static void maybeCloseQuietly (java.io.Closeable) Exception ignore
java.io.Closeable closeable
}
org/gradle ... |
/external/owasp/sanitizer/distrib/lib/ |
H A D | owasp-java-html-sanitizer.jar | META-INF/ META-INF/MANIFEST.MF org/ org/owasp/ org/owasp/html/ org/owasp/html/AbstractTokenStream ... |
/external/guice/lib/ |
H A D | guava-16.0.1.jar | META-INF/MANIFEST.MF META-INF/ META-INF/maven/ META-INF/maven/com. ... |
/external/robolectric/v3/runtime/ |
H A D | shadows-core-3.1-SNAPSHOT-16.jar | META-INF/ META-INF/MANIFEST.MF linux-x86_64/ linux-x86_64/META-INF/ android/ ... |
H A D | shadows-core-3.1-SNAPSHOT-17.jar | META-INF/ META-INF/MANIFEST.MF linux-x86_64/ linux-x86_64/META-INF/ android/ ... |
H A D | shadows-core-3.1-SNAPSHOT-18.jar | META-INF/ META-INF/MANIFEST.MF linux-x86_64/ linux-x86_64/META-INF/ android/ ... |
H A D | shadows-core-3.1-SNAPSHOT-19.jar | META-INF/ META-INF/MANIFEST.MF linux-x86_64/ linux-x86_64/META-INF/ android/ ... |
H A D | shadows-core-3.1-SNAPSHOT-21.jar | META-INF/ META-INF/MANIFEST.MF linux-x86_64/ linux-x86_64/META-INF/ android/ ... |