Home
last modified time | relevance | path

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

123

/external/guava/guava-tests/test/com/google/common/io/
DCloserTest.java54 Closer closer = Closer.create(); in testCreate() local
59 assertTrue(closer.suppressor instanceof Closer.LoggingSuppressor); in testCreate()
61 assertTrue(closer.suppressor instanceof Closer.SuppressingSuppressor); in testCreate()
66 Closer closer = new Closer(suppressor); in testNoExceptionsThrown() local
68 TestCloseable c1 = closer.register(TestCloseable.normal()); in testNoExceptionsThrown()
69 TestCloseable c2 = closer.register(TestCloseable.normal()); in testNoExceptionsThrown()
70 TestCloseable c3 = closer.register(TestCloseable.normal()); in testNoExceptionsThrown()
76 closer.close(); in testNoExceptionsThrown()
86 Closer closer = new Closer(suppressor); in testExceptionThrown_fromTryBlock() local
88 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.java107 Closer closer = Closer.create(); in copyTo() local
109 Reader reader = closer.register(openStream()); in copyTo()
112 throw closer.rethrow(e); in copyTo()
114 closer.close(); in copyTo()
127 Closer closer = Closer.create(); in copyTo() local
129 Reader reader = closer.register(openStream()); in copyTo()
130 Writer writer = closer.register(sink.openStream()); in copyTo()
133 throw closer.rethrow(e); in copyTo()
135 closer.close(); in copyTo()
145 Closer closer = Closer.create(); in read() local
[all …]
DByteSource.java123 Closer closer = Closer.create(); in isEmpty() local
125 InputStream in = closer.register(openStream()); in isEmpty()
128 throw closer.rethrow(e); in isEmpty()
130 closer.close(); in isEmpty()
150 Closer closer = Closer.create(); in size() local
152 InputStream in = closer.register(openStream()); in size()
157 closer.close(); in size()
160 closer = Closer.create(); in size()
162 InputStream in = closer.register(openStream()); in size()
165 throw closer.rethrow(e); in size()
[all …]
DCharSink.java93 Closer closer = Closer.create(); in write() local
95 Writer out = closer.register(openStream()); in write()
99 throw closer.rethrow(e); in write()
101 closer.close(); in write()
127 Closer closer = Closer.create(); in writeLines() local
129 Writer out = closer.register(openBufferedStream()); in writeLines()
135 throw closer.rethrow(e); in writeLines()
137 closer.close(); in writeLines()
151 Closer closer = Closer.create(); in writeFrom() local
153 Writer out = closer.register(openStream()); in writeFrom()
[all …]
DByteSink.java99 Closer closer = Closer.create(); in write() local
101 OutputStream out = closer.register(openStream()); in write()
105 throw closer.rethrow(e); in write()
107 closer.close(); in write()
121 Closer closer = Closer.create(); in writeFrom() local
123 OutputStream out = closer.register(openStream()); in writeFrom()
128 throw closer.rethrow(e); in writeFrom()
130 closer.close(); in writeFrom()
DFiles.java138 Closer closer = Closer.create(); in read() local
140 FileInputStream in = closer.register(openStream()); in read()
143 throw closer.rethrow(e); in read()
145 closer.close(); in read()
672 Closer closer = Closer.create(); in map() local
674 RandomAccessFile raf = closer.register( in map()
678 throw closer.rethrow(e); in map()
680 closer.close(); in map()
686 Closer closer = Closer.create(); in map() local
688 FileChannel channel = closer.register(raf.getChannel()); in map()
[all …]
/external/desugar/java/com/google/devtools/build/android/desugar/
DDesugar.java204 try (Closer closer = Closer.create(); in main() argument
206 InputFileProvider appInputFiles = toInputFileProvider(closer, inputPath); in main()
208 toInputFileProvider(closer, options.classpath); in main()
215 toInputFileProvider(closer, options.bootclasspath), in main()
407 private static InputFileProvider toInputFileProvider(Closer closer, Path path) in toInputFileProvider() argument
410 return closer.register(new DirectoryInputFileProvider(path)); in toInputFileProvider()
412 return closer.register(new ZipInputFileProvider(path)); in toInputFileProvider()
417 Closer closer, List<Path> paths) throws IOException { in toInputFileProvider() argument
421 builder.add(closer.register(new ZipInputFileProvider(path))); in toInputFileProvider()
/external/caliper/caliper/src/main/java/com/google/caliper/config/
DLoggingConfigLoader.java62 Closer closer = Closer.create(); in loadLoggingConfig() local
65 fis = closer.register(new FileInputStream(loggingPropertiesFile)); in loadLoggingConfig()
73 closer.close(); in loadLoggingConfig()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DLocaleMatcherTest.java78 private void assertCloser(String a, String closer, String further) { in assertCloser() argument
79 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser()
80 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
81 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser()
82 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleMatcherTest.java77 private void assertCloser(String a, String closer, String further) { in assertCloser() argument
78 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser()
79 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
80 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser()
81 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
/external/caliper/caliper/src/main/java/com/google/caliper/util/
DUtil.java71 Closer closer = Closer.create(); in loadProperties() local
72 InputStream in = closer.register(is.openStream()); in loadProperties()
76 closer.close(); in loadProperties()
/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/python/sepolicy/sepolicy/help/
Dlockdown_unconfined.txt4 … them run also unconfined. By disabling the unconfined module moves you closer to what used to be…
/external/dagger2/lib/
Dauto-service-1.0-rc2.jar ... HashSet serviceClasses com.google.common.io.Closer closer static void writeServiceFile (java.util.Collection ...
/external/lzma/CPP/7zip/Bundles/SFXSetup/
DExtractEngine.cpp87 CProgressCloser closer(ExtractCallbackSpec->ProgressDialog); in Process() local
/external/libusb-compat/
DREADME30 codes returned by libusb-0.1. Patches accepted to bring us closer to the
/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/google-breakpad/src/testing/gtest/
DCHANGES59 * New feature: the XML report format is closer to junitreport and can
/external/llvm/test/CodeGen/X86/
Dlea-opt.ll132 ; REG3's definition is closer to movl than REG2's, but the pass still chooses
/external/webrtc/webrtc/base/
Dsocket_unittest.cc571 SocketCloser closer; in CloseInClosedCallbackInternal() local
578 client->SignalCloseEvent.connect(&closer, &SocketCloser::OnClose); in CloseInClosedCallbackInternal()
/external/v8/testing/gtest/
DCHANGES86 * 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/googletest/googletest/
DCHANGES86 * New feature: the XML report format is closer to junitreport and can

123