Home
last modified time | relevance | path

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

/cts/tests/camera/utils/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/telecom-apps/Utils/src/android/telecom/cts/apps/
DShellCommandExecutor.java73 private static void closeQuietly(AutoCloseable closeable) { in closeQuietly() argument
74 if (closeable != null) { in closeQuietly()
76 closeable.close(); in closeQuietly()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerHelper.java169 private static void closeQuietly(AutoCloseable closeable) { in closeQuietly() argument
170 if (closeable != null) { in closeQuietly()
173 closeable.close(); in closeQuietly()
/cts/tests/tests/telephony/current/src/android/telephony/cts/util/
DTelephonyUtils.java337 private static void closeQuietly(AutoCloseable closeable) { in closeQuietly() argument
338 if (closeable != null) { in closeQuietly()
340 closeable.close(); in closeQuietly()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DPackageVisibilityTest.java81 try (AutoCloseable closeable = MockTestActivityUtil.launchSync(instant, in testTargetPackageIsVisibleFromIme() argument
DInputMethodStartInputLifecycleTest.java348 try (AutoCloseable closeable = MockTestActivityUtil.launchSync(instant, in testInvalidateInputBeforeInputMethodSessionBecomesAvailable() argument
DInputConnectionEndToEndTest.java441 @Nullable AutoCloseable closeable) throws Exception { in testA11yInputConnection() argument
444 -> testProcedure.run(a11ySession, a11yStream), closeable); in testA11yInputConnection()
495 TestProcedure testProcedure, @Nullable AutoCloseable closeable) throws Exception { in testInputConnection() argument
496 try (AutoCloseable closeableHolder = closeable; in testInputConnection()
559 @Nullable AutoCloseable closeable) throws Exception { in testInputConnection() argument
563 try (AutoCloseable closeableHolder = closeable; in testInputConnection()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DVisualVoicemailServiceTest.java714 private static void closeQuietly(AutoCloseable closeable) { in closeQuietly() argument
715 if (closeable != null) { in closeQuietly()
717 closeable.close(); in closeQuietly()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DVoicemailContractTest.java605 private static void closeQuietly(AutoCloseable closeable) { in closeQuietly() argument
606 if (closeable != null) { in closeQuietly()
608 closeable.close(); in closeQuietly()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DHeifWriterTest.java321 private void closeQuietly(Closeable closeable) { in closeQuietly() argument
322 if (closeable != null) { in closeQuietly()
324 closeable.close(); in closeQuietly()
DMediaMetadataRetrieverTest.java1431 private void closeQuietly(Closeable closeable) { in closeQuietly() argument
1432 if (closeable != null) { in closeQuietly()
1434 closeable.close(); in closeQuietly()
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DSessionAbandonBehaviorTest.java155 for (Closeable closeable : mCloseableList) { in tearDown()
157 closeable.close(); in tearDown()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTestUtils.java645 private static void closeQuietly(AutoCloseable closeable) { in closeQuietly() argument
646 if (closeable != null) { in closeQuietly()
648 closeable.close(); in closeQuietly()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java2176 private void closeQuietly(AutoCloseable closeable) { in closeQuietly() argument
2177 if (closeable != null) { in closeQuietly()
2179 closeable.close(); in closeQuietly()