Home
last modified time | relevance | path

Searched refs:Peek (Results 1 – 25 of 92) sorted by relevance

1234

/external/libchrome/base/
Dsync_socket_unittest.cc37 ASSERT_EQ(socket_->Peek(), 0u); in Run()
76 ASSERT_EQ(0u, socket_a->Peek()); in SendReceivePeek()
77 ASSERT_EQ(0u, socket_b->Peek()); in SendReceivePeek()
82 ASSERT_EQ(sizeof(kSending), socket_b->Peek()); in SendReceivePeek()
86 ASSERT_EQ(0u, socket_a->Peek()); in SendReceivePeek()
87 ASSERT_EQ(0u, socket_b->Peek()); in SendReceivePeek()
92 ASSERT_EQ(sizeof(kSending), socket_a->Peek()); in SendReceivePeek()
96 ASSERT_EQ(0u, socket_a->Peek()); in SendReceivePeek()
97 ASSERT_EQ(0u, socket_b->Peek()); in SendReceivePeek()
/external/llvm-project/lldb/unittests/Utility/
DStringExtractorTest.cpp19 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
31 ASSERT_EQ(kInitMiscString[0], *ex.Peek()); in TEST_F()
43 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
53 ASSERT_EQ('1', *ex.Peek()); in TEST_F()
64 ASSERT_EQ('x', *ex.Peek()); in TEST_F()
75 ASSERT_EQ('a', *ex.Peek()); in TEST_F()
86 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
97 ASSERT_EQ('3', *ex.Peek()); in TEST_F()
109 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
120 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
[all …]
DStringLexerTest.cpp81 TEST(StringLexerTest, Peek) { in TEST() argument
84 EXPECT_EQ('f', l.Peek()); in TEST()
86 EXPECT_EQ('o', l.Peek()); in TEST()
88 EXPECT_EQ('o', l.Peek()); in TEST()
/external/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
DCPlusPlusNameParser.cpp75 if (!Peek().is(kind)) in ConsumeToken()
86 if (!Peek().isOneOf(kinds...)) in ConsumeToken()
99 clang::Token &CPlusPlusNameParser::Peek() { in Peek() function in CPlusPlusNameParser
180 if (!HasMoreTokens() || Peek().getKind() != tok::less) in ConsumeTemplateArgs()
195 tok::TokenKind kind = Peek().getKind(); in ConsumeTemplateArgs()
257 if (HasMoreTokens() && Peek().is(tok::raw_identifier) && in ConsumeAnonymousNamespace()
258 Peek().getRawIdentifier() == g_anonymous) { in ConsumeAnonymousNamespace()
281 if (HasMoreTokens() && Peek().is(tok::raw_identifier) && in ConsumeLambda()
282 Peek().getRawIdentifier() == g_lambda) { in ConsumeLambda()
300 if (!HasMoreTokens() || Peek().getKind() != left) in ConsumeBrackets()
[all …]
/external/rust/crates/futures-util/src/stream/stream/
Dpeek.rs39 pub fn peek(self: Pin<&mut Self>) -> Peek<'_, St> { in peek()
40 Peek { inner: Some(self) } in peek()
108 pub struct Peek<'a, St: Stream> {
113 impl<St> fmt::Debug for Peek<'_, St> implementation
125 impl<St: Stream> FusedFuture for Peek<'_, St> { implementation
131 impl<'a, St> Future for Peek<'a, St> implementation
/external/llvm-project/lldb/source/Utility/
DStringLexer.cpp19 StringLexer::Character StringLexer::Peek() { return m_data[m_position]; } in Peek() function in StringLexer
22 auto val = Peek(); in NextIf()
32 auto val = Peek(); in NextIf()
59 auto val = Peek(); in Next()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DParseTreeBuilder.cs84 ParseTree parentRuleNode = callStack.Peek(); in EnterRule()
93 ParseTree ruleNode = callStack.Peek(); in ExitRule()
103 ParseTree ruleNode = callStack.Peek(); in ConsumeToken()
119 ParseTree ruleNode = callStack.Peek(); in RecognitionException()
DProfiler.cs166 string g = currentGrammarFileName.Peek(); in EnterDecision()
172 descriptor.fileName = currentGrammarFileName.Peek(); in EnterDecision()
173 descriptor.ruleName = currentRuleName.Peek(); in EnterDecision()
174 descriptor.line = currentLine.Peek(); in EnterDecision()
175 descriptor.pos = currentPos.Peek(); in EnterDecision()
330 return decisionStack.Peek(); in CurrentDecision()
654 currentGrammarFileName.Peek(), in LocationDescription()
655 currentRuleName.Peek(), in LocationDescription()
656 currentLine.Peek(), in LocationDescription()
657 currentPos.Peek()); in LocationDescription()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DParseTreeBuilder.cs95 ParseTree parentRuleNode = callStack.Peek(); in EnterRule()
105 ParseTree ruleNode = callStack.Peek(); in ExitRule()
117 ParseTree ruleNode = callStack.Peek(); in ConsumeToken()
135 ParseTree ruleNode = callStack.Peek(); in RecognitionException()
DProfiler.cs178 string g = currentGrammarFileName.Peek(); in EnterDecision()
185 descriptor.fileName = currentGrammarFileName.Peek(); in EnterDecision()
186 descriptor.ruleName = currentRuleName.Peek(); in EnterDecision()
187 descriptor.line = currentLine.Peek(); in EnterDecision()
188 descriptor.pos = currentPos.Peek(); in EnterDecision()
363 return decisionStack.Peek(); in CurrentDecision()
714 currentGrammarFileName.Peek(), in LocationDescription()
715 currentRuleName.Peek(), in LocationDescription()
716 currentLine.Peek(), in LocationDescription()
717 currentPos.Peek()); in LocationDescription()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Misc/
DListStack`1.cs40 public T Peek() in Peek() method in Antlr.Runtime.Misc.ListStack
42 return Peek(0); in Peek()
45 public T Peek(int depth) in Peek() method in Antlr.Runtime.Misc.ListStack
/external/libchrome/base/task_scheduler/
Dscheduler_worker_stack_unittest.cc120 EXPECT_EQ(nullptr, stack.Peek()); in TEST_F()
126 EXPECT_EQ(worker_a_.get(), stack.Peek()); in TEST_F()
131 EXPECT_EQ(worker_b_.get(), stack.Peek()); in TEST_F()
136 EXPECT_EQ(worker_c_.get(), stack.Peek()); in TEST_F()
141 EXPECT_EQ(worker_b_.get(), stack.Peek()); in TEST_F()
146 EXPECT_EQ(worker_a_.get(), stack.Peek()); in TEST_F()
154 EXPECT_EQ(nullptr, stack.Peek()); in TEST_F()
/external/libchrome/base/message_loop/
Dincoming_task_queue.h55 virtual const PendingTask& Peek() = 0;
158 const PendingTask& Peek() override;
179 const PendingTask& Peek() override;
208 const PendingTask& Peek() override;
Dincoming_task_queue.cc97 const PendingTask& IncomingTaskQueue::TriageQueue::Peek() { in Peek() function in base::internal::IncomingTaskQueue::TriageQueue
175 const PendingTask& IncomingTaskQueue::DelayedQueue::Peek() { in Peek() function in base::internal::IncomingTaskQueue::DelayedQueue
197 while (!queue_.empty() && Peek().task.IsCancelled()) in HasTasks()
225 const PendingTask& IncomingTaskQueue::DeferredQueue::Peek() { in Peek() function in base::internal::IncomingTaskQueue::DeferredQueue
/external/libchrome/ipc/
Dsync_socket_unittest.cc147 EXPECT_EQ(kHelloStringLength, socket_->Peek()); in OnMsgClassResponse()
152 EXPECT_EQ(0U, socket_->Peek()); in OnMsgClassResponse()
175 EXPECT_EQ(0U, pair[0].Peek()); in TEST_F()
176 EXPECT_EQ(0U, pair[1].Peek()); in TEST_F()
290 size_t bytes_in_buffer = pair[1].Peek(); in TEST_F()
296 EXPECT_EQ(bytes_in_buffer, pair[1].Peek()); in TEST_F()
/external/tensorflow/tensorflow/core/platform/
Dscanner_test.cc316 TEST_F(ScannerTest, Peek) { in TEST_F() argument
317 EXPECT_EQ('a', Scanner("abc").Peek()); in TEST_F()
318 EXPECT_EQ('a', Scanner("abc").Peek('b')); in TEST_F()
319 EXPECT_EQ('\0', Scanner("").Peek()); in TEST_F()
320 EXPECT_EQ('z', Scanner("").Peek('z')); in TEST_F()
321 EXPECT_EQ('A', Scanner("0123A").Any(Scanner::DIGIT).Peek()); in TEST_F()
322 EXPECT_EQ('\0', Scanner("0123A").Any(Scanner::LETTER_DIGIT).Peek()); in TEST_F()
/external/rust/crates/syn/src/
Dlookahead.rs100 pub fn peek<T: Peek>(&self, token: T) -> bool { in peek()
144 pub trait Peek: Sealed { interface
150 impl<F: Copy + FnOnce(TokenMarker) -> T, T: Token> Peek for F {
Dext.rs6 use crate::parse::Peek;
107 impl Peek for private::PeekFn {
/external/protobuf/src/google/protobuf/stubs/
Dbytestream.cc44 StringPiece fragment = Peek(); in CopyTo()
152 StringPiece ArrayByteSource::Peek() { in Peek() function in google::protobuf::strings::ArrayByteSource
175 StringPiece LimitByteSource::Peek() { in Peek() function in google::protobuf::strings::LimitByteSource
176 StringPiece piece(source_->Peek()); in Peek()
Dbytestream.h128 virtual StringPiece Peek() = 0;
301 virtual StringPiece Peek() override;
333 virtual StringPiece Peek() override;
/external/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
DAppleObjCTypeEncodingParser.cpp35 while (type.HasAtLeast(1) && type.Peek() != '=') in ReadStructName()
42 while (type.HasAtLeast(1) && type.Peek() != '"') in ReadQuotedString()
52 while (type.HasAtLeast(1) && isdigit(type.Peek())) in ReadNumber()
199 switch (type.Peek()) { in BuildObjCObjectPointerType()
260 switch (type.Peek()) { in BuildType()
/external/vixl/examples/aarch64/
Dswap4.cc43 __ Peek(x3, 0); in GenerateSwap4() local
44 __ Peek(x2, 8); in GenerateSwap4() local
Dswap-int32.cc48 __ Peek(w1, 0); in GenerateSwapInt32() local
49 __ Peek(w0, 4); in GenerateSwapInt32() local
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/
DUnbufferedTokenStream.cs101 return _realTokens.Peek();
115 _realTokens.Push(_realTokens.Peek()); in Mark()
/external/tensorflow/tensorflow/core/framework/
Dshape_inference_testutil.cc240 while (scanner.Peek() != ']') { in MakeShapeFromString()
241 if (scanner.Peek() == '?') { in MakeShapeFromString()
257 if (scanner.Peek() == ',') { in MakeShapeFromString()
259 } else if (scanner.Peek() != ']') { in MakeShapeFromString()

1234