/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/ |
ReturnsMocks.java | 12 import org.mockito.stubbing.Answer;
14 public class ReturnsMocks implements Answer<Object>, Serializable {
18 private Answer<Object> delegate = new ReturnsMoreEmptyValues();
20 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:ReturnsMocks 21 Object ret = delegate.answer(invocation);
|
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/x86_64-linux-glibc2.11-4.6/sysroot/usr/include/protocols/ |
talkd.h | 62 u_char answer; /* not used */ member in struct:__anon46149 81 u_char answer; /* response to request message, see below */ member in struct:__anon46150 95 /* answer values */
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/protocols/ |
talkd.h | 62 u_char answer; /* not used */ member in struct:__anon47885 81 u_char answer; /* response to request message, see below */ member in struct:__anon47886 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);
|
/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/chromium_org/cloud_print/gcp20/prototype/ |
dns_response_builder.cc | 43 bool answer) { 48 AddResponse(service_type, net::dns_protocol::kTypePTR, ttl, rdata, answer); 57 bool answer) { 74 std::string(rdata.begin(), rdata.end()), answer); 80 bool answer) { 89 std::string(http_ipv4.begin(), http_ipv4.end()), answer); 95 bool answer) { 104 std::string(http_ipv6.begin(), http_ipv6.end()), answer); 110 bool answer) { 120 AddResponse(service_name, net::dns_protocol::kTypeTXT, ttl, rdata, answer); [all...] |
/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;
|
/bionic/libc/dns/resolv/ |
res_query.c | 118 * Formulate a normal query, send, and await answer. 119 * Returned answer is placed in supplied buffer "answer". 120 * Perform preliminary check of answer, returning success only 121 * if no error is indicated and the answer count is nonzero. 125 * Caller must parse answer and determine whether it answers the question. 131 u_char *answer, /* buffer to put answer */ 132 int anslen) /* size of answer buffer */ 135 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);
|
/cts/tests/tests/print/src/android/print/cts/ |
PageRangeAdjustmentTest.java | 50 import org.mockito.stubbing.Answer; 67 new Answer<PrinterDiscoverySessionCallbacks>() { 69 public PrinterDiscoverySessionCallbacks answer(InvocationOnMock invocation) { 73 new Answer<Void>() { 75 public Void answer(InvocationOnMock invocation) { 93 new Answer<Void>() { 95 public Void answer(InvocationOnMock invocation) throws Throwable { 107 }, new Answer<Void>() { 109 public Void answer(InvocationOnMock invocation) throws Throwable { 121 }, new Answer<Void>() [all...] |
/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/chromium_org/third_party/libjingle/source/talk/app/webrtc/ |
webrtcsession_unittest.cc | 507 const webrtc::SessionDescriptionInterface* answer = CreateAnswer(NULL); local 508 // Answer should be NULL as no crypto params in offer. 509 ASSERT_TRUE(answer == NULL); 521 scoped_ptr<SessionDescriptionInterface> answer(CreateAnswer(NULL)); 522 ASSERT_TRUE(answer.get() != NULL); 523 VerifyCryptoParams(answer->description()); 609 // creates a local answer and applies is as a local description. 615 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 616 SetLocalDescriptionWithoutError(answer); 1145 SessionDescriptionInterface* answer = local 1199 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 1314 SessionDescriptionInterface* answer = NULL; local 1327 SessionDescriptionInterface* answer = NULL; local 1354 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 1384 JsepSessionDescription* answer = local 1424 SessionDescriptionInterface* answer = NULL; local 1442 JsepSessionDescription* answer = local 1471 JsepSessionDescription* answer = local 1499 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 1571 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 1597 SessionDescriptionInterface* answer = local 1607 SessionDescriptionInterface* answer = local 1618 SessionDescriptionInterface* answer = local 1643 SessionDescriptionInterface* answer = CreateRemoteAnswer( local 1783 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 1813 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 1856 SessionDescriptionInterface* answer = local 1964 SessionDescriptionInterface* answer = CreateRemoteAnswer(offer); local 2128 SessionDescriptionInterface* answer = CreateRemoteAnswer(offer, options); local 2186 SessionDescriptionInterface* answer = CreateRemoteAnswer( local 2568 SessionDescriptionInterface* answer = CreateRemoteAnswer(offer); local 2581 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 2616 SessionDescriptionInterface* answer = CreateRemoteAnswer(offer); local 2653 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 2746 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 2785 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 2908 SessionDescriptionInterface* answer = local 2944 SessionDescriptionInterface* answer = local 3055 SessionDescriptionInterface* answer = ChangeSDPSctpPort( 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/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/omnibox/ |
SuggestionAnswer.java | 17 * Structured representation of the JSON payload of a suggestion with an answer. An answer has 46 * Parses the JSON representation of an answer and constructs a SuggestionAnswer from the 49 * @param answerContents The JSON representation of an answer. 50 * @return A SuggestionAnswer with the answer contents or null if the contents are malformed or 54 SuggestionAnswer answer = new SuggestionAnswer(); local 61 Log.e(TAG, "Answer JSON doesn't contain exactly two lines: " + jsonAnswer); 65 answer.mFirstLine = new SuggestionAnswer.ImageLine( 67 answer.mSecondLine = new SuggestionAnswer.ImageLine( 70 Log.e(TAG, "Problem parsing answer JSON: " + e.getMessage()) [all...] |