/external/python/cpython3/Lib/test/test_tools/ |
D | test_pindent.py | 40 closed = f.read() 42 f.write(closed) 50 self.assertEqual(f.read(), closed) 54 self.assertEqual(self.pindent(clean, '-c'), closed) 55 self.assertEqual(self.pindent(closed, '-d'), clean) 63 self.assertEqual(f.read(), closed) 65 broken = self.lstriplines(closed) 78 def pindent_test(self, clean, closed): argument 79 self.assertEqual(self.pindent(clean, '-c'), closed) 80 self.assertEqual(self.pindent(closed, '-d'), clean) [all …]
|
/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/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/ |
D | RealBufferedSink.java | 27 private boolean closed; field in RealBufferedSink 45 if (closed) throw new IllegalStateException("closed"); in write() 51 if (closed) throw new IllegalStateException("closed"); in write() 57 if (closed) throw new IllegalStateException("closed"); in writeUtf8() 64 if (closed) throw new IllegalStateException("closed"); in writeUtf8() 70 if (closed) throw new IllegalStateException("closed"); in writeUtf8CodePoint() 76 if (closed) throw new IllegalStateException("closed"); in writeString() 83 if (closed) throw new IllegalStateException("closed"); in writeString() 89 if (closed) throw new IllegalStateException("closed"); in write() 95 if (closed) throw new IllegalStateException("closed"); in write() [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 …]
|
/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/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/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/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/ |
D | Http1xStream.java | 272 private boolean closed; field in Http1xStream.FixedLengthSink 284 if (closed) throw new IllegalStateException("closed"); in write() 295 if (closed) return; // Don't throw; this stream might have been closed on the caller's behalf. in flush() 300 if (closed) return; in close() 301 closed = true; in close() 315 private boolean closed; field in Http1xStream.ChunkedSink 322 if (closed) throw new IllegalStateException("closed"); in write() 332 if (closed) return; // Don't throw; this stream might have been closed on the caller's behalf. in flush() 337 if (closed) return; in close() 338 closed = true; in close() [all …]
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/inprocess/ |
D | InProcessTransport.java | 155 listener.closed(capturedStatus, new Metadata()); 314 private boolean closed; 337 if (!closed) { 351 if (closed) { 361 if (closed) { 365 closed = true; 367 clientStreamListener.closed(clientNotifyStatus, clientNotifyTrailers); 379 if (closed) { 401 if (closed) { 409 if (closed) { [all …]
|
/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/python/cpython3/Modules/_io/ |
D | iobase.c | 159 int closed = iobase_is_closed(self); in _io__IOBase_flush_impl() local 161 if (!closed) { in _io__IOBase_flush_impl() 164 if (closed > 0) { in _io__IOBase_flush_impl() 173 int closed = iobase_is_closed(self); in iobase_closed_get() local 174 if (closed < 0) { in iobase_closed_get() 177 return PyBool_FromLong(closed); in iobase_closed_get() 184 int closed; in iobase_check_closed() local 187 closed = _PyObject_LookupAttr(self, _PyIO_str_closed, &res); in iobase_check_closed() 188 if (closed > 0) { in iobase_check_closed() 189 closed = PyObject_IsTrue(res); in iobase_check_closed() [all …]
|
/external/python/cpython3/Lib/ |
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/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()
|
/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.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()
|