Home
last modified time | relevance | path

Searched refs:closed (Results 1 – 25 of 338) sorted by relevance

12345678910>>...14

/external/okhttp/okio/okio/src/main/java/okio/
DRealBufferedSink.java26 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 …]
DRealBufferedSource.java28 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/
DRangeTest.java72 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 …]
DTreeRangeSetTest.java289 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 …]
DContiguousSetTest.java78 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 …]
DTreeRangeMapTest.java55 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 …]
DImmutableRangeSetTest.java50 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/
DContiguousSetTest.java61 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/guava/guava-tests/test/com/google/common/io/
DTestInputStream.java38 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()
DTestOutputStream.java37 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()
DAppendableWriterTest.java34 boolean closed; field in AppendableWriterTest.SpyAppendable
57 closed = true; in close()
93 assertFalse(spy.closed); in testCloseFlush()
97 assertFalse(spy.closed); in testCloseFlush()
101 assertTrue(spy.closed); in testCloseFlush()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttpConnection.java284 private boolean closed; field in HttpConnection.FixedLengthSink
296 if (closed) throw new IllegalStateException("closed"); in write()
307 if (closed) return; // Don't throw; this stream might have been closed on the caller's behalf. in flush()
312 if (closed) return; in close()
313 closed = true; in close()
327 private boolean closed; field in HttpConnection.ChunkedSink
334 if (closed) throw new IllegalStateException("closed"); in write()
344 if (closed) return; // Don't throw; this stream might have been closed on the caller's behalf. in flush()
349 if (closed) return; in close()
350 closed = true; in close()
[all …]
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/
DWrapperTester.java173 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()
DCharWrapperTester.java172 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/
DIdentityInputStream.java57 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()
DIdentityOutputStream.java61 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()
DContentLengthOutputStream.java70 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()
DContentLengthInputStream.java89 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()
DChunkedOutputStream.java67 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.agent.rt.test/src/org/jacoco/agent/rt/internal/output/
DMockSocketConnection.java56 private boolean closed; field in MockSocketConnection.MockSocket
64 if (closed) {
81 if (closed) {
84 if (other.closed) {
108 closed = false; in MockSocket()
120 if (closed) { in getOutputStream()
128 if (closed) { in getInputStream()
136 closed = true; in close()
147 return closed; in isClosed()
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/xml/
DXMLElement.java48 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/
DFramedStream.java110 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/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/glacier/
Dwriter.py99 self.closed = False
114 if self.closed:
145 if self.closed:
151 if self.closed:
161 self.closed = True
213 self.closed = False
217 if self.closed:
226 if self.closed:
230 self.closed = True
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/serializer/
DSerializer.java61 private Boolean closed; field in Serializer
76 this.closed = null; in Serializer()
81 if (closed == null) { in open()
83 this.closed = Boolean.FALSE; in open()
84 } else if (Boolean.TRUE.equals(closed)) { in open()
92 if (closed == null) { in close()
94 } else if (!Boolean.TRUE.equals(closed)) { in close()
96 this.closed = Boolean.TRUE; in close()
101 if (closed == null) { in serialize()
103 } else if (closed) { in serialize()
/external/v8/tools/testrunner/local/
Dperfdata.py54 self.closed = False
61 if self.closed: return
63 self.closed = True
98 self.closed = False
105 if self.closed: return
111 self.closed = True

12345678910>>...14