HomeSort by relevance Sort by last modified time
    Searched full:peek (Results 1 - 25 of 262) sorted by null

1 2 3 4 5 6 7 8 91011

  /external/guava/src/com/google/common/collect/
PeekingIterator.java 35 * <p>Calls to {@code peek()} should not change the state of the iteration,
42 E peek(); method in interface:PeekingIterator
47 * <p>The objects returned by consecutive calls to {@link #peek()} then {@link
56 * #peek()} has occurred since the most recent call to {@link #next()}.
58 * @throws IllegalStateException if there has been a call to {@link #peek()}
ForwardingQueue.java 51 public E peek() { method in class:ForwardingQueue
52 return delegate().peek();
AbstractIterator.java 97 * {@code next}, or {@link #peek()} methods on this instance; if it does, an
104 * {@code peek()} invocation that invoked this method. Any further
154 * according to the contract of {@link PeekingIterator#peek()}.
159 public final T peek() { method in class:AbstractIterator
  /dalvik/libcore/luni/src/test/java/tests/api/java/util/
StackTest.java 69 * @tests java.util.Stack#peek()
74 method = "peek",
78 // Test for method java.lang.Object java.util.Stack.peek()
83 assertTrue("Peek did not return top item when it was the only item", s
84 .peek() == item1);
87 assertTrue("Peek did not return top item amoung many other items", s
88 .peek() == item3);
90 assertTrue("Peek did not return top item after a pop", s.pop() == item2);
92 assertNull("Peek did not return top item (wanted: null)",
93 s.peek());
    [all...]
  /packages/apps/Email/src/org/apache/james/mime4j/message/
Message.java 105 if (!c.isInstance(stack.peek())) {
108 + stack.peek().getClass().getName() + "'");
121 ((Entity) stack.peek()).setBody(m);
146 ((Header) stack.peek()).addField(Field.parse(fieldData));
156 ((Entity) stack.peek()).setHeader(h);
165 Entity e = (Entity) stack.peek();
191 ((Entity) stack.peek()).setBody(body);
208 ((Multipart) stack.peek()).addBodyPart(bodyPart);
230 ((Multipart) stack.peek()).setEpilogue(sb.toString());
243 ((Multipart) stack.peek()).setPreamble(sb.toString());
    [all...]
  /dalvik/libcore/xml/src/main/java/org/kxml2/io/
KXmlParser.java 97 * A separate peek buffer seems simpler than managing
100 private int[] peek = new int[2]; field in class:KXmlParser
315 // && (stackMismatch > 0 || (peek(0) == -1 && depth > 0))) {
385 if ((peek(0) == 'x' || peek(0) == 'X')
386 && (peek(1) == 'm' || peek(1) == 'M')) {
389 push(peek(0));
390 push(peek(1));
395 if ((peek(0) == 'l' || peek(0) == 'L') && peek(1) <= ' ')
    [all...]
  /dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/
AbstractQueueTest.java 30 public Integer peek() { return one; } method in class:AbstractQueueTest.Succeed
41 public Integer peek() { return null; } method in class:AbstractQueueTest.Fail
101 * element returns normally if peek succeeds
109 * element throws NSEE if peek returns null
LinkedListTest.java 203 * peek returns next element, or null if empty
208 assertEquals(i, ((Integer)q.peek()).intValue());
210 assertTrue(q.peek() == null ||
211 i != ((Integer)q.peek()).intValue());
213 assertNull(q.peek());
445 * peek returns element inserted with addFirst
450 assertEquals(four,q.peek());
  /external/bluetooth/glib/tests/gobject/
defaultiface.c 75 /* Peek then works */
82 /* And peek still works */
156 /* Peek then works */
164 /* Peek returns NULL */
dynamictype.c 93 /* Peek then works */
101 /* Peek returns NULL */
  /packages/apps/Email/src/com/android/email/
PeekableInputStream.java 24 * client of this stream can call peek() to see the next available byte in the stream
46 public int peek() throws IOException { method in class:PeekableInputStream
  /external/webkit/JavaScriptCore/wrec/
WRECParser.h 77 if (peek() != EndOfPattern)
123 int peek() function in class:JSC::WREC::Parser
139 return WTF::isASCIIDigit(peek());
145 return peek() - '0';
168 if (!WTF::isASCIIHexDigit(peek()))
178 while (n < 32 && WTF::isASCIIOctalDigit(peek()))
WRECParser.cpp 111 switch (peek()) {
140 if (peek() == ',') {
145 if (peek() != '}') {
168 if ((q.type == Quantifier::Greedy) && (peek() == '?')) {
277 if (peek() == '^') {
285 while ((ch = peek()) != ']') {
365 switch (peek()) {
510 switch (peek()) {
606 if (peek() != '|')
614 } while (peek() == '|')
    [all...]
  /external/webkit/JavaScriptCore/yarr/
RegexParser.h 229 ASSERT(peek() == '\\');
237 switch (peek()) {
309 if (peek() >= '8') {
416 ASSERT(peek() == '[');
424 switch (peek()) {
453 ASSERT(peek() == '(');
492 ASSERT(peek() == ')');
533 switch (peek()) {
692 int peek() function in class:JSC::Yarr::Parser
700 return !atEndOfPattern() && WTF::isASCIIDigit(peek());
    [all...]
  /dalvik/dx/src/com/android/dx/cf/code/
ExecutionStack.java 175 * {@code n == 0} means to peek at the top of the stack. Note that
179 * @param n {@code >= 0;} which element to peek at
183 public TypeBearer peek(int n) { method in class:ExecutionStack
199 * for {@code peek(n).getType()}.
201 * @see #peek
204 return peek(n).getType();
216 TypeBearer result = peek(0);
  /dalvik/libcore/luni/src/main/java/java/util/
Stack.java 54 public synchronized E peek() { method in class:Stack
68 * @see #peek
89 * @see #peek
EmptyStackException.java 22 * An {@code EmptyStackException} is thrown if the pop/peek method of a stack is
  /packages/apps/IM/src/com/android/im/imps/
PrimitiveContentHandler.java 57 PrimitiveElement parentPrimitive = mContentElementsStack.peek();
95 PrimitiveElement curPrimitive = mContentElementsStack.peek();
  /packages/apps/Launcher2/src/com/android/launcher2/
DeferredHandler.java 104 Runnable peek = mQueue.getFirst(); local
105 if (peek instanceof IdleRunnable) {
  /dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/
OSNetworkSystem.java 301 * Peek on the socket, update <code>sender</code> address and answer the
407 * @param peek
408 * indicates to peek at the data
415 boolean peek) throws IOException {
417 receiveTimeout, peek);
422 int receiveTimeout, boolean peek) throws IOException;
426 int receiveTimeout, boolean peek) throws IOException {
428 receiveTimeout, peek);
433 int receiveTimeout, boolean peek) throws IOException;
452 * @param peek
    [all...]
  /external/v8/src/
string.js 271 var peek = %_FastCharCodeAt(string, position);
272 if (!%_IsSmi(peek)) {
273 peek = %StringCharCodeAt(string, position);
275 if (peek == 36) { // $$
278 } else if (peek == 38) { // $& - match
282 } else if (peek == 96) { // $` - prefix
285 } else if (peek == 39) { // $' - suffix
288 } else if (peek >= 48 && peek <= 57) { // $n, 0 <= n <= 9
290 var n = peek - 48
    [all...]
  /frameworks/base/core/java/android/webkit/
HttpAuthHandler.java 113 loader = mLoaderQueue.peek();
173 loader = mLoaderQueue.peek();
208 assert(mLoaderQueue.peek() == loader);
252 loader = mLoaderQueue.peek();
  /dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
DelayQueue.java 110 if (q.peek() == e) {
156 E first = q.peek();
178 E first = q.peek();
200 if (leader == null && q.peek() != null)
222 E first = q.peek();
250 if (leader == null && q.peek() != null)
266 public E peek() { method in class:DelayQueue
270 return q.peek();
302 E first = q.peek();
332 E first = q.peek();
    [all...]
  /frameworks/base/tests/CoreTests/android/core/
LinkedListTest.java 451 element = list.peek();
452 element = list.peek();
453 element = list.peek();
454 element = list.peek();
455 element = list.peek();
456 element = list.peek();
457 element = list.peek();
458 element = list.peek();
459 element = list.peek();
460 element = list.peek();
    [all...]
  /packages/apps/Email/src/com/android/email/mail/internet/
MimeMessage.java 490 if (!c.isInstance(stack.peek())) {
492 + c.getName() + "' found '" + stack.peek().getClass().getName() + "'");
503 ((Part)stack.peek()).setBody(m);
524 ((Part)stack.peek()).addHeader(tokens[0], tokens[1].trim());
537 Part e = (Part)stack.peek();
551 ((Part)stack.peek()).setBody(body);
566 ((MimeMultipart)stack.peek()).addBodyPart(bodyPart);
585 // ((Multipart) stack.peek()).setEpilogue(sb.toString());
596 ((MimeMultipart)stack.peek()).setPreamble(sb.toString());

Completed in 299 milliseconds

1 2 3 4 5 6 7 8 91011