Home
last modified time | relevance | path

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

12345

/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStubberImpl.java9 import static org.mockito.internal.stubbing.answers.DoesNothing.doesNothing;
14 import org.mockito.internal.stubbing.answers.CallsRealMethods;
15 import org.mockito.internal.stubbing.answers.Returns;
16 import org.mockito.internal.stubbing.answers.ThrowsException;
17 import org.mockito.internal.stubbing.answers.ThrowsExceptionClass;
25 private final List<Answer<?>> answers = new LinkedList<Answer<?>>(); field in StubberImpl
37 MockUtil.getMockHandler(mock).setAnswersForStubbing(answers); in when()
53 answers.add(new Returns(null)); in doReturnValues()
57 answers.add(new Returns(r)); in doReturnValues()
65 answers.add(new ThrowsException(null)); in doThrow()
[all …]
DStubbedInvocationMatcher.java21 private final Queue<Answer> answers = new ConcurrentLinkedQueue<Answer>(); field in StubbedInvocationMatcher
26 this.answers.add(answer); in StubbedInvocationMatcher()
32 synchronized(answers) { in answer()
33 a = answers.size() == 1 ? answers.peek() : answers.poll(); in answer()
39 answers.add(answer); in addAnswer()
52 return super.toString() + " stubbed with: " + answers; in toString()
DBaseStubbing.java7 import org.mockito.internal.stubbing.answers.CallsRealMethods;
8 import org.mockito.internal.stubbing.answers.Returns;
9 import org.mockito.internal.stubbing.answers.ThrowsException;
10 import org.mockito.internal.stubbing.answers.ThrowsExceptionClass;
DInvocationContainerImpl.java97 public void setAnswersForStubbing(List<Answer<?>> answers) { in setAnswersForStubbing() argument
98 answersForStubbing.addAll(answers); in setAnswersForStubbing()
/external/jmdns/src/javax/jmdns/impl/
DDNSQuestion.java36 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { in addAnswers() argument
39 answers.add(answer); in addAnswers()
60 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { in addAnswers() argument
63 answers.add(answer); in addAnswers()
93 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { in addAnswers() argument
96 this.addAnswersForServiceInfo(jmDNSImpl, answers, (ServiceInfoImpl) serviceInfo); in addAnswers()
101answers.add(new DNSRecord.Pointer("_services._dns-sd._udp.local.", DNSRecordClass.CLASS_IN, DNSRec… in addAnswers()
110answers.add(jmDNSImpl.getLocalHost().getDNSReverseAddressRecord(DNSRecordType.TYPE_A, DNSRecordCla… in addAnswers()
113answers.add(jmDNSImpl.getLocalHost().getDNSReverseAddressRecord(DNSRecordType.TYPE_AAAA, DNSRecord… in addAnswers()
133 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { in addAnswers() argument
[all …]
/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/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.cpp420 bool answers[kNumRRects][8][kNumSteps] = { in test_round_rect_contains_rect() local
485 test_direction(reporter, rrects[i], 0, 1, 0, 1, kNumSteps, answers[i][0]); // NW in test_round_rect_contains_rect()
486 test_direction(reporter, rrects[i], 19.5f, 0, 0, 1, kNumSteps, answers[i][1]); // N in test_round_rect_contains_rect()
487 test_direction(reporter, rrects[i], 40, -1, 0, 1, kNumSteps, answers[i][2]); // NE in test_round_rect_contains_rect()
488 test_direction(reporter, rrects[i], 40, -1, 19.5f, 0, kNumSteps, answers[i][3]); // E in test_round_rect_contains_rect()
489 test_direction(reporter, rrects[i], 40, -1, 40, -1, kNumSteps, answers[i][4]); // SE in test_round_rect_contains_rect()
490 test_direction(reporter, rrects[i], 19.5f, 0, 40, -1, kNumSteps, answers[i][5]); // S in test_round_rect_contains_rect()
491 test_direction(reporter, rrects[i], 0, 1, 40, -1, kNumSteps, answers[i][6]); // SW in test_round_rect_contains_rect()
492 test_direction(reporter, rrects[i], 0, 1, 19.5f, 0, kNumSteps, answers[i][7]); // W in test_round_rect_contains_rect()
/external/jmdns/src/javax/jmdns/impl/tasks/
DResponder.java101 Set<DNSRecord> answers = new HashSet<DNSRecord>(); in run() local
116 question.addAnswers(this.getDns(), answers); in run() local
123 answers.remove(knownAnswer); in run()
131 if (!answers.isEmpty()) { in run()
142 for (DNSRecord answer : answers) { in run()
/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/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/mockito/src/main/java/org/mockito/internal/handler/
DMockHandlerImpl.java17 import org.mockito.internal.stubbing.answers.DefaultAnswerValidator;
114 public void setAnswersForStubbing(List<Answer<?>> answers) { in setAnswersForStubbing() argument
115 invocationContainerImpl.setAnswersForStubbing(answers); in setAnswersForStubbing()
DNullResultGuardian.java47 public void setAnswersForStubbing(List<Answer<?>> answers) { in setAnswersForStubbing() argument
48 delegate.setAnswersForStubbing(answers); in setAnswersForStubbing()
DInvocationNotifierHandler.java70 public void setAnswersForStubbing(List<Answer<?>> answers) { in setAnswersForStubbing() argument
71 mockHandler.setAnswersForStubbing(answers); in setAnswersForStubbing()
/external/mockito/src/test/java/org/mockito/internal/junit/
DUnusedStubbingsTest.java6 import org.mockito.internal.stubbing.answers.DoesNothing;
14 import static org.mockito.internal.stubbing.answers.DoesNothing.doesNothing;
/external/mockito/src/main/java/org/mockito/
DAdditionalAnswers.java8 import org.mockito.internal.stubbing.answers.ReturnsArgumentAt;
9 import org.mockito.internal.stubbing.answers.ReturnsElementsOf;
23 import static org.mockito.internal.stubbing.answers.AnswerFunctionalInterfaces.toAnswer;
/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/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/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.,
/external/jmdns/src/javax/jmdns/impl/tasks/state/
DCanceler.java104 …for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())… in buildOutgoingForDNS()
117 …for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalH… in buildOutgoingForInfo()
DAnnouncer.java104 …for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())… in buildOutgoingForDNS()
117 …for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalH… in buildOutgoingForInfo()
DRenewer.java105 …for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())… in buildOutgoingForDNS()
118 …for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalH… in buildOutgoingForInfo()
/external/chromium-trace/catapult/telemetry/third_party/web-page-replay/
Ddnsproxy.py77 answers = self.resolver.query(hostname, rdtype)
88 if answers:
89 ip = str(answers[0])
/external/mockito/src/test/java/org/mockito/internal/stubbing/
DInvocationContainerImplStubbingTest.java17 import org.mockito.internal.stubbing.answers.Returns;
18 import org.mockito.internal.stubbing.answers.ThrowsException;
/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
Dpackage-info.java9 package org.mockito.internal.stubbing.answers;

12345