Home
last modified time | relevance | path

Searched refs:onClose (Results 1 – 25 of 75) sorted by relevance

123

/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DFileSystemState.java40 private final Runnable onClose; field in FileSystemState
47 FileSystemState(Runnable onClose) { in FileSystemState() argument
48 this.onClose = checkNotNull(onClose); in FileSystemState()
99 onClose.run(); in close()
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DFileSystemStateTest.java42 private final TestRunnable onClose = new TestRunnable(); field in FileSystemStateTest
43 private final FileSystemState state = new FileSystemState(onClose);
65 assertEquals(0, onClose.runCount); in testClose_callsOnCloseRunnable()
67 assertEquals(1, onClose.runCount); in testClose_callsOnCloseRunnable()
73 assertEquals(1, onClose.runCount); in testClose_multipleTimesDoNothing()
76 assertEquals(1, onClose.runCount); in testClose_multipleTimesDoNothing()
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/
DMidiOutputPortConnectionSelector.java58 onClose(); in onPortSelected()
72 public void onClose() { in onClose() method in MidiOutputPortConnectionSelector
81 super.onClose(); in onClose()
DMidiOutputPortSelector.java77 public void onClose() { in onClose() method in MidiOutputPortSelector
90 super.onClose(); in onClose()
DMidiInputPortSelector.java76 public void onClose() { in onClose() method in MidiInputPortSelector
90 super.onClose(); in onClose()
DMidiPortSelector.java175 public void onClose() { in onClose() method in MidiPortSelector
189 onClose(); in close()
/external/guava/guava/src/com/google/common/collect/
DStreams.java178 .onClose(() -> closeAll(streams)); in concat()
210 .onClose(() -> closeAll(streams)); in concat()
242 .onClose(() -> closeAll(streams)); in concat()
274 .onClose(() -> closeAll(streams)); in concat()
330 .onClose(streamA::close) in zip()
331 .onClose(streamB::close); in zip()
439 .onClose(stream::close);
471 return StreamSupport.stream(new Splitr(fromSpliterator, 0), isParallel).onClose(stream::close);
521 .onClose(stream::close);
550 return StreamSupport.stream(new Splitr(fromSpliterator, 0), isParallel).onClose(stream::close);
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DPartialForwardingClientCallListener.java38 public void onClose(Status status, Metadata trailers) { in onClose() method in PartialForwardingClientCallListener
39 delegate().onClose(status, trailers); in onClose()
DClientCall.java144 public void onClose(Status status, Metadata trailers) {} in onClose() method in ClientCall.Listener
/external/guava/guava-tests/test/com/google/common/collect/
DStreamsTest.java91 Stream<String> streamB = Stream.of("b").onClose(closeCountB::incrementAndGet); in testConcat_refStream_closeIsPropagated()
102 Stream<String> streamB = Stream.of("b").onClose(closeCountB::incrementAndGet); in testConcat_refStream_closeIsPropagated_Stream_concat()
114 Stream<String> streamB = Stream.of("b").onClose(closeCountB::incrementAndGet); in testConcat_refStream_closeIsPropagated_Stream_flatMap()
239 Stream<String> strings = source.onClose(stringsCloseCount::incrementAndGet); in testMapWithIndex_closeIsPropagated()
264 IntStream intStream = source.onClose(intStreamCloseCount::incrementAndGet); in testMapWithIndex_intStream_closeIsPropagated()
289 LongStream longStream = source.onClose(longStreamCloseCount::incrementAndGet); in testMapWithIndex_longStream_closeIsPropagated()
316 DoubleStream doubleStream = source.onClose(doubleStreamCloseCount::incrementAndGet); in testMapWithIndex_doubleStream_closeIsPropagated()
332 Stream<String> letters = Stream.of("a", "b", "c").onClose(lettersCloseCount::incrementAndGet); in testZip_closeIsPropagated()
334 Stream<Integer> numbers = Stream.of(1, 2, 3).onClose(numbersCloseCount::incrementAndGet); in testZip_closeIsPropagated()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/test/stream/
DConsumeAsFlowTest.kt25 assertEquals(list, list.stream().onClose { expect(2) }.consumeAsFlow().toList()) in <lambda>()
32 val flow = list.stream().onClose { expect(2) } .consumeAsFlow() in <lambda>()
/external/perfetto/ui/src/controller/
Dadb_interfaces.ts34 onClose: VoidCallback; property
69 onClose = () => {}; property in MockAdbStream
Dadb_shell_controller.ts89 this.recordShell.onClose = () => {
115 readTraceShell.onClose = () => {
Dadb.ts295 stream.onClose = () => {};
298 stream.onClose = () => reject();
308 shell.onClose = () => resolve(output.join());
411 onClose = () => {}; property in AdbStreamImpl
445 this.onClose();
/external/grpc-grpc-java/examples/android/clientcache/app/src/main/java/io/grpc/clientcacheexample/
DSafeMethodCachingInterceptor.java237 public void onClose(Status status, Metadata trailers) {
241 super.onClose(
244 super.onClose(status, trailers);
277 interceptedListener.onClose(Status.OK, metadata);
/external/skqp/src/xps/
DSkXPSDocument.cpp32 void onClose(SkWStream*) override;
70 void SkXPSDocument::onClose(SkWStream*) { in onClose() function in SkXPSDocument
/external/skia/src/xps/
DSkXPSDocument.cpp32 void onClose(SkWStream*) override;
69 void SkXPSDocument::onClose(SkWStream*) { in onClose() function in SkXPSDocument
/external/okhttp/okhttp-ws-tests/src/main/java/com/squareup/okhttp/ws/
DAutobahnTester.java108 @Override public void onClose(int code, String reason) { in runTest()
147 @Override public void onClose(int code, String reason) { in getTestCount()
182 @Override public void onClose(int code, String reason) { in updateReports()
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
DWebSocketCallTest.java230 @Override public void onClose(int code, String reason) { in awaitWebSocket()
231 listener.onClose(code, reason); in awaitWebSocket()
262 @Override public void onClose(int code, String reason) { in onClose() method in WebSocketCallTest.EmptyWebSocketListener
/external/grpc-grpc-java/stub/src/test/java/io/grpc/stub/
DClientCallsTest.java103 listener.onClose(status, trailers); in unaryBlockingCallSuccess()
120 listener.onClose(status, trailers); in unaryBlockingCallFailed()
161 listener.get().onClose(Status.OK, new Metadata()); in unaryFutureCallSuccess()
178 listener.get().onClose(Status.INTERNAL, trailers); in unaryFutureCallFailed()
214 listener.get().onClose(Status.OK, new Metadata()); in unaryFutureCallCancelled()
556 listener.get().onClose(Status.INTERNAL, trailers); in blockingResponseStreamFailed()
/external/grpc-grpc-java/stub/src/main/java/io/grpc/stub/
DMetadataUtils.java170 public void onClose(Status status, Metadata trailers) { in onClose() method in MetadataUtils.MetadataCapturingClientInterceptor.MetadataCapturingClientCall.MetadataCapturingClientCallListener
172 super.onClose(status, trailers); in onClose()
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/ws/
DWebSocketListener.java72 void onClose(int code, String reason); in onClose() method
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/internal/ws/
DRealWebSocket.java80 @Override public void onClose(final int code, final String reason) { in RealWebSocket()
197 listener.onClose(code, reason); in peerClose()
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/
DFailingClientCall.java34 listener.onClose(error, new Metadata()); in start()
/external/skqp/include/core/
DSkDocument.h71 virtual void onClose(SkWStream*) = 0;

123