Home
last modified time | relevance | path

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

12345

/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/syzkaller/vendor/golang.org/x/text/unicode/bidi/
Dbracket.go53 closer int member
57 return fmt.Sprintf("(%v, %v)", b.opener, b.closer)
124 func (p *bracketPairer) matchOpener(pairValues []rune, opener, closer int) bool {
125 return pairValues[p.indexes[opener]] == pairValues[p.indexes[closer]]
254 for i := loc.opener + 1; i < loc.closer; i++ {
311 p.codesIsolatedRun[loc.closer] = dirPair
313 for i := loc.opener + 1; i < loc.closer; i++ {
321 for i := loc.closer + 1; i < len(p.indexes); i++ {
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DDefaultMethodClassFixerTest.java57 private Closer closer; field in DefaultMethodClassFixerTest
61 closer = Closer.create(); in setup()
65 toIndexedInputs(closer, System.getProperty("DefaultMethodClassFixerTest.input")); in setup()
67 toIndexedInputs(closer, System.getProperty("DefaultMethodClassFixerTest.classpath")); in setup()
69 toIndexedInputs(closer, System.getProperty("DefaultMethodClassFixerTest.bootclasspath")); in setup()
81 closer.close(); in teardown()
84 private static IndexedInputs toIndexedInputs(Closer closer, String stringPathList) in toIndexedInputs() argument
87 return new IndexedInputs(Desugar.toRegisteredInputFileProvider(closer, pathList)); in toIndexedInputs()
/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/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DLocaleMatcherTest.java75 private void assertCloser(String a, String closer, String further) { in assertCloser() argument
76 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser()
77 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
78 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser()
79 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
/external/python/cpython3/Tools/scripts/
Dhighlight.py93 opener, closer = colors.get(kind, ('', ''))
94 result += [opener, text, closer]
99 def html_highlight(classified_text,opener='<pre class="python">\n', closer='</pre>\n'): argument
108 result.append(closer)
/external/python/cpython2/Lib/idlelib/
DParenMatch.py104 closer = self.text.get("insert-1c")
105 if closer not in _openers:
110 indices = hp.get_surrounding_brackets(_openers[closer], True)
/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/python/cpython3/Lib/idlelib/
Dparenmatch.py86 closer = self.text.get("insert-1c")
87 if closer not in _openers:
92 indices = hp.get_surrounding_brackets(_openers[closer], True)
/external/desugar/java/com/google/devtools/build/android/desugar/scan/
DKeepScanner.java123 try (Closer closer = Closer.create()) { in main() argument
126 new IndexedInputs(toRegisteredInputFileProvider(closer, options.classpath)); in main()
128 new IndexedInputs(toRegisteredInputFileProvider(closer, options.bootclasspath)); in main()
294 Closer closer, List<Path> paths) throws IOException { in toRegisteredInputFileProvider() argument
297 builder.add(closer.register(InputFileProvider.open(path))); in toRegisteredInputFileProvider()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleMatcherTest.java83 private void assertCloser(String a, String closer, String further) { in assertCloser() argument
84 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser()
85 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
86 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser()
87 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DLocaleMatcherTest.java86 private void assertCloser(String a, String closer, String further) { in assertCloser() argument
87 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser()
88 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
89 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser()
90 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
/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/autotest/server/site_tests/enterprise_CFM_LowLevelPeripheralTest/
DREADME.md4 The devices are tested closer to the operating system.
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateCldrTests.java1139 public static UnicodeSet createClosure(String source, CloseCodePoint closer) {
1140 return createClosure(source, 0, closer);
1144 CloseCodePoint closer) {
1153 return closer.close(cp, result);
1155 UnicodeSet remainder = createClosure(source, endPosition, closer);
1156 return createAppend(closer.close(cp, result), remainder);
/external/desugar/java/com/google/devtools/build/android/desugar/
DDesugar.java359 try (Closer closer = Closer.create()) { in desugar() argument
361 new IndexedInputs(toRegisteredInputFileProvider(closer, options.bootclasspath)); in desugar()
369 new IndexedInputs(toRegisteredInputFileProvider(closer, options.classpath)); in desugar()
995 Closer closer, List<Path> paths) throws IOException { in toRegisteredInputFileProvider() argument
998 builder.add(closer.register(InputFileProvider.open(path))); in toRegisteredInputFileProvider()
/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/autotest/server/site_tests/enterprise_CFM_MeetingRoomScenario/
Dcontrol.join_leave_meeting_with_bots43 # This is closer to real-user behaviour.
/external/lzma/CPP/7zip/Bundles/SFXSetup/
DExtractEngine.cpp86 CProgressCloser closer(ExtractCallbackSpec->ProgressDialog); in Process() local

12345