Searched defs:answer (Results 1 - 25 of 48) sorted by relevance

12

/external/easymock/src/org/easymock/
H A DIAnswer.java19 * Used to answer expected calls.
24 * is called by EasyMock to answer an expected call.
25 * The answer may be to return a value, or to throw an exception.
26 * The arguments of the call for which the answer is generated
33 T answer() throws Throwable; method in interface:IAnswer
H A DIExpectationSetters.java46 * Sets an object that will be used to calculate the answer for the expected
49 * @param answer
50 * the object used to answer the invocation.
53 IExpectationSetters<T> andAnswer(IAnswer<? extends T> answer); argument
57 * method call will be delegated to it with the actual arguments. The answer
58 * returned by this call will then be the answer returned by the mock
85 * Sets a stub object that will be used to calculate the answer for the
88 * @param answer
89 * the object used to answer the invocation.
91 void andStubAnswer(IAnswer<? extends T> answer); argument
[all...]
/external/easymock/src/org/easymock/internal/
H A DResult.java41 public Object answer() throws Throwable {
58 public Object answer() throws Throwable {
75 public Object answer() throws Throwable {
98 public static Result createAnswerResult(IAnswer<?> answer) { argument
99 return new Result(answer, false);
102 public Object answer() throws Throwable { method in class:Result
103 return value.answer();
H A DIMocksControlState.java30 void andAnswer(IAnswer<?> answer); argument
32 void andDelegateTo(Object answer); argument
38 void andStubAnswer(IAnswer<?> answer); argument
H A DMocksControl.java159 public IExpectationSetters<Object> andAnswer(IAnswer<? extends Object> answer) { argument
161 state.andAnswer(answer);
168 public IExpectationSetters<Object> andDelegateTo(Object answer) { argument
170 state.andDelegateTo(answer);
193 public void andStubAnswer(IAnswer<? extends Object> answer) { argument
195 state.andStubAnswer(answer);
H A DRecordState.java112 public void andAnswer(IAnswer<?> answer) { argument
113 requireMethodCall("answer");
114 requireValidAnswer(answer);
118 lastResult = Result.createAnswerResult(answer);
195 public void andStubAnswer(IAnswer<?> answer) { argument
196 requireMethodCall("stub answer");
197 requireValidAnswer(answer);
201 behavior.addStub(lastInvocation, Result.createAnswerResult(answer));
311 private void requireValidAnswer(IAnswer<?> answer) { argument
312 if (answer
[all...]
H A DReplayState.java59 return result.answer();
103 public void andAnswer(IAnswer<?> answer) { argument
107 public void andDelegateTo(Object answer) { argument
119 public void andStubAnswer(IAnswer<?> answer) { argument
/external/skia/tests/
H A DClipStackTest.cpp110 SkRect answer; local
111 answer.iset(25, 25, 75, 75);
117 REPORTER_ASSERT(reporter, *clip->fRect == answer);
/external/qemu/telephony/
H A Dmodem_driver.c94 const char* answer; local
103 answer = amodem_send(android_modem, md->in_buff);
104 if (answer != NULL) {
105 D( "%s: >> %s\n", __FUNCTION__, answer );
106 len = strlen(answer);
107 if (len == 2 && answer[0] == '>' && answer[1] == ' ')
110 qemu_chr_write(md->cs, (const uint8_t*)answer, len);
H A Dsimulator.c77 const char* answer; local
80 answer = amodem_send( modem, cmd );
81 if (answer == NULL) /* not an AT command, ignored */ {
86 dump_line( answer, ">> " );
87 client_append( client, answer, -1 );
H A Dsim_card.c332 static const struct { const char* cmd; const char* answer; } answers[] = member in struct:__anon8801
442 return answers[nn].answer;
/external/skia/src/animator/
H A DSkScriptCallBack.h54 virtual bool getResult(size_t ref, SkOperand2* answer) { return false; } argument
/external/ipsec-tools/src/racoon/
H A Dgetcertsbyname.c208 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));
276 /* answer section */
278 len = dn_expand(answer, eom, cp, hostbuf, sizeof(hostbuf));
336 if (answer)
[all...]
/external/valgrind/unittest/
H A Dtest_utils.h67 const char *answer = ThreadSanitizerQuery(query); local
68 if (answer == NULL) {
72 return string(answer) == expected_answer;
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
H A DDoubleTest.java198 private void test_toString(double dd, String answer) { argument
199 assertEquals(answer, Double.toString(dd));
201 assertEquals(answer, Double.toString(d.doubleValue()));
202 assertEquals(answer, d.toString());
H A DFloatTest.java833 String answer;
836 answer = "12.90898";
837 assertTrue("Incorrect String representation want " + answer + ", got "
838 + Float.toString(ff), Float.toString(ff).equals(answer));
841 answer = "3.4028235E38";
842 assertTrue("Incorrect String representation want " + answer + ", got "
843 + Float.toString(ff), Float.toString(ff).equals(answer));
916 private void test_toString(float ff, String answer) { argument
918 assertTrue("Incorrect String representation want " + answer + ", got ("
919 + Float.toString(ff) + ")", Float.toString(ff).equals(answer));
[all...]
/external/ppp/pppd/plugins/pppoatm/
H A Dans.c43 unsigned char answer[MAX_ANSWER]; local
50 if ((answer_len = res_search(text,C_IN,wanted,answer,MAX_ANSWER)) < 0)
56 pos = answer+12;
57 if (answer[3] & 15) return TRY_OTHER; /* rcode != 0 */
58 questions = GET16(answer+4);
60 answers = GET16(answer+6);
65 if ((name_len = dn_expand(answer,answer+answer_len,pos,name,MAX_NAME)) < 0)
80 if ((name_len = dn_expand(answer,answer
[all...]
/external/tcpdump/
H A Dprint-ip.c280 u_short answer; local
301 answer = ~sum; /* truncate to 16 bits */
302 return (answer);
/external/v8/src/
H A Dd8.h80 i::HashMap::Entry* answer = hash_map_.Lookup( local
84 if (!answer) return NULL;
85 return reinterpret_cast<Counter*>(answer->value);
88 i::HashMap::Entry* answer = hash_map_.Lookup( local
92 ASSERT(answer != NULL);
93 answer->value = value;
H A Dtype-info.h79 int answer = type_ & 0xf; local
80 answer = answer > 6 ? answer - 2 : answer;
81 ASSERT(answer >= 0);
82 ASSERT(answer <= 7);
83 return answer;
/external/webkit/Source/WebCore/html/canvas/
H A DCheckedInt.h159 template<typename T> struct is_unsupported_type { enum { answer = 0 }; }; enumerator in enum:WebCore::CheckedInt_internal::is_unsupported_type::__anon11820
160 template<> struct is_unsupported_type<unsupported_type> { enum { answer = 1 }; }; enumerator in enum:WebCore::CheckedInt_internal::is_unsupported_type::__anon11821
171 >::answer ? 0 : 1,
/external/zlib/contrib/minizip/
H A Dminizip.c336 char answer[128]; local
339 ret = scanf("%1s",answer);
344 rep = answer[0] ;
/external/chromium/third_party/libjingle/source/talk/session/tunnel/
H A Dtunnelsessionclient.cc168 SessionDescription* answer = CreateAnswer(session->remote_description()); local
169 if (answer == NULL)
172 session->Accept(answer);
/external/e2fsprogs/e2fsck/
H A Dproblem.c1639 * "latched" together. This means that the user has to answer but one
1683 int answer = -1; local
1688 answer = fix_problem(ctx, ldesc->end_message, &pctx);
1691 return answer;
1744 int def_yn, answer, ans, broken_system_clock; local
1830 answer = -1;
1832 answer = def_yn;
1835 answer = def_yn;
1843 answer = 1;
1845 answer
[all...]
/external/iproute2/lib/
H A Dlibnetlink.c274 unsigned groups, struct nlmsghdr *answer,
301 if (answer == NULL)
369 if (answer)
370 memcpy(answer, h, h->nlmsg_len);
377 if (answer) {
378 memcpy(answer, h, h->nlmsg_len);
273 rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer, unsigned groups, struct nlmsghdr *answer, rtnl_filter_t junk, void *jarg) argument

Completed in 923 milliseconds

12