/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/webrtc/talk/session/media/ |
D | srtpfilter_unittest.cc | 155 std::vector<CryptoParams> answer(MakeVector(kTestCryptoParams2)); in TEST_F() local 159 answer[0].tag = 2; in TEST_F() 160 answer[0].cipher_suite = CS_AES_CM_128_HMAC_SHA1_32; in TEST_F() 163 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE)); in TEST_F() 169 std::vector<CryptoParams> offer, answer; in TEST_F() local 171 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE)); in TEST_F() 177 std::vector<CryptoParams> answer; in TEST_F() local 179 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE)); in TEST_F() 186 std::vector<CryptoParams> answer(MakeVector(kTestCryptoParams2)); in TEST_F() local 187 EXPECT_FALSE(f1_.SetAnswer(answer, CS_LOCAL)); in TEST_F() [all …]
|
D | mediasession_unittest.cc | 451 rtc::scoped_ptr<SessionDescription> answer( in TestMediaDirectionInAnswer() local 454 GetFirstAudioContentDescription(answer.get()); in TestMediaDirectionInAnswer() 457 GetFirstVideoContentDescription(answer.get()); in TestMediaDirectionInAnswer() 583 rtc::scoped_ptr<SessionDescription> answer( in TEST_F() local 592 updated_opts, answer.get())); in TEST_F() 773 rtc::scoped_ptr<SessionDescription> answer( in TEST_F() local 775 const ContentInfo* ac = answer->GetContentByName("audio"); in TEST_F() 776 const ContentInfo* vc = answer->GetContentByName("video"); in TEST_F() 799 rtc::scoped_ptr<SessionDescription> answer( in TEST_F() local 801 const ContentInfo* ac = answer->GetContentByName("audio"); in TEST_F() [all …]
|
D | mediasession.cc | 1036 MediaContentDescriptionImpl<C>* answer) { in CreateMediaContentAnswer() argument 1039 answer->AddCodecs(negotiated_codecs); in CreateMediaContentAnswer() 1040 answer->SortCodecs(); in CreateMediaContentAnswer() 1041 answer->set_protocol(offer->protocol()); in CreateMediaContentAnswer() 1046 answer->set_rtp_header_extensions(negotiated_rtp_extensions); in CreateMediaContentAnswer() 1048 answer->set_rtcp_mux(options.rtcp_mux_enabled && offer->rtcp_mux()); in CreateMediaContentAnswer() 1061 answer->AddCrypto(crypto); in CreateMediaContentAnswer() 1065 if (answer->cryptos().empty() && in CreateMediaContentAnswer() 1071 answer->type(), options.streams, current_streams, in CreateMediaContentAnswer() 1072 answer, add_legacy_stream)) { in CreateMediaContentAnswer() [all …]
|
/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/webrtc/talk/app/webrtc/ |
D | webrtcsession_unittest.cc | 744 const webrtc::SessionDescriptionInterface* answer = CreateAnswer(NULL); in VerifyAnswerFromNonCryptoOffer() local 746 ASSERT_TRUE(answer == NULL); in VerifyAnswerFromNonCryptoOffer() 758 scoped_ptr<SessionDescriptionInterface> answer(CreateAnswer(NULL)); in VerifyAnswerFromCryptoOffer() local 759 ASSERT_TRUE(answer.get() != NULL); in VerifyAnswerFromCryptoOffer() 760 VerifyCryptoParams(answer->description()); in VerifyAnswerFromCryptoOffer() 873 SessionDescriptionInterface* answer = CreateAnswer(NULL); in CreateAndSetRemoteOfferAndLocalAnswer() local 874 SetLocalDescriptionWithoutError(answer); in CreateAndSetRemoteOfferAndLocalAnswer() 1059 JsepSessionDescription* answer( in CreateRemoteAnswer() local 1061 if (!answer->Initialize(desc_factory_->CreateAnswer(offer->description(), in CreateRemoteAnswer() 1064 delete answer; in CreateRemoteAnswer() [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/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/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/v8/src/snapshot/ |
D | snapshot-source-sink.h | 47 uint32_t answer = data_[position_]; in GetInt() local 48 answer |= data_[position_ + 1] << 8; in GetInt() 49 answer |= data_[position_ + 2] << 16; in GetInt() 50 answer |= data_[position_ + 3] << 24; in GetInt() 51 int bytes = (answer & 3) + 1; in GetInt() 55 answer &= mask; in GetInt() 56 answer >>= 2; in GetInt() 57 return answer; in GetInt()
|
/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/libchrome/sandbox/win/src/ |
D | crosscall_client.h | 318 CrossCallReturn* answer) { in CrossCall() argument 322 ResultCode result = ipc_provider.DoCall(call_params, answer); in CrossCall() 338 CrossCallReturn* answer) { in CrossCall() argument 343 ResultCode result = ipc_provider.DoCall(call_params, answer); in CrossCall() 360 CrossCallReturn* answer) { in CrossCall() argument 366 ResultCode result = ipc_provider.DoCall(call_params, answer); in CrossCall() 389 CrossCallReturn* answer) { in CrossCall() argument 396 ResultCode result = ipc_provider.DoCall(call_params, answer); in CrossCall() 422 CrossCallReturn* answer) { in CrossCall() argument 430 ResultCode result = ipc_provider.DoCall(call_params, answer); in CrossCall() [all …]
|
/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/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/v8/tools/ |
D | try_perf.py | 75 answer = sys.stdin.readline().strip() 76 if answer != "" and answer != "Y" and answer != "y":
|