Searched defs:then (Results 1 - 25 of 30) sorted by relevance

12

/external/v8/test/mjsunit/es6/regress/
H A Dregress-cr372788.js33 var thenable = { then: function(f) { x++; f(); } };
36 Promise.resolve(thenable).then(function() { x++; y++; });
/external/v8/test/webkit/fast/js/
H A DPromise-resolve-with-then-fulfill.js31 then: function(onFulfilled) {
32 testPassed('value.then is called.');
41 }).then(function(localResult) {
H A DPromise-resolve-with-then-reject.js31 then: function(onFulfilled, onRejected) {
32 testPassed('value.then is called.');
41 }).then(function() {
/external/mockito/src/org/mockito/internal/stubbing/
H A DConsecutiveStubbing.java23 public OngoingStubbing<T> then(Answer<?> answer) { method in class:ConsecutiveStubbing
H A DOngoingStubbingImpl.java32 public OngoingStubbing<T> then(Answer<?> answer) { method in class:OngoingStubbingImpl
/external/mockito/src/org/mockito/stubbing/
H A DOngoingStubbing.java11 * Simply put: "<b>When</b> the x method is called <b>then</b> return y". E.g:
74 * If throwables contain a checked exception then it has to
80 * if throwable is null then exception will be thrown.
99 * If throwableClasses contain a checked exception then it has to
105 * if throwable is null then exception will be thrown.
130 * // if it isn't safe then you will have trouble stubbing it using this api. Use Mockito.doCallRealMethod() instead.
169 * //using 'then' alias:
170 * when(mock.foo()).then(returnCoolValue());
182 OngoingStubbing<T> then(Answer<?> answer); method in interface:OngoingStubbing
/external/libvncserver/examples/
H A Dcamera.c58 static struct timeval now={0,0}, then={0,0}; local
64 dthen = then.tv_sec + (then.tv_usec/1000000.0);
68 memcpy((char *)&then, (char *)&now, sizeof(struct timeval));
/external/icu/icu4c/source/test/cintltst/
H A Dcdtdptst.c199 UChar *pattern=NULL, *now=NULL, *then=NULL; local
216 else then=myDateFormat(format, date2);
217 log_verbose("%s\n", austrdup(then) );
374 if(initialState != TRUE) switchedState = TRUE; // if it wasn't the default of TRUE, then flip what we expect
/external/icu/icu4c/source/test/intltest/
H A Dastrotst.cpp150 UDate then = cal->getTime(status); local
151 CalendarAstronomer *myastro = new CalendarAstronomer(then);
H A Ddtfmttst.cpp706 UnicodeString now, then; local
719 if (date2 == 0) then = UnicodeString("Parse stopped at ") + pos.getIndex();
720 else ((DateFormat*)formatter)->format(date2, then);
721 logln(then);
1880 * If expect parse failure, then [i+2] should be NULL.
1962 * then parse string [i+3] and expect date [i+2].
4656 } else if (fields == (UnicodeString) "mixed") { // set 1 field at first but then full override, both(M & d) should be override
/external/libvpx/libvpx/
H A Drate_hist.c77 int64_t then = 0; local
91 then = now;
97 then = hist->pts[i_idx];
98 if (now - then > cfg->rc_buf_sz)
103 if (now == then)
106 avg_bitrate = sum_sz * 8 * 1000 / (now - then);
/external/llvm/examples/Kaleidoscope/Chapter5/
H A Dtoy.cpp69 if (IdentifierStr == "then")
162 /// IfExprAST - Expression class for if/then/else.
167 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
168 : Cond(cond), Then(then), Else(_else) {}
308 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
318 return Error("expected then");
319 getNextToken(); // eat the then
581 // Create blocks for the then and else cases. Insert the 'then' block at the
584 BasicBlock::Create(getGlobalContext(), "then", TheFunctio
[all...]
/external/llvm/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp73 if (IdentifierStr == "then")
181 /// IfExprAST - Expression class for if/then/else.
186 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
187 : Cond(cond), Then(then), Else(_else) {}
339 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
349 return Error("expected then");
350 getNextToken(); // eat the then
689 // Create blocks for the then and else cases. Insert the 'then' block at the
692 BasicBlock::Create(getGlobalContext(), "then", TheFunctio
[all...]
/external/mdnsresponder/mDNSCore/
H A DDNSDigest.c306 * has to be at lest 32 bit wide, if it's wider, then
1435 mDNSs32 then; local
1483 then = (mDNSs32)NToH32(utc48 + sizeof(mDNSu16));
1489 delta = (now > then) ? now - then : then - now;
/external/v8/src/
H A Dscanner.h155 // and then adding that string with AddOneByteSymbol.
170 // and then having the same 'length' bytes following.
532 inline Token::Value Select(uc32 next, Token::Value then, Token::Value else_) { argument
536 return then;
/external/clang/lib/AST/
H A DStmt.cpp883 Stmt *then, SourceLocation EL, Stmt *elsev)
888 SubExprs[THEN] = then;
882 IfStmt(const ASTContext &C, SourceLocation IL, VarDecl *var, Expr *cond, Stmt *then, SourceLocation EL, Stmt *elsev) argument
/external/libpng/contrib/gregbook/
H A Drpng2-x.c569 * that the file is a PNG image), then loop through the file and continue
624 struct timeval now, then; local
627 if (gettimeofday(&then, NULL) == 0) {
628 then.tv_sec += loop_interval;
655 if (now.tv_sec < then.tv_sec ||
656 (now.tv_sec == then.tv_sec && now.tv_usec < then.tv_usec))
659 long seconds_to_go = then.tv_sec - now.tv_sec;
685 if (now.tv_sec >= then.tv_sec)
687 seconds_to_go = then
[all...]
/external/llvm/examples/Kaleidoscope/Chapter7/
H A Dtoy.cpp76 if (IdentifierStr == "then")
187 /// IfExprAST - Expression class for if/then/else.
192 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
193 : Cond(cond), Then(then), Else(_else) {}
359 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
369 return Error("expected then");
370 getNextToken(); // eat the then
794 // Create blocks for the then and else cases. Insert the 'then' block at the
797 BasicBlock::Create(getGlobalContext(), "then", TheFunctio
[all...]
/external/llvm/examples/Kaleidoscope/Chapter8/
H A Dtoy.cpp73 return "then";
146 if (IdentifierStr == "then")
295 /// IfExprAST - Expression class for if/then/else.
300 IfExprAST(SourceLocation Loc, ExprAST *cond, ExprAST *then, ExprAST *_else) argument
301 : ExprAST(Loc), Cond(cond), Then(then), Else(_else) {}
503 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
515 return Error("expected then");
516 getNextToken(); // eat the then
993 // Create blocks for the then and else cases. Insert the 'then' bloc
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dtoy-jit.cpp82 if (IdentifierStr == "then") return tok_then;
180 /// IfExprAST - Expression class for if/then/else.
184 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
185 : Cond(cond), Then(then), Else(_else) {}
337 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
346 return Error("expected then");
347 getNextToken(); // eat the then
749 // Create blocks for the then and else cases. Insert the 'then' block at the
751 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunctio
[all...]
H A Dtoy.cpp89 if (IdentifierStr == "then") return tok_then;
187 /// IfExprAST - Expression class for if/then/else.
191 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
192 : Cond(cond), Then(then), Else(_else) {}
344 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
353 return Error("expected then");
354 getNextToken(); // eat the then
1113 // Create blocks for the then and else cases. Insert the 'then' block at the
1115 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunctio
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dtoy.cpp108 if (IdentifierStr == "then") return tok_then;
206 /// IfExprAST - Expression class for if/then/else.
210 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
211 : Cond(cond), Then(then), Else(_else) {}
363 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
372 return Error("expected then");
373 getNextToken(); // eat the then
1191 // Create blocks for the then and else cases. Insert the 'then' block at the
1193 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunctio
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
H A Dtoy.cpp66 if (IdentifierStr == "then") return tok_then;
164 /// IfExprAST - Expression class for if/then/else.
168 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
169 : Cond(cond), Then(then), Else(_else) {}
321 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
330 return Error("expected then");
331 getNextToken(); // eat the then
971 // Create blocks for the then and else cases. Insert the 'then' block at the
973 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunctio
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dtoy-jit.cpp67 if (IdentifierStr == "then") return tok_then;
165 /// IfExprAST - Expression class for if/then/else.
169 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
170 : Cond(cond), Then(then), Else(_else) {}
322 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
331 return Error("expected then");
332 getNextToken(); // eat the then
731 // Create blocks for the then and else cases. Insert the 'then' block at the
733 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunctio
[all...]
H A Dtoy.cpp68 if (IdentifierStr == "then") return tok_then;
166 /// IfExprAST - Expression class for if/then/else.
170 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
171 : Cond(cond), Then(then), Else(_else) {}
323 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
332 return Error("expected then");
333 getNextToken(); // eat the then
1011 // Create blocks for the then and else cases. Insert the 'then' block at the
1013 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunctio
[all...]

Completed in 577 milliseconds

12