Home
last modified time | relevance | path

Searched refs:peek (Results 1 – 25 of 56) sorted by relevance

123

/libcore/luni/src/main/java/java/util/concurrent/
DDelayQueue.java112 if (q.peek() == e) { in offer()
158 E first = q.peek(); in poll()
180 E first = q.peek(); in take()
203 if (leader == null && q.peek() != null) in take()
225 E first = q.peek(); in poll()
254 if (leader == null && q.peek() != null) in poll()
270 public E peek() { in peek() method in DelayQueue
274 return q.peek(); in peek()
296 E first = q.peek(); in peekExpired()
DBlockingDeque.java553 E peek(); in peek() method
/libcore/dex/src/main/java/com/android/dex/
DEncodedValueReader.java76 public int peek() { in peek() method in EncodedValueReader
222 switch (peek()) { in skipValue()
282 if (peek() != expected) { in checkType()
284 String.format("Expected %x but was %x", expected, peek())); in checkType()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArrayDequeTest.java105 assertEquals(testObjOne, testQue.peek()); in test_addFirst()
108 assertEquals(testObjOne, testQue.peek()); in test_addFirst()
111 assertEquals(testObjTwo, testQue.peek()); in test_addFirst()
127 assertEquals(testObjOne, testQue.peek()); in test_addLast()
130 assertEquals(testObjOne, testQue.peek()); in test_addLast()
133 assertEquals(testObjOne, testQue.peek()); in test_addLast()
149 assertEquals(testObjOne, testQue.peek()); in test_offerFirst()
152 assertEquals(testObjOne, testQue.peek()); in test_offerFirst()
155 assertEquals(testObjTwo, testQue.peek()); in test_offerFirst()
171 assertEquals(testObjOne, testQue.peek()); in test_offerLast()
[all …]
DStackTest.java60 .peek() == item1); in test_peek()
64 .peek() == item3); in test_peek()
69 s.peek()); in test_peek()
DAbstractQueueTest.java99 public E peek() { in peek() method in AbstractQueueTest
236 assertNull(queue.peek()); in test_clear_empty()
247 assertNull(queue.peek()); in test_clear()
DLinkedListTest.java349 assertNull("Should return null if this list is empty", list.peek()); in test_peek()
351 assertEquals("Returned incorrect first element", ll.peek(), objArray[0]); in test_peek()
755 assertEquals(testObjOne, testList.peek()); in test_offerFirst()
758 assertEquals(testObjOne, testList.peek()); in test_offerFirst()
761 assertEquals(testObjTwo, testList.peek()); in test_offerFirst()
773 assertEquals(testObjOne, testList.peek()); in test_offerLast()
776 assertEquals(testObjOne, testList.peek()); in test_offerLast()
779 assertEquals(testObjOne, testList.peek()); in test_offerLast()
791 assertEquals(testObjOne, testList.peek()); in test_push()
794 assertEquals(testObjOne, testList.peek()); in test_push()
[all …]
DPriorityQueueTest.java498 assertEquals(new Integer(array[0]), integerQueue.peek()); in test_peek()
499 assertEquals(new Integer(array[0]), integerQueue.peek()); in test_peek()
508 assertNull(queue.peek()); in test_peek_empty()
509 assertNull(queue.peek()); in test_peek_empty()
693 Object o = destStringQueue.peek(); in test_Serialization_casting()
711 Object o = destStringQueue.peek(); in test_SerializationCompatibility_cast()
/libcore/json/src/main/java/org/json/
DJSONStringer.java189 Scope context = peek(); in close()
205 private Scope peek() throws JSONException { in peek() method in JSONStringer
384 Scope context = peek(); in beforeKey()
404 Scope context = peek(); in beforeValue()
DJSONTokener.java130 char peek = in.charAt(pos); in nextCleanInternal() local
131 switch (peek) { in nextCleanInternal()
/libcore/luni/src/main/java/java/util/
DQueue.java187 E peek(); in peek() method
DAbstractQueue.java103 E x = peek(); in element()
DStack.java53 public synchronized E peek() { in peek() method in Stack
DDeque.java446 E peek(); in peek() method
DFormatter.java2309 private int peek() {
2327 int ch = peek();
2330 if (peek() == '$') {
2354 while (token.setFlag(peek())) {
2359 ch = peek();
2373 int ch = peek();
2383 int ch = peek();
2417 while (Character.isDigit(peek())) {
/libcore/support/src/test/java/tests/http/
DMockWebServer.java222 MockResponse peek = responseQueue.peek(); in play()
223 if (peek != null && peek.getSocketPolicy() == DISCONNECT_AT_START) { in play()
293 MockResponse connect = responseQueue.peek(); in serveConnection()
413 return responseQueue.peek(); in dispatch()
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueueTest.java24 public Integer peek() { return one; } in peek() method in AbstractQueueTest.Succeed
35 public Integer peek() { return null; } in peek() method in AbstractQueueTest.Fail
DPriorityQueueTest.java276 assertEquals(i, q.peek()); in testPeek()
278 assertTrue(q.peek() == null || in testPeek()
279 !q.peek().equals(i)); in testPeek()
281 assertNull(q.peek()); in testPeek()
DConcurrentLinkedQueueTest.java240 assertEquals(i, q.peek()); in testPeek()
242 assertTrue(q.peek() == null || in testPeek()
243 !q.peek().equals(i)); in testPeek()
245 assertNull(q.peek()); in testPeek()
DLinkedListTest.java191 assertEquals(i, q.peek()); in testPeek()
193 assertTrue(q.peek() == null || in testPeek()
194 !q.peek().equals(i)); in testPeek()
196 assertNull(q.peek()); in testPeek()
486 assertSame(four, q.peek()); in testAddFirst()
DDelayQueueTest.java442 assertEquals(new PDelay(i), ((PDelay)q.peek())); in testPeek()
445 assertNull(q.peek()); in testPeek()
447 assertFalse(new PDelay(i).equals(q.peek())); in testPeek()
449 assertNull(q.peek()); in testPeek()
685 assertNotNull(q.peek()); in testPeekDelayed()
/libcore/support/src/test/java/tests/util/
DCallVerificationStack.java96 return this.callStack.peek().getClassName(); in getCurrentSourceClass()
105 return this.callStack.peek().getMethodName(); in getCurrentSourceMethod()
/libcore/luni/src/main/java/java/net/
DDatagramSocketImpl.java181 protected abstract int peek(InetAddress sender) throws IOException; in peek() method in DatagramSocketImpl
/libcore/benchmarks/src/benchmarks/regression/
DParseBenchmark.java155 switch (reader.peek()) { in readToken()
175 throw new IllegalArgumentException("Unexpected token" + reader.peek()); in readToken()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketImplTest.java111 protected int peek(InetAddress sender) throws IOException { in peek() method in MockDatagramSocketImpl

123