/external/guava/guava-tests/test/com/google/common/io/ |
D | CloserTest.java | 40 * Tests for {@link Closer}. 54 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 [all …]
|
D | FilesTest.java | 87 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/ |
D | ByteSource.java | 123 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 …]
|
D | CharSource.java | 107 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 …]
|
D | CharSink.java | 93 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 …]
|
D | Closer.java | 46 * Closer closer = Closer.create(); 48 * InputStream in = closer.register(openInputStream()); 49 * OutputStream out = closer.register(openOutputStream()); 53 * // provided here, e.g. throw closer.rethrow(e, CheckedException.class); 54 * throw closer.rethrow(e); 56 * closer.close(); 89 // Coffee's for {@link Closer closers} only. 91 public final class Closer implements Closeable { class 101 * Creates a new {@link Closer}. 103 public static Closer create() { in create() [all …]
|
D | ByteSink.java | 99 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()
|
D | Files.java | 138 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/test/java/com/google/devtools/build/android/desugar/ |
D | DefaultMethodClassFixerTest.java | 21 import com.google.common.io.Closer; 57 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/python/cpython3/Lib/idlelib/ |
D | parenmatch.py | 19 opener -- highlight the matching left paren (closer); 20 parens -- highlight the left and right parens (opener and closer); 21 expression -- highlight the entire expression from opener to closer. 30 - Highlight when cursor is moved to the right of a closer. 84 "Handle user input of closer." 85 # If user bound non-closer to <<paren-closed>>, quit. 86 closer = self.text.get("insert-1c") 87 if closer not in _openers: 92 indices = hp.get_surrounding_brackets(_openers[closer], True)
|
/external/caliper/caliper/src/main/java/com/google/caliper/config/ |
D | LoggingConfigLoader.java | 26 import com.google.common.io.Closer; 62 Closer closer = Closer.create(); in loadLoggingConfig() local 65 fis = closer.register(new FileInputStream(loggingPropertiesFile)); in loadLoggingConfig() 73 closer.close(); in loadLoggingConfig()
|
/external/desugar/java/com/google/devtools/build/android/desugar/scan/ |
D | KeepScanner.java | 25 import com.google.common.io.Closer; 123 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() 290 * closer. 294 Closer closer, List<Path> paths) throws IOException { in toRegisteredInputFileProvider() argument 297 builder.add(closer.register(InputFileProvider.open(path))); in toRegisteredInputFileProvider()
|
/external/caliper/caliper/src/main/java/com/google/caliper/util/ |
D | Util.java | 24 import com.google.common.io.Closer; 71 Closer closer = Closer.create(); in loadProperties() local 72 InputStream in = closer.register(is.openStream()); in loadProperties() 76 closer.close(); in loadProperties()
|
/external/syzkaller/vendor/golang.org/x/text/unicode/bidi/ |
D | bracket.go | 53 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/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | LocaleMatcherTest.java | 75 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() 83 // // find all the regions that have a closer relation because of an explicit parent 188 // verify that en_AU is closer to en_GB than to en (which is en_US) in testRegionalSpecials() 196 // HK and MO are closer to each other for Hant than to TW in testHK() 254 assertTrue("und_TW should be closer to zh_Hant (" + matchZhHant + in testMatch_matchOnMazimized() 259 assertTrue("zh_Hant should be closer to und_TW (" + matchZhHant + in testMatch_matchOnMazimized() [all …]
|
/external/compiler-rt/test/tsan/ |
D | dlclose.cc | 27 struct Closer { struct 28 ~Closer() { in ~Closer() argument 33 static Closer c;
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | LocaleMatcherTest.java | 86 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() 94 // // find all the regions that have a closer relation because of an explicit parent 206 // verify that en_AU is closer to en_GB than to en (which is en_US) in testRegionalSpecials() 215 // HK and MO are closer to each other for Hant than to TW in testHK() 278 assertTrue("und_TW should be closer to zh_Hant (" + matchZhHant + in testMatch_matchOnMazimized() 283 assertTrue("zh_Hant should be closer to und_TW (" + matchZhHant + in testMatch_matchOnMazimized() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleMatcherTest.java | 83 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() 91 // // find all the regions that have a closer relation because of an explicit parent 203 // verify that en_AU is closer to en_GB than to en (which is en_US) in testRegionalSpecials() 212 // HK and MO are closer to each other for Hant than to TW in testHK() 275 assertTrue("und_TW should be closer to zh_Hant (" + matchZhHant + in testMatch_matchOnMazimized() 280 assertTrue("zh_Hant should be closer to und_TW (" + matchZhHant + in testMatch_matchOnMazimized() [all …]
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | ClassPathTest.java | 25 import com.google.common.io.Closer; 437 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/desugar/java/com/google/devtools/build/android/desugar/ |
D | Desugar.java | 27 import com.google.common.io.Closer; 359 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() 990 * closer. 995 Closer closer, List<Path> paths) throws IOException { in toRegisteredInputFileProvider() argument 998 builder.add(closer.register(InputFileProvider.open(path))); in toRegisteredInputFileProvider()
|
/external/dagger2/lib/ |
D | auto-service-1.0-rc2.jar | ... HashSet serviceClasses
com.google.common.io.Closer closer
static void writeServiceFile (java.util.Collection ... |
/external/python/cpython2/Lib/idlelib/ |
D | ParenMatch.py | 104 closer = self.text.get("insert-1c") 105 if closer not in _openers: 110 indices = hp.get_surrounding_brackets(_openers[closer], True)
|
/external/python/cpython3/Tools/scripts/ |
D | highlight.py | 93 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/skia/src/core/ |
D | SkPoint.cpp | 126 // function. Otherwise, it returns the distance to the closer of a and in DistanceToLineSegmentBetweenSqd() 128 // 1. v' points opposite to u. c is not between a and b and is closer in DistanceToLineSegmentBetweenSqd() 134 // not between a and b and is closer to b than a. in DistanceToLineSegmentBetweenSqd()
|
/external/skqp/src/core/ |
D | SkPoint.cpp | 182 // function. Otherwise, it returns the distance to the closer of a and in DistanceToLineSegmentBetweenSqd() 184 // 1. v' points opposite to u. c is not between a and b and is closer in DistanceToLineSegmentBetweenSqd() 190 // not between a and b and is closer to b than a. in DistanceToLineSegmentBetweenSqd()
|