/external/mockito/src/org/mockito/internal/stubbing/answers/ |
Returns.java | 10 import org.mockito.stubbing.Answer;
12 public class Returns implements Answer<Object>, Serializable {
21 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:Returns
|
ReturnsElementsOf.java | 9 import org.mockito.stubbing.Answer;
33 public class ReturnsElementsOf implements Answer<Object> {
45 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:ReturnsElementsOf
|
ThrowsException.java | 10 import org.mockito.stubbing.Answer;
14 public class ThrowsException implements Answer<Object>, Serializable {
24 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:ThrowsException
|
ThrowsExceptionClass.java | 10 import org.mockito.stubbing.Answer; 15 public class ThrowsExceptionClass implements Answer<Object>, Serializable { 25 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ThrowsExceptionClass
|
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/ |
ForwardsInvocations.java | 8 import org.mockito.stubbing.Answer; 14 * Internal answer to forward invocations on a real instance. 18 public class ForwardsInvocations implements Answer<Object>, Serializable { 28 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ForwardsInvocations
|
ReturnsDeepStubs.java | 16 import org.mockito.stubbing.Answer;
27 * <p>Supports nested generic information, with this answer you can write code like this :
40 public class ReturnsDeepStubs implements Answer<Object>, Serializable {
47 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:ReturnsDeepStubs 66 return stubbedInvocationMatcher.answer(invocation);
79 * {@link ReturnsDeepStubs} answer in which we will store the returned type generic metadata.
112 container.addAnswer(new Answer<Object>() {
113 public Object answer(InvocationOnMock invocation) throws Throwable {
|
/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/chromium_org/third_party/libjingle/source/talk/app/webrtc/ |
webrtcsession_unittest.cc | 480 const webrtc::SessionDescriptionInterface* answer = CreateAnswer(NULL); local 481 // Answer should be NULL as no crypto params in offer. 482 ASSERT_TRUE(answer == NULL); 494 scoped_ptr<SessionDescriptionInterface> answer(CreateAnswer(NULL)); 495 ASSERT_TRUE(answer.get() != NULL); 496 VerifyCryptoParams(answer->description()); 553 // creates a local answer and applies is as a local description. 559 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 560 SetLocalDescriptionWithoutError(answer); 690 JsepSessionDescription* answer( 1012 SessionDescriptionInterface* answer = local 1065 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 1135 SessionDescriptionInterface* answer = NULL; local 1148 SessionDescriptionInterface* answer = NULL; local 1184 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 1211 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 1284 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 1310 SessionDescriptionInterface* answer = local 1320 SessionDescriptionInterface* answer = local 1332 SessionDescriptionInterface* answer = local 1358 SessionDescriptionInterface* answer = CreateRemoteAnswer( local 1496 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 1526 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 1569 SessionDescriptionInterface* answer = local 1677 SessionDescriptionInterface* answer = CreateRemoteAnswer(offer); local 1841 SessionDescriptionInterface* answer = CreateRemoteAnswer(offer, options); local 1899 SessionDescriptionInterface* answer = CreateRemoteAnswer( local 2207 SessionDescriptionInterface* answer = CreateRemoteAnswer(offer); local 2220 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 2255 SessionDescriptionInterface* answer = CreateRemoteAnswer(offer); local 2292 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 2376 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 2415 SessionDescriptionInterface* answer = CreateAnswer(NULL); local 2538 SessionDescriptionInterface* answer = local 2562 SessionDescriptionInterface* answer = local 2669 SessionDescriptionInterface* answer = ChangeSDPSctpPort( local [all...] |
peerconnectioninterface_unittest.cc | 441 scoped_ptr<SessionDescriptionInterface> answer; local 442 EXPECT_TRUE(DoCreateAnswer(answer.use())); 452 EXPECT_TRUE(answer->ToString(&sdp)); 461 scoped_ptr<SessionDescriptionInterface> answer; local 462 EXPECT_TRUE(DoCreateAnswer(answer.use())); 465 EXPECT_TRUE(answer->ToString(&sdp)); 502 webrtc::JsepSessionDescription* answer = new webrtc::JsepSessionDescription( local 504 EXPECT_TRUE(answer->Initialize(offer, NULL)); 505 EXPECT_TRUE(DoSetRemoteDescription(answer)); 516 webrtc::JsepSessionDescription* answer local 665 SessionDescriptionInterface* answer = NULL; local 693 SessionDescriptionInterface* answer = NULL; local 717 scoped_ptr<SessionDescriptionInterface> answer; local 1065 webrtc::JsepSessionDescription* answer = new webrtc::JsepSessionDescription( local 1119 SessionDescriptionInterface* answer = local 1188 talk_base::scoped_ptr<SessionDescriptionInterface> answer; local [all...] |
/external/mockito/src/org/mockito/internal/stubbing/ |
StubberImpl.java | 10 import org.mockito.stubbing.Answer;
19 final List<Answer> answers = new LinkedList<Answer>();
57 public Stubber doAnswer(Answer answer) {
58 answers.add(answer);
|
/external/qemu/telephony/ |
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 );
|
/cts/tests/src/android/os/cts/ |
ReadElf.java | 416 final int answer; local 418 answer = mBuffer[1] << 8 | mBuffer[0]; 420 answer = mBuffer[0] << 8 | mBuffer[1]; 423 return answer; 430 int answer = 0; local 433 answer = (answer << 8) | (mBuffer[i] & 0xFF); 438 answer = (answer << 8) | mBuffer[i]; 442 return answer; [all...] |
/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...] |
/external/chromium_org/v8/src/ |
serialize.h | 177 int32_t answer; 178 ASSERT(position_ + sizeof(answer) <= length_ + 0u); 179 answer = *reinterpret_cast<const int32_t*>(data_ + position_); 181 int32_t answer = data_[position_]; 182 answer |= data_[position_ + 1] << 8; 183 answer |= data_[position_ + 2] << 16; 184 answer |= data_[position_ + 3] << 24; 186 return answer; 302 uint32_t answer = GetUnalignedInt(); 303 int bytes = answer & 3 [all...] |
/external/chromium_org/sandbox/win/src/ |
sharedmem_ipc_client.cc | 53 CrossCallReturn* answer) { 103 // The server has returned an answer, copy it and free the channel. 104 memcpy(answer, params->GetCallReturn(), sizeof(CrossCallReturn)); 109 return answer->call_outcome;
|
/external/lzma/CPP/7zip/UI/Common/ |
IFileExtractCallback.h | 28 Int32 *answer) PURE;
|
/external/mockito/src/org/mockito/internal/configuration/ |
MockAnnotationProcessor.java | 31 // see @Mock answer default value 32 mockSettings.defaultAnswer(annotation.answer().get());
|
/external/valgrind/main/exp-bbv/tests/amd64-linux/ |
rep_prefix.S | 5 # The answer is validated to hw perf counters.
|
/external/easymock/src/org/easymock/internal/ |
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/Mms/src/com/android/mms/ui/ |
ConfirmRateLimitActivity.java | 111 private void doAnswer(boolean answer) { 113 intent.putExtra("answer", answer);
|
/bionic/libc/netbsd/resolv/ |
res_data.c | 202 u_char *answer, /* buffer to put answer */ 203 int anslen) /* size of answer buffer */ 209 return (res_nquery(&_nres, name, class, type, answer, anslen)); 271 u_char *answer, /* buffer to put answer */ 272 int anslen) /* size of answer */ 279 return (res_nsearch(&_nres, name, class, type, answer, anslen)); 286 u_char *answer, /* buffer to put answer */ [all...] |
/hardware/libhardware_legacy/qemu/ |
qemu.c | 98 char answer[2]; local 116 /* read answer from daemon */ 117 if (qemu_fd_read(fd, answer, 2) != 2 || 118 answer[0] != 'O' || answer[1] != 'K') { 351 char* answer, int answersize ) 388 /* read the answer */ 389 ret = qemu_fd_read( fd, answer, len ); 391 D("%s: could not read all of answer %d < %d",
|
/external/mdnsresponder/mDNSShared/ |
dnssd_clientshim.c | 354 mDNSlocal void FoundInstance(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord) 365 if (answer->rrtype != kDNSType_PTR) 366 { LogMsg("FoundInstance: Should not be called with rrtype %d (not a PTR record)", answer->rrtype); return; } 368 if (!DeconstructServiceName(&answer->rdata->u.name, &name, &type, &domain)) 371 answer->name->c, answer->rdata->u.name.c); 440 mDNSlocal void FoundServiceInfo(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord) 446 if (answer->rrtype == kDNSType_SRV && x->SRV == answer) x->SRV = mDNSNULL; 447 if (answer->rrtype == kDNSType_TXT && x->TXT == answer) x->TXT = mDNSNULL [all...] |
/external/v8/src/ |
heap-inl.h | 127 String* answer = String::cast(result); local 128 answer->set_length(str.length()); 129 answer->set_hash_field(hash_field); 131 ASSERT_EQ(size, answer->Size()); 134 memcpy(answer->address() + SeqAsciiString::kHeaderSize, 137 return answer; 160 String* answer = String::cast(result); local 161 answer->set_length(str.length()); 162 answer->set_hash_field(hash_field); 164 ASSERT_EQ(size, answer->Size()) 688 double answer = Calculate(input); local [all...] |