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

1 2 3 4 5 6 7 8 91011>>

  /external/valgrind/memcheck/tests/
suppvarinfo5.stderr.exp 0 answer is 0
varinfo4.stdout.exp 0 answer is 0
xml1.stdout.exp 1 hello from frame3(). The answer is not 42.
  /external/valgrind/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...]
  /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...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setoolsgui/networkx/algorithms/bipartite/tests/
test_centrality.py 17 answer = {0: 0.5, 1: 1.0, 2: 1.0, 3: 0.5}
18 assert_equal(d, answer)
20 answer = {0: 1.0, 1: 1.0, 2: 1.0, 3: 1.0, 4: 1.0, 5: 1.0}
21 assert_equal(d, answer)
23 answer = {0: 1.0, 1: 1.0, 2: 1.0, 3: 1.0}
24 assert_equal(d,answer)
28 answer = {0: 0.0, 1: 1.0, 2: 1.0, 3: 0.0}
29 assert_equal(c, answer)
31 answer = {0: 0.125, 1: 0.125, 2: 0.125, 3: 0.125, 4: 0.125, 5: 0.125}
32 assert_equal(c, answer)
    [all...]
test_cluster.py 25 answer={0:0,1:1,2:1,3:1}
26 assert_equal(bipartite.clustering(G,mode='dot'),answer)
27 assert_equal(bipartite.clustering(G,mode='min'),answer)
28 assert_equal(bipartite.clustering(G,mode='max'),answer)
40 answer={0:0.5,1:0.5,2:0.5,3:0.5}
41 assert_equal(bipartite.clustering(G,mode='dot'),answer)
42 assert_equal(bipartite.clustering(G,mode='max'),answer)
43 answer={0:1,1:1,2:1,3:1}
44 assert_equal(bipartite.clustering(G,mode='min'),answer)
  /external/proguard/examples/annotations/examples/
NativeCallBack.java 18 * Suppose this is a native method that computes an answer.
48 int answer = new NativeCallBack().computeAnswer(); local
50 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);
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setoolsgui/networkx/algorithms/assortativity/tests/
test_neighbor_degree.py 9 answer={0:2,1:1.5,2:1.5,3:2}
11 assert_equal(nd,answer)
15 assert_equal(nd,answer)
19 assert_equal(nd,answer)
23 assert_equal(nd,answer)
28 answer={0:2,1:1.8,2:1.8,3:2}
30 assert_equal(nd,answer)
34 assert_equal(nd,answer)
38 assert_equal(nd,answer)
41 assert_equal(nd,answer)
    [all...]
test_connectivity.py 9 answer={1:2.0,2:1.5}
11 assert_equal(nd,answer)
14 answer={2:2.0,4:1.5}
16 assert_equal(nd,answer)
18 answer={1:2.0,2:1.5}
21 assert_equal(nd,answer)
25 assert_equal(nd,answer)
30 answer={1:2.0,2:1.8}
32 assert_equal(nd,answer)
33 answer={1:2.0,2:1.5
    [all...]
  /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
  /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();
  /bionic/libc/dns/include/
resolv_cache.h 44 /* or the answer buffer is too small */
46 RESOLV_CACHE_FOUND /* the cache found the answer */
54 void* answer,
58 /* add a (query,answer) to the cache, only call if _resolv_cache_lookup
66 const void* answer,
  /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/libnl/src/lib/
utils.c 116 int answer; local
124 answer = tolower(getchar());
125 if (answer == '\n')
126 answer = default_yes ? 'y' : 'n';
127 } while (answer != 'y' && answer != 'n');
129 return answer == 'y';
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
SortedListsTest.java 37 void assertModelAgrees(List<Integer> list, Integer key, int answer,
42 assertEquals(list.indexOf(key), answer); local
48 assertEquals(list.lastIndexOf(key), answer); local
54 assertEquals(key, list.get(answer));
60 assertEquals(list.lastIndexOf(key) + 1, answer); local
66 assertEquals(list.indexOf(key) - 1, answer); local
80 assertEquals(nextHigherIndex - 1, answer);
83 assertEquals(nextHigherIndex, answer);
86 assertEquals(-1 - nextHigherIndex, answer);
  /external/guava/guava-tests/test/com/google/common/collect/
SortedListsTest.java 39 void assertModelAgrees(List<Integer> list, Integer key, int answer,
44 assertEquals(list.indexOf(key), answer); local
50 assertEquals(list.lastIndexOf(key), answer); local
56 assertEquals(key, list.get(answer));
62 assertEquals(list.lastIndexOf(key) + 1, answer); local
68 assertEquals(list.indexOf(key) - 1, answer); local
82 assertEquals(nextHigherIndex - 1, answer);
85 assertEquals(nextHigherIndex, answer);
88 assertEquals(-1 - nextHigherIndex, answer);
  /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...]

Completed in 1272 milliseconds

1 2 3 4 5 6 7 8 91011>>