/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/preference/ |
ContactsPreferencesTest.java | 53 Mockito.when(mResources.getString(Mockito.anyInt())) 56 Mockito.when(mContext.getSharedPreferences(Mockito.anyString(), Mockito.anyInt())) 67 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 76 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 80 Mockito.anyInt())).thenReturn(ContactsPreferences.SORT_ORDER_PRIMARY); 86 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 95 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 99 Mockito.anyInt())).thenReturn(ContactsPreferences.DISPLAY_ORDER_PRIMARY); 105 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 109 Mockito.anyInt())).thenReturn(ContactsPreferences.SORT_ORDER_PRIMARY [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
CarrierAppUtilsTest.java | 90 Mockito.anyString(), Mockito.anyInt(), Mockito.anyInt(), Mockito.anyInt(), 94 Mockito.anyInt()); 107 Mockito.anyString(), Mockito.anyInt(), Mockito.anyInt(), Mockito.anyInt(), 111 Mockito.any(String[].class), Mockito.anyInt()); 133 Mockito.anyString(), Mockito.anyInt(), Mockito.anyInt(), Mockito.anyInt() [all...] |
WapPushOverSmsTest.java | 22 import static org.mockito.Mockito.anyInt; 71 doReturn(true).when(mWspTypeDecoder).decodeUintvarInteger(anyInt()); 72 doReturn(true).when(mWspTypeDecoder).decodeContentType(anyInt()); 118 when(mIMmsStub.getCarrierConfigValues(anyInt())).thenReturn(new Bundle()); 122 doReturn(true).when(mWspTypeDecoder).decodeUintvarInteger(anyInt()); 123 doReturn(true).when(mWspTypeDecoder).decodeContentType(anyInt()); 143 anyInt(),
|
TelephonyTest.java | 24 import static org.mockito.Mockito.anyInt; 321 .makeIccCardProxy(any(Context.class), any(CommandsInterface.class), anyInt()); 331 .makeInboundSmsTracker(any(byte[].class), anyLong(), anyInt(), anyBoolean(), 334 .makeInboundSmsTracker(any(byte[].class), anyLong(), anyInt(), anyBoolean(), 335 anyString(), anyInt(), anyInt(), anyInt(), anyBoolean(), anyString()); 343 anyInt(), any(Object.class)); 365 doReturn(mUiccCardApplication3gpp).when(mUiccController).getUiccCardApplication(anyInt(), 367 doReturn(mUiccCardApplication3gpp2).when(mUiccController).getUiccCardApplication(anyInt(), [all...] |
GsmCdmaPhoneTest.java | 60 import static org.mockito.Mockito.anyInt; 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)) [all...] |
DefaultPhoneNotifierTest.java | 31 import static org.mockito.Mockito.anyInt; 197 verify(mTelephonyRegisteryMock, times(0)).notifyPreciseCallState(anyInt(), anyInt(), 198 anyInt()); 202 verify(mTelephonyRegisteryMock, times(0)).notifyPreciseCallState(anyInt(), anyInt(), 203 anyInt()); 207 verify(mTelephonyRegisteryMock, times(0)).notifyPreciseCallState(anyInt(), anyInt(), 208 anyInt()); [all...] |
PhoneSubInfoControllerTest.java | 30 import static org.mockito.Matchers.anyInt; 109 eq(AppOpsManager.OP_READ_PHONE_STATE), anyInt(), eq(TAG)); 117 eq(AppOpsManager.OP_READ_PHONE_STATE), anyInt(), eq(TAG)); 159 eq(AppOpsManager.OP_READ_PHONE_STATE), anyInt(), eq(TAG)); 167 eq(AppOpsManager.OP_READ_PHONE_STATE), anyInt(), eq(TAG)); 209 eq(AppOpsManager.OP_READ_PHONE_STATE), anyInt(), eq(TAG)); 217 eq(AppOpsManager.OP_READ_PHONE_STATE), anyInt(), eq(TAG)); 259 eq(AppOpsManager.OP_READ_PHONE_STATE), anyInt(), eq(TAG)); 267 eq(AppOpsManager.OP_READ_PHONE_STATE), anyInt(), eq(TAG)); 312 eq(AppOpsManager.OP_READ_PHONE_STATE), anyInt(), eq(TAG)) [all...] |
VisualVoicemailSmsFilterTest.java | 46 .getVisualVoicemailSmsFilterSettings(Mockito.anyString(), Mockito.anyInt()))
|
Sms7BitEncodingTranslatorTest.java | 30 import static org.mockito.Matchers.anyInt; 43 doReturn(false).when(mUiccSmsController).isImsSmsSupportedForSubscriber(anyInt());
|
SmsNumberUtilsTest.java | 34 import static org.mockito.Matchers.anyInt; 121 doReturn(TMO_MCC_MNC).when(mTelephonyManager).getNetworkOperator(anyInt()); 162 doReturn(INDIA_AIRTEL_MCC_MNC).when(mTelephonyManager).getNetworkOperator(anyInt()); 184 doReturn(TAIWAN_FET_MCC_MNC).when(mTelephonyManager).getNetworkOperator(anyInt()); 192 doReturn(INDIA_AIRTEL_MCC_MNC).when(mTelephonyManager).getNetworkOperator(anyInt()); 200 doReturn(JAPAN_NTTDOCOMO_MCC_MNC).when(mTelephonyManager).getNetworkOperator(anyInt());
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
GsmInboundSmsHandlerTest.java | 122 doReturn(true).when(mTelephonyManager).getSmsReceiveCapableForPhone(anyInt(), anyBoolean()); 363 .makeInboundSmsTracker(any(byte[].class), anyLong(), anyInt(), anyBoolean(), 364 anyString(), anyInt(), anyInt(), anyInt(), anyBoolean(), anyString()); 373 .makeInboundSmsTracker(any(byte[].class), anyLong(), anyInt(), anyBoolean(), 374 anyString(), anyInt(), anyInt(), anyInt(), anyBoolean(), anyString()); 388 .makeInboundSmsTracker(any(byte[].class), anyLong(), anyInt(), anyBoolean() [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
IccPhoneBookInterfaceManagerTest.java | 39 import static org.mockito.Mockito.anyInt; 82 }).when(mAdnRecordCache).requestLoadAllAdnLike(anyInt(), anyInt(), (Message) anyObject()); 107 }).when(mAdnRecordCache).requestLoadAllAdnLike(anyInt(), anyInt(), (Message) anyObject());
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
AccessibilityManagerTest.java | 20 import static org.mockito.Matchers.anyInt; 62 when(mMockService.addClient(any(IAccessibilityManagerClient.class), anyInt())) 65 when(mMockService.addClient(any(IAccessibilityManagerClient.class), anyInt())) 72 verify(mMockService).addClient(any(IAccessibilityManagerClient.class), anyInt()); 86 when(mMockService.getInstalledAccessibilityServiceList(anyInt())) 134 when(mMockService.sendAccessibilityEvent(eq(sentEvent), anyInt()))
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
MockKeyStore.java | 3 import static org.mockito.Matchers.anyInt; 39 when(mock.put(anyString(), Matchers.any(byte[].class), anyInt(), anyInt())) 50 when(mock.importKey(anyString(), Matchers.any(byte[].class), anyInt(), anyInt())) 61 when(mock.delete(anyString(), anyInt())).thenAnswer(new Answer<Boolean>() { 70 when(mock.contains(anyString(), anyInt())).thenAnswer(new Answer<Boolean>() { 79 when(mock.duplicate(anyString(), anyInt(), anyString(), anyInt()))
|
WifiNotificationControllerTest.java | 20 import static org.mockito.Mockito.anyInt; 114 .notifyAsUser(any(String.class), anyInt(), any(Notification.class), 129 .notifyAsUser(any(String.class), anyInt(), any(Notification.class), 132 .cancelAsUser(any(String.class), anyInt(), any(UserHandle.class)); 138 .cancelAsUser(any(String.class), anyInt(), any(UserHandle.class));
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
BluetoothPhoneServiceTest.java | 54 import static org.mockito.Matchers.anyInt; 403 verify(mMockBluetoothHeadset, times(2)).clccResponse(anyInt(), 404 anyInt(), anyInt(), anyInt(), anyBoolean(), anyString(), anyInt()); 418 verify(mMockBluetoothHeadset, times(1)).clccResponse(anyInt(), 419 anyInt(), anyInt(), anyInt(), anyBoolean(), anyString(), anyInt()) [all...] |
CallerInfoLookupHelperTest.java | 43 import static org.mockito.Matchers.anyInt; 77 when(mFactory.startQuery(anyInt(), eq(mContext), anyString(), 108 verify(mFactory).startQuery(anyInt(), eq(mContext), eq(URI1.getSchemeSpecificPart()), 119 verify(mContactsAsyncHelper).startObtainPhotoAsync(anyInt(), eq(mContext), 145 verify(mFactory, times(1)).startQuery(anyInt(), eq(mContext), 157 verify(mContactsAsyncHelper).startObtainPhotoAsync(anyInt(), eq(mContext), 183 verify(mFactory, times(1)).startQuery(anyInt(), eq(mContext), 194 verify(mContactsAsyncHelper).startObtainPhotoAsync(anyInt(), eq(mContext),
|
CallScreeningServiceFilterTest.java | 52 import static org.mockito.Matchers.anyInt; 113 when(mPackageManager.queryIntentServicesAsUser(any(Intent.class), anyInt(), anyInt())) 118 anyInt(), eq(UserHandle.CURRENT))).thenReturn(true); 131 when(mPackageManager.queryIntentServicesAsUser(any(Intent.class), anyInt(), anyInt())) 154 anyInt(), eq(UserHandle.CURRENT))).thenReturn(false);
|
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/ |
MockCallListWrapper.java | 19 import static org.mockito.Mockito.anyInt; 42 when(mCallList.getFirstCallWithState(anyInt())).thenAnswer(new Answer<Call>() {
|
/packages/providers/CallLogProvider/tests/src/com/android/calllogbackup/ |
CallLogBackupAgentTest.java | 177 verify(mBackupDataOutput).writeEntityHeader(eq("101"), Matchers.anyInt()); 178 verify(mBackupDataOutput).writeEntityData((byte[]) Matchers.any(), Matchers.anyInt()); 192 inOrder.verify(mBackupDataOutput).writeEntityHeader(eq("101"), Matchers.anyInt()); 194 writeEntityData((byte[]) Matchers.any(), Matchers.anyInt()); 195 inOrder.verify(mBackupDataOutput).writeEntityHeader(eq("102"), Matchers.anyInt()); 197 writeEntityData((byte[]) Matchers.any(), Matchers.anyInt()); 214 inOrder.verify(mBackupDataOutput).writeEntityHeader(eq("102"), Matchers.anyInt()); 216 writeEntityData((byte[]) Matchers.any(), Matchers.anyInt());
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
ListRowDataAdapterTest.java | 26 import static org.mockito.Matchers.anyInt; 89 verify(dataObserver, times(0)).onItemRangeInserted(anyInt(), anyInt()); 135 verify(dataObserver, times(0)).onItemRangeInserted(anyInt(), anyInt()); 139 verify(dataObserver, times(0)).onItemRangeInserted(anyInt(), anyInt()); 189 verify(dataObserver, times(0)).onItemRangeInserted(anyInt(), anyInt());
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/ |
CdmaSmsDispatcherTest.java | 95 anyInt(), anyInt(), any(Message.class));
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
MockCameraFactory.java | 51 Mockito.when(wrapper.open(Mockito.anyInt())).then(new Answer<Camera>() { 66 }).when(wrapper).getCameraInfo(Mockito.anyInt(), Mockito.any(CameraInfo.class));
|
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/ |
InstallPackageTaskTest.java | 20 import static org.mockito.Mockito.anyInt; 80 when(mPackageManager.getPackageArchiveInfo(eq(TEST_PACKAGE_LOCATION), anyInt())). 98 anyInt(), 123 anyInt(), 146 anyInt(), 160 anyInt(),
|
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/ |
BuzzBeepBlinkTest.java | 39 import static org.mockito.Matchers.anyInt; 71 when(mAudioManager.getStreamVolume(anyInt())).thenReturn(10); 190 verify(mVibrator, never()).vibrate(anyInt(), anyString(), (long[]) anyObject(), 191 anyInt(), (AudioAttributes) anyObject()); 195 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), (long[]) anyObject(), 200 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), (long[]) anyObject(), 375 when(mAudioManager.getStreamVolume(anyInt())).thenReturn(0); 389 when(mAudioManager.getStreamVolume(anyInt())).thenReturn(0); 533 when(mAudioManager.getStreamVolume(anyInt())).thenReturn(0);
|