/libcore/luni/src/main/java/java/util/concurrent/ |
D | DelayQueue.java | 112 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()
|
D | BlockingDeque.java | 553 E peek(); in peek() method
|
/libcore/dex/src/main/java/com/android/dex/ |
D | EncodedValueReader.java | 76 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/ |
D | ArrayDequeTest.java | 105 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 …]
|
D | StackTest.java | 60 .peek() == item1); in test_peek() 64 .peek() == item3); in test_peek() 69 s.peek()); in test_peek()
|
D | AbstractQueueTest.java | 99 public E peek() { in peek() method in AbstractQueueTest 236 assertNull(queue.peek()); in test_clear_empty() 247 assertNull(queue.peek()); in test_clear()
|
D | LinkedListTest.java | 349 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 …]
|
D | PriorityQueueTest.java | 498 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/ |
D | JSONStringer.java | 189 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()
|
D | JSONTokener.java | 130 char peek = in.charAt(pos); in nextCleanInternal() local 131 switch (peek) { in nextCleanInternal()
|
/libcore/luni/src/main/java/java/util/ |
D | Queue.java | 187 E peek(); in peek() method
|
D | AbstractQueue.java | 103 E x = peek(); in element()
|
D | Stack.java | 53 public synchronized E peek() { in peek() method in Stack
|
D | Deque.java | 446 E peek(); in peek() method
|
D | Formatter.java | 2309 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/ |
D | MockWebServer.java | 222 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/ |
D | AbstractQueueTest.java | 24 public Integer peek() { return one; } in peek() method in AbstractQueueTest.Succeed 35 public Integer peek() { return null; } in peek() method in AbstractQueueTest.Fail
|
D | PriorityQueueTest.java | 276 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()
|
D | ConcurrentLinkedQueueTest.java | 240 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()
|
D | LinkedListTest.java | 191 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()
|
D | DelayQueueTest.java | 442 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/ |
D | CallVerificationStack.java | 96 return this.callStack.peek().getClassName(); in getCurrentSourceClass() 105 return this.callStack.peek().getMethodName(); in getCurrentSourceMethod()
|
/libcore/luni/src/main/java/java/net/ |
D | DatagramSocketImpl.java | 181 protected abstract int peek(InetAddress sender) throws IOException; in peek() method in DatagramSocketImpl
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ParseBenchmark.java | 155 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/ |
D | DatagramSocketImplTest.java | 111 protected int peek(InetAddress sender) throws IOException { in peek() method in MockDatagramSocketImpl
|