Home
last modified time | relevance | path

Searched refs:closer (Results 1 – 25 of 42) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/io/
DCloserTest.java53 Closer closer = Closer.create(); in testCreate() local
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() local
67 TestCloseable c1 = closer.register(TestCloseable.normal()); in testNoExceptionsThrown()
68 TestCloseable c2 = closer.register(TestCloseable.normal()); in testNoExceptionsThrown()
69 TestCloseable c3 = closer.register(TestCloseable.normal()); in testNoExceptionsThrown()
75 closer.close(); in testNoExceptionsThrown()
85 Closer closer = new Closer(suppressor); in testExceptionThrown_fromTryBlock() local
87 TestCloseable c1 = closer.register(TestCloseable.normal()); in testExceptionThrown_fromTryBlock()
[all …]
DFilesTest.java87 Closer closer = Closer.create(); in testReadFile_withCorrectSize() local
89 InputStream in = closer.register(new FileInputStream(asciiFile)); in testReadFile_withCorrectSize()
93 throw closer.rethrow(e); in testReadFile_withCorrectSize()
95 closer.close(); in testReadFile_withCorrectSize()
102 Closer closer = Closer.create(); in testReadFile_withSmallerSize() local
104 InputStream in = closer.register(new FileInputStream(asciiFile)); in testReadFile_withSmallerSize()
108 throw closer.rethrow(e); in testReadFile_withSmallerSize()
110 closer.close(); in testReadFile_withSmallerSize()
117 Closer closer = Closer.create(); in testReadFile_withLargerSize() local
119 InputStream in = closer.register(new FileInputStream(asciiFile)); in testReadFile_withLargerSize()
[all …]
/external/guava/guava/src/com/google/common/io/
DCharSource.java122 Closer closer = Closer.create(); in copyTo() local
124 Reader reader = closer.register(openStream()); in copyTo()
127 throw closer.rethrow(e); in copyTo()
129 closer.close(); in copyTo()
142 Closer closer = Closer.create(); in copyTo() local
144 Reader reader = closer.register(openStream()); in copyTo()
145 Writer writer = closer.register(sink.openStream()); in copyTo()
148 throw closer.rethrow(e); in copyTo()
150 closer.close(); in copyTo()
160 Closer closer = Closer.create(); in read() local
[all …]
DByteSource.java138 Closer closer = Closer.create(); in isEmpty() local
140 InputStream in = closer.register(openStream()); in isEmpty()
143 throw closer.rethrow(e); in isEmpty()
145 closer.close(); in isEmpty()
165 Closer closer = Closer.create(); in size() local
167 InputStream in = closer.register(openStream()); in size()
172 closer.close(); in size()
175 closer = Closer.create(); in size()
177 InputStream in = closer.register(openStream()); in size()
180 throw closer.rethrow(e); in size()
[all …]
DCharSink.java108 Closer closer = Closer.create(); in write() local
110 Writer out = closer.register(openStream()); in write()
114 throw closer.rethrow(e); in write()
116 closer.close(); in write()
142 Closer closer = Closer.create(); in writeLines() local
144 Writer out = closer.register(openBufferedStream()); in writeLines()
150 throw closer.rethrow(e); in writeLines()
152 closer.close(); in writeLines()
166 Closer closer = Closer.create(); in writeFrom() local
168 Writer out = closer.register(openStream()); in writeFrom()
[all …]
DByteSink.java114 Closer closer = Closer.create(); in write() local
116 OutputStream out = closer.register(openStream()); in write()
120 throw closer.rethrow(e); in write()
122 closer.close(); in write()
136 Closer closer = Closer.create(); in writeFrom() local
138 OutputStream out = closer.register(openStream()); in writeFrom()
143 throw closer.rethrow(e); in writeFrom()
145 closer.close(); in writeFrom()
DCharStreams.java277 Closer closer = Closer.create(); in readLines() local
279 R r = closer.register(supplier.getInput()); in readLines()
282 throw closer.rethrow(e); in readLines()
284 closer.close(); in readLines()
354 Closer closer = Closer.create(); in readLines() local
356 R r = closer.register(supplier.getInput()); in readLines()
359 throw closer.rethrow(e); in readLines()
361 closer.close(); in readLines()
DFiles.java140 Closer closer = Closer.create(); in read() local
142 FileInputStream in = closer.register(openStream()); in read()
145 throw closer.rethrow(e); in read()
147 closer.close(); in read()
869 Closer closer = Closer.create(); in map() local
871 RandomAccessFile raf = closer.register( in map()
875 throw closer.rethrow(e); in map()
877 closer.close(); in map()
883 Closer closer = Closer.create(); in map() local
885 FileChannel channel = closer.register(raf.getChannel()); in map()
[all …]
DByteStreams.java858 Closer closer = Closer.create(); in readBytes() local
860 InputStream in = closer.register(supplier.getInput()); in readBytes()
863 throw closer.rethrow(e); in readBytes()
865 closer.close(); in readBytes()
/external/guava/guava-tests/test/com/google/common/reflect/
DClassPathTest.java437 Closer closer = Closer.create(); in writeSelfReferencingJarFile() local
439 FileOutputStream fileOut = closer.register(new FileOutputStream(jarFile)); in writeSelfReferencingJarFile()
440 JarOutputStream jarOut = closer.register(new JarOutputStream(fileOut)); in writeSelfReferencingJarFile()
447 throw closer.rethrow(e); in writeSelfReferencingJarFile()
449 closer.close(); in writeSelfReferencingJarFile()
/external/selinux/policycoreutils/sepolicy/sepolicy/help/
Dlockdown_unconfined.txt4 … them run also unconfined. By disabling the unconfined module moves you closer to what used to be…
/external/libusb-compat/
DREADME30 codes returned by libusb-0.1. Patches accepted to bring us closer to the
/external/chromium-trace/trace-viewer/third_party/webapp2/docs/tutorials/gettingstarted/
Dusingusers.rst53 Let's take a closer look at the new pieces.
/external/google-breakpad/src/processor/
Dsource_line_resolver_base.cc131 AutoFileCloser closer(f); in ReadSymbolFile() local
/external/protobuf/gtest/
DCHANGES27 * New feature: the XML report format is closer to junitreport and can
/external/llvm/docs/
DLexicon.rst28 list node"). This working definition is closer to what some authors
DGetElementPtr.rst153 0`` index is needed. However, a closer inspection of how globals and GEPs work
/external/google-breakpad/src/testing/gtest/
DCHANGES59 * New feature: the XML report format is closer to junitreport and can
/external/libvpx/libvpx/third_party/googletest/src/
DCHANGES86 * New feature: the XML report format is closer to junitreport and can
/external/gtest/
DCHANGES86 * New feature: the XML report format is closer to junitreport and can
/external/libpcap/
DREADME.hpux55 > closer look I only get to see the incoming packets not the
/external/sonic/doc/
Dindex.md107 two pitch periods, which is typically closer to 20 milliseconds.
/external/clang/docs/
DControlFlowIntegrityDesign.rst193 need to cover their disjoint hierarchy. But the closer that classes in
/external/boringssl/src/ssl/test/
Dbssl_shim.cc667 SocketCloser closer(sock); in DoExchange() local
/external/ceres-solver/docs/source/
Dtutorial.rst582 fitted curve moves back closer to the ground truth curve.

12