/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/ |
ReturnsMoreEmptyValues.java | 13 import org.mockito.stubbing.Answer; 48 public class ReturnsMoreEmptyValues implements Answer<Object>, Serializable { 51 private Answer<Object> delegate = new ReturnsEmptyValues(); 54 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock) 56 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsMoreEmptyValues 57 Object ret = delegate.answer(invocation);
|
ReturnsSmartNulls.java | 16 import org.mockito.stubbing.Answer;
19 * Optional Answer that can be used with
20 * {@link Mockito#mock(Class, Answer)}
25 * Answer returns SmartNulls instead of nulls.
36 public class ReturnsSmartNulls implements Answer<Object>, Serializable {
40 private final Answer<Object> delegate = new ReturnsMoreEmptyValues();
42 public Object answer(final InvocationOnMock invocation) throws Throwable {
method in class:ReturnsSmartNulls 43 Object defaultReturnValue = delegate.answer(invocation);
55 private static class ThrowsSmartNullPointer implements Answer {
64 public Object answer(InvocationOnMock currentInvocation) throws Throwable { method in class:ReturnsSmartNulls.ThrowsSmartNullPointer [all...] |
/external/smack/src/org/jivesoftware/smack/util/collections/ |
AbstractMapEntry.java | 54 V answer = this.value; local 56 return answer;
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/protocols/ |
talkd.h | 62 u_char answer; /* not used */ member in struct:__anon37895 81 u_char answer; /* response to request message, see below */ member in struct:__anon37896 95 /* answer values */
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/protocols/ |
talkd.h | 62 u_char answer; /* not used */ member in struct:__anon39486 81 u_char answer; /* response to request message, see below */ member in struct:__anon39487 95 /* answer values */
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/protocols/ |
talkd.h | 62 u_char answer; /* not used */ member in struct:__anon41000 81 u_char answer; /* response to request message, see below */ member in struct:__anon41001 95 /* answer values */
|
/external/easymock/src/org/easymock/internal/ |
ReplayState.java | 59 return result.answer();
103 public void andAnswer(IAnswer<?> answer) {
107 public void andDelegateTo(Object answer) {
119 public void andStubAnswer(IAnswer<?> answer) {
|
/external/jmdns/src/javax/jmdns/impl/tasks/state/ |
Canceler.java | 104 for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())) { 105 newOut = this.addAnswer(newOut, null, answer); 117 for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalHost())) { 118 newOut = this.addAnswer(newOut, null, answer);
|
Announcer.java | 104 for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())) { 105 newOut = this.addAnswer(newOut, null, answer); 117 for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalHost())) { 118 newOut = this.addAnswer(newOut, null, answer);
|
Renewer.java | 105 for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())) { 106 newOut = this.addAnswer(newOut, null, answer); 118 for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalHost())) { 119 newOut = this.addAnswer(newOut, null, answer);
|
/external/mockito/src/org/mockito/ |
Mock.java | 29 * @Mock(answer = RETURNS_MOCKS) private UserProvider userProvider;
66 Answers answer() default Answers.RETURNS_DEFAULTS;
|
/external/mockito/src/org/mockito/internal/stubbing/answers/ |
AnswerReturnValuesAdapter.java | 11 import org.mockito.stubbing.Answer;
15 public class AnswerReturnValuesAdapter implements Answer<Object>, Serializable {
24 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:AnswerReturnValuesAdapter
|
/external/mockito/src/org/mockito/stubbing/ |
Stubber.java | 32 * {@link Mockito#doAnswer(Answer)}
60 * {@link Mockito#doAnswer(Answer)}
103 * Use it for stubbing consecutive calls in {@link Mockito#doAnswer(Answer)} style:
109 * See javadoc for {@link Mockito#doAnswer(Answer)}
111 * @param answer to answer when the stubbed method is called
114 Stubber doAnswer(Answer answer);
|
/hardware/libhardware/include/hardware/ |
qemud.h | 68 char answer[2]; local 93 /* read answer from daemon */ 94 if (qemud_fd_read(fd, answer, 2) != 2 || 95 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...] |
/external/smack/src/org/jivesoftware/smackx/workgroup/ext/forms/ |
WorkgroupForm.java | 62 WorkgroupForm answer = new WorkgroupForm();
local 69 answer.addExtension(PacketParserUtils.parsePacketExtension(parser.getName(),
79 return answer;
|
/external/smack/src/org/jivesoftware/smackx/workgroup/packet/ |
TranscriptSearch.java | 29 * or retrieving the answer of a transcript search.
68 TranscriptSearch answer = new TranscriptSearch();
local 75 answer.addExtension(PacketParserUtils.parsePacketExtension(parser.getName(), parser.getNamespace(), parser));
84 return answer;
|
/external/chromium_org/third_party/libjingle/source/talk/session/media/ |
mediasession_unittest.cc | 356 // |expected_direction_in_answer| in an answer if the offer direction is set 377 talk_base::scoped_ptr<SessionDescription> answer( 380 GetFirstAudioContentDescription(answer.get()); 383 GetFirstVideoContentDescription(answer.get()); 511 talk_base::scoped_ptr<SessionDescription> answer( 520 updated_opts, answer.get())); 608 // Create a typical audio answer, and ensure it matches what we expect. 615 talk_base::scoped_ptr<SessionDescription> answer( 617 const ContentInfo* ac = answer->GetContentByName("audio"); 618 const ContentInfo* vc = answer->GetContentByName("video") 886 talk_base::scoped_ptr<SessionDescription> answer; local 1769 talk_base::scoped_ptr<SessionDescription> offer, answer; local 1890 talk_base::scoped_ptr<SessionDescription> offer, answer; local [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...] |
/external/chromium_org/sandbox/win/src/ |
crosscall_client.h | 25 // CrossCallReturn* answer) 34 // answer : If the IPC was successful. The server-side answer is here. The 35 // interpretation of the answer is private to client and server. 321 CrossCallReturn* answer) { 325 ResultCode result = ipc_provider.DoCall(call_params, answer); 338 const Par2& p2, CrossCallReturn* answer) { 343 ResultCode result = ipc_provider.DoCall(call_params, answer); 356 const Par2& p2, const Par3& p3, CrossCallReturn* answer) { 362 ResultCode result = ipc_provider.DoCall(call_params, answer); [all...] |
sharedmem_ipc_client.h | 28 // answer ready 36 // 6) the client awakes and reads the answer from the same channel 81 // the client waits on the pong event for the IPC answer back 115 // answer: upon IPC completion, it contains the server answer to the IPC. 119 // to check on the answer structure to see the actual IPC result. 120 ResultCode DoCall(CrossCallParams* params, CrossCallReturn* answer);
|
/external/smack/src/org/jivesoftware/smackx/muc/ |
MultiUserChat.java | 122 List<DiscoverItems.Item> answer = new ArrayList<DiscoverItems.Item>(); 125 answer.add(new DiscoverItems.Item(rooms.next())); 127 return answer; 214 ArrayList<String> answer = new ArrayList<String>(); local 220 answer.add(items.next().getEntityID()); 222 return answer.iterator(); 255 final List<String> answer = new ArrayList<String>(); local 263 answer.add(item.getEntityID()); 271 return answer; 286 List<HostedRoom> answer = new ArrayList<HostedRoom>() local 568 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local 601 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local 710 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local 1390 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local 1420 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local 1458 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local 1488 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local 1516 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local 1545 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local 1709 MUCOwner answer = (MUCOwner) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local 1750 MUCAdmin answer = (MUCAdmin) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local 1812 MUCAdmin answer = (MUCAdmin) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local 1968 Message answer = local [all...] |
/external/jmdns/src/javax/jmdns/impl/ |
DNSMessage.java | 232 for (DNSRecord answer : _answers) { 234 buf.append(answer); 237 for (DNSRecord answer : _authoritativeAnswers) { 239 buf.append(answer); 242 for (DNSRecord answer : _additionals) { 244 buf.append(answer);
|
/external/lzma/CPP/7zip/UI/Console/ |
ExtractCallbackConsole.cpp | 65 Int32 *answer)
76 case NUserAnswerMode::kNo: *answer = NOverwriteAnswer::kNo; break;
77 case NUserAnswerMode::kNoAll: *answer = NOverwriteAnswer::kNoToAll; break;
78 case NUserAnswerMode::kYesAll: *answer = NOverwriteAnswer::kYesToAll; break;
79 case NUserAnswerMode::kYes: *answer = NOverwriteAnswer::kYes; break;
80 case NUserAnswerMode::kAutoRenameAll: *answer = NOverwriteAnswer::kAutoRename; break;
|
/external/valgrind/unittest/ |
test_utils.h | 67 const char *answer = ThreadSanitizerQuery(query); local 68 if (answer == NULL) { 72 return string(answer) == expected_answer;
|