/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();
|
/external/v8/src/ |
preparser.cc | 102 while (peek() != end_token) { 135 switch (peek()) { 214 bool done = (peek() == i::Token::RPAREN); 217 done = (peek() == i::Token::RPAREN); 236 while (peek() != i::Token::RBRACE) { 265 if (peek() == i::Token::VAR) { 267 } else if (peek() == i::Token::CONST) { 282 if (peek() == i::Token::ASSIGN) { 286 } while (peek() == i::Token::COMMA); 300 if (peek() == i::Token::COLON && expr == kIdentifierExpression) [all...] |
/external/skia/tests/ |
Reader32Test.cpp | 24 REPORTER_ASSERT(reporter, (const char*)reader.peek() == 33 REPORTER_ASSERT(reporter, reader.peek() == reader.base()); 49 REPORTER_ASSERT(reporter, NULL == reader.peek()); 64 REPORTER_ASSERT(reporter, (const void*)&data[i] == reader.peek()); 78 REPORTER_ASSERT(reporter, (const void*)&data2[i] == reader.peek()); 90 REPORTER_ASSERT(reporter, NULL == reader.peek());
|
/ndk/sources/host-tools/nawk-20071023/ |
lex.c | 94 int peek(void) function 214 if (peek() == '\n') { 216 } else if (peek() == '\r') { 224 if (peek() == '&') { 229 if (peek() == '|') { 234 if (peek() == '=') { 236 } else if (peek() == '~') { 244 if (peek() == '=') { 250 if (peek() == '=') { 256 if (peek() == '=') [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
StackTest.java | 51 * @tests java.util.Stack#peek() 54 // Test for method java.lang.Object java.util.Stack.peek() 59 assertTrue("Peek did not return top item when it was the only item", s 60 .peek() == item1); 63 assertTrue("Peek did not return top item amoung many other items", s 64 .peek() == item3); 66 assertTrue("Peek did not return top item after a pop", s.pop() == item2); 68 assertNull("Peek did not return top item (wanted: null)", 69 s.peek());
|
ArrayDequeTest.java | 105 assertEquals(testObjOne, testQue.peek()); 108 assertEquals(testObjOne, testQue.peek()); 111 assertEquals(testObjTwo, testQue.peek()); 127 assertEquals(testObjOne, testQue.peek()); 130 assertEquals(testObjOne, testQue.peek()); 133 assertEquals(testObjOne, testQue.peek()); 149 assertEquals(testObjOne, testQue.peek()); 152 assertEquals(testObjOne, testQue.peek()); 155 assertEquals(testObjTwo, testQue.peek()); 171 assertEquals(testObjOne, testQue.peek()); [all...] |
/external/qemu-pc-bios/vgabios/tests/ |
testbios.c | 263 biosarea->nbcols=peek(0x40,0x4a);
264 biosarea->regen=peek(0x40,0x4c);
265 biosarea->start=peek(0x40,0x4e);
266 biosarea->curpos[0]=peek(0x40,0x50);
267 biosarea->curpos[1]=peek(0x40,0x52);
268 biosarea->curpos[2]=peek(0x40,0x54);
269 biosarea->curpos[3]=peek(0x40,0x56);
270 biosarea->curpos[4]=peek(0x40,0x58);
271 biosarea->curpos[5]=peek(0x40,0x5a);
272 biosarea->curpos[6]=peek(0x40,0x5c); [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
StackTest.java | 51 * java.util.Stack#peek() 54 // Test for method java.lang.Object java.util.Stack.peek() 59 assertTrue("Peek did not return top item when it was the only item", s 60 .peek() == item1); 63 assertTrue("Peek did not return top item amoung many other items", s 64 .peek() == item3); 66 assertTrue("Peek did not return top item after a pop", s.pop() == item2); 68 assertNull("Peek did not return top item (wanted: null)", 69 s.peek());
|
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/message/ |
Message.java | 106 if (!c.isInstance(stack.peek())) {
109 + stack.peek().getClass().getName() + "'");
122 ((Entity) stack.peek()).setBody(m);
147 ((Header) stack.peek()).addField(Field.parse(fieldData));
157 ((Entity) stack.peek()).setHeader(h);
166 Entity e = (Entity) stack.peek();
192 ((Entity) stack.peek()).setBody(body);
209 ((Multipart) stack.peek()).addBodyPart(bodyPart);
231 ((Multipart) stack.peek()).setEpilogue(sb.toString());
244 ((Multipart) stack.peek()).setPreamble(sb.toString()); [all...] |
/libcore/luni/src/main/java/java/util/ |
AbstractQueue.java | 19 * #poll poll}, and {@link #peek peek}, respectively, but throw 26 * Queue#peek}, {@link Queue#poll}, {@link Collection#size}, and 93 * differs from {@link #peek peek} only in that it throws an exception if 96 * <p>This implementation returns the result of <tt>peek</tt> 103 E x = peek();
|
Stack.java | 53 public synchronized E peek() { method in class:Stack 67 * @see #peek 88 * @see #peek
|
Queue.java | 45 * <td>{@link #peek peek()}</td> 78 * <p>The {@link #element()} and {@link #peek()} methods return, but do 173 * differs from {@link #peek peek} only in that it throws an exception 187 E peek(); method in interface:Queue
|
/external/antlr/src/org/antlr/runtime/debug/ |
ParseTreeBuilder.java | 74 ParseTree parentRuleNode = (ParseTree)callStack.peek(); 82 ParseTree ruleNode = (ParseTree)callStack.peek(); 91 ParseTree ruleNode = (ParseTree)callStack.peek(); 105 ParseTree ruleNode = (ParseTree)callStack.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
|
/frameworks/base/core/tests/coretests/src/android/util/ |
JsonReaderTest.java | 34 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); 42 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); 54 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); 62 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); 74 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); 91 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); 163 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); 207 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); 239 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); 248 assertEquals(JsonToken.STRING, reader.peek()); [all...] |
/external/webkit/Source/WebKit/chromium/scripts/ |
jsmin.py | 107 def peek(self): member in class:JavaScriptMinifier 113 """ get the next character, excluding comments. peek() is used to see 118 peek = self.peek() 119 if peek == '/': 124 elif peek == '*': 129 if self.peek() == '/':
|
/external/qemu/ |
json-parser.c | 272 QObject *key, *token = NULL, *value, *peek; local 275 peek = qlist_peek(working); 278 parse_error(ctxt, peek, "key is not a string in object"); 314 QObject *token, *peek; local 326 peek = qlist_peek(working); 327 if (!token_is_operator(peek, '}')) { 370 QObject *token, *peek; local 382 peek = qlist_peek(working); 383 if (!token_is_operator(peek, ']')) {
|
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
ImapConstants.java | 24 public static final String FETCH_FIELD_BODY_PEEK_BARE = "BODY.PEEK"; 27 = String.format("BODY.PEEK[]<0.%d>", Store.FETCH_BODY_SANE_SUGGESTED_SIZE); 29 "BODY.PEEK[HEADER.FIELDS (date subject from content-type to cc message-id)]";
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
StateManager.java | 163 if (state != mStack.peek().activityState) { 170 + mStack.peek().activityState); 196 ActivityState top = mStack.peek().activityState; 204 if (oldState != mStack.peek().activityState) { 207 + mStack.peek().activityState); 291 return mStack.peek().activityState;
|
/dalvik/dx/src/com/android/dx/cf/code/ |
ExecutionStack.java | 192 * {@code n == 0} means to peek at the top of the stack. Note that 196 * @param n {@code >= 0;} which element to peek at 200 public TypeBearer peek(int n) { method in class:ExecutionStack 216 * @param n {@code >= 0;} which element to peek at 236 * for {@code peek(n).getType()}. 238 * @see #peek 241 return peek(n).getType(); 253 TypeBearer result = peek(0);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
DeferredHandler.java | 103 Runnable peek = mQueue.getFirst(); local 104 if (peek instanceof IdleRunnable) {
|
/cts/libs/json/src/com/android/json/stream/ |
JsonReader.java | 58 * <p>If a value may be null, you should first check using {@link #peek()}. 115 * } else if (name.equals("geo") && reader.peek() != JsonToken.NULL) { 197 * The type of the next token to be returned by {@link #peek} and {@link 198 * #advance}. If null, peek() will assign a value. 287 peek(); method 289 throw new IllegalStateException("Expected " + expected + " but was " + peek()); 298 peek(); method 305 public JsonToken peek() throws IOException { method in class:JsonReader 342 peek(); method 359 peek(); method 377 peek(); method 395 peek(); method 413 peek(); method 429 peek(); method 450 peek(); method 481 peek(); method 725 char peek = buffer[pos]; local [all...] |