/external/easymock/src/org/easymock/ |
H A D | IAnswer.java | 19 * 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 D | IExpectationSetters.java | 46 * 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 D | Result.java | 41 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 D | IMocksControlState.java | 30 void andAnswer(IAnswer<?> answer);
argument 32 void andDelegateTo(Object answer);
argument 38 void andStubAnswer(IAnswer<?> answer);
argument
|
H A D | MocksControl.java | 159 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 D | RecordState.java | 112 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 D | ReplayState.java | 59 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/guava/guava-tests/test/com/google/common/collect/ |
H A D | SortedListsTest.java | 41 void assertModelAgrees(List<Integer> list, Integer key, int answer, argument 46 assertEquals(list.indexOf(key), answer); 52 assertEquals(list.lastIndexOf(key), answer); 58 assertEquals(key, list.get(answer)); 64 assertEquals(list.lastIndexOf(key) + 1, answer); 70 assertEquals(list.indexOf(key) - 1, answer); 84 assertEquals(nextHigherIndex - 1, answer); 87 assertEquals(nextHigherIndex, answer); 90 assertEquals(-1 - nextHigherIndex, answer);
|
/external/skia/tests/ |
H A D | ClipStackTest.cpp | 118 SkRect answer; local 119 answer.iset(25, 25, 75, 75); 125 REPORTER_ASSERT(reporter, *clip->fRect == answer);
|
/external/qemu/telephony/ |
H A D | modem_driver.c | 94 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 D | simulator.c | 77 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 );
|
/external/skia/src/animator/ |
H A D | SkScriptCallBack.h | 61 virtual bool getResult(size_t ref, SkOperand2* answer) { return false; } argument
|
/external/ipsec-tools/src/racoon/ |
H A 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)); 276 /* answer section */ 278 len = dn_expand(answer, eom, cp, hostbuf, sizeof(hostbuf)); 336 if (answer) [all...] |
/external/mdnsresponder/mDNSPosix/ |
H A D | Client.c | 39 static void BrowseCallback(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord) argument 55 assert(answer->rrtype == kDNSType_PTR); 57 DeconstructServiceName(&answer->rdata->u.name, &name, &type, &domain);
|
/external/valgrind/unittest/ |
H A D | test_utils.h | 67 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 D | DoubleTest.java | 198 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 D | FloatTest.java | 833 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/ganymed-ssh2/examples/ |
H A D | SwingShell.java | 97 String answer; field in class:SwingShell.EnterSomethingDialog 152 answer = new String(passwordField.getPassword()); 154 answer = answerField.getText(); 488 if (esd.answer == null) 491 result[i] = esd.answer; 570 boolean res = conn.authenticateWithPublicKey(username, key, esd.answer); 590 boolean res = conn.authenticateWithPublicKey(username, key, esd.answer); 639 if (esd.answer == null) 642 boolean res = conn.authenticateWithPassword(username, esd.answer);
|
/external/openssh/openbsd-compat/ |
H A D | getrrsetbyname.c | 170 struct dns_rr *answer; member in struct:dns_response 200 u_char answer[ANSWER_BUFFER_SIZE]; local 238 answer, sizeof(answer)); 254 response = parse_dns_response(answer, length); 273 rrset->rri_ttl = response->answer->ttl; 282 /* copy name from answer section */ 283 rrset->rri_name = strdup(response->answer->name); 290 rrset->rri_nrdatas = count_dns_rr(response->answer, rrset->rri_rdclass, 292 rrset->rri_nsigs = count_dns_rr(response->answer, rrse 385 parse_dns_response(const u_char *answer, int size) argument 450 parse_dns_qsection(const u_char *answer, int size, const u_char **cp, int count) argument 496 parse_dns_rrsection(const u_char *answer, int size, const u_char **cp, int count) argument [all...] |
/external/ppp/pppd/plugins/pppoatm/ |
H A D | ans.c | 43 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 D | print-ip.c | 280 u_short answer; local 301 answer = ~sum; /* truncate to 16 bits */ 302 return (answer);
|
/external/webkit/Source/WebCore/html/canvas/ |
H A D | CheckedInt.h | 159 template<typename T> struct is_unsupported_type { enum { answer = 0 }; }; enumerator in enum:WebCore::CheckedInt_internal::is_unsupported_type::__anon14573 160 template<> struct is_unsupported_type<unsupported_type> { enum { answer = 1 }; }; enumerator in enum:WebCore::CheckedInt_internal::is_unsupported_type::__anon14574 171 >::answer ? 0 : 1,
|
/external/zlib/src/contrib/minizip/ |
H A D | minizip.c | 349 char answer[128]; local 352 ret = scanf("%1s",answer); 357 rep = answer[0] ;
|
/external/chromium/third_party/libjingle/source/talk/session/tunnel/ |
H A D | tunnelsessionclient.cc | 168 SessionDescription* answer = CreateAnswer(session->remote_description()); local 169 if (answer == NULL) 172 session->Accept(answer);
|
/external/e2fsprogs/e2fsck/ |
H A D | problem.c | 1644 * "latched" together. This means that the user has to answer but one 1688 int answer = -1; local 1693 answer = fix_problem(ctx, ldesc->end_message, &pctx); 1696 return answer; 1749 int def_yn, answer, ans; local 1827 answer = -1; 1829 answer = def_yn; 1832 answer = 0; 1836 answer = def_yn; 1844 answer [all...] |