Home
last modified time | relevance | path

Searched refs:answers (Results 1 – 25 of 199) sorted by relevance

12345678

/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStubberImpl.java7 import org.mockito.internal.stubbing.answers.CallsRealMethods;
8 import org.mockito.internal.stubbing.answers.Returns;
9 import org.mockito.internal.stubbing.answers.ThrowsException;
22 import static org.mockito.internal.stubbing.answers.DoesNothing.doesNothing;
34 private final List<Answer<?>> answers = new LinkedList<Answer<?>>(); field in StubberImpl
46 MockUtil.getInvocationContainer(mock).setAnswersForStubbing(answers, strictness); in when()
63 answers.add(new Returns(null)); in doReturnValues()
67 answers.add(new Returns(r)); in doReturnValues()
75 answers.add(new ThrowsException(null)); in doThrow()
79 answers.add(new ThrowsException(throwable)); in doThrow()
[all …]
DDoAnswerStyleStubbing.java19 private final List<Answer<?>> answers = new ArrayList<Answer<?>>(); field in DoAnswerStyleStubbing
22 void setAnswers(List<Answer<?>> answers, Strictness stubbingStrictness) { in setAnswers() argument
24 this.answers.addAll(answers); in setAnswers()
28 return answers.isEmpty(); in isSet()
32 answers.clear(); in clear()
37 return answers; in getAnswers()
DStubbedInvocationMatcher.java23 private final Queue<Answer> answers = new ConcurrentLinkedQueue<Answer>(); field in StubbedInvocationMatcher
30 this.answers.add(answer); in StubbedInvocationMatcher()
36 synchronized(answers) { in answer()
37 a = answers.size() == 1 ? answers.peek() : answers.poll(); in answer()
43 answers.add(answer); in addAnswer()
56 return super.toString() + " stubbed with: " + answers; in toString()
DBaseStubbing.java11 import org.mockito.internal.stubbing.answers.CallsRealMethods;
12 import org.mockito.internal.stubbing.answers.Returns;
13 import org.mockito.internal.stubbing.answers.ThrowsException;
/external/autotest/client/cros/netprotos/
Dzeroconf.py146 answers = []
149 answers += QUERY_HANDLERS[q.type](q)
153 answers += handler(q)
155 answers = [ans for ans in answers if not any(True
158 self._send_answers(answers)
161 answers = mdns.ns
165 answers.extend(mdns.an)
167 if answers:
170 for rr in answers: # Answers RRs
208 def _send_answers(self, answers): argument
[all …]
/external/scapy/test/
Dpptp.uts91 assert lcp_echo_reply_pkt.answers(lcp_echo_request_pkt)
92 assert not lcp_echo_request_pkt.answers(lcp_echo_reply_pkt)
97 assert not lcp_echo_non_reply_pkt.answers(lcp_echo_request_pkt)
102 assert not lcp_echo_non_reply_pkt.answers(lcp_echo_request_pkt)
141 assert conf_ack_pkt.answers(conf_req_pkt)
142 assert not conf_req_pkt.answers(conf_ack_pkt)
166 assert conf_nak_pkt.answers(conf_req_pkt)
167 assert not conf_req_pkt.answers(conf_nak_pkt)
191 assert conf_reject_pkt.answers(conf_req_pkt)
192 assert not conf_req_pkt.answers(conf_reject_pkt)
[all …]
Dbluetooth.uts82 assert b.answers(a)
83 assert not a.answers(b)
87 assert b.answers(a)
88 assert not a.answers(b)
/external/skia/tests/
DPathOpsLineParametetersTest.cpp25 static const double answers[][2] = { variable
56 double answersSq = answers[index][inner]; in DEF_TEST()
64 denormalizedDistance[inner], answers[index][inner], in DEF_TEST()
72 if (AlmostEqualUlps(fabs(normalizedDistance[inner]), answers[index][inner])) { in DEF_TEST()
77 normalizedDistance[inner], answers[index][inner]); in DEF_TEST()
DRoundRectTest.cpp437 bool answers[kNumRRects][8][kNumSteps] = { in test_round_rect_contains_rect() local
502 test_direction(reporter, rrects[i], 0, 1, 0, 1, kNumSteps, answers[i][0]); // NW in test_round_rect_contains_rect()
503 test_direction(reporter, rrects[i], 19.5f, 0, 0, 1, kNumSteps, answers[i][1]); // N in test_round_rect_contains_rect()
504 test_direction(reporter, rrects[i], 40, -1, 0, 1, kNumSteps, answers[i][2]); // NE in test_round_rect_contains_rect()
505 test_direction(reporter, rrects[i], 40, -1, 19.5f, 0, kNumSteps, answers[i][3]); // E in test_round_rect_contains_rect()
506 test_direction(reporter, rrects[i], 40, -1, 40, -1, kNumSteps, answers[i][4]); // SE in test_round_rect_contains_rect()
507 test_direction(reporter, rrects[i], 19.5f, 0, 40, -1, kNumSteps, answers[i][5]); // S in test_round_rect_contains_rect()
508 test_direction(reporter, rrects[i], 0, 1, 40, -1, kNumSteps, answers[i][6]); // SW in test_round_rect_contains_rect()
509 test_direction(reporter, rrects[i], 0, 1, 19.5f, 0, kNumSteps, answers[i][7]); // W in test_round_rect_contains_rect()
/external/skqp/tests/
DPathOpsLineParametetersTest.cpp25 static const double answers[][2] = { variable
56 double answersSq = answers[index][inner]; in DEF_TEST()
64 denormalizedDistance[inner], answers[index][inner], in DEF_TEST()
72 if (AlmostEqualUlps(fabs(normalizedDistance[inner]), answers[index][inner])) { in DEF_TEST()
77 normalizedDistance[inner], answers[index][inner]); in DEF_TEST()
DRoundRectTest.cpp437 bool answers[kNumRRects][8][kNumSteps] = { in test_round_rect_contains_rect() local
502 test_direction(reporter, rrects[i], 0, 1, 0, 1, kNumSteps, answers[i][0]); // NW in test_round_rect_contains_rect()
503 test_direction(reporter, rrects[i], 19.5f, 0, 0, 1, kNumSteps, answers[i][1]); // N in test_round_rect_contains_rect()
504 test_direction(reporter, rrects[i], 40, -1, 0, 1, kNumSteps, answers[i][2]); // NE in test_round_rect_contains_rect()
505 test_direction(reporter, rrects[i], 40, -1, 19.5f, 0, kNumSteps, answers[i][3]); // E in test_round_rect_contains_rect()
506 test_direction(reporter, rrects[i], 40, -1, 40, -1, kNumSteps, answers[i][4]); // SE in test_round_rect_contains_rect()
507 test_direction(reporter, rrects[i], 19.5f, 0, 40, -1, kNumSteps, answers[i][5]); // S in test_round_rect_contains_rect()
508 test_direction(reporter, rrects[i], 0, 1, 40, -1, kNumSteps, answers[i][6]); // SW in test_round_rect_contains_rect()
509 test_direction(reporter, rrects[i], 0, 1, 19.5f, 0, kNumSteps, answers[i][7]); // W in test_round_rect_contains_rect()
/external/scapy/scapy/layers/
Dpptp.py129 def answers(self, other): member in PPTPStartControlConnectionReply
166 def answers(self, other): member in PPTPStopControlConnectionReply
195 def answers(self, other): member in PPTPEchoReply
253 def answers(self, other): member in PPTPOutgoingCallReply
290 def answers(self, other): member in PPTPIncomingCallReply
308 def answers(self, other): member in PPTPIncomingCallConnected
Ddot11.py84 def answers(self, other): member in PrismHeader
86 return self.payload.answers(other.payload)
88 return self.payload.answers(other)
148 def answers(self, other): member in Dot11
156 return self.payload.answers(other.payload)
160 return self.payload.answers(other.payload)
275 def answers(self, other): member in Dot11Auth
Dl2.py156 def answers(self, other): member in Ether
159 return self.payload.answers(other.payload)
179 def answers(self, other): member in Dot3
181 return self.payload.answers(other.payload)
236 def answers(self, other): member in Dot1Q
240 return self.payload.answers(other.payload)
242 return self.payload.answers(other)
292 def answers(self, other): member in ARP
Dppp.py512 def answers(self, other): member in PPP_LCP_Configure
519 def answers(self, other): member in PPP_LCP_Terminate
549 def answers(self, other): member in PPP_LCP_Echo
620 def answers(self, other): member in PPP_PAP_Response
646 def answers(self, other): member in PPP_CHAP
683 def answers(self, other): member in PPP_CHAP_ChallengeResponse
Dinet6.py499 def answers(self, other): member in IPv6
502 return self.payload.answers(other)
504 return self.answers(other.payload)
506 return self.answers(other.payload)
522 return self.payload.answers(other.payload)
525 return self.payload.answers(other.payload)
536 return self.payload.payload.answers(other)
538 return self.payload.answers(other.payload.payload)
540 return self.payload.answers(other.payload.payload)
542 … return self.payload.answers(other.payload.payload) # Buggy if self.payload is a IPv6ExtHdrRouting
[all …]
/external/mockito/src/main/java/org/mockito/
DAdditionalAnswers.java9 import org.mockito.internal.stubbing.answers.AnswersWithDelay;
10 import org.mockito.internal.stubbing.answers.ReturnsArgumentAt;
11 import org.mockito.internal.stubbing.answers.ReturnsElementsOf;
25 import static org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces.toAnswer;
/external/icu/icu4c/source/samples/translit/
DREADME.TXT10 …on file is the answer to the exercises, each step can still be found in the 'answers' subdirectory.
102 The exercise includes answers. These are in the "answers" directory,
104 needs to create are included in the answers directory.
107 answers file into the main directory in order to proceed. E.g.,
/external/ppp/pppd/plugins/pppoatm/
Dans.c47 int questions,answers; in ans() local
60 answers = GET16(answer+6); in ans()
61 if (answers < 1) return TRY_OTHER; in ans()
75 while (answers--) { in ans()
/external/python/cpython2/Lib/distutils/tests/
Dtest_register.py44 def __init__(self, *answers): argument
45 self.answers = answers
50 return self.answers[self.index]
/external/grpc-grpc/test/cpp/naming/utils/
Ddns_resolver.py38 answers, authority, additional = result
39 for a in answers:
/external/icu/icu4c/source/samples/msgfmt/
DREADME.TXT10 …on file is the answer to the exercises, each step can still be found in the 'answers' subdirectory.
90 The exercise includes answers. These are in the "answers" directory,
94 answers file into the main directory in order to proceed. E.g.,
/external/python/cpython3/Lib/distutils/tests/
Dtest_register.py44 def __init__(self, *answers): argument
45 self.answers = answers
50 return self.answers[self.index]
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
DDoesNothingTest.java5 package org.mockito.internal.stubbing.answers;
9 import static org.mockito.internal.stubbing.answers.DoesNothing.doesNothing;
/external/icu/icu4c/source/samples/datefmt/
DREADME.TXT9 …on file is the answer to the exercises, each step can still be found in the 'answers' subdirectory.
98 The exercise includes answers. These are in the "answers" directory,
102 answers file into the main directory in order to proceed. E.g.,

12345678