/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/preference/ |
ContactsPreferencesTest.java | 56 Mockito.when(mContext.getSharedPreferences(Mockito.anyString(), Mockito.anyInt())) 141 Mockito.when(mSharedPreferences.getString(Mockito.eq(ACCOUNT_KEY), Mockito.anyString()))
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
MediaPickerTest.java | 69 Mockito.when(mMockMediaPickerData.isBound(Matchers.anyString())) 71 Mockito.when(mMockDraftMessageData.isBound(Matchers.anyString()))
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
TvInputNewComparatorTest.java | 57 Mockito.when(setupUtils.isNewInput(Matchers.anyString())).thenAnswer( 66 Mockito.when(setupUtils.isSetupDone(Matchers.anyString())).thenAnswer(
|
ChannelTest.java | 186 Mockito.when(manager.isPartnerInput(Matchers.anyString())).thenAnswer( 232 Mockito.when(manager.isPartnerInput(Matchers.anyString())).thenAnswer(
|
/frameworks/base/core/tests/coretests/src/android/net/ |
SSLSessionCacheTest.java | 48 LittleMock.verify(mock).getSessionData(LittleMock.anyString(), LittleMock.anyInt());
|
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/ |
InstallPackageTaskTest.java | 21 import static org.mockito.Mockito.anyString; 99 anyString()); 161 anyString());
|
/packages/apps/Messaging/tests/src/com/android/messaging/ |
FakeFactory.java | 88 Mockito.when(factory.mPhoneUtils.getCanonicalBySystemLocale(Matchers.anyString())) 97 Mockito.when(factory.mPhoneUtils.getCanonicalBySimLocale(Matchers.anyString())).thenAnswer( 106 Mockito.when(factory.mPhoneUtils.formatForDisplay(Matchers.anyString())).thenAnswer(
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/ |
AttachmentChooserFragmentTest.java | 94 Mockito.when(mockDraftMessageData.isBound(Matchers.anyString())) 98 .createDraftMessageData(Mockito.anyString()); 103 Matchers.anyString()))
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/ |
ContactPickerFragmentTest.java | 84 Mockito.when(mMockContactPickerData.isBound(Matchers.anyString())) 108 Mockito.when(mMockContactPickerData.isBound(Matchers.anyString())) 126 Mockito.when(mMockContactPickerData.isBound(Matchers.anyString()))
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/ |
ComposeMessageViewTest.java | 76 Mockito.doReturn(true).when(mockConversationData).isBound(Mockito.anyString()); 104 Mockito.when(mockDraftMessageData.isBound(Matchers.anyString())) 158 Mockito.when(mockDraftMessageData.isBound(Matchers.anyString()))
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
GsmCdmaPhoneTest.java | 62 import static org.mockito.Mockito.anyString; 310 verify(mSimulatedCommandsVerifier, times(0)).sendBurstDtmf(anyString(), anyInt(), anyInt(), 316 verify(mSimulatedCommandsVerifier, times(0)).sendBurstDtmf(anyString(), anyInt(), anyInt(), 322 verify(mSimulatedCommandsVerifier, times(0)).sendBurstDtmf(anyString(), anyInt(), anyInt(), 328 verify(mSimulatedCommandsVerifier, times(0)).sendBurstDtmf(anyString(), anyInt(), anyInt(), 456 anyInt(), anyInt(), anyString(), any(Message.class)); 463 eq(CF_REASON_UNCONDITIONAL), anyInt(), anyString(), any(Message.class)); 465 verify(mSimRecords).setVoiceCallForwardingFlag(anyInt(), anyBoolean(), anyString()); 489 anyString(), anyInt(), any(Message.class)); 524 anyString()); [all...] |
DefaultPhoneNotifierTest.java | 26 import static org.mockito.Matchers.anyString; 66 .queryLocalInterface(anyString());
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiNativeTest.java | 24 import static org.mockito.Mockito.anyString; 131 when(mWifiNative.setNetworkVariable(anyInt(), anyString(), anyString())).thenReturn(true);
|
WifiConfigManagerTest.java | 183 }}).when(mWriter).write(anyString(), (DelayedDiskWrite.Writer) anyObject()); 228 when(mWifiNative.setNetworkVariable(anyInt(), anyString(), anyString())).thenReturn(true); 229 when(mWifiNative.setNetworkExtra(anyInt(), anyString(), (Map<String, String>) anyObject())) 458 when(mWifiNative.setNetworkVariable(eq(network), anyString(), anyString())) 460 when(mWifiNative.setNetworkExtra(eq(network), anyString(), 487 verify(mWifiNative, never()).setNetworkExtra(intThat(not(network)), anyString(), 489 verify(mWifiNative, never()).setNetworkVariable(intThat(not(network)), anyString(), 490 anyString()); [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/ |
BuzzBeepBlinkTest.java | 41 import static org.mockito.Matchers.anyString; 189 verify(mVibrator, never()).vibrate(anyInt(), anyString(), (long[]) anyObject(), 194 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), (long[]) anyObject(), 199 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), (long[]) anyObject(),
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
BluetoothPhoneServiceTest.java | 55 import static org.mockito.Matchers.anyString; 404 anyInt(), anyInt(), anyInt(), anyBoolean(), anyString(), anyInt()); 419 anyInt(), anyInt(), anyInt(), anyBoolean(), anyString(), anyInt()); 439 anyInt(), anyInt(), anyInt(), anyBoolean(), anyString(), anyInt()); 493 anyInt(), anyInt(), anyInt(), anyBoolean(), anyString(), anyInt()); 522 anyInt(), anyInt(), anyInt(), anyBoolean(), anyString(), anyInt()); [all...] |
CallScreeningServiceFilterTest.java | 53 import static org.mockito.Matchers.anyString; 98 // when(mBinder.queryLocalInterface(anyString())).thenReturn(mCallScreeningService); 99 doReturn(mCallScreeningService).when(mBinder).queryLocalInterface(anyString());
|
CallerInfoLookupHelperTest.java | 44 import static org.mockito.Matchers.anyString; 77 when(mFactory.startQuery(anyInt(), eq(mContext), anyString(),
|
TelecomSystemTest.java | 23 import static org.mockito.Matchers.anyString; 520 anyString(), 525 anyString(), 547 .createConnection(eq(phoneAccountHandle), anyString(), any(ConnectionRequest.class), 594 .createConnection(any(PhoneAccountHandle.class), anyString(), 605 anyString(), [all...] |
NewOutgoingCallIntentBroadcasterTest.java | 48 import static org.mockito.Matchers.anyString; 411 anyString(), 416 anyString(),
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
NetworkControllerWifiTest.java | 142 inArg.capture(), outArg.capture(), Mockito.anyString()); 170 Mockito.anyBoolean(), Mockito.anyBoolean(), Mockito.anyString());
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversationlist/ |
ConversationListFragmentTest.java | 76 Mockito.when(mMockConversationListData.isBound(Matchers.anyString()))
|
/external/littlemock/tests/com/google/testing/littlemock/ |
LittleMockTest.java | 28 import static com.google.testing.littlemock.LittleMock.anyString; 264 verify(mFoo, LittleMock.times(2)).add(anyString()); 270 verify(mFoo, LittleMock.times(2)).add(anyString()); 280 verify(mFoo, LittleMock.times(2)).add(anyString()); 656 doReturn("jim").when(mFoo).lookup(anyString()); 663 verify(mFoo).takesObject(anyString()); 669 verify(mFoo).takesObject(anyString()); [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/compat/ |
FilteredNumberCompatTest.java | 20 import static org.mockito.Matchers.anyString; 67 when(mContext.getSharedPreferences(anyString(), anyInt())).thenReturn(mSharedPreferences);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
SupplicantPnoScannerTest.java | 278 when(mWifiNative.setNetworkVariable(anyInt(), anyString(), anyString())).thenReturn(true);
|