/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
MediaInserterTest.java | 150 (Uri) EasyMock.anyObject(), (ContentValues[]) EasyMock.anyObject())).andReturn(1); 165 (Uri) EasyMock.anyObject(), (ContentValues[]) EasyMock.anyObject())).andReturn(1); 189 (Uri) EasyMock.anyObject(), (ContentValues[]) EasyMock.anyObject())).andReturn(1); 205 (Uri) EasyMock.anyObject(), (ContentValues[]) EasyMock.anyObject())).andReturn(1); 227 (ContentValues[]) EasyMock.anyObject())).andReturn(1); 231 (ContentValues[]) EasyMock.anyObject())).andReturn(1) [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiConnectivityManagerTest.java | 147 }}).when(scanner).startBackgroundScan(anyObject(), anyObject(), anyObject()); 154 }}).when(scanner).startScan(anyObject(), anyObject(), anyObject()); 172 }}).when(scanner).startDisconnectedPnoScan(anyObject(), anyObject(), anyObject()); 178 }}).when(scanner).startConnectedPnoScan(anyObject(), anyObject(), anyObject()) [all...] |
WifiLoggerTest.java | 29 import static org.mockito.Mockito.anyObject; 114 verify(mWifiNative).setLoggingEventHandler(anyObject()); 126 when(mWifiNative.setLoggingEventHandler(anyObject())).thenReturn(false); 128 verify(mWifiNative).setLoggingEventHandler(anyObject()); 131 when(mWifiNative.setLoggingEventHandler(anyObject())).thenReturn(true); 133 verify(mWifiNative).setLoggingEventHandler(anyObject()); 142 when(mWifiNative.setLoggingEventHandler(anyObject())).thenReturn(true); 144 verify(mWifiNative).setLoggingEventHandler(anyObject()); 148 verify(mWifiNative, never()).setLoggingEventHandler(anyObject()); 175 when(mWifiNative.setLoggingEventHandler(anyObject())).thenReturn(true) [all...] |
WifiConfigManagerTest.java | 183 }}).when(mWriter).write(anyString(), (DelayedDiskWrite.Writer) anyObject()); 229 when(mWifiNative.setNetworkExtra(anyInt(), anyString(), (Map<String, String>) anyObject())) 461 (Map<String, String>) anyObject())).thenReturn(true); 488 (Map<String, String>) anyObject()); [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/ |
BuzzBeepBlinkTest.java | 40 import static org.mockito.Matchers.anyObject; 167 verify(mRingtonePlayer, never()).playAsync((Uri) anyObject(), (UserHandle) anyObject(), 168 anyBoolean(), (AudioAttributes) anyObject()); 172 verify(mRingtonePlayer, times(1)).playAsync((Uri) anyObject(), (UserHandle) anyObject(), 173 eq(true), (AudioAttributes) anyObject()); 177 verify(mRingtonePlayer, times(1)).playAsync((Uri) anyObject(), (UserHandle) anyObject(), 178 eq(false), (AudioAttributes) anyObject()); [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
IccPhoneBookInterfaceManagerTest.java | 25 import static org.mockito.Matchers.anyObject; 82 }).when(mAdnRecordCache).requestLoadAllAdnLike(anyInt(), anyInt(), (Message) anyObject()); 107 }).when(mAdnRecordCache).requestLoadAllAdnLike(anyInt(), anyInt(), (Message) anyObject());
|
/external/guava/guava-tests/test/com/google/common/collect/ |
ForwardingMapTest.java | 18 import static org.easymock.EasyMock.anyObject; 256 expect(map.containsKey(anyObject())).andReturn(false).anyTimes(); 257 expect(map.get(anyObject())).andReturn(null).anyTimes(); 259 expect(map.remove(anyObject())).andReturn(null).anyTimes(); 296 expect(map.containsKey(anyObject())).andReturn(false).anyTimes(); 298 expect(map.remove(anyObject())).andReturn(null).anyTimes(); 328 expect(map.containsValue(anyObject())).andReturn(false).anyTimes();
|
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
TextToSpeechTests.java | 109 LittleMock.<SynthesisCallback>anyObject()); 132 LittleMock.<SynthesisCallback>anyObject()); 176 LittleMock.<SynthesisCallback>anyObject()); 188 doCountDown(latch).when(mock).onSynthesizeText(LittleMock.<SynthesisRequest>anyObject(), 189 LittleMock.<SynthesisCallback>anyObject());
|
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/ |
WebViewUpdateServiceTest.java | 285 Matchers.anyObject()); 302 Matchers.anyObject()); 447 Matchers.anyObject(), Mockito.eq(fallbackPackage)); 450 Matchers.anyObject(), Matchers.anyObject()); 464 Matchers.anyObject(), Mockito.eq(fallbackPackage)); 468 Matchers.anyObject(), Matchers.anyObject()); 493 Matchers.anyObject(), Matchers.anyObject()); [all...] |
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
FilterDefinitionTest.java | 3 import static org.easymock.EasyMock.anyObject; 46 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())) 98 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())) 159 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())) 225 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())) 260 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject()))
|
ServletDefinitionTest.java | 19 import static org.easymock.EasyMock.anyObject; 56 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject()))
|
ServletDefinitionPathsTest.java | 20 import static org.easymock.EasyMock.anyObject; 72 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())) 151 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())) 251 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject()))
|
ServletPipelineRequestDispatcherTest.java | 20 import static org.easymock.EasyMock.anyObject; 93 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())) 163 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())) 234 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject()))
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/ |
CtsTestTest.java | 177 mMockTest.run((ITestInvocationListener)EasyMock.anyObject()); 236 mMockPlan.parse((InputStream) EasyMock.anyObject()); 270 mMockPlan.parse((InputStream) EasyMock.anyObject()); 284 EasyMock.expect(mMockPackageDef.createTest((File) EasyMock.anyObject())).andReturn(mMockTest); 292 mMockTest.run((ITestInvocationListener) EasyMock.anyObject());
|
DeqpTestRunnerTest.java | 189 EasyMock.expect(mockDevice.installPackage(EasyMock.<File>anyObject(), 334 EasyMock.expect(mockDevice.installPackage(EasyMock.<File>anyObject(), 504 EasyMock.expect(mockDevice.installPackage(EasyMock.<File>anyObject(), 607 EasyMock.expect(mockDevice.installPackage(EasyMock.<File>anyObject(), [all...] |
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/ |
DevicePolicyUtilsTest.java | 102 .getBluetoothContactSharingDisabled(LittleMock.<UserHandle>anyObject());
|
/external/mockito/src/org/mockito/ |
Matchers.java | 48 * Matcher methods like <code>anyObject()</code>, <code>eq()</code> <b>do not</b> return matchers.
51 * The consequence is that you cannot use <code>anyObject()</code>, <code>eq()</code> methods outside of verified/stubbed method.
242 public static <T> T anyObject() {
277 * Sometimes looks better than <code>anyObject()</code> - especially when explicit casting is required
279 * Alias to {@link Matchers#anyObject()}
297 * Shorter alias to {@link Matchers#anyObject()}
308 return (T) anyObject();
|
/packages/apps/Camera2/tests_camera/src/com/android/camera/activity/ |
CameraTestCase.java | 40 import static com.google.testing.littlemock.LittleMock.anyObject; 143 (PictureCallback) anyObject(), mJpegPictureCallback.capture());
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
ContactsAsyncHelperTest.java | 35 import static org.mockito.Matchers.anyObject; 98 any(Drawable.class), any(Bitmap.class), anyObject());
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/bytecode/ |
AndroidTranslatorUnitTest.java | 10 import static org.mockito.Matchers.anyObject;
|
/external/deqp/android/cts/runner/tests/src/com/drawelements/deqp/runner/ |
DeqpTestRunnerTest.java | 246 EasyMock.expect(mockDevice.installPackage(EasyMock.<File>anyObject(), 386 EasyMock.expect(mockDevice.installPackage(EasyMock.<File>anyObject(), 552 EasyMock.expect(mockDevice.installPackage(EasyMock.<File>anyObject(), 668 EasyMock.expect(mockDevice.installPackage(EasyMock.<File>anyObject(), [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
GsmCdmaPhoneTest.java | 61 import static org.mockito.Mockito.anyObject; 121 anyObject()); 561 anyObject()); 563 anyInt(), anyObject());
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/ |
CtsXmlResultReporterTest.java | 92 (String) EasyMock.anyObject());
|
/external/easymock/src/org/easymock/ |
EasyMock.java | 294 public static <T> T anyObject() {
[all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
NetworkStatsServiceTest.java | 46 import static org.easymock.EasyMock.anyObject; [all...] |