Home
last modified time | relevance | path

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

/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DUtils.java22 public static void closeQuietly(Closeable closeable) { in closeQuietly() argument
24 if (closeable != null) { in closeQuietly()
25 closeable.close(); in closeQuietly()
/frameworks/libs/systemui/viewcapturelib/tests/com/android/app/viewcapture/
DViewCaptureTest.kt56 val closeable = startViewCaptureAndInvalidateNTimes(1, activity) in <lambda>() constant
62 closeable.close() in <lambda>()
71 val closeable = startViewCaptureAndInvalidateNTimes(memorySize + 5, activity) in <lambda>() constant
80 closeable.close() in <lambda>()
87 val closeable: SafeCloseable = viewCapture.startCapture(rootView, "rootViewId") in <lambda>() constant
89 return closeable in <lambda>()
DSettingsAwareViewCaptureTest.kt53 val closeable: SafeCloseable = viewCapture.startCapture(rootView, "rootViewId") in <lambda>() constant
59 closeable.close() in <lambda>()
73 val closeable: SafeCloseable = viewCapture.startCapture(rootView, "rootViewId") in <lambda>() constant
80 closeable.close() in <lambda>()
/frameworks/base/media/java/android/media/
DExifInterfaceUtils.java114 public static void closeQuietly(Closeable closeable) { in closeQuietly() argument
115 if (closeable != null) { in closeQuietly()
117 closeable.close(); in closeQuietly()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
DStreamUtils.java33 public static void closeQuietly(Closeable closeable) { in closeQuietly() argument
35 closeable.close(); in closeQuietly()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenMediaRecorder.java435 void register(Closeable closeable) { in register() argument
436 mCloseables.add(closeable); in register()
444 Closeable closeable = mCloseables.get(i); in close() local
447 closeable.close(); in close()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java425 private static void closeQuietly(Closeable closeable) { in closeQuietly() argument
427 closeable.close(); in closeQuietly()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DHotwordDetectionConnection.java1285 for (Closeable closeable : closeables) { in bestEffortClose()
1286 bestEffortClose(closeable); in bestEffortClose()
1290 private static void bestEffortClose(Closeable closeable) { in bestEffortClose() argument
1292 closeable.close(); in bestEffortClose()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java1324 private void tryCloseFileDescriptor(@Nullable Closeable closeable, String logName) { in tryCloseFileDescriptor() argument
1325 if (closeable != null) { in tryCloseFileDescriptor()
1327 closeable.close(); in tryCloseFileDescriptor()
/frameworks/base/core/java/android/os/
DFileUtils.java1322 public static void closeQuietly(@Nullable AutoCloseable closeable) { in closeQuietly() argument
1323 IoUtils.closeQuietly(closeable); in closeQuietly()