Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/io/
DCloserTest.java53 Closer closer = Closer.create(); in testCreate()
58 assertTrue(closer.suppressor instanceof Closer.LoggingSuppressor); in testCreate()
60 assertTrue(closer.suppressor instanceof Closer.SuppressingSuppressor); in testCreate()
65 Closer closer = new Closer(suppressor); in testNoExceptionsThrown()
85 Closer closer = new Closer(suppressor); in testExceptionThrown_fromTryBlock()
111 Closer closer = new Closer(suppressor); in testExceptionThrown_whenCreatingCloseables()
138 Closer closer = new Closer(suppressor); in testExceptionThrown_whileClosingLastCloseable()
159 Closer closer = new Closer(suppressor); in testExceptionThrown_whileClosingFirstCloseable()
180 Closer closer = new Closer(suppressor); in testCloseExceptionsSuppressed_whenExceptionThrownFromTryBlock()
211 Closer closer = new Closer(suppressor); in testCloseExceptionsSuppressed_whenExceptionThrownClosingFirstCloseable()
[all …]
DFilesTest.java87 Closer closer = Closer.create(); in testReadFile_withCorrectSize()
102 Closer closer = Closer.create(); in testReadFile_withSmallerSize()
117 Closer closer = Closer.create(); in testReadFile_withLargerSize()
132 Closer closer = Closer.create(); in testReadFile_withSizeZero()
DCharSourceTest.java254 if (!Closer.SuppressingSuppressor.isAvailable()) { in testCopyExceptions()
DByteSourceTest.java330 if (!Closer.SuppressingSuppressor.isAvailable()) { in testCopyExceptions()
/external/guava/guava/src/com/google/common/io/
DCharSource.java122 Closer closer = Closer.create(); in copyTo()
142 Closer closer = Closer.create(); in copyTo()
160 Closer closer = Closer.create(); in read()
181 Closer closer = Closer.create(); in readFirstLine()
203 Closer closer = Closer.create(); in readLines()
237 Closer closer = Closer.create(); in readLines()
256 Closer closer = Closer.create(); in isEmpty()
DByteSource.java138 Closer closer = Closer.create(); in isEmpty()
165 Closer closer = Closer.create(); in size()
175 closer = Closer.create(); in size()
232 Closer closer = Closer.create(); in copyTo()
252 Closer closer = Closer.create(); in copyTo()
270 Closer closer = Closer.create(); in read()
294 Closer closer = Closer.create(); in read()
329 Closer closer = Closer.create(); in contentEquals()
474 Closer closer = Closer.create(); in sliceStream()
DCharSink.java108 Closer closer = Closer.create(); in write()
142 Closer closer = Closer.create(); in writeLines()
166 Closer closer = Closer.create(); in writeFrom()
DByteSink.java114 Closer closer = Closer.create(); in write()
136 Closer closer = Closer.create(); in writeFrom()
DCloser.java90 public final class Closer implements Closeable { class
102 public static Closer create() { in create()
103 return new Closer(SUPPRESSOR); in create()
112 @VisibleForTesting Closer(Suppressor suppressor) { in Closer() method in Closer
DCharStreams.java277 Closer closer = Closer.create(); in readLines()
354 Closer closer = Closer.create(); in readLines()
DFiles.java140 Closer closer = Closer.create(); in read()
869 Closer closer = Closer.create(); in map()
883 Closer closer = Closer.create(); in map()
DByteStreams.java858 Closer closer = Closer.create(); in readBytes()
/external/compiler-rt/test/tsan/
Ddlclose.cc29 struct Closer { struct
30 ~Closer() { in ~Closer() argument
35 static Closer c;
/external/guava/guava-tests/test/com/google/common/reflect/
DClassPathTest.java25 import com.google.common.io.Closer;
437 Closer closer = Closer.create(); in writeSelfReferencingJarFile()