Home
last modified time | relevance | path

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

/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/
DMaybeNull.java42 public static <T extends AutoCloseable> void close(T closeable) throws Exception { in close() argument
43 if (closeable != null) { in close()
44 closeable.close(); in close()
56 public static <T extends UncheckedCloseable> void close(T closeable) { in close() argument
57 if (closeable != null) { in close()
58 closeable.close(); in close()
68 public static <T extends Closeable> void close(T closeable) throws IOException { in close() argument
69 if (closeable != null) { in close()
70 closeable.close(); in close()
/cts/tests/tests/calllog/src/android/calllog/cts/
DTestUtils.java64 private static void closeQuietly(AutoCloseable closeable) { in closeQuietly() argument
65 if (closeable != null) { in closeQuietly()
67 closeable.close(); in closeQuietly()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTestUtils.java125 private static void closeQuietly(AutoCloseable closeable) { in closeQuietly() argument
126 if (closeable != null) { in closeQuietly()
128 closeable.close(); in closeQuietly()