/external/openscreen/cast/streaming/ |
D | capture_recommendations_unittest.cc | 88 Answer answer; in TEST() local 89 answer.display = kEmptyDescription; in TEST() 90 EXPECT_EQ(kDefaultRecommendations, GetRecommendations(answer)); in TEST() 97 Answer answer; in TEST() local 98 answer.display = kValidOnlyResolution; in TEST() 99 EXPECT_EQ(expected, GetRecommendations(answer)); in TEST() 106 Answer answer; in TEST() local 107 answer.display = kValidOnlyAspectRatio; in TEST() 109 EXPECT_EQ(expected, GetRecommendations(answer)); in TEST() 116 Answer answer; in TEST() local [all …]
|
D | answer_messages_unittest.cc | 125 void ExpectEqualsValidAnswerJson(const Answer& answer) { in ExpectEqualsValidAnswerJson() argument 126 EXPECT_EQ(1234, answer.udp_port); in ExpectEqualsValidAnswerJson() 128 EXPECT_THAT(answer.send_indexes, ElementsAre(1, 3)); in ExpectEqualsValidAnswerJson() 129 EXPECT_THAT(answer.ssrcs, ElementsAre(1233324u, 2234222u)); in ExpectEqualsValidAnswerJson() 130 ASSERT_TRUE(answer.constraints.has_value()); in ExpectEqualsValidAnswerJson() 131 const AudioConstraints& audio = answer.constraints->audio; in ExpectEqualsValidAnswerJson() 138 const VideoConstraints& video = answer.constraints->video; in ExpectEqualsValidAnswerJson() 151 ASSERT_TRUE(answer.display.has_value()); in ExpectEqualsValidAnswerJson() 152 const DisplayDescription& display = answer.display.value(); in ExpectEqualsValidAnswerJson() 161 EXPECT_THAT(answer.receiver_rtcp_event_log, ElementsAre(0, 1)); in ExpectEqualsValidAnswerJson() [all …]
|
/external/mockito/src/test/java/org/mockito/internal/stubbing/defaultanswers/ |
D | ReturnsSmartNullsTest.java | 21 Answer<Object> answer = new ReturnsSmartNulls(); in should_return_the_usual_default_values_for_primitives() local 22 … assertEquals(false , answer.answer(invocationOf(HasPrimitiveMethods.class, "booleanMethod"))); in should_return_the_usual_default_values_for_primitives() 23 … assertEquals((char) 0, answer.answer(invocationOf(HasPrimitiveMethods.class, "charMethod"))); in should_return_the_usual_default_values_for_primitives() 24 … assertEquals((byte) 0, answer.answer(invocationOf(HasPrimitiveMethods.class, "byteMethod"))); in should_return_the_usual_default_values_for_primitives() 25 … assertEquals((short) 0, answer.answer(invocationOf(HasPrimitiveMethods.class, "shortMethod"))); in should_return_the_usual_default_values_for_primitives() 26 … assertEquals(0, answer.answer(invocationOf(HasPrimitiveMethods.class, "intMethod"))); in should_return_the_usual_default_values_for_primitives() 27 … assertEquals(0L, answer.answer(invocationOf(HasPrimitiveMethods.class, "longMethod"))); in should_return_the_usual_default_values_for_primitives() 28 … assertEquals(0f, answer.answer(invocationOf(HasPrimitiveMethods.class, "floatMethod"))); in should_return_the_usual_default_values_for_primitives() 29 … assertEquals(0d, answer.answer(invocationOf(HasPrimitiveMethods.class, "doubleMethod"))); in should_return_the_usual_default_values_for_primitives() 40 Answer<Object> answer = new ReturnsSmartNulls(); in should_return_an_object_that_fails_on_any_method_invocation_for_non_primitives() local [all …]
|
D | ReturnsMocksTest.java | 47 ReturnsMocks answer = new ReturnsMocks(); in should_return_the_usual_default_values_for_primitives() local 48 … assertEquals(false, answer.answer(invocationOf(HasPrimitiveMethods.class, "booleanMethod"))); in should_return_the_usual_default_values_for_primitives() 49 … assertEquals((char) 0, answer.answer(invocationOf(HasPrimitiveMethods.class, "charMethod"))); in should_return_the_usual_default_values_for_primitives() 50 … assertEquals((byte) 0, answer.answer(invocationOf(HasPrimitiveMethods.class, "byteMethod"))); in should_return_the_usual_default_values_for_primitives() 51 … assertEquals((short) 0, answer.answer(invocationOf(HasPrimitiveMethods.class, "shortMethod"))); in should_return_the_usual_default_values_for_primitives() 52 assertEquals(0, answer.answer(invocationOf(HasPrimitiveMethods.class, "intMethod"))); in should_return_the_usual_default_values_for_primitives() 53 assertEquals(0L, answer.answer(invocationOf(HasPrimitiveMethods.class, "longMethod"))); in should_return_the_usual_default_values_for_primitives() 54 assertEquals(0f, answer.answer(invocationOf(HasPrimitiveMethods.class, "floatMethod"))); in should_return_the_usual_default_values_for_primitives() 55 assertEquals(0d, answer.answer(invocationOf(HasPrimitiveMethods.class, "doubleMethod"))); in should_return_the_usual_default_values_for_primitives() 66 … String[] ret = (String[]) values.answer(invocationOf(StringMethods.class, "stringArrayMethod")); in should_return_empty_array() [all …]
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/ |
D | AnswerFunctionalInterfaces.java | 39 public static <T, A> Answer<T> toAnswer(final Answer1<T, A> answer) { in toAnswer() argument 42 public T answer(InvocationOnMock invocation) throws Throwable { in toAnswer() 43 return answer.answer((A)invocation.getArgument(0)); in toAnswer() 54 public static <A> Answer<Void> toAnswer(final VoidAnswer1<A> answer) { 57 public Void answer(InvocationOnMock invocation) throws Throwable { 58 answer.answer((A)invocation.getArgument(0)); 72 public static <T, A, B> Answer<T> toAnswer(final Answer2<T, A, B> answer) { 75 public T answer(InvocationOnMock invocation) throws Throwable { 76 return answer.answer( 90 public static <A, B> Answer<Void> toAnswer(final VoidAnswer2<A, B> answer) { [all …]
|
D | AnswersWithDelay.java | 27 private final Answer<Object> answer; field in AnswersWithDelay 29 public AnswersWithDelay(final long sleepyTime, final Answer<Object> answer) { in AnswersWithDelay() argument 31 this.answer = answer; in AnswersWithDelay() 35 public Object answer(final InvocationOnMock invocation) throws Throwable { in answer() method in AnswersWithDelay 37 return answer.answer(invocation); in answer() 42 if (answer instanceof ValidableAnswer) { in validateFor() 43 ((ValidableAnswer) answer).validateFor(invocation); in validateFor()
|
/external/webrtc/pc/ |
D | srtp_filter_unittest.cc | 122 std::vector<CryptoParams> answer(MakeVector(kTestCryptoParams2)); in TEST_F() local 126 answer[0].tag = 2; in TEST_F() 127 answer[0].cipher_suite = CS_AES_CM_128_HMAC_SHA1_32; in TEST_F() 130 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE)); in TEST_F() 136 std::vector<CryptoParams> answer(MakeVector(kTestCryptoParamsGcm3)); in TEST_F() local 139 answer[0].tag = 2; in TEST_F() 142 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE)); in TEST_F() 148 std::vector<CryptoParams> offer, answer; in TEST_F() local 150 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE)); in TEST_F() 156 std::vector<CryptoParams> answer; in TEST_F() local [all …]
|
D | peer_connection_crypto_unittest.cc | 203 auto answer = callee->CreateAnswer(); in TEST_P() local 204 ASSERT_TRUE(answer); in TEST_P() 206 ASSERT_FALSE(answer->description()->contents().empty()); in TEST_P() 207 EXPECT_TRUE(SdpContentsAll(HaveDtlsFingerprint(), answer->description())); in TEST_P() 208 EXPECT_TRUE(SdpContentsNone(HaveSdesCryptos(), answer->description())); in TEST_P() 210 answer->description())); in TEST_P() 236 auto answer = callee->CreateAnswer(); in TEST_P() local 237 ASSERT_TRUE(answer); in TEST_P() 239 ASSERT_FALSE(answer->description()->contents().empty()); in TEST_P() 240 EXPECT_TRUE(SdpContentsAll(HaveSdesCryptos(), answer->description())); in TEST_P() [all …]
|
D | media_session_unittest.cc | 667 std::unique_ptr<SessionDescription> answer = in TestMediaDirectionInAnswer() local 670 GetFirstAudioContentDescription(answer.get()); in TestMediaDirectionInAnswer() 673 GetFirstVideoContentDescription(answer.get()); in TestMediaDirectionInAnswer() 712 std::unique_ptr<SessionDescription> answer = in TestVideoGcmCipher() local 714 const ContentInfo* ac = answer->GetContentByName("audio"); in TestVideoGcmCipher() 715 const ContentInfo* vc = answer->GetContentByName("video"); in TestVideoGcmCipher() 754 std::unique_ptr<SessionDescription> answer = in TestTransportSequenceNumberNegotiation() local 759 GetFirstAudioContentDescription(answer.get())->rtp_header_extensions()); in TestTransportSequenceNumberNegotiation() 762 GetFirstVideoContentDescription(answer.get())->rtp_header_extensions()); in TestTransportSequenceNumberNegotiation() 906 std::unique_ptr<SessionDescription> answer = in TEST_F() local [all …]
|
/external/mockito/src/main/java/org/mockito/ |
D | AdditionalAnswers.java | 332 public static <T> Answer<T> answersWithDelay(long sleepyTime, Answer<T> answer) { in answersWithDelay() argument 333 return (Answer<T>) new AnswersWithDelay(sleepyTime, (Answer<Object>) answer); in answersWithDelay() 346 public static <T, A> Answer<T> answer(Answer1<T, A> answer) { in answer() method in AdditionalAnswers 347 return toAnswer(answer); in answer() 359 public static <A> Answer<Void> answerVoid(VoidAnswer1<A> answer) { in answerVoid() argument 360 return toAnswer(answer); in answerVoid() 374 public static <T, A, B> Answer<T> answer(Answer2<T, A, B> answer) { in answer() argument 375 return toAnswer(answer); in answer() 388 public static <A, B> Answer<Void> answerVoid(VoidAnswer2<A, B> answer) { in answerVoid() argument 389 return toAnswer(answer); in answerVoid() [all …]
|
D | BDDMockito.java | 93 BDDMyOngoingStubbing<T> willAnswer(Answer<?> answer); in willAnswer() argument 99 BDDMyOngoingStubbing<T> will(Answer<?> answer); in will() argument 155 public BDDMyOngoingStubbing<T> willAnswer(Answer<?> answer) { in willAnswer() argument 156 return new BDDOngoingStubbingImpl<T>(mockitoOngoingStubbing.thenAnswer(answer)); in willAnswer() 159 public BDDMyOngoingStubbing<T> will(Answer<?> answer) { in will() argument 160 return new BDDOngoingStubbingImpl<T>(mockitoOngoingStubbing.then(answer)); in will() 330 BDDStubber willAnswer(Answer<?> answer); in willAnswer() argument 336 BDDStubber will(Answer<?> answer); in will() argument 412 public BDDStubber willAnswer(Answer<?> answer) { in willAnswer() argument 413 return new BDDStubberImpl(mockitoStubber.doAnswer(answer)); in willAnswer() [all …]
|
/external/ltp/testcases/misc/math/nextafter/ |
D | nextafter01.c | 60 double answer; in main() local 67 answer = nextafter(1.0, 1.1); in main() 68 check = (answer + 1.0) / 2; in main() 69 if ((check != answer) && ((float)check != 1.0)) { in main() 71 answer); in main() 79 answer = nextafter(1.0, 0.9); in main() 80 if ((check != answer) && (check != 1.0)) { in main() 82 answer); in main() 90 answer = nextafter(1.0, 1.0); in main() 91 if (answer != 1.0) { in main() [all …]
|
/external/python/cpython2/Tools/scripts/ |
D | treesync.py | 74 answer=create_directories): 123 copy(master, slave, answer=create_files) 139 copy(master, slave, answer=write_slave) 150 copy(slave, master, "rb", answer=write_master) 153 copy(slave, master, "r", answer=write_master) 176 def copy(src, dst, rmode="rb", wmode="wb", answer='ask'): argument 179 if not okay("okay to copy? ", answer): 190 def okay(prompt, answer='ask'): argument 191 answer = answer.strip().lower() 192 if not answer or answer[0] not in 'ny': [all …]
|
/external/libhevc/encoder/ |
D | sqrt_interp.c | 54 WORD32 index, answer, temp, delta, step_size; in sqrtFix_interpolate() local 69 answer = add32(sqrt_tab[index], step_size); in sqrtFix_interpolate() 74 answer = mult32_shl_sat(answer, INV_SQRT_2_Q31); in sqrtFix_interpolate() 81 answer >>= 1; in sqrtFix_interpolate() 84 return answer; in sqrtFix_interpolate() 89 WORD32 index, answer, temp; in sqrtFix() local 100 answer = sqrt_tab[index]; in sqrtFix() 104 answer = mult32x16in32_shl(answer, INV_SQRT_2_Q15); in sqrtFix() 109 return answer; in sqrtFix()
|
/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 | 168 struct dns_rr *answer; member 198 u_char answer[ANSWER_BUFFER_SIZE]; in getrrsetbyname() local 236 answer, sizeof(answer)); in getrrsetbyname() 252 response = parse_dns_response(answer, length); in getrrsetbyname() 271 rrset->rri_ttl = response->answer->ttl; in getrrsetbyname() 281 rrset->rri_name = strdup(response->answer->name); in getrrsetbyname() 288 rrset->rri_nrdatas = count_dns_rr(response->answer, rrset->rri_rdclass, in getrrsetbyname() 290 rrset->rri_nsigs = count_dns_rr(response->answer, rrset->rri_rdclass, in getrrsetbyname() 311 for (rr = response->answer, index_ans = 0, index_sig = 0; in getrrsetbyname() 383 parse_dns_response(const u_char *answer, int size) in parse_dns_response() argument [all …]
|
/external/tensorflow/tensorflow/core/platform/ |
D | strcat_test.cc | 47 string answer; in TEST() local 48 answer = tensorflow::strings::StrCat(s, us); in TEST() 49 EXPECT_EQ(answer, "-12"); in TEST() 50 answer = tensorflow::strings::StrCat(i, ui); in TEST() 51 EXPECT_EQ(answer, "-34"); in TEST() 52 answer = tensorflow::strings::StrCat(l, ul); in TEST() 53 EXPECT_EQ(answer, "-56"); in TEST() 54 answer = tensorflow::strings::StrCat(ll, ull); in TEST() 55 EXPECT_EQ(answer, "-78"); in TEST() 56 answer = tensorflow::strings::StrCat(ptrdiff, size); in TEST() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | SortedListsTest.java | 40 int answer, in assertModelAgrees() argument 46 assertEquals(list.indexOf(key), answer); in assertModelAgrees() local 52 assertEquals(list.lastIndexOf(key), answer); in assertModelAgrees() local 58 assertEquals(key, list.get(answer)); in assertModelAgrees() 64 assertEquals(list.lastIndexOf(key) + 1, answer); in assertModelAgrees() local 70 assertEquals(list.indexOf(key) - 1, answer); in assertModelAgrees() local 84 assertEquals(nextHigherIndex - 1, answer); in assertModelAgrees() 87 assertEquals(nextHigherIndex, answer); in assertModelAgrees() 90 assertEquals(-1 - nextHigherIndex, answer); in assertModelAgrees()
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | SortedListsTest.java | 40 int answer, in assertModelAgrees() argument 46 assertEquals(list.indexOf(key), answer); in assertModelAgrees() local 52 assertEquals(list.lastIndexOf(key), answer); in assertModelAgrees() local 58 assertEquals(key, list.get(answer)); in assertModelAgrees() 64 assertEquals(list.lastIndexOf(key) + 1, answer); in assertModelAgrees() local 70 assertEquals(list.indexOf(key) - 1, answer); in assertModelAgrees() local 84 assertEquals(nextHigherIndex - 1, answer); in assertModelAgrees() 87 assertEquals(nextHigherIndex, answer); in assertModelAgrees() 90 assertEquals(-1 - nextHigherIndex, answer); in assertModelAgrees()
|
/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()
|
/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/iproute2/ip/ |
D | iplink_vrf.c | 125 } answer; in ipvrf_get_table() local 136 &answer.n, sizeof(answer)) < 0) { in ipvrf_get_table() 146 ifi = NLMSG_DATA(&answer.n); in ipvrf_get_table() 147 len = answer.n.nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)); in ipvrf_get_table() 195 } answer; in name_is_vrf() local 204 &answer.n, sizeof(answer)) < 0) in name_is_vrf() 207 ifi = NLMSG_DATA(&answer.n); in name_is_vrf() 208 len = answer.n.nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)); in name_is_vrf()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
D | InvocationContainerImpl.java | 54 public void addAnswer(Answer answer, Strictness stubbingStrictness) { in addAnswer() argument 56 addAnswer(answer, false, stubbingStrictness); in addAnswer() 59 public void addConsecutiveAnswer(Answer answer) { in addConsecutiveAnswer() argument 60 addAnswer(answer, true, null); in addConsecutiveAnswer() 66 …public StubbedInvocationMatcher addAnswer(Answer answer, boolean isConsecutive, Strictness stubbin… in addAnswer() argument 69 if (answer instanceof ValidableAnswer) { in addAnswer() 70 ((ValidableAnswer) answer).validateFor(invocation); in addAnswer() 75 stubbed.getFirst().addAnswer(answer); in addAnswer() 78 …stubbed.addFirst(new StubbedInvocationMatcher(answer, invocationForStubbing, effectiveStrictness)); in addAnswer() 85 return findAnswerFor(invocation).answer(invocation); in answerTo()
|
/external/mockito/src/test/java/org/mockitousage/stubbing/ |
D | StubbingWithAdditionalAnswersTest.java | 9 import static org.mockito.AdditionalAnswers.answer; 91 .will(answer(new Answer1<String, String>() { in can_return_based_on_strongly_types_one_parameter_function() 92 public String answer(String s) { in can_return_based_on_strongly_types_one_parameter_function() 106 public void answer(String s) { in will_execute_a_void_based_on_strongly_typed_one_parameter_function() 121 .will(answer(new Answer2<String, String, Integer>() { in can_return_based_on_strongly_typed_two_parameter_function() 122 public String answer(String s, Integer i) { in can_return_based_on_strongly_typed_two_parameter_function() 136 public void answer(String s, Integer i) { in will_execute_a_void_based_on_strongly_typed_two_parameter_function() 152 .will(answer(new Answer3<String, Integer, String, String>() { in can_return_based_on_strongly_typed_three_parameter_function() 153 public String answer(Integer i, String s1, String s2) { in can_return_based_on_strongly_typed_three_parameter_function() 169 public void answer(Integer i, String s1, String s2) { in will_execute_a_void_based_on_strongly_typed_three_parameter_function() [all …]
|
/external/libffi/testsuite/lib/ |
D | libffi.exp | 87 set answer [ expr { [dg-process-target $selector] == "S" } ] 88 verbose "selector_opd: `$op' $answer" 2 89 return $answer 97 set answer [ expr { [dg-process-target $selector] == "S" } ] 98 verbose "selector_list: `$op' $answer" 2 99 return $answer 107 set answer [expr { ! [selector_opd $op1] }] 110 set answer [selector_list $exp] 117 set answer [expr { [selector_opd $op1] && [selector_opd $op2] }] 119 set answer [expr { [selector_opd $op1] || [selector_opd $op2] }] [all …]
|