/external/mockito/src/org/mockito/internal/stubbing/answers/ |
D | AnswersValidator.java | 15 public void validate(Answer<?> answer, Invocation invocation) { in validate() argument 17 if (answer instanceof ThrowsException) { in validate() 18 validateException((ThrowsException) answer, methodInfo); in validate() 21 if (answer instanceof Returns) { in validate() 22 validateReturnValue((Returns) answer, methodInfo); in validate() 25 if (answer instanceof DoesNothing) { in validate() 26 validateDoNothing((DoesNothing) answer, methodInfo); in validate() 29 if (answer instanceof CallsRealMethods) { in validate() 30 validateMockingConcreteClass((CallsRealMethods) answer, methodInfo); in validate() 33 if (answer instanceof ReturnsArgumentAt) { in validate() [all …]
|
/external/v8/test/mjsunit/ |
D | mod.js | 30 var answer = 1; 32 if (answer == i) answer = 0; 34 print(j + " % " + i + " = " + answer); 36 assertEquals(answer, m, j + " % " + i); 38 assertEquals(answer, m, j + " % -" + i); 41 assertEquals(-answer, m, j + " % " + i); 43 if (answer == 0) assertEquals(-Infinity, 1/m); 45 assertEquals(-answer, m, j + " % -" + i); 47 if (answer == 0) assertEquals(-Infinity, 1/m); 48 answer++;
|
/external/mdnsresponder/mDNSPosix/ |
D | Identify.c | 107 …llback(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddReco… in NameCallback() argument 113 if (answer->rrtype == kDNSType_PTR || answer->rrtype == kDNSType_CNAME) in NameCallback() 115 ConvertDomainNameToCString(&answer->rdata->u.name, hostname); in NameCallback() 117 mprintf("%##s %s %##s\n", answer->name->c, DNSTypeName(answer->rrtype), answer->rdata->u.name.c); in NameCallback() 121 …llback(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddReco… in InfoCallback() argument 126 if (answer->rrtype == kDNSType_A) in InfoCallback() 131 mprintf("%##s %s %.4a\n", answer->name->c, DNSTypeName(answer->rrtype), &answer->rdata->u.ipv4); in InfoCallback() 133 hostaddr.ip.v4 = answer->rdata->u.ipv4; in InfoCallback() 135 else if (answer->rrtype == kDNSType_AAAA) in InfoCallback() 140 mprintf("%##s %s %.16a\n", answer->name->c, DNSTypeName(answer->rrtype), &answer->rdata->u.ipv6); in InfoCallback() [all …]
|
/external/openssh/openbsd-compat/ |
D | getrrsetbyname.c | 170 struct dns_rr *answer; member 200 u_char answer[ANSWER_BUFFER_SIZE]; in getrrsetbyname() local 238 answer, sizeof(answer)); in getrrsetbyname() 254 response = parse_dns_response(answer, length); in getrrsetbyname() 273 rrset->rri_ttl = response->answer->ttl; in getrrsetbyname() 283 rrset->rri_name = strdup(response->answer->name); in getrrsetbyname() 290 rrset->rri_nrdatas = count_dns_rr(response->answer, rrset->rri_rdclass, in getrrsetbyname() 292 rrset->rri_nsigs = count_dns_rr(response->answer, rrset->rri_rdclass, in getrrsetbyname() 313 for (rr = response->answer, index_ans = 0, index_sig = 0; in getrrsetbyname() 385 parse_dns_response(const u_char *answer, int size) in parse_dns_response() argument [all …]
|
D | getrrsetbyname.c.orig | 168 struct dns_rr *answer; 198 u_char answer[ANSWER_BUFFER_SIZE]; 236 answer, sizeof(answer)); 252 response = parse_dns_response(answer, length); 271 rrset->rri_ttl = response->answer->ttl; 280 /* copy name from answer section */ 281 rrset->rri_name = strdup(response->answer->name); 288 rrset->rri_nrdatas = count_dns_rr(response->answer, rrset->rri_rdclass, 290 rrset->rri_nsigs = count_dns_rr(response->answer, rrset->rri_rdclass, 311 for (rr = response->answer, index_ans = 0, index_sig = 0; [all …]
|
/external/mockito/src/org/mockito/internal/stubbing/ |
D | InvocationContainerImpl.java | 48 public void addAnswer(Answer answer) { in addAnswer() argument 50 addAnswer(answer, false); in addAnswer() 53 public void addConsecutiveAnswer(Answer answer) { in addConsecutiveAnswer() argument 54 addAnswer(answer, true); in addConsecutiveAnswer() 57 public void addAnswer(Answer answer, boolean isConsecutive) { in addAnswer() argument 61 answersValidator.validate(answer, invocation); in addAnswer() 65 stubbed.getFirst().addAnswer(answer); in addAnswer() 67 stubbed.addFirst(new StubbedInvocationMatcher(invocationForStubbing, answer)); in addAnswer() 73 return findAnswerFor(invocation).answer(invocation); in answerTo() 90 public void addAnswerForVoidMethod(Answer answer) { in addAnswerForVoidMethod() argument [all …]
|
D | ConsecutiveStubbing.java | 18 public OngoingStubbing<T> thenAnswer(Answer<?> answer) { in thenAnswer() argument 19 invocationContainerImpl.addConsecutiveAnswer(answer); in thenAnswer() 23 public OngoingStubbing<T> then(Answer<?> answer) { in then() argument 24 return thenAnswer(answer); in then() 27 public DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer) { in toAnswer() argument 28 invocationContainerImpl.addConsecutiveAnswer(answer); in toAnswer()
|
D | OngoingStubbingImpl.java | 23 public OngoingStubbing<T> thenAnswer(Answer<?> answer) { in thenAnswer() argument 28 invocationContainerImpl.addAnswer(answer); in thenAnswer() 32 public OngoingStubbing<T> then(Answer<?> answer) { in then() argument 33 return thenAnswer(answer); in then() 36 public DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer) { in toAnswer() argument 37 invocationContainerImpl.addAnswer(answer); in toAnswer()
|
D | StubbedInvocationMatcher.java | 23 public StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer) { in StubbedInvocationMatcher() argument 25 this.answers.add(answer); in StubbedInvocationMatcher() 28 public Object answer(InvocationOnMock invocation) throws Throwable { in answer() method in StubbedInvocationMatcher 34 return a.answer(invocation); in answer() 37 public void addAnswer(Answer answer) { in addAnswer() argument 38 answers.add(answer); in addAnswer()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | SortedListsTest.java | 37 void assertModelAgrees(List<Integer> list, Integer key, int answer, in assertModelAgrees() argument 42 assertEquals(list.indexOf(key), answer); in assertModelAgrees() local 48 assertEquals(list.lastIndexOf(key), answer); in assertModelAgrees() local 54 assertEquals(key, list.get(answer)); in assertModelAgrees() 60 assertEquals(list.lastIndexOf(key) + 1, answer); in assertModelAgrees() local 66 assertEquals(list.indexOf(key) - 1, answer); in assertModelAgrees() local 80 assertEquals(nextHigherIndex - 1, answer); in assertModelAgrees() 83 assertEquals(nextHigherIndex, answer); in assertModelAgrees() 86 assertEquals(-1 - nextHigherIndex, answer); in assertModelAgrees()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | SortedListsTest.java | 39 void assertModelAgrees(List<Integer> list, Integer key, int answer, in assertModelAgrees() argument 44 assertEquals(list.indexOf(key), answer); in assertModelAgrees() local 50 assertEquals(list.lastIndexOf(key), answer); in assertModelAgrees() local 56 assertEquals(key, list.get(answer)); in assertModelAgrees() 62 assertEquals(list.lastIndexOf(key) + 1, answer); in assertModelAgrees() local 68 assertEquals(list.indexOf(key) - 1, answer); in assertModelAgrees() local 82 assertEquals(nextHigherIndex - 1, answer); in assertModelAgrees() 85 assertEquals(nextHigherIndex, answer); in assertModelAgrees() 88 assertEquals(-1 - nextHigherIndex, answer); in assertModelAgrees()
|
/external/mockito/src/org/mockito/ |
D | BDDMockito.java | 70 BDDMyOngoingStubbing<T> willAnswer(Answer<?> answer); in willAnswer() argument 76 BDDMyOngoingStubbing<T> will(Answer<?> answer); in will() argument 126 public BDDMyOngoingStubbing<T> willAnswer(Answer<?> answer) { in willAnswer() argument 127 return new BDDOngoingStubbingImpl<T>(mockitoOngoingStubbing.thenAnswer(answer)); in willAnswer() 133 public BDDMyOngoingStubbing<T> will(Answer<?> answer) { in will() argument 134 return new BDDOngoingStubbingImpl<T>(mockitoOngoingStubbing.then(answer)); in will() 190 BDDStubber willAnswer(Answer answer); in willAnswer() argument 247 public BDDStubber willAnswer(Answer answer) { in willAnswer() argument 248 return new BDDStubberImpl(mockitoStubber.doAnswer(answer)); in willAnswer() 307 public static BDDStubber willAnswer(Answer answer) { in willAnswer() argument [all …]
|
/external/ppp/pppd/plugins/pppoatm/ |
D | ans.c | 43 unsigned char answer[MAX_ANSWER]; in ans() local 50 if ((answer_len = res_search(text,C_IN,wanted,answer,MAX_ANSWER)) < 0) in ans() 56 pos = answer+12; in ans() 57 if (answer[3] & 15) return TRY_OTHER; /* rcode != 0 */ in ans() 58 questions = GET16(answer+4); in ans() 60 answers = GET16(answer+6); in ans() 65 if ((name_len = dn_expand(answer,answer+answer_len,pos,name,MAX_NAME)) < 0) in ans() 80 if ((name_len = dn_expand(answer,answer+answer_len,pos,name,MAX_NAME)) in ans() 113 if (dn_expand(answer,answer+answer_len,data,result, in ans()
|
/external/easymock/src/org/easymock/internal/ |
D | Result.java | 41 public Object answer() throws Throwable { in createThrowResult() method in Result.ThrowingAnswer 58 public Object answer() throws Throwable { in createReturnResult() method in Result.ReturningAnswer 75 public Object answer() throws Throwable { in createDelegatingResult() method in Result.DelegatingAnswer 98 public static Result createAnswerResult(IAnswer<?> answer) { in createAnswerResult() argument 99 return new Result(answer, false); in createAnswerResult() 102 public Object answer() throws Throwable { in answer() method in Result 103 return value.answer(); in answer()
|
D | IMocksControlState.java | 30 void andAnswer(IAnswer<?> answer); in andAnswer() argument 32 void andDelegateTo(Object answer); in andDelegateTo() argument 38 void andStubAnswer(IAnswer<?> answer); in andStubAnswer() argument
|
D | ReplayState.java | 59 return result.answer(); in invokeInner() 103 public void andAnswer(IAnswer<?> answer) { in andAnswer() argument 107 public void andDelegateTo(Object answer) { in andDelegateTo() argument 119 public void andStubAnswer(IAnswer<?> answer) { in andStubAnswer() argument
|
/external/libnl/src/lib/ |
D | utils.c | 116 int answer; in nl_cli_confirm() local 124 answer = tolower(getchar()); in nl_cli_confirm() 125 if (answer == '\n') in nl_cli_confirm() 126 answer = default_yes ? 'y' : 'n'; in nl_cli_confirm() 127 } while (answer != 'y' && answer != 'n'); in nl_cli_confirm() 129 return answer == 'y'; in nl_cli_confirm()
|
/external/mdnsresponder/mDNSShared/ |
D | dnssd_clientshim.c | 369 …stance(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddReco… in FoundInstance() argument 380 if (answer->rrtype != kDNSType_PTR) in FoundInstance() 381 …{ LogMsg("FoundInstance: Should not be called with rrtype %d (not a PTR record)", answer->rrtype);… in FoundInstance() 383 if (!DeconstructServiceName(&answer->rdata->u.name, &name, &type, &domain)) in FoundInstance() 386 answer->name->c, answer->rdata->u.name.c); in FoundInstance() 455 …ceInfo(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddReco… in FoundServiceInfo() argument 461 if (answer->rrtype == kDNSType_SRV && x->SRV == answer) x->SRV = mDNSNULL; in FoundServiceInfo() 462 if (answer->rrtype == kDNSType_TXT && x->TXT == answer) x->TXT = mDNSNULL; in FoundServiceInfo() 466 if (answer->rrtype == kDNSType_SRV) x->SRV = answer; in FoundServiceInfo() 467 if (answer->rrtype == kDNSType_TXT) x->TXT = answer; in FoundServiceInfo() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | getcertsbyname.c | 208 unsigned char *answer = NULL, *p; local 229 p = realloc(answer, buflen); 237 answer = p; 239 anslen = res_query(name, C_IN, T_CERT, answer, buflen); 250 eom = answer + anslen; 252 hp = (HEADER *)answer; 265 len = dn_expand(answer, eom, cp, hostbuf, sizeof(hostbuf)); 278 len = dn_expand(answer, eom, cp, hostbuf, sizeof(hostbuf)); 336 if (answer) 337 free(answer);
|
/external/v8/src/ |
D | snapshot-source-sink.cc | 27 int32_t answer = data_[position_]; in GetUnalignedInt() local 28 answer |= data_[position_ + 1] << 8; in GetUnalignedInt() 29 answer |= data_[position_ + 2] << 16; in GetUnalignedInt() 30 answer |= data_[position_ + 3] << 24; in GetUnalignedInt() 31 return answer; in GetUnalignedInt()
|
D | snapshot-source-sink.h | 41 uint32_t answer = GetUnalignedInt(); in GetInt() local 42 int bytes = answer & 3; in GetInt() 46 answer &= mask; in GetInt() 47 answer >>= 2; in GetInt() 48 return answer; in GetInt()
|
/external/lzma/CPP/7zip/UI/Console/ |
D | ExtractCallbackConsole.cpp | 65 Int32 *answer) in AskOverwrite() argument 76 case NUserAnswerMode::kNo: *answer = NOverwriteAnswer::kNo; break; in AskOverwrite() 77 case NUserAnswerMode::kNoAll: *answer = NOverwriteAnswer::kNoToAll; break; in AskOverwrite() 78 case NUserAnswerMode::kYesAll: *answer = NOverwriteAnswer::kYesToAll; break; in AskOverwrite() 79 case NUserAnswerMode::kYes: *answer = NOverwriteAnswer::kYes; break; in AskOverwrite() 80 case NUserAnswerMode::kAutoRenameAll: *answer = NOverwriteAnswer::kAutoRename; break; in AskOverwrite()
|
/external/jmdns/src/javax/jmdns/impl/ |
D | DNSMessage.java | 232 for (DNSRecord answer : _answers) { in print() 234 buf.append(answer); in print() 237 for (DNSRecord answer : _authoritativeAnswers) { in print() 239 buf.append(answer); in print() 242 for (DNSRecord answer : _additionals) { in print() 244 buf.append(answer); in print()
|
/external/jmdns/src/javax/jmdns/impl/tasks/state/ |
D | Canceler.java | 104 …for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())… in buildOutgoingForDNS() 105 newOut = this.addAnswer(newOut, null, answer); in buildOutgoingForDNS() 117 …for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalH… in buildOutgoingForInfo() 118 newOut = this.addAnswer(newOut, null, answer); in buildOutgoingForInfo()
|
D | Announcer.java | 104 …for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())… in buildOutgoingForDNS() 105 newOut = this.addAnswer(newOut, null, answer); in buildOutgoingForDNS() 117 …for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalH… in buildOutgoingForInfo() 118 newOut = this.addAnswer(newOut, null, answer); in buildOutgoingForInfo()
|