HomeSort by relevance Sort by last modified time
    Searched refs:Answer (Results 51 - 75 of 108) sorted by null

1 23 4 5

  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
IccPhoneBookInterfaceManagerTest.java 35 import org.mockito.stubbing.Answer;
73 doAnswer(new Answer<Void>() {
75 public Void answer(InvocationOnMock invocation) throws Throwable {
99 doAnswer(new Answer<Void>() {
101 public Void answer(InvocationOnMock invocation) throws Throwable {
  /cts/tests/tests/print/src/android/print/cts/
PrinterCapabilitiesTest.java 41 import org.mockito.stubbing.Answer;
189 new Answer<Void>() {
191 public Void answer(InvocationOnMock invocation) throws Throwable {
209 new Answer<Void>() {
211 public Void answer(InvocationOnMock invocation) throws Throwable {
278 createMockPrinterDiscoverySessionCallbacks(new Answer<Void>() {
280 public Void answer(InvocationOnMock invocation) {
290 }, null, null, null, null, null, new Answer<Void>() {
292 public Void answer(InvocationOnMock invocation) {
300 new Answer<PrinterDiscoverySessionCallbacks>()
    [all...]
PrintServicesTest.java 61 import org.mockito.stubbing.Answer;
102 new Answer<Void>() {
104 public Void answer(InvocationOnMock invocation) throws Throwable {
120 }, new Answer<Void>() {
122 public Void answer(InvocationOnMock invocation) throws Throwable { method
137 }, new Answer<Void>() {
139 public Void answer(InvocationOnMock invocation) throws Throwable { method
154 return createMockPrinterDiscoverySessionCallbacks(new Answer<Void>() {
156 public Void answer(InvocationOnMock invocation) {
194 }, null, null, new Answer<Void>()
    [all...]
PrintAttributesTest.java 41 import org.mockito.stubbing.Answer;
143 return createMockPrinterDiscoverySessionCallbacks(new Answer<Void>() {
145 public Void answer(InvocationOnMock invocation) {
198 }, null, null, new Answer<Void>() {
200 public Void answer(InvocationOnMock invocation) throws Throwable { method
203 }, null, null, new Answer<Void>() {
205 public Void answer(InvocationOnMock invocation) throws Throwable { method
232 new Answer<Void>() {
234 public Void answer(InvocationOnMock invocation) throws Throwable {
247 }, new Answer<Void>()
    [all...]
PrintJobTest.java 44 import org.mockito.stubbing.Answer;
85 new Answer<Void>() {
87 public Void answer(InvocationOnMock invocation) throws Throwable {
100 }, new Answer<Void>() {
102 public Void answer(InvocationOnMock invocation) throws Throwable { method
114 }, new Answer<Void>() {
116 public Void answer(InvocationOnMock invocation) throws Throwable { method
128 return createMockPrinterDiscoverySessionCallbacks(new Answer<Void>() {
130 public Void answer(InvocationOnMock invocation) {
156 }, null, null, new Answer<Void>()
    [all...]
BasePrintTest.java 64 import org.mockito.stubbing.Answer;
633 protected PrintDocumentAdapter createMockPrintDocumentAdapter(Answer<Void> layoutAnswer,
634 Answer<Void> writeAnswer, Answer<Void> finishAnswer) {
655 Answer<Void> onStartPrinterDiscovery, Answer<Void> onStopPrinterDiscovery,
656 Answer<Void> onValidatePrinters, Answer<Void> onStartPrinterStateTracking,
657 Answer<Void> onRequestCustomPrinterIcon, Answer<Void> onStopPrinterStateTracking
    [all...]
  /packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
RecommendationUtils.java 27 import org.mockito.stubbing.Answer;
46 Mockito.doAnswer(new Answer<Integer>() {
48 public Integer answer(InvocationOnMock invocation) throws Throwable {
52 Mockito.doAnswer(new Answer<Collection<ChannelRecord>>() {
54 public Collection<ChannelRecord> answer(InvocationOnMock invocation) throws Throwable {
58 Mockito.doAnswer(new Answer<ChannelRecord>() {
60 public ChannelRecord answer(InvocationOnMock invocation) throws Throwable {
  /external/mockito/src/org/mockito/internal/handler/
InvocationNotifierHandler.java 15 import org.mockito.stubbing.Answer;
76 public void setAnswersForStubbing(List<Answer> answers) {
MockHandlerImpl.java 18 import org.mockito.stubbing.Answer;
86 // look for existing answer for this invocation
91 return stubbedInvocation.answer(invocation);
93 Object ret = mockSettings.getDefaultAnswer().answer(invocation);
114 public void setAnswersForStubbing(List<Answer> answers) {
  /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...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
MockKeyStore.java 13 import org.mockito.stubbing.Answer;
40 .thenAnswer(new Answer<Boolean>() {
43 public Boolean answer(InvocationOnMock invocation) throws Throwable {
51 .thenAnswer(new Answer<Boolean>() {
54 public Boolean answer(InvocationOnMock invocation) throws Throwable {
61 when(mock.delete(anyString(), anyInt())).thenAnswer(new Answer<Boolean>() {
64 public Boolean answer(InvocationOnMock invocation) throws Throwable {
70 when(mock.contains(anyString(), anyInt())).thenAnswer(new Answer<Boolean>() {
73 public Boolean answer(InvocationOnMock invocation) throws Throwable {
80 .thenAnswer(new Answer<Boolean>()
    [all...]
  /packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
InstallPackageTaskTest.java 43 import org.mockito.stubbing.Answer;
106 Answer installerAnswer = new Answer() {
108 public Object answer(InvocationOnMock invocation) throws Throwable {
132 Answer installerAnswer = new Answer() {
134 public Object answer(InvocationOnMock invocation) throws Throwable {
  /external/mockito/src/org/mockito/internal/creation/
MockSettingsImpl.java 18 import org.mockito.stubbing.Answer;
75 public MockSettings defaultAnswer(Answer defaultAnswer) {
83 public Answer<Object> getDefaultAnswer() {
  /packages/apps/TV/tests/unit/src/com/android/tv/data/
TvInputNewComparatorTest.java 35 import org.mockito.stubbing.Answer;
58 new Answer<Boolean>() {
60 public Boolean answer(InvocationOnMock invocation) throws Throwable {
67 new Answer<Boolean>() {
69 public Boolean answer(InvocationOnMock invocation) throws Throwable {
ChannelTest.java 33 import org.mockito.stubbing.Answer;
88 Mockito.doAnswer(new Answer<ActivityInfo>() {
90 public ActivityInfo answer(InvocationOnMock invocation) {
187 new Answer<Boolean>() {
189 public Boolean answer(InvocationOnMock invocation) throws Throwable {
233 new Answer<Boolean>() {
235 public Boolean answer(InvocationOnMock invocation) throws Throwable {
  /external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
ReturnsEmptyValues.java 13 import org.mockito.stubbing.Answer;
32 * Default answer of every Mockito mock.
54 public class ReturnsEmptyValues implements Answer<Object>, Serializable {
61 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock)
63 public Object answer(InvocationOnMock invocation) { method in class:ReturnsEmptyValues
  /packages/apps/Messaging/tests/src/com/android/messaging/
FakeFactory.java 47 import org.mockito.stubbing.Answer;
89 .thenAnswer(new Answer<String>() {
91 public String answer(final InvocationOnMock invocation) throws Throwable {
98 new Answer<String>() {
100 public String answer(final InvocationOnMock invocation) throws Throwable {
107 new Answer<String>() {
109 public String answer(final InvocationOnMock invocation) throws Throwable {
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
ImsPhoneCallTrackerTest.java 45 import org.mockito.stubbing.Answer;
87 doAnswer(new Answer<Void>() {
89 public Void answer(InvocationOnMock invocation) throws Throwable {
98 doAnswer(new Answer<Void>() {
100 public Void answer(InvocationOnMock invocation) throws Throwable {
111 doAnswer(new Answer<Void>() {
113 public Void answer(InvocationOnMock invocation) throws Throwable {
123 doAnswer(new Answer<Void>() {
125 public Void answer(InvocationOnMock invocation) throws Throwable {
151 doAnswer(new Answer<Integer>()
    [all...]
ImsExternalCallTrackerTest.java 31 import org.mockito.stubbing.Answer;
  /packages/apps/Dialer/tests/src/com/android/dialer/filterednumber/
BlockedNumbersAutoMigratorTest.java 37 import org.mockito.stubbing.Answer;
192 doAnswer(new Answer<Void>() {
194 public Void answer(InvocationOnMock invocation) throws Throwable {
  /packages/apps/TV/tests/unit/src/com/android/tv/menu/
MenuTest.java 26 import org.mockito.stubbing.Answer;
131 Mockito.when(mMenuView.isVisible()).thenAnswer(new Answer<Boolean>() {
133 public Boolean answer(InvocationOnMock invocation) throws Throwable {
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
FakeSystemFacade.java 16 import org.mockito.stubbing.Answer;
73 when(network.openConnection(any())).then(new Answer<URLConnection>() {
75 public URLConnection answer(InvocationOnMock invocation) throws Throwable {
  /cts/tests/tests/appwidget/src/android/appwidget/cts/
AppWidgetTest.java 63 import org.mockito.stubbing.Answer;
782 doAnswer(new Answer<Void>() {
784 public Void answer(InvocationOnMock invocation) throws Throwable {
    [all...]
  /external/v8/test/mjsunit/
constant-folding.js 214 // Answer is non-Smi so the subtraction is not folded in the code
221 // Answer is non-smi and lhs of << is a temporary heap number that we can
226 // Answer is non-smi and lhs of << is a temporary heap number that we think
  /frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DevicePolicyManagerServiceMigrationTest.java 32 import org.mockito.stubbing.Answer;
112 doAnswer(new Answer<Void>() {
114 public Void answer(InvocationOnMock invocation) throws Throwable {
227 doAnswer(new Answer<Void>() {
229 public Void answer(InvocationOnMock invocation) throws Throwable {

Completed in 1952 milliseconds

1 23 4 5