Home
last modified time | relevance | path

Searched refs:isOpen (Results 1 – 25 of 134) sorted by relevance

123456

/external/gptfdisk/
Ddiskio-unix.cc55 if (isOpen) { // file is already open in OpenForRead()
74 isOpen = 0; in OpenForRead()
77 isOpen = 0; in OpenForRead()
92 isOpen = 1; in OpenForRead()
95 if (isOpen && realFilename.substr(0,4) == "/dev") { in OpenForRead()
107 return isOpen; in OpenForRead()
113 if ((isOpen) && (openForWrite)) in OpenForWrite()
129 isOpen = 1; in OpenForWrite()
132 isOpen = 0; in OpenForWrite()
135 return isOpen; in OpenForWrite()
[all …]
Ddiskio-windows.cc54 if (isOpen) { // file is already open in OpenForRead()
70 isOpen = 0; in OpenForRead()
73 isOpen = 1; in OpenForRead()
78 return isOpen; in OpenForRead()
84 if ((isOpen) && (openForWrite)) in OpenForWrite()
104 isOpen = 0; in OpenForWrite()
108 isOpen = 1; in OpenForWrite()
111 return isOpen; in OpenForWrite()
117 if (isOpen) in Close()
119 isOpen = 0; in Close()
[all …]
Ddiskio.cc47 isOpen = 0; in DiskIO()
59 if (isOpen) { // file is already open in OpenForRead()
73 return isOpen; in OpenForRead()
81 if ((isOpen) && (openForWrite) && ((filename == realFilename) || (filename == userFilename))) { in OpenForWrite()
Ddiskio.h53 int isOpen; variable
87 int IsOpen(void) {return isOpen;} in IsOpen()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DConditionVariable.java24 private boolean isOpen; field in ConditionVariable
32 if (isOpen) { in open()
35 isOpen = true; in open()
46 boolean wasOpen = isOpen; in close()
47 isOpen = false; in close()
57 while (!isOpen) { in block()
72 while (!isOpen && now < end) { in block()
76 return isOpen; in block()
80 public synchronized boolean isOpen() { in isOpen() method in ConditionVariable
81 return isOpen; in isOpen()
/external/catch2/projects/SelfTest/IntrospectiveTests/
DPartTracker.tests.cpp29 REQUIRE( testCase.isOpen() );
32 REQUIRE( s1.isOpen() );
57 REQUIRE( testCase2.isOpen() );
60 REQUIRE( s1b.isOpen() == false );
70 REQUIRE( testCase2.isOpen() );
73 REQUIRE( s1b.isOpen() == false );
76 REQUIRE( s2.isOpen() );
91 REQUIRE( s2.isOpen() == false );
99 REQUIRE( testCase2.isOpen() );
102 REQUIRE( s1b.isOpen() == false );
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/modules/
DModuleDeclaration.java30 private boolean isOpen; field in ModuleDeclaration
38 public ModuleDeclaration(Name name, boolean isOpen) { in ModuleDeclaration() argument
39 this(null, new NodeList<>(), name, isOpen, new NodeList<>()); in ModuleDeclaration()
43 …public ModuleDeclaration(NodeList<AnnotationExpr> annotations, Name name, boolean isOpen, NodeList… in ModuleDeclaration() argument
44 this(null, annotations, name, isOpen, directives); in ModuleDeclaration()
51 …nge tokenRange, NodeList<AnnotationExpr> annotations, Name name, boolean isOpen, NodeList<ModuleDi… in ModuleDeclaration() argument
55 setOpen(isOpen); in ModuleDeclaration()
131 public boolean isOpen() { in isOpen() method in ModuleDeclaration
132 return isOpen; in isOpen()
136 public ModuleDeclaration setOpen(final boolean isOpen) { in setOpen() argument
[all …]
/external/okio/okio/src/jvmTest/java/okio/
DNioTest.java39 assertTrue(source.isOpen()); in sourceIsOpen()
41 assertFalse(source.isOpen()); in sourceIsOpen()
46 assertTrue(sink.isOpen()); in sinkIsOpen()
48 assertFalse(sink.isOpen()); in sinkIsOpen()
105 assertTrue(channel.isOpen()); in testWritableByteChannel()
119 assertEquals(channel instanceof Buffer, channel.isOpen()); // Buffer.close() does nothing. in testWritableByteChannel()
127 assertTrue(channel.isOpen()); in testReadableByteChannel()
139 assertEquals(channel instanceof Buffer, channel.isOpen()); // Buffer.close() does nothing. in testReadableByteChannel()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DFixedLengthBlockOutputStream.java105 if (!isOpen()) { in write()
114 if (!isOpen()) { in write()
130 if (!isOpen()) { in write()
165 public boolean isOpen() { in isOpen() method in FixedLengthBlockOutputStream
166 if (!out.isOpen()) { in isOpen()
234 if (!isOpen()) { in write()
257 public boolean isOpen() { in isOpen() method in FixedLengthBlockOutputStream.BufferAtATimeOutputChannel
DSeekableInMemoryByteChannel.java129 public boolean isOpen() { in isOpen() method in SeekableInMemoryByteChannel
184 if (!isOpen()) { in ensureOpen()
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DNettyServerHandlerTest.java322 assertTrue(channel().isOpen()); in streamErrorShouldNotCloseChannel()
340 assertFalse(channel().isOpen()); in closeShouldCloseChannel()
352 assertFalse(channel().isOpen()); in exceptionCaughtShouldCloseConnection()
587 assertTrue(channel().isOpen()); in keepAliveManager_pingSent()
598 assertTrue(channel().isOpen()); in keepAliveManager_pingTimeout()
602 assertTrue(!channel().isOpen()); in keepAliveManager_pingTimeout()
696 assertTrue(channel().isOpen()); in noGoAwaySentBeforeMaxConnectionIdleReached()
703 assertTrue(channel().isOpen()); in maxConnectionIdle_goAwaySent_pingAck()
722 assertTrue(channel().isOpen()); in maxConnectionIdle_goAwaySent_pingAck()
731 assertTrue(!channel().isOpen()); in maxConnectionIdle_goAwaySent_pingAck()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DSQLiteOpenHelperTest.java89 assertThat(database.isOpen()).isTrue(); in testClose()
91 assertThat(database.isOpen()).isFalse(); in testClose()
117 assertThat(database1.isOpen()).isTrue(); in testCloseMultipleDbs()
118 assertThat(database2.isOpen()).isTrue(); in testCloseMultipleDbs()
120 assertThat(database1.isOpen()).isFalse(); in testCloseMultipleDbs()
121 assertThat(database2.isOpen()).isTrue(); in testCloseMultipleDbs()
123 assertThat(database2.isOpen()).isFalse(); in testCloseMultipleDbs()
212 assertThat(db1.isOpen()).isTrue(); in testCloseThenOpen()
227 assertThat(database.isOpen()).isTrue(); in assertDatabaseOpened()
DShadowSQLiteConnectionTest.java98 assertWithMessage("open").that(conn.isOpen()).isTrue(); in nativeOpen_addsConnectionToPool()
104 assertWithMessage("open").that(conn.isOpen()).isFalse(); in nativeClose_closesConnection()
110 assertWithMessage("open").that(conn.isOpen()).isFalse(); in reset_closesConnection()
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DJimfsFileSystemCloseTest.java69 assertTrue(fs.isOpen()); in testIsNotOpen()
71 assertFalse(fs.isOpen()); in testIsNotOpen()
121 assertTrue(fc.isOpen()); in testOpenChannelsClosed()
122 assertTrue(sbc.isOpen()); in testOpenChannelsClosed()
123 assertTrue(afc.isOpen()); in testOpenChannelsClosed()
127 assertFalse(fc.isOpen()); in testOpenChannelsClosed()
128 assertFalse(sbc.isOpen()); in testOpenChannelsClosed()
129 assertFalse(afc.isOpen()); in testOpenChannelsClosed()
/external/apache-http/src/org/apache/http/impl/conn/
DSingleClientConnManager.java233 if (uniquePoolEntry.connection.isOpen()) {
311 if (sca.isOpen() && (this.alwaysShutDown ||
356 if ((managedConn == null) && uniquePoolEntry.connection.isOpen()) {
432 if (connection.isOpen())
444 if (connection.isOpen())
DAbstractClientConnAdapter.java173 public boolean isOpen() { in isOpen() method in AbstractClientConnAdapter
178 return conn.isOpen(); in isOpen()
334 if (!isOpen()) in getSSLSession()
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DJimfsAsynchronousFileChannel.java91 if (!isOpen()) { in lock()
134 if (!isOpen()) {
159 if (!isOpen()) {
173 public boolean isOpen() {
174 return channel.isOpen();
DDowngradedSeekableByteChannel.java73 public boolean isOpen() { in isOpen() method in DowngradedSeekableByteChannel
74 return channel.isOpen(); in isOpen()
DJimfsOutputStream.java103 if (isOpen()) { in close()
113 private boolean isOpen() { in isOpen() method in JimfsOutputStream
DJimfsInputStream.java145 if (isOpen()) { in close()
155 private boolean isOpen() { in isOpen() method in JimfsInputStream
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/
DSocketTransportService.java396 public boolean isOpen() { in isOpen() method in SocketConnection
403 if (!isOpen()) { in readPacket()
416 if (!isOpen()) { in readPacket()
452 if (!isOpen()) { in readPacket()
470 if (!isOpen()) { in writePacket()
504 if (!isOpen()) { in writePacket()
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/docs/
Dexamples.md136 var isOpen = false;
147 var fromHeight = isOpen ? openHeight : closedHeight;
148 var toHeight = isOpen ? closedHeight : openHeight;
155 isOpen = !isOpen;
156 button.textContent = isOpen ? 'Close' : 'Open';
/external/guice/extensions/persist/test/com/google/inject/persist/jpa/
DManualLocalTransactionsTest.java69 assertTrue("EntityManager appears to have been closed across txns!", em.isOpen()); in testSimpleCrossTxnWork()
86 assertFalse(em.isOpen()); in testSimpleCrossTxnWork()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DFixedLengthBlockOutputStreamTest.java168 assertTrue(out.isOpen()); in getClosedFLBOS()
170 assertFalse(out.isOpen()); in getClosedFLBOS()
182 assertTrue(out.isOpen()); in testWriteFailsAfterDestClosedThrowsException()
189 assertFalse(out.isOpen()); in testWriteFailsAfterDestClosedThrowsException()
374 public boolean isOpen() { in isOpen() method in FixedLengthBlockOutputStreamTest.MockWritableByteChannel
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DFramedStream.java106 public synchronized boolean isOpen() { in isOpen() method in FramedStream
263 open = isOpen(); in receiveHeaders()
294 open = isOpen(); in receiveFin()
453 open = isOpen(); in cancelStreamIfNecessary()

123456