/external/guava/guava-tests/test/com/google/common/io/ |
D | CloserTest.java | 56 Closer closer = new Closer(suppressor); in testNoExceptionsThrown() local 58 TestCloseable c1 = closer.register(TestCloseable.normal()); in testNoExceptionsThrown() 59 TestCloseable c2 = closer.register(TestCloseable.normal()); in testNoExceptionsThrown() 60 TestCloseable c3 = closer.register(TestCloseable.normal()); in testNoExceptionsThrown() 66 closer.close(); in testNoExceptionsThrown() 76 Closer closer = new Closer(suppressor); in testExceptionThrown_fromTryBlock() local 78 TestCloseable c1 = closer.register(TestCloseable.normal()); in testExceptionThrown_fromTryBlock() 79 TestCloseable c2 = closer.register(TestCloseable.normal()); in testExceptionThrown_fromTryBlock() 87 throw closer.rethrow(e); in testExceptionThrown_fromTryBlock() 89 closer.close(); in testExceptionThrown_fromTryBlock() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/io/ |
D | CloserTest.java | 56 Closer closer = new Closer(suppressor); in testNoExceptionsThrown() local 58 TestCloseable c1 = closer.register(TestCloseable.normal()); in testNoExceptionsThrown() 59 TestCloseable c2 = closer.register(TestCloseable.normal()); in testNoExceptionsThrown() 60 TestCloseable c3 = closer.register(TestCloseable.normal()); in testNoExceptionsThrown() 66 closer.close(); in testNoExceptionsThrown() 76 Closer closer = new Closer(suppressor); in testExceptionThrown_fromTryBlock() local 78 TestCloseable c1 = closer.register(TestCloseable.normal()); in testExceptionThrown_fromTryBlock() 79 TestCloseable c2 = closer.register(TestCloseable.normal()); in testExceptionThrown_fromTryBlock() 87 throw closer.rethrow(e); in testExceptionThrown_fromTryBlock() 89 closer.close(); in testExceptionThrown_fromTryBlock() [all …]
|
/external/guava/android/guava/src/com/google/common/io/ |
D | CharSource.java | 158 Closer closer = Closer.create(); in length() local 160 Reader reader = closer.register(openStream()); in length() 163 throw closer.rethrow(e); in length() 165 closer.close(); in length() 190 Closer closer = Closer.create(); in copyTo() local 192 Reader reader = closer.register(openStream()); in copyTo() 195 throw closer.rethrow(e); in copyTo() 197 closer.close(); in copyTo() 212 Closer closer = Closer.create(); in copyTo() local 214 Reader reader = closer.register(openStream()); in copyTo() [all …]
|
D | ByteSource.java | 142 Closer closer = Closer.create(); in isEmpty() local 144 InputStream in = closer.register(openStream()); in isEmpty() 147 throw closer.rethrow(e); in isEmpty() 149 closer.close(); in isEmpty() 197 Closer closer = Closer.create(); in size() local 199 InputStream in = closer.register(openStream()); in size() 204 closer.close(); in size() 207 closer = Closer.create(); in size() 209 InputStream in = closer.register(openStream()); in size() 212 throw closer.rethrow(e); in size() [all …]
|
D | CharSink.java | 92 Closer closer = Closer.create(); in write() local 94 Writer out = closer.register(openStream()); in write() 98 throw closer.rethrow(e); in write() 100 closer.close(); in write() 126 Closer closer = Closer.create(); in writeLines() local 128 Writer out = closer.register(openBufferedStream()); in writeLines() 134 throw closer.rethrow(e); in writeLines() 136 closer.close(); in writeLines() 152 Closer closer = Closer.create(); in writeFrom() local 154 Writer out = closer.register(openStream()); in writeFrom() [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() 122 Closer closer = Closer.create(); in writeFrom() local 124 OutputStream out = closer.register(openStream()); in writeFrom() 129 throw closer.rethrow(e); in writeFrom() 131 closer.close(); in writeFrom()
|
D | Files.java | 152 Closer closer = Closer.create(); in read() local 154 FileInputStream in = closer.register(openStream()); in read() 157 throw closer.rethrow(e); in read() 159 closer.close(); in read() 707 Closer closer = Closer.create(); in mapInternal() local 710 closer.register(new RandomAccessFile(file, mode == MapMode.READ_ONLY ? "r" : "rw")); in mapInternal() 711 FileChannel channel = closer.register(raf.getChannel()); in mapInternal() 714 throw closer.rethrow(e); in mapInternal() 716 closer.close(); in mapInternal()
|
/external/guava/guava/src/com/google/common/io/ |
D | CharSource.java | 205 Closer closer = Closer.create(); 207 Reader reader = closer.register(openStream()); 210 throw closer.rethrow(e); 212 closer.close(); 237 Closer closer = Closer.create(); 239 Reader reader = closer.register(openStream()); 242 throw closer.rethrow(e); 244 closer.close(); 259 Closer closer = Closer.create(); 261 Reader reader = closer.register(openStream()); [all …]
|
D | ByteSource.java | 142 Closer closer = Closer.create(); in isEmpty() local 144 InputStream in = closer.register(openStream()); in isEmpty() 147 throw closer.rethrow(e); in isEmpty() 149 closer.close(); in isEmpty() 197 Closer closer = Closer.create(); in size() local 199 InputStream in = closer.register(openStream()); in size() 204 closer.close(); in size() 207 closer = Closer.create(); in size() 209 InputStream in = closer.register(openStream()); in size() 212 throw closer.rethrow(e); in size() [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() 122 Closer closer = Closer.create(); in writeFrom() local 124 OutputStream out = closer.register(openStream()); in writeFrom() 129 throw closer.rethrow(e); in writeFrom() 131 closer.close(); in writeFrom()
|
D | CharSink.java | 95 Closer closer = Closer.create(); in write() local 97 Writer out = closer.register(openStream()); in write() 101 throw closer.rethrow(e); in write() 103 closer.close(); in write() 178 Closer closer = Closer.create(); in writeFrom() local 180 Writer out = closer.register(openStream()); in writeFrom() 185 throw closer.rethrow(e); in writeFrom() 187 closer.close(); in writeFrom()
|
D | Files.java | 152 Closer closer = Closer.create(); in read() local 154 FileInputStream in = closer.register(openStream()); in read() 157 throw closer.rethrow(e); in read() 159 closer.close(); in read() 707 Closer closer = Closer.create(); in mapInternal() local 710 closer.register(new RandomAccessFile(file, mode == MapMode.READ_ONLY ? "r" : "rw")); in mapInternal() 711 FileChannel channel = closer.register(raf.getChannel()); in mapInternal() 714 throw closer.rethrow(e); in mapInternal() 716 closer.close(); in mapInternal()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | ClosingFutureTest.java | 121 public String apply(DeferredCloser closer, TestCloseable v) throws Exception { in testFrom() 146 public String apply(DeferredCloser closer, TestCloseable v) throws Exception { in testEventuallyClosing() 209 public TestCloseable call(DeferredCloser closer) throws Exception { in testSubmit() 210 closer.eventuallyClose(closeable1, closingExecutor); in testSubmit() 211 closer.eventuallyClose(closeable2, closingExecutor); in testSubmit() 219 public String apply(DeferredCloser closer, TestCloseable v) throws Exception { in testSubmit() 238 public TestCloseable call(DeferredCloser closer) throws Exception { in testSubmit_cancelledPipeline() 240 closer.eventuallyClose(closeable1, closingExecutor); in testSubmit_cancelledPipeline() 241 closer.eventuallyClose(closeable2, closingExecutor); in testSubmit_cancelledPipeline() 258 public Object call(DeferredCloser closer) throws Exception { in testSubmit_throws() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/ |
D | ClosingFutureTest.java | 121 public String apply(DeferredCloser closer, TestCloseable v) throws Exception { in testFrom() 146 public String apply(DeferredCloser closer, TestCloseable v) throws Exception { in testEventuallyClosing() 209 public TestCloseable call(DeferredCloser closer) throws Exception { in testSubmit() 210 closer.eventuallyClose(closeable1, closingExecutor); in testSubmit() 211 closer.eventuallyClose(closeable2, closingExecutor); in testSubmit() 219 public String apply(DeferredCloser closer, TestCloseable v) throws Exception { in testSubmit() 238 public TestCloseable call(DeferredCloser closer) throws Exception { in testSubmit_cancelledPipeline() 240 closer.eventuallyClose(closeable1, closingExecutor); in testSubmit_cancelledPipeline() 241 closer.eventuallyClose(closeable2, closingExecutor); in testSubmit_cancelledPipeline() 258 public Object call(DeferredCloser closer) throws Exception { in testSubmit_throws() [all …]
|
/external/guava/android/guava/src/com/google/common/util/concurrent/ |
D | ClosingFuture.java | 260 V call(DeferredCloser closer) throws Exception; in call() argument 279 U apply(DeferredCloser closer, @NullableDecl T input) throws Exception; in apply() argument 296 ClosingFuture<U> apply(DeferredCloser closer, @NullableDecl T input) throws Exception; in apply() argument 415 closingFuture.closeables.closer.eventuallyClose(result, closingExecutor); in eventuallyClosing() 559 return callable.call(closeables.closer); in ClosingFuture() 762 public ClosingFuture<U> apply(DeferredCloser closer, V input) throws Exception { in withoutCloser() 1108 return combiner.call(newCloseables.closer, this); 1120 ClosingFuture<V> closingFuture = combiner.call(newCloseables.closer, this); 1177 V call(DeferredCloser closer, Peeker peeker) throws Exception; 1196 ClosingFuture<V> call(DeferredCloser closer, Peeker peeker) throws Exception; [all …]
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | ClosingFuture.java | 257 V call(DeferredCloser closer) throws Exception; in call() argument 276 U apply(DeferredCloser closer, T input) throws Exception; in apply() argument 294 ClosingFuture<U> apply(DeferredCloser closer, T input) throws Exception; in apply() argument 414 closingFuture.closeables.closer.eventuallyClose(result, closingExecutor); in eventuallyClosing() 558 return callable.call(closeables.closer); in ClosingFuture() 761 public ClosingFuture<U> apply(DeferredCloser closer, V input) throws Exception { in withoutCloser() 1105 return combiner.call(newCloseables.closer, this); 1117 ClosingFuture<V> closingFuture = combiner.call(newCloseables.closer, this); 1174 V call(DeferredCloser closer, Peeker peeker) throws Exception; 1194 ClosingFuture<V> call(DeferredCloser closer, Peeker peeker) throws Exception; [all …]
|
/external/auto/service/processor/src/main/java/com/google/auto/service/processor/ |
D | ServicesFiles.java | 60 Closer closer = Closer.create(); in readServiceFile() local 63 BufferedReader r = closer.register(new BufferedReader(new InputStreamReader(input, UTF_8))); in readServiceFile() 77 throw closer.rethrow(t); in readServiceFile() 79 closer.close(); in readServiceFile()
|
/external/desugar/test/java/com/google/devtools/build/android/desugar/ |
D | DefaultMethodClassFixerTest.java | 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/downloader/src/main/java/com/google/android/downloader/ |
D | Downloader.java | 588 .transformAsync((closer, result) -> runRequest(request), ioExecutor); in enqueueRequest() 669 .transform((closer, urlRequest) -> checkNotNull(urlRequest).send(), ioExecutor) in runRequest() 671 (closer, responseFuture) -> completeRequest(request, checkNotNull(responseFuture)), in runRequest() 684 (closer, urlResponse) -> { in completeRequest() 687 closer.eventuallyClose(urlResponse, ioExecutor); in completeRequest() 699 closer.eventuallyClose(byteChannel, ioExecutor); in completeRequest() 705 (closer, requestException) -> { in completeRequest() 728 (closer, bytesWritten) -> { in completeRequest() 737 (closer, exception) -> { in completeRequest() argument
|
/external/caliper/caliper/src/main/java/com/google/caliper/config/ |
D | LoggingConfigLoader.java | 62 Closer closer = Closer.create(); in loadLoggingConfig() local 65 fis = closer.register(new FileInputStream(loggingPropertiesFile)); in loadLoggingConfig() 73 closer.close(); in loadLoggingConfig()
|
/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/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | LocaleMatcherTest.java | 79 private void assertCloser(String a, String closer, String further) { in assertCloser() argument 80 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() 81 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser() 82 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser() 83 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
|
/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/caliper/caliper/src/main/java/com/google/caliper/util/ |
D | Util.java | 71 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/ |
D | parenmatch.py | 86 closer = self.text.get("insert-1c") 87 if closer not in _openers: 92 indices = hp.get_surrounding_brackets(_openers[closer], True)
|