/external/chromium_org/v8/test/cctest/ |
test-circular-queue.cc | 44 CHECK_EQ(NULL, scq.Peek()); 56 CHECK_NE(NULL, scq.Peek()); 60 CHECK_NE(NULL, scq.Peek()); 65 Record* rec = reinterpret_cast<Record*>(scq.Peek()); 68 CHECK_EQ(rec, reinterpret_cast<Record*>(scq.Peek())); 70 CHECK_NE(rec, reinterpret_cast<Record*>(scq.Peek())); 73 CHECK_EQ(NULL, scq.Peek()); 76 CHECK_EQ(NULL, scq.Peek()); 85 CHECK_NE(NULL, scq.Peek()); 87 Record* rec = reinterpret_cast<Record*>(scq.Peek()); [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
QueuePeekTester.java | 28 * A generic JUnit test which tests {@code peek()} operations on a queue. 39 assertNull("emptyQueue.peek() should return null", getQueue().peek()); 45 assertEquals("size1Queue.peek() should return first element", 46 samples.e0, getQueue().peek()); 53 assertEquals("sizeManyQueue.peek() should return first element", 54 samples.e0, getQueue().peek());
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.nonmembers/string.io/ |
stream_extract.pass.cpp | 31 assert(in.peek() == ' '); 35 assert(in.peek() == ' '); 40 assert(in.peek() == 'g'); 53 assert(in.peek() == L' '); 57 assert(in.peek() == L' '); 62 assert(in.peek() == L'g'); 77 assert(in.peek() == ' '); 81 assert(in.peek() == ' '); 86 assert(in.peek() == 'g'); 100 assert(in.peek() == L' ') [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
PeekingIteratorTest.java | 115 peekingIterator.peek(); 116 fail("Should throw NoSuchElementException if nothing to peek()"); 126 assertEquals("Should be able to peek() at first element", 127 "A", peekingIterator.peek()); 128 assertEquals("Should be able to peek() first element multiple times", 129 "A", peekingIterator.peek()); 133 assertEquals("Should be able to peek() at middle element", 134 "B", peekingIterator.peek()); 135 assertEquals("Should be able to peek() middle element multiple times", 136 "B", peekingIterator.peek()); [all...] |
AbstractIteratorTest.java | 100 assertEquals(0, (int) iter.peek()); 101 assertEquals(0, (int) iter.peek()); 103 assertEquals(0, (int) iter.peek()); 106 assertEquals(1, (int) iter.peek()); 110 iter.peek(); 111 fail("peek() should throw NoSuchElementException at end"); 116 iter.peek(); 117 fail("peek() should continue to throw NoSuchElementException at end"); 128 iter.peek(); 129 fail("peek() should still throw NoSuchElementException after next()") [all...] |
/external/chromium_org/v8/src/ |
dateparser-inl.h | 115 if (scanner.Peek().IsSymbol('.')) scanner.Next(); 119 if (!scanner.Peek().IsNumber()) return false; 129 DateToken peek = scanner.Peek(); local 130 if (!peek.IsEndOfInput() && 131 !peek.IsWhiteSpace() && 132 !peek.IsKeywordZ() && 133 !peek.IsAsciiSign()) return false; 154 if (scanner.Peek().IsNumber()) return false; 161 if (scanner.Peek().IsNumber()) [all...] |
preparser.cc | 74 ASSERT_EQ(Token::RBRACE, scanner()->peek()); 151 switch (peek()) { 169 while (peek() != end_token) { 218 switch (peek()) { 324 while (peek() != Token::RBRACE) { 375 if (peek() == Token::VAR) { 377 } else if (peek() == Token::CONST) { 410 } else if (peek() == Token::LET) { 455 if (peek() == Token::ASSIGN || require_initializer) { 460 } while (peek() == Token::COMMA) [all...] |
/external/guava/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 57 * #peek()} has occurred since the most recent call to {@link #next()}. 59 * @throws IllegalStateException if there has been a call to {@link #peek()}
|
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
QueueDispatcher.java | 40 if (failFastResponse != null && responseQueue.peek() == null) { 49 MockResponse peek = responseQueue.peek(); local 50 if (peek == null) { 55 return peek.getSocketPolicy();
|
/external/v8/src/ |
dateparser-inl.h | 114 if (scanner.Peek().IsSymbol('.')) scanner.Next(); 118 if (!scanner.Peek().IsNumber()) return false; 128 DateToken peek = scanner.Peek(); local 129 if (!peek.IsEndOfInput() && 130 !peek.IsWhiteSpace() && 131 !peek.IsKeywordZ() && 132 !peek.IsAsciiSign()) return false; 157 if (scanner.Peek().IsNumber()) { 162 if (scanner.Peek().IsSymbol(':')) [all...] |
/external/chromium_org/base/ |
sync_socket_unittest.cc | 27 ASSERT_EQ(socket_->Peek(), 0u); 54 ASSERT_EQ(0u, socket_a->Peek()); 55 ASSERT_EQ(0u, socket_b->Peek()); 60 ASSERT_EQ(sizeof(kSending), socket_b->Peek()); 64 ASSERT_EQ(0u, socket_a->Peek()); 65 ASSERT_EQ(0u, socket_b->Peek()); 70 ASSERT_EQ(sizeof(kSending), socket_a->Peek()); 74 ASSERT_EQ(0u, socket_a->Peek()); 75 ASSERT_EQ(0u, socket_b->Peek());
|
/external/skia/tests/ |
Reader32Test.cpp | 15 REPORTER_ASSERT(reporter, (const char*)reader.peek() == 24 REPORTER_ASSERT(reporter, reader.peek() == reader.base()); 40 REPORTER_ASSERT(reporter, NULL == reader.peek()); 55 REPORTER_ASSERT(reporter, (const void*)&data[i] == reader.peek()); 69 REPORTER_ASSERT(reporter, (const void*)&data2[i] == reader.peek()); 81 REPORTER_ASSERT(reporter, NULL == reader.peek());
|
/external/chromium_org/mojo/public/bindings/lib/ |
message_queue.h | 23 Message* Peek(); 34 // This is meant to be used in conjunction with |Peek|.
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/ |
peek.pass.cpp | 12 // int_type peek(); 46 assert(is.peek() == ' '); 51 assert(is.peek() == '1'); 59 assert(is.peek() == L' '); 64 assert(is.peek() == L'1');
|
/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/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/template/ |
group-file-lexer.rb | 368 look_1_0 = @input.peek( 1 ) 377 if @input.peek( 1 ).between?( 0x30, 0x39 ) || @input.peek( 1 ).between?( 0x41, 0x5a ) || @input.peek( 1 ) == 0x5f || @input.peek( 1 ).between?( 0x61, 0x7a ) 414 if @input.peek( 1 ) == 0x5f || @input.peek( 1 ).between?( 0x61, 0x7a ) 426 look_2_0 = @input.peek( 1 ) 435 if @input.peek( 1 ).between?( 0x30, 0x39 ) || @input.peek( 1 ).between?( 0x41, 0x5a ) || @input.peek( 1 ) == 0x5f || @input.peek( 1 ).between?( 0x61, 0x7a [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());
|
/external/chromium_org/third_party/JSON/JSON-2.59/t/ |
e12_upgrade.t | 20 #use Devel::Peek;
|
/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());
|
/external/chromium_org/media/mp4/ |
offset_byte_queue.cc | 28 void OffsetByteQueue::Peek(const uint8** buf, int* size) { 61 queue_.Peek(&buf_, &size_);
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
ParseTreeBuilder.cs | 61 return callStack.Peek(); 94 ParseTree parentRuleNode = callStack.Peek(); 104 ParseTree ruleNode = callStack.Peek(); 116 ParseTree ruleNode = callStack.Peek(); 134 ParseTree ruleNode = callStack.Peek();
|
/packages/apps/UnifiedEmail/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...] |
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/ |
test-streams.rb | 82 @stream.peek(1).should == ?o.ord 89 @stream.peek(1).should == ?o.ord 90 @stream.peek(2).should == ?h.ord 91 @stream.peek(3).should == ?\n.ord 97 @stream.peek(1).should == ?!.ord 98 @stream.peek(2).should == ?\n.ord 99 @stream.peek(3).should == EOF 114 @stream.peek(1).should == ?h.ord 168 @stream.peek(1).should == ?e.ord 197 @stream.peek(1).should == ?y.ord [all...] |
/external/jmonkeyengine/engine/src/ogre/com/jme3/scene/plugins/ogre/ |
SkeletonLoader.java | 90 assert elementStack.peek().equals("rotation") 91 || elementStack.peek().equals("rotate"); 96 assert elementStack.peek().equals("keyframes"); 99 assert elementStack.peek().equals("track"); 101 assert elementStack.peek().equals("tracks"); 107 assert elementStack.peek().equals("bonehierarchy"); 114 assert elementStack.peek().equals("bones"); 122 assert elementStack.peek().equals("animation"); 125 assert elementStack.peek().equals("animations"); 130 assert elementStack.peek().equals("skeleton") [all...] |