HomeSort by relevance Sort by last modified time
    Searched refs:answer (Results 1 - 25 of 85) sorted by null

1 2 3 4

  /external/easymock/src/org/easymock/
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
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);
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);
    [all...]
  /external/proguard/examples/annotations/examples/
NativeCallBack.java 17 * Suppose this is a native method that computes an answer.
40 int answer = new NativeCallBack().computeAnswer(); local
42 System.out.println("The answer is " + answer);
  /bionic/libc/private/
resolv_cache.h 43 /* or the answer buffer is too small */
45 RESOLV_CACHE_FOUND /* the cache found the answer */
52 void* answer,
56 /* add a (query,answer) to the cache, only call if _resolv_cache_lookup
63 const void* answer,
  /external/easymock/src/org/easymock/internal/
IMocksControlState.java 30 void andAnswer(IAnswer<?> answer);
32 void andDelegateTo(Object answer);
38 void andStubAnswer(IAnswer<?> answer);
Result.java 41 public Object answer() throws Throwable { method in class:Result.ThrowingAnswer
47 return "Answer throwing " + throwable;
58 public Object answer() throws Throwable { method in class:Result.ReturningAnswer
64 return "Answer returning " + value;
75 public Object answer() throws Throwable { method in class:Result.DelegatingAnswer
98 public static Result createAnswerResult(IAnswer<?> answer) {
99 return new Result(answer, false);
102 public Object answer() throws Throwable { method in class:Result
103 return value.answer();
ReplayState.java 59 return result.answer();
103 public void andAnswer(IAnswer<?> answer) {
107 public void andDelegateTo(Object answer) {
119 public void andStubAnswer(IAnswer<?> answer) {
RecordState.java 112 public void andAnswer(IAnswer<?> answer) {
113 requireMethodCall("answer");
114 requireValidAnswer(answer);
118 lastResult = Result.createAnswerResult(answer);
195 public void andStubAnswer(IAnswer<?> answer) {
196 requireMethodCall("stub answer");
197 requireValidAnswer(answer);
201 behavior.addStub(lastInvocation, Result.createAnswerResult(answer));
311 private void requireValidAnswer(IAnswer<?> answer) {
312 if (answer == null)
    [all...]
MocksControl.java 159 public IExpectationSetters<Object> andAnswer(IAnswer<? extends Object> answer) {
161 state.andAnswer(answer);
168 public IExpectationSetters<Object> andDelegateTo(Object answer) {
170 state.andDelegateTo(answer);
193 public void andStubAnswer(IAnswer<? extends Object> answer) {
195 state.andStubAnswer(answer);
  /packages/apps/Email/
remove-exchange-support.sh 34 read answer
35 if [[ "$answer" != y ]] ; then
  /frameworks/base/tools/aidl/
options_test.cpp 8 struct Answer {
57 test(const Answer& answer)
60 while (answer.argv[argc]) {
67 int result = parse_options(argc, answer.argv, &options);
70 if (((bool)result) != ((bool)answer.result)) {
72 answer.result << endl;
82 if (!match_arrays(answer.systemSearchPath, options.systemSearchPath)) {
86 print_array(" ", answer.systemSearchPath);
91 if (!match_arrays(answer.localSearchPath, options.localSearchPath))
    [all...]
  /external/qemu/telephony/
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);
113 D( "%s: -- NO ANSWER\n", __FUNCTION__ );
simulator.c 77 const char* answer; local
80 answer = amodem_send( modem, cmd );
81 if (answer == NULL) /* not an AT command, ignored */ {
82 printf( "-- NO ANSWER\n" );
86 dump_line( answer, ">> " );
87 client_append( client, answer, -1 );
android_modem.c 763 const char* answer = NULL; local
766 case A_SIM_STATUS_ABSENT: answer = "+CPIN: ABSENT"; break;
767 case A_SIM_STATUS_READY: answer = "+CPIN: READY"; break;
768 case A_SIM_STATUS_NOT_READY: answer = "+CMERROR: NOT READY"; break;
769 case A_SIM_STATUS_PIN: answer = "+CPIN: SIM PIN"; break;
770 case A_SIM_STATUS_PUK: answer = "+CPIN: SIM PUK"; break;
771 case A_SIM_STATUS_NETWORK_PERSONALIZATION: answer = "+CPIN: PH-NET PIN"; break;
773 answer = "ERROR: internal error";
775 return answer;
1691 const char* answer; \/* default answer, NULL if needs specific handling or member in struct:__anon4888
1811 const char* answer; local
1861 const char* answer = sDefaultResponses[nn].answer; local
    [all...]
  /dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
MsgHelp.java 113 StringBuilder answer = new StringBuilder(format.length() local
128 answer.append(format.substring(lastI, i - 1));
129 answer.append('{');
135 answer.append(format.substring(lastI, format.length()));
142 answer.append(format.substring(lastI, i + 1));
146 answer.append(format.substring(lastI, i));
148 answer.append("<missing argument>");
150 answer.append(argStrings[argnum]);
157 answer.append(format.substring(lastI, format.length()));
158 return answer.toString()
    [all...]
  /hardware/libhardware/include/hardware/
qemud.h 66 char answer[2]; local
85 /* read answer from daemon */
86 if (qemud_fd_read(fd, answer, 2) != 2 ||
87 answer[0] != 'O' || answer[1] != 'K') {
  /external/ppp/pppd/plugins/pppoatm/
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+answer_len,pos,name,MAX_NAME)
    [all...]
  /bionic/libc/netbsd/resolv/
res_query.c 117 * Formulate a normal query, send, and await answer.
118 * Returned answer is placed in supplied buffer "answer".
119 * Perform preliminary check of answer, returning success only
120 * if no error is indicated and the answer count is nonzero.
124 * Caller must parse answer and determine whether it answers the question.
130 u_char *answer, /* buffer to put answer */
131 int anslen) /* size of answer buffer */
134 HEADER *hp = (HEADER *)(void *)answer;
    [all...]
res_data.c 207 u_char *answer, /* buffer to put answer */
208 int anslen) /* size of answer buffer */
214 return (res_nquery(&_nres, name, class, type, answer, anslen));
276 u_char *answer, /* buffer to put answer */
277 int anslen) /* size of answer */
284 return (res_nsearch(&_nres, name, class, type, answer, anslen));
291 u_char *answer, /* buffer to put answer */
    [all...]
  /hardware/libhardware_legacy/
qemu.h 77 /* sends a question to the hw-control channel, then receive an answer in
78 * a user-allocated buffer. returns the length of the answer, or -1
84 char* answer, int answersize );
  /external/ipsec-tools/src/racoon/
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...]
  /cts/tools/host/src/com/android/cts/
Selector.java 125 String answer = readLine(prompt); local
126 while (!answer.matches("[yn]?")) {
129 answer = readLine(prompt);
132 if (ConsoleUi.isConfirmation(answer, true)) {
137 String answer = readLine(prompt); local
138 while (!answer.matches("[ynm]?")) {
141 answer = readLine(prompt);
144 if (ConsoleUi.isConfirmation(answer, true)) {
146 } else if (0 == "m".compareToIgnoreCase(answer)) {
  /dalvik/libcore/luni/src/main/java/java/net/
URLStreamHandler.java 308 StringBuilder answer = new StringBuilder(); local
309 answer.append(url.getProtocol());
310 answer.append(':');
313 answer.append("//"); //$NON-NLS-1$
314 answer.append(url.getAuthority());
320 answer.append(file);
323 answer.append('#');
324 answer.append(ref);
326 return answer.toString();
  /external/v8/src/
d8.h 80 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;
  /hardware/libhardware_legacy/qemu/
qemu.c 79 char answer[2]; local
97 /* read answer from daemon */
98 if (qemu_fd_read(fd, answer, 2) != 2 ||
99 answer[0] != 'O' || answer[1] != 'K') {
329 char* answer, int answersize )
366 /* read the answer */
367 ret = qemu_fd_read( fd, answer, len );
369 D("%s: could not read all of answer %d < %d",

Completed in 4307 milliseconds

1 2 3 4