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

1 2 3 4 5 6 7 8 910

  /external/valgrind/main/memcheck/tests/
varinfo4.stdout.exp 0 answer is 0
xml1.stdout.exp 1 hello from frame3(). The answer is not 42.
  /external/valgrind/main/none/tests/
floored.stdout.exp 1 the answer is 3
  /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
  /ndk/sources/host-tools/make-3.81/tests/scripts/targets/
SECONDARY 39 $answer = "cp foo.f foo.e\ncp foo.e foo.d\n";
40 &compare_output($answer, &get_logfile(1));
47 $answer = "$make_name: `foo.d' is up to date.\n";
48 &compare_output($answer, &get_logfile(1));
56 $answer = "cp foo.f foo.e\ncp foo.e foo.d\n";
57 &compare_output($answer, &get_logfile(1));
62 $answer = "cp foo.e foo.c\n";
63 &compare_output($answer, &get_logfile(1));
70 $answer = "$make_name: `foo.c' is up to date.\n";
71 &compare_output($answer, &get_logfile(1))
    [all...]
  /external/mockito/src/org/mockito/internal/stubbing/answers/
AnswersValidator.java 9 import org.mockito.stubbing.Answer;
15 public void validate(Answer<?> answer, Invocation invocation) {
17 if (answer instanceof ThrowsException) {
18 validateException((ThrowsException) answer, methodInfo);
21 if (answer instanceof Returns) {
22 validateReturnValue((Returns) answer, methodInfo);
25 if (answer instanceof DoesNothing) {
26 validateDoNothing((DoesNothing) answer, methodInfo);
29 if (answer instanceof CallsRealMethods) {
    [all...]
CallsRealMethods.java 10 import org.mockito.stubbing.Answer;
13 * Optional Answer that adds partial mocking support
15 * {@link Answer} can be used to define the return values of unstubbed invocations.
32 public class CallsRealMethods implements Answer<Object>, Serializable {
35 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:CallsRealMethods
  /external/mockito/src/org/mockito/internal/stubbing/
ConsecutiveStubbing.java 7 import org.mockito.stubbing.Answer;
18 public OngoingStubbing<T> thenAnswer(Answer<?> answer) {
19 invocationContainerImpl.addConsecutiveAnswer(answer);
23 public OngoingStubbing<T> then(Answer<?> answer) {
24 return thenAnswer(answer);
27 public DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer) {
28 invocationContainerImpl.addConsecutiveAnswer(answer);
    [all...]
OngoingStubbingImpl.java 9 import org.mockito.stubbing.Answer;
23 public OngoingStubbing<T> thenAnswer(Answer<?> answer) {
28 invocationContainerImpl.addAnswer(answer);
32 public OngoingStubbing<T> then(Answer<?> answer) {
33 return thenAnswer(answer);
36 public DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer) {
37 invocationContainerImpl.addAnswer(answer);
    [all...]
StubbedInvocationMatcher.java 14 import org.mockito.stubbing.Answer;
17 public class StubbedInvocationMatcher extends InvocationMatcher implements Answer, Serializable {
20 private final Queue<Answer> answers = new ConcurrentLinkedQueue<Answer>();
23 public StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer) {
25 this.answers.add(answer);
28 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:StubbedInvocationMatcher
30 Answer a;
34 return a.answer(invocation);
    [all...]
InvocationContainerImpl.java 16 import org.mockito.stubbing.Answer;
29 private final List<Answer> answersForStubbing = new ArrayList<Answer>();
48 public void addAnswer(Answer answer) {
50 addAnswer(answer, false);
53 public void addConsecutiveAnswer(Answer answer) {
54 addAnswer(answer, true);
57 public void addAnswer(Answer answer, boolean isConsecutive)
    [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);
  /prebuilts/tools/common/proguard/proguard4.7/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);
  /external/mockito/src/org/mockito/stubbing/
Answer.java 10 * Generic interface to be used for configuring mock's answer.
11 * Answer specifies an action that is executed and a return value that is returned when you interact with the mock.
13 * Example of stubbing a mock with custom answer:
16 * when(mock.someMethod(anyString())).thenAnswer(new Answer() {
17 * Object answer(InvocationOnMock invocation) {
30 public interface Answer<T> {
38 T answer(InvocationOnMock invocation) throws Throwable; method in interface:Answer
OngoingStubbing.java 148 * Sets a generic Answer for the method. E.g:
150 * when(mock.someMethod(10)).thenAnswer(new Answer&lt;Integer&gt;() {
151 * public Integer answer(InvocationOnMock invocation) throws Throwable {
157 * @param answer the custom answer to execute.
161 OngoingStubbing<T> thenAnswer(Answer<?> answer);
164 * Sets a generic Answer for the method.
166 * This method is an alias of {@link #thenAnswer(Answer)}. This alias allows
176 * @param answer the custom answer to execute.
    [all...]
  /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();
  /packages/apps/Email/
remove-exchange-support.sh 33 read answer
34 if [[ "$answer" != y ]] ; then
  /external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
GloballyConfiguredAnswer.java 12 import org.mockito.stubbing.Answer;
15 * Globally configured Answer.
19 public class GloballyConfiguredAnswer implements Answer<Object>, Serializable {
23 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:GloballyConfiguredAnswer
24 return new GlobalConfiguration().getDefaultAnswer().answer(invocation);
  /external/guava/guava-tests/test/com/google/common/collect/
SortedListsTest.java 41 void assertModelAgrees(List<Integer> list, Integer key, int answer,
46 assertEquals(list.indexOf(key), answer); local
52 assertEquals(list.lastIndexOf(key), answer); local
58 assertEquals(key, list.get(answer));
64 assertEquals(list.lastIndexOf(key) + 1, answer); local
70 assertEquals(list.indexOf(key) - 1, answer); local
84 assertEquals(nextHigherIndex - 1, answer);
87 assertEquals(nextHigherIndex, answer);
90 assertEquals(-1 - nextHigherIndex, answer);
  /external/smack/src/org/jivesoftware/smackx/
OfflineMessageManager.java 113 List<OfflineMessageHeader> answer = new ArrayList<OfflineMessageHeader>(); local
118 answer.add(new OfflineMessageHeader(item));
120 return answer.iterator();
143 // Filter packets looking for an answer from the server.
158 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local
162 if (answer == null) {
164 } else if (answer.getError() != null) {
165 throw new XMPPException(answer.getError());
195 // Filter packets looking for an answer from the server.
203 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()) local
248 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local
274 IQ answer = (IQ) response.nextResult(SmackConfiguration.getPacketReplyTimeout()); local
    [all...]
  /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__ );
  /external/mockito/src/org/mockito/
BDDMockito.java 7 import org.mockito.stubbing.Answer;
67 * See original {@link OngoingStubbing#thenAnswer(Answer)}
70 BDDMyOngoingStubbing<T> willAnswer(Answer<?> answer);
73 * See original {@link OngoingStubbing#then(Answer)}
76 BDDMyOngoingStubbing<T> will(Answer<?> answer);
124 * @see BDDMockito.BDDMyOngoingStubbing#willAnswer(Answer)
126 public BDDMyOngoingStubbing<T> willAnswer(Answer<?> answer) {
    [all...]
  /external/v8/test/mjsunit/
mod.js 30 var answer = 1;
32 if (answer == i) answer = 0;
34 print(j + " % " + i + " = " + answer);
36 assertEquals(answer, m, j + " % " + i);
38 assertEquals(answer, m, j + " % -" + i);
41 assertEquals(-answer, m, j + " % " + i);
43 if (answer == 0) assertEquals(-Infinity, 1/m);
45 assertEquals(-answer, m, j + " % -" + i);
47 if (answer == 0) assertEquals(-Infinity, 1/m)
    [all...]

Completed in 1087 milliseconds

1 2 3 4 5 6 7 8 910