/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
D | StubberImpl.java | 7 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 …]
|
D | DoAnswerStyleStubbing.java | 19 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()
|
D | StubbedInvocationMatcher.java | 23 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()
|
D | BaseStubbing.java | 11 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/ |
D | zeroconf.py | 146 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/ |
D | pptp.uts | 91 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 …]
|
D | bluetooth.uts | 82 assert b.answers(a) 83 assert not a.answers(b) 87 assert b.answers(a) 88 assert not a.answers(b)
|
/external/skia/tests/ |
D | PathOpsLineParametetersTest.cpp | 25 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()
|
D | RoundRectTest.cpp | 437 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/ |
D | PathOpsLineParametetersTest.cpp | 25 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()
|
D | RoundRectTest.cpp | 437 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/ |
D | pptp.py | 129 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
|
D | dot11.py | 84 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
|
D | l2.py | 156 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
|
D | ppp.py | 512 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
|
D | inet6.py | 499 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/ |
D | AdditionalAnswers.java | 9 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/ |
D | README.TXT | 10 …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/ |
D | ans.c | 47 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/ |
D | test_register.py | 44 def __init__(self, *answers): argument 45 self.answers = answers 50 return self.answers[self.index]
|
/external/grpc-grpc/test/cpp/naming/utils/ |
D | dns_resolver.py | 38 answers, authority, additional = result 39 for a in answers:
|
/external/icu/icu4c/source/samples/msgfmt/ |
D | README.TXT | 10 …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/ |
D | test_register.py | 44 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/ |
D | DoesNothingTest.java | 5 package org.mockito.internal.stubbing.answers; 9 import static org.mockito.internal.stubbing.answers.DoesNothing.doesNothing;
|
/external/icu/icu4c/source/samples/datefmt/ |
D | README.TXT | 9 …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.,
|