HomeSort by relevance Sort by last modified time
    Searched full:answer (Results 26 - 50 of 2491) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/
ReturnsMocks.java 10 import org.mockito.stubbing.Answer;
14 public class ReturnsMocks implements Answer<Object>, Serializable {
18 private final Answer<Object> delegate = new ReturnsMoreEmptyValues();
20 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsMocks
21 Object ret = delegate.answer(invocation);
  /external/mockito/src/test/java/org/mockitousage/bugs/
ClassCastExOnVerifyZeroInteractionsTest.java 7 import org.mockito.stubbing.Answer;
19 TestMock test = mock(TestMock.class, new Answer<Object>() {
20 public Object answer(InvocationOnMock invocation) throws Throwable {
30 TestMock test = mock(TestMock.class, new Answer<Object>() {
31 public Object answer(InvocationOnMock invocation) throws Throwable {
  /frameworks/base/tests/utils/testutils/java/android/app/test/
MockAnswerUtil.java 20 import org.mockito.stubbing.Answer;
32 * Answer that calls the method in the Answer called "answer" that matches the type signature of
36 public static class AnswerWithArguments implements Answer<Object> {
38 public final Object answer(InvocationOnMock invocation) throws Throwable { method in class:MockAnswerUtil.AnswerWithArguments
41 Method implementation = getClass().getMethod("answer", method.getParameterTypes());
43 throw new RuntimeException("Found answer method does not have expected return "
51 throw new RuntimeException("Error invoking answer method", e);
56 throw new RuntimeException("Could not find answer method with the expected args
    [all...]
  /art/tools/ahat/test/
QueryTest.java 28 String uri = "http://localhost:7100/object?foo=bar&answer=42";
31 assertEquals("42", query.get("answer", "not found"));
32 assertEquals(42, query.getLong("answer", 0));
33 assertEquals(42, query.getInt("answer", 0));
40 assertEquals("/object?answer=42&foo=sludge", query.with("foo", "sludge").toString());
41 assertEquals("/object?answer=43&foo=bar", query.with("answer", "43").toString());
42 assertEquals("/object?answer=43&foo=bar", query.with("answer", 43).toString());
43 assertEquals("/object?answer=42&bar=finally&foo=bar", query.with("bar", "finally").toString())
    [all...]
  /external/mockito/src/main/java/org/mockito/
AdditionalAnswers.java 11 import org.mockito.stubbing.Answer;
30 * that either return a value or are void (see answer interfaces in {@link org.mockito.stubbing}).
33 * {@link #returnsLastArg}, {@link #returnsArgAt}, {@link #answer} and {@link #answerVoid}
43 * This additional answer could be used at stub time using the
44 * <code>then|do|will{@link org.mockito.stubbing.Answer}</code> methods. For example :
79 * @return Answer that will return the first argument of the invocation.
83 public static <T> Answer<T> returnsFirstArg() {
84 return (Answer<T>) new ReturnsArgumentAt(0);
91 * This additional answer could be used at stub time using the
92 * <code>then|do|will{@link org.mockito.stubbing.Answer}</code> methods. For example
329 public static <T, A> Answer<T> answer(Answer1<T, A> answer) { method in class:AdditionalAnswers
357 public static <T, A, B> Answer<T> answer(Answer2<T, A, B> answer) { method in class:AdditionalAnswers
387 public static <T, A, B, C> Answer<T> answer(Answer3<T, A, B, C> answer) { method in class:AdditionalAnswers
419 public static <T, A, B, C, D> Answer<T> answer(Answer4<T, A, B, C, D> answer) { method in class:AdditionalAnswers
453 public static <T, A, B, C, D, E> Answer<T> answer(Answer5<T, A, B, C, D, E> answer) { method in class:AdditionalAnswers
    [all...]
  /external/mockito/src/main/java/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
Answer1.java 10 * Generic interface to be used for configuring mock's answer for a single argument invocation.
12 * Answer specifies an action that is executed and a return value that is returned when you interact with the mock.
14 * Example of stubbing a mock with this custom answer:
17 * when(mock.someMethod(anyString())).thenAnswer(new Answer&lt;Integer, String&gt;() {
18 * Integer answer(String arg) {
29 * @see Answer
40 T answer(A0 argument0) throws Throwable; method in interface:Answer1
Answer2.java 10 * Generic interface to be used for configuring mock's answer for a two argument invocation.
12 * Answer specifies an action that is executed and a return value that is returned when you interact with the mock.
14 * Example of stubbing a mock with this custom answer:
17 * when(mock.someMethod(anyString(), anyChar())).thenAnswer(new Answer&lt;String, String, Character&gt;() {
18 * String answer(String s, Character c) {
30 * @see Answer
42 T answer(A0 argument0, A1 argument1) throws Throwable; method in interface:Answer2
Answer3.java 10 * Generic interface to be used for configuring mock's answer for a three argument invocation.
12 * Answer specifies an action that is executed and a return value that is returned when you interact with the mock.
14 * Example of stubbing a mock with this custom answer:
18 * new Answer&lt;StringBuilder, Integer, String, Character&gt;() {
19 * StringBuilder answer(Integer i, String s, Character c) {
32 * @see Answer
45 T answer(A0 argument0, A1 argument1, A2 argument2) throws Throwable; method in interface:Answer3
VoidAnswer2.java 10 * Generic interface to be used for configuring mock's answer for a two argument invocation that returns nothing.
12 * Answer specifies an action that is executed when you interact with the mock.
14 * Example of stubbing a mock with this custom answer:
17 * when(mock.someMethod(anyString(), anyInt())).thenAnswer(new Answer&lt;String, Integer&gt;() {
18 * void answer(String msg, Integer count) {
29 * @see Answer
39 void answer(A0 argument0, A1 argument1) throws Throwable; method in interface:VoidAnswer2
VoidAnswer3.java 10 * Generic interface to be used for configuring mock's answer for a three argument invocation that returns nothing.
12 * Answer specifies an action that is executed when you interact with the mock.
14 * Example of stubbing a mock with this custom answer:
17 * when(mock.someMethod(anyString(), anyInt(), anyString())).thenAnswer(new Answer&lt;String, Integer, String&gt;() {
18 * void answer(String msg, Integer count, String another) {
30 * @see Answer
41 void answer(A0 argument0, A1 argument1, A2 argument2) throws Throwable; method in interface:VoidAnswer3
VoidAnswer4.java 10 * Generic interface to be used for configuring mock's answer for a four argument invocation that returns nothing.
12 * Answer specifies an action that is executed when you interact with the mock.
14 * Example of stubbing a mock with this custom answer:
18 * new Answer&lt;String, Integer, String, Character&gt;() {
19 * void answer(String msg, Integer count, String another, Character c) {
32 * @see Answer
44 void answer(A0 argument0, A1 argument1, A2 argument2, A3 argument3) throws Throwable; method in interface:VoidAnswer4
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/res/values/
strings.xml 4 <string name="call_incoming_swipe_to_answer_video_as_audio">Swipe from icon to answer as an audio call</string>
5 <string name="call_incoming_default_label_answer_and_release_second">Swipe up to answer and hold ongoing call</string>
6 <string name="call_incoming_default_label_answer_and_release_third">Swipe up to answer and end call on hold</string>
7 <string name="call_incoming_swipe_to_answer_and_release">Swipe from icon to answer and end ongoing call</string>
18 <string name="a11y_incoming_call_answer_video_as_audio">Answer as audio call</string>
19 <string name="a11y_incoming_call_answer_and_release">Answer and end ongoing call</string>
21 <string name="a11y_description_incoming_call_answer_video_as_audio">Answer as audio call</string>
22 <string name="a11y_description_incoming_call_answer_and_release">Answer and end ongoing call</string>
28 name="a11y_incoming_call_swipe_gesture_prompt">Two finger swipe up to answer. Two finger swipe down to decline.</string>
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/res/values-en-rAU/
strings.xml 5 <string name="call_incoming_swipe_to_answer_video_as_audio" msgid="2656902519734774070">"Swipe from icon to answer as an audio call"</string>
6 <string name="call_incoming_default_label_answer_and_release_second" msgid="4543429977872844314">"Swipe up to answer and hold ongoing call"</string>
7 <string name="call_incoming_default_label_answer_and_release_third" msgid="1738895612225349741">"Swipe up to answer and end call on hold"</string>
8 <string name="call_incoming_swipe_to_answer_and_release" msgid="662432029870261061">"Swipe from icon to answer and end ongoing call"</string>
16 <string name="a11y_incoming_call_answer_video_as_audio" msgid="3890612269318682756">"Answer as an audio call"</string>
17 <string name="a11y_incoming_call_answer_and_release" msgid="4896746774725239464">"Answer and end ongoing call"</string>
19 <string name="a11y_description_incoming_call_answer_video_as_audio" msgid="1562530317428907884">"Answer as an audio call"</string>
20 <string name="a11y_description_incoming_call_answer_and_release" msgid="8511087499748888476">"Answer and end ongoing call"</string>
22 <string name="a11y_incoming_call_swipe_gesture_prompt" msgid="8682480557168484972">"Swipe up with two fingers to answer. Swipe down with two fingers to decline."</string>
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/res/values-en-rGB/
strings.xml 5 <string name="call_incoming_swipe_to_answer_video_as_audio" msgid="2656902519734774070">"Swipe from icon to answer as an audio call"</string>
6 <string name="call_incoming_default_label_answer_and_release_second" msgid="4543429977872844314">"Swipe up to answer and hold ongoing call"</string>
7 <string name="call_incoming_default_label_answer_and_release_third" msgid="1738895612225349741">"Swipe up to answer and end call on hold"</string>
8 <string name="call_incoming_swipe_to_answer_and_release" msgid="662432029870261061">"Swipe from icon to answer and end ongoing call"</string>
16 <string name="a11y_incoming_call_answer_video_as_audio" msgid="3890612269318682756">"Answer as an audio call"</string>
17 <string name="a11y_incoming_call_answer_and_release" msgid="4896746774725239464">"Answer and end ongoing call"</string>
19 <string name="a11y_description_incoming_call_answer_video_as_audio" msgid="1562530317428907884">"Answer as an audio call"</string>
20 <string name="a11y_description_incoming_call_answer_and_release" msgid="8511087499748888476">"Answer and end ongoing call"</string>
22 <string name="a11y_incoming_call_swipe_gesture_prompt" msgid="8682480557168484972">"Swipe up with two fingers to answer. Swipe down with two fingers to decline."</string>
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/res/values-en-rIN/
strings.xml 5 <string name="call_incoming_swipe_to_answer_video_as_audio" msgid="2656902519734774070">"Swipe from icon to answer as an audio call"</string>
6 <string name="call_incoming_default_label_answer_and_release_second" msgid="4543429977872844314">"Swipe up to answer and hold ongoing call"</string>
7 <string name="call_incoming_default_label_answer_and_release_third" msgid="1738895612225349741">"Swipe up to answer and end call on hold"</string>
8 <string name="call_incoming_swipe_to_answer_and_release" msgid="662432029870261061">"Swipe from icon to answer and end ongoing call"</string>
16 <string name="a11y_incoming_call_answer_video_as_audio" msgid="3890612269318682756">"Answer as an audio call"</string>
17 <string name="a11y_incoming_call_answer_and_release" msgid="4896746774725239464">"Answer and end ongoing call"</string>
19 <string name="a11y_description_incoming_call_answer_video_as_audio" msgid="1562530317428907884">"Answer as an audio call"</string>
20 <string name="a11y_description_incoming_call_answer_and_release" msgid="8511087499748888476">"Answer and end ongoing call"</string>
22 <string name="a11y_incoming_call_swipe_gesture_prompt" msgid="8682480557168484972">"Swipe up with two fingers to answer. Swipe down with two fingers to decline."</string>
  /external/mockito/src/test/java/org/mockito/internal/configuration/
ClassPathLoaderTest.java 5 import org.mockito.stubbing.Answer;
16 ConfigurationAccess.getConfig().overrideDefaultAnswer(new Answer<Object>() {
17 public Object answer(InvocationOnMock invocation) {
  /external/llvm/test/YAMLParser/
construct-bool.test 4 answer: NO
  /external/valgrind/none/tests/
floored.c 9 printf ( "the answer is %d\n", xToI () );
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/res/values-en-rAU/
strings.xml 4 <string name="call_incoming_swipe_to_answer" msgid="2959042172304267183">"Swipe up to answer"</string>
6 <string name="a11y_incoming_call_swipe_to_answer" msgid="6992663569851713736">"Swipe up with two fingers to answer, or down to reject the call"</string>
10 <string name="a11y_call_incoming_answer_description" msgid="1623200501347799736">"Answer"</string>
11 <string name="call_incoming_answer" msgid="841798555883717852">"Answer"</string>
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/res/values-en-rGB/
strings.xml 4 <string name="call_incoming_swipe_to_answer" msgid="2959042172304267183">"Swipe up to answer"</string>
6 <string name="a11y_incoming_call_swipe_to_answer" msgid="6992663569851713736">"Swipe up with two fingers to answer, or down to reject the call"</string>
10 <string name="a11y_call_incoming_answer_description" msgid="1623200501347799736">"Answer"</string>
11 <string name="call_incoming_answer" msgid="841798555883717852">"Answer"</string>
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/res/values-en-rIN/
strings.xml 4 <string name="call_incoming_swipe_to_answer" msgid="2959042172304267183">"Swipe up to answer"</string>
6 <string name="a11y_incoming_call_swipe_to_answer" msgid="6992663569851713736">"Swipe up with two fingers to answer, or down to reject the call"</string>
10 <string name="a11y_call_incoming_answer_description" msgid="1623200501347799736">"Answer"</string>
11 <string name="call_incoming_answer" msgid="841798555883717852">"Answer"</string>
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/
proguard.flags 1 # Used in com.android.dialer.answer.impl.SmsBottomSheetFragment
  /external/mockito/src/test/java/org/mockitousage/stubbing/
StubbingWithCustomAnswerTest.java 10 import org.mockito.stubbing.Answer;
26 when(mock.simpleMethod(anyString())).thenAnswer(new Answer<String>() {
27 public String answer(InvocationOnMock invocation) throws Throwable {
50 .thenAnswer(new Answer<String>() {
51 public String answer(InvocationOnMock invocation) throws Throwable {
56 .thenAnswer(new Answer<String>() {
57 public String answer(InvocationOnMock invocation) throws Throwable {
104 when(mock.simpleMethod(anyString())).thenAnswer(new Answer<String>() {
105 public String answer(InvocationOnMock invocation) throws Throwable {
116 private static class RecordCall implements Answer<Object>
123 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:StubbingWithCustomAnswerTest.RecordCall
    [all...]
  /external/mockito/src/main/java/org/mockito/internal/
InternalMockHandler.java 12 import org.mockito.stubbing.Answer;
18 void setAnswersForStubbing(List<Answer<?>> answers);

Completed in 3441 milliseconds

12 3 4 5 6 7 8 91011>>