HomeSort by relevance Sort by last modified time
    Searched defs:closeable (Results 1 - 25 of 399) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/camera/src/android/hardware/camera2/cts/helpers/
MaybeNull.java 19 import java.io.Closeable;
39 * @param closeable An object which implements {@link AutoCloseable}.
42 public static <T extends AutoCloseable> void close(T closeable) throws Exception {
43 if (closeable != null) {
44 closeable.close();
54 * @param closeable An object which implements {@link UncheckedCloseable}.
56 public static <T extends UncheckedCloseable> void close(T closeable) {
57 if (closeable != null) {
58 closeable.close();
63 * Close the underlying {@link Closeable}, if it's not {@code null}
    [all...]
  /frameworks/support/documents-archive/src/android/support/provider/
IoUtils.java 21 import java.io.Closeable;
30 static void closeQuietly(@Nullable Closeable closeable) {
31 if (closeable != null) {
33 closeable.close();
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/
IoUtils.java 24 * Closes 'closeable', ignoring any checked exceptions. Does nothing if 'closeable' is null.
26 public static void closeQuietly(AutoCloseable closeable) {
27 if (closeable != null) {
29 closeable.close();
  /cts/tests/tests/calllog/src/android/calllog/cts/
TestUtils.java 64 private static void closeQuietly(AutoCloseable closeable) {
65 if (closeable != null) {
67 closeable.close();
  /development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/utils/
CloseUtils.java 21 import java.io.Closeable;
32 * If the argument is non-null, close the Closeable ignoring any {@link IOException}.
34 public static void closeQuietly(Closeable closeable) {
35 if (closeable != null) {
37 closeable.close();
  /external/guava/guava/src/com/google/common/io/
Closeables.java 22 import java.io.Closeable;
32 * Utility methods for working with {@link Closeable} objects.
45 * Closes a {@link Closeable}, with control over whether an {@code IOException} may be thrown.
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,
75 if (closeable == null) {
79 closeable.close();
83 "IOException thrown while closing Closeable.", e)
    [all...]
LegacyCloseables.java 19 import java.io.Closeable;
29 * Legacy methods for working with {@link Closeable} objects.
37 * Closes a {@link Closeable}, if an IOException is thrown by {@link Closeable#close()} then it is
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) {
63 if (closeable == null) {
67 closeable.close()
    [all...]
Closer.java 25 import java.io.Closeable;
35 * A {@link Closeable} that collects {@code Closeable} resources and closes them all when it is
67 * <li>Each {@code Closeable} resource that is successfully registered will be closed later.</li>
91 public final class Closer implements Closeable {
110 private final Deque<Closeable> stack = new ArrayDeque<Closeable>(4);
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)
212 Closeable closeable = stack.removeFirst(); local
    [all...]
  /packages/apps/TV/common/src/com/android/tv/common/
AutoCloseableUtils.java 29 public static void closeQuietly(AutoCloseable closeable) {
31 closeable.close();
33 Log.e(TAG, "Error closing " + closeable, ex);
  /external/slf4j/slf4j-nop/src/test/java/org/slf4j/
InvocationTest.java 27 import java.io.Closeable;
121 MDC.MDCCloseable closeable = MDC.putCloseable("k", "v"); local
123 closeable.close();
  /external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
Util.java 19 import java.io.Closeable;
67 static void closeQuietly(/*Auto*/Closeable closeable) {
68 if (closeable != null) {
70 closeable.close();
  /external/jacoco/org.jacoco.agent/src/org/jacoco/agent/
AgentJar.java 14 import java.io.Closeable;
113 * @param closeable
116 private static void safeClose(Closeable closeable) {
118 if (closeable != null) {
119 closeable.close();
  /frameworks/support/core-utils/api21/android/support/v4/provider/
DocumentsContractApi21.java 75 private static void closeQuietly(AutoCloseable closeable) {
76 if (closeable != null) {
78 closeable.close();
  /packages/apps/Camera2/src/com/android/camera/async/
Lifetime.java 63 public <T extends SafeCloseable> T add(T closeable) {
69 mCloseables.add(closeable);
73 closeable.close();
75 return closeable;
96 for (SafeCloseable closeable : toClose) {
97 closeable.close();
  /prebuilts/tools/common/m2/repository/org/jacoco/org.jacoco.agent/0.7.1.201405082137/
org.jacoco.agent-0.7.1.201405082137.jar 
  /prebuilts/tools/common/m2/repository/org/jacoco/org.jacoco.agent/0.7.3.201501221555/
org.jacoco.agent-0.7.3.201501221555.jar 
  /prebuilts/tools/common/m2/repository/org/jacoco/org.jacoco.agent/0.7.4.201502262128/
org.jacoco.agent-0.7.4.201502262128.jar 
  /prebuilts/tools/common/m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/
org.jacoco.agent-0.7.5.201505241946.jar 
  /prebuilts/tools/common/m2/repository/org/jacoco/org.jacoco.agent/0.7.6.201602180812/
org.jacoco.agent-0.7.6.201602180812.jar 
  /external/owasp/sanitizer/src/main/org/owasp/html/
HtmlStreamRenderer.java 32 import java.io.Closeable;
73 if (output instanceof Closeable) {
391 implements Closeable {
392 private final Closeable closeable; field in class:HtmlStreamRenderer.CloseableHtmlStreamRenderer
399 this.closeable = (Closeable) output;
404 closeable.close();
  /cts/tests/backup/src/android/backup/cts/
BackupQuotaTest.java 164 private static void closeQuietly(AutoCloseable closeable) {
165 if (closeable != null) {
167 closeable.close();
  /frameworks/support/core-utils/kitkat/android/support/v4/provider/
DocumentsContractApi19.java 187 private static void closeQuietly(AutoCloseable closeable) {
188 if (closeable != null) {
190 closeable.close();
  /packages/apps/Dialer/src/com/android/dialer/util/
DialerUtils.java 129 * @param closeable to close.
131 public static void closeQuietly(AutoCloseable closeable) {
132 if (closeable != null) {
134 closeable.close();
  /cts/tests/tests/telecom/src/android/telecom/cts/
TestUtils.java 129 private static void closeQuietly(AutoCloseable closeable) {
130 if (closeable != null) {
132 closeable.close();
  /developers/build/prebuilts/gradle/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/
DirectorySelectionFragment.java 218 public void closeQuietly(AutoCloseable closeable) {
219 if (closeable != null) {
221 closeable.close();

Completed in 565 milliseconds

1 2 3 4 5 6 7 8 91011>>