/external/python/cpython2/Lib/test/ |
D | test_tools.py | 66 closed = f.read() 68 f.write(closed) 76 self.assertEqual(f.read(), closed) 80 self.assertEqual(self.pindent(clean, '-c'), closed) 81 self.assertEqual(self.pindent(closed, '-d'), clean) 89 self.assertEqual(f.read(), closed) 91 broken = self.lstriplines(closed) 104 def pindent_test(self, clean, closed): argument 105 self.assertEqual(self.pindent(clean, '-c'), closed) 106 self.assertEqual(self.pindent(closed, '-d'), clean) [all …]
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | RealBufferedSink.java | 26 private boolean closed; field in RealBufferedSink 44 if (closed) throw new IllegalStateException("closed"); in write() 50 if (closed) throw new IllegalStateException("closed"); in write() 56 if (closed) throw new IllegalStateException("closed"); in writeUtf8() 63 if (closed) throw new IllegalStateException("closed"); in writeUtf8() 69 if (closed) throw new IllegalStateException("closed"); in writeUtf8CodePoint() 75 if (closed) throw new IllegalStateException("closed"); in writeString() 82 if (closed) throw new IllegalStateException("closed"); in writeString() 88 if (closed) throw new IllegalStateException("closed"); in write() 94 if (closed) throw new IllegalStateException("closed"); in write() [all …]
|
D | RealBufferedSource.java | 28 private boolean closed; field in RealBufferedSource 47 if (closed) throw new IllegalStateException("closed"); in read() 59 if (closed) throw new IllegalStateException("closed"); in exhausted() 69 if (closed) throw new IllegalStateException("closed"); in request() 288 if (closed) throw new IllegalStateException("closed"); in skip() 304 if (closed) throw new IllegalStateException("closed"); in indexOf() 339 if (closed) throw new IllegalStateException("closed"); in indexOfElement() 358 if (closed) throw new IOException("closed"); in inputStream() 367 if (closed) throw new IOException("closed"); in inputStream() 379 if (closed) throw new IOException("closed"); in inputStream() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | RangeTest.java | 72 Range<Integer> range = Range.closed(5, 7); in testClosed() 87 Range.closed(4, 3); in testClosed_invalid() 122 assertTrue(Range.closed(3, 5).isConnected(Range.open(5, 6))); in testIsConnected() 123 assertTrue(Range.closed(3, 5).isConnected(Range.openClosed(5, 5))); in testIsConnected() 124 assertTrue(Range.open(3, 5).isConnected(Range.closed(5, 6))); in testIsConnected() 125 assertTrue(Range.closed(3, 7).isConnected(Range.open(6, 8))); in testIsConnected() 126 assertTrue(Range.open(3, 7).isConnected(Range.closed(5, 6))); in testIsConnected() 127 assertFalse(Range.closed(3, 5).isConnected(Range.closed(7, 8))); in testIsConnected() 128 assertFalse(Range.closed(3, 5).isConnected(Range.closedOpen(7, 7))); in testIsConnected() 139 Range<Integer> range = Range.closed(4, 4); in testSingleton() [all …]
|
D | TreeRangeSetTest.java | 289 rangeSet.add(Range.closed(1, 4)); in testMergesConnectedWithOverlap() 299 rangeSet.add(Range.closed(1, 4)); in testMergesConnectedDisjoint() 309 rangeSet.add(Range.closed(1, 6)); in testIgnoresSmallerSharingNoBound() 312 assertThat(rangeSet.asRanges()).has().item(Range.closed(1, 6)); in testIgnoresSmallerSharingNoBound() 319 rangeSet.add(Range.closed(1, 6)); in testIgnoresSmallerSharingLowerBound() 320 rangeSet.add(Range.closed(1, 4)); in testIgnoresSmallerSharingLowerBound() 322 assertThat(rangeSet.asRanges()).has().item(Range.closed(1, 6)); in testIgnoresSmallerSharingLowerBound() 329 rangeSet.add(Range.closed(1, 6)); in testIgnoresSmallerSharingUpperBound() 330 rangeSet.add(Range.closed(3, 6)); in testIgnoresSmallerSharingUpperBound() 332 assertThat(rangeSet.asRanges()).has().item(Range.closed(1, 6)); in testIgnoresSmallerSharingUpperBound() [all …]
|
D | ContiguousSetTest.java | 78 ContiguousSet.create(Range.closed(1, 3), integers()), in testEquals() 82 ContiguousSet.create(Range.closed(1, 3), NOT_EQUAL_TO_INTEGERS), in testEquals() 90 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals() 93 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals() 96 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals() 106 ContiguousSet<Integer> regular = ContiguousSet.create(Range.closed(1, 3), integers()); in testSerialization() 147 ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers()); in testHeadSet() 161 assertThat(ContiguousSet.create(Range.closed(1, 3), integers()).headSet(0)).isEmpty(); in testHeadSet_tooSmall() 165 ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers()); in testTailSet() 177 assertThat(ContiguousSet.create(Range.closed(1, 3), integers()).tailSet(4)).isEmpty(); in testTailSet_tooLarge() [all …]
|
D | TreeRangeMapTest.java | 55 mapEntry(Range.closed(20, 22), "umbrella")); in suite() 110 mapEntry(Range.closed(20, 22), "umbrella")); in suite() 370 rangeMap.put(Range.closed(9, 10), 2); in testSubSubRangeMap() 371 rangeMap.put(Range.closed(12, 16), 3); in testSubSubRangeMap() 372 RangeMap<Integer, Integer> sub1 = rangeMap.subRangeMap(Range.closed(5, 11)); in testSubSubRangeMap() 373 assertEquals(ImmutableMap.of(Range.closedOpen(5, 7), 1, Range.closed(9, 10), 2), in testSubSubRangeMap() 376 assertEquals(ImmutableMap.of(Range.open(6, 7), 1, Range.closed(9, 10), 2), in testSubSubRangeMap() 383 rangeMap.put(Range.closed(9, 10), 2); in testSubRangeMapPut() 384 rangeMap.put(Range.closed(12, 16), 3); in testSubRangeMapPut() 385 RangeMap<Integer, Integer> sub = rangeMap.subRangeMap(Range.closed(5, 11)); in testSubRangeMapPut() [all …]
|
D | ImmutableRangeSetTest.java | 50 Range.closed(4, 6), 169 assertTrue(rangeSet.encloses(Range.closed(3, 4))); in testSingleBoundedRange() 190 assertTrue(rangeSet.encloses(Range.closed(3, 4))); in testSingleBoundedBelowRange() 207 assertTrue(rangeSet.encloses(Range.closed(2, 3))); in testSingleBoundedAboveRange() 221 .add(Range.closed(5, 8)).add(Range.closedOpen(1, 3)).build(); in testMultipleBoundedRanges() 224 .has().exactly(Range.closedOpen(1, 3), Range.closed(5, 8)).inOrder(); in testMultipleBoundedRanges() 226 assertTrue(rangeSet.encloses(Range.closed(1, 2))); in testMultipleBoundedRanges() 228 assertFalse(rangeSet.encloses(Range.closed(1, 8))); in testMultipleBoundedRanges() 247 assertTrue(rangeSet.encloses(Range.closed(1, 2))); in testMultipleBoundedBelowRanges() 249 assertFalse(rangeSet.encloses(Range.closed(1, 8))); in testMultipleBoundedBelowRanges() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | ContiguousSetTest.java | 61 ContiguousSet.create(Range.closed(1, 3), integers()), in testEquals() 65 ContiguousSet.create(Range.closed(1, 3), NOT_EQUAL_TO_INTEGERS), in testEquals() 73 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals() 76 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals() 79 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals() 109 ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers()); in testHeadSet() 123 assertThat(ContiguousSet.create(Range.closed(1, 3), integers()).headSet(0)).isEmpty(); in testHeadSet_tooSmall() 127 ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers()); in testTailSet() 139 assertThat(ContiguousSet.create(Range.closed(1, 3), integers()).tailSet(4)).isEmpty(); in testTailSet_tooLarge() 143 ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers()); in testSubSet() [all …]
|
/external/python/cpython2/Lib/bsddb/ |
D | dbrecio.py | 41 self.closed = 0 45 if not self.closed: 46 self.closed = 1 50 if self.closed: 55 if self.closed: 64 if self.closed: 69 if self.closed: 115 if self.closed: 127 if self.closed: 141 if self.closed:
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | Http1xStream.java | 270 private boolean closed; field in Http1xStream.FixedLengthSink 282 if (closed) throw new IllegalStateException("closed"); in write() 293 if (closed) return; // Don't throw; this stream might have been closed on the caller's behalf. in flush() 298 if (closed) return; in close() 299 closed = true; in close() 313 private boolean closed; field in Http1xStream.ChunkedSink 320 if (closed) throw new IllegalStateException("closed"); in write() 330 if (closed) return; // Don't throw; this stream might have been closed on the caller's behalf. in flush() 335 if (closed) return; in close() 336 closed = true; in close() [all …]
|
/external/python/cpython2/Lib/ |
D | StringIO.py | 38 def _complain_ifclosed(closed): argument 39 if closed: 62 self.closed = False 75 _complain_ifclosed(self.closed) 84 if not self.closed: 85 self.closed = True 92 _complain_ifclosed(self.closed) 104 _complain_ifclosed(self.closed) 116 _complain_ifclosed(self.closed) 127 _complain_ifclosed(self.closed) [all …]
|
D | chunk.py | 54 self.closed = False 87 if not self.closed: 91 self.closed = True 94 if self.closed: 104 if self.closed: 118 if self.closed: 128 if self.closed: 152 if self.closed:
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | TestInputStream.java | 38 private boolean closed; field in TestInputStream 50 public boolean closed() { in closed() method in TestInputStream 51 return closed; in closed() 56 throwIf(closed); in read() 63 throwIf(closed); in read() 70 throwIf(closed); in skip() 77 throwIf(closed); in available() 83 closed = true; in close()
|
D | TestOutputStream.java | 37 private boolean closed; field in TestOutputStream 49 public boolean closed() { in closed() method in TestOutputStream 50 return closed; in closed() 55 throwIf(closed); in write() 62 throwIf(closed); in write() 69 closed = true; in close()
|
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/ |
D | WrapperTester.java | 173 assertTrue(delegate.closed); in wrapperTestCloseThrows() 184 assertTrue(delegate.closed); in wrapperTestCloseThrowsSuppressed() 192 private boolean closed = false; field in WrapperTester.ClosableByteArrayOutputStream 196 closed = true; in close() 201 if (closed) { in write() 210 boolean closed = false; field in WrapperTester.FailOnFlushOutputStream 214 if (closed) { in write() 221 closed = true; in close() 235 boolean closed = false; field in WrapperTester.FailOnCloseOutputStream 239 closed = true; in close()
|
D | CharWrapperTester.java | 172 assertTrue(delegate.closed); in wrapperTestCloseThrows() 183 assertTrue(delegate.closed); in wrapperTestCloseThrowsSuppressed() 195 private boolean closed = false; field in CharWrapperTester.ClosableStringWriter 199 closed = true; in close() 208 if (closed) { in write() 217 boolean closed = false; field in CharWrapperTester.FailOnFlushWriter 221 if (closed) { in write() 228 closed = true; in close() 242 boolean closed = false; field in CharWrapperTester.FailOnCloseWriter 254 closed = true; in close()
|
/external/apache-http/src/org/apache/http/impl/io/ |
D | IdentityInputStream.java | 57 private boolean closed = false; field in IdentityInputStream 68 if (!this.closed && this.in.isDataAvailable(10)) { in available() 76 this.closed = true; in close() 80 if (this.closed) { in read() 88 if (this.closed) { in read()
|
D | IdentityOutputStream.java | 61 private boolean closed = false; field in IdentityOutputStream 77 if (!this.closed) { in close() 78 this.closed = true; in close() 88 if (this.closed) { in write() 99 if (this.closed) { in write()
|
D | ContentLengthOutputStream.java | 70 private boolean closed = false; field in ContentLengthOutputStream 99 if (!this.closed) { in close() 100 this.closed = true; in close() 110 if (this.closed) { in write() 128 if (this.closed) { in write()
|
D | ContentLengthInputStream.java | 89 private boolean closed = false; field in ContentLengthInputStream 123 if (!closed) { in close() 131 closed = true; in close() 144 if (closed) { in read() 168 if (closed) { in read()
|
D | ChunkedOutputStream.java | 67 private boolean closed = false; field in ChunkedOutputStream 146 if (this.closed) { in write() 165 if (this.closed) { in write() 190 if (!this.closed) { in close() 191 this.closed = true; in close()
|
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/xml/ |
D | XMLElement.java | 48 private boolean closed; field in XMLElement 64 this.closed = false; in XMLElement() 97 if (closed) { in addChildElement() 152 if (closed || openTagDone) { in attr() 213 if (closed) { in text() 246 if (!closed) { in close() 258 closed = true; in close()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/ |
D | FramedStream.java | 110 if ((source.finished || source.closed) in isOpen() 111 && (sink.finished || sink.closed) in isOpen() 325 private boolean closed; field in FramedStream.FramedDataSource 376 while (readBuffer.size() == 0 && !finished && !closed && errorCode == null) { in waitUntilReadable() 430 closed = true; in close() 438 if (closed) { in checkNotClosed() 452 cancel = !source.finished && source.closed && (sink.finished || sink.closed); in cancelStreamIfNecessary() 479 private boolean closed; field in FramedStream.FramedDataSink 504 while (bytesLeftInWriteWindow <= 0 && !finished && !closed && errorCode == null) { in emitDataFrame() 542 if (closed) return; in close() [all …]
|
/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/ |
D | MockSocketConnection.java | 56 private boolean closed; field in MockSocketConnection.MockSocket 64 if (closed) { 81 if (closed) { 84 if (other.closed) { 111 closed = false; in MockSocket() 121 while (!closed && !buffer.isEmpty()) { in waitUntilInputBufferIsEmpty() 148 closed = true; in close() 159 return closed; in isClosed()
|