/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
SubscriptionInfoUpdaterTest.java | 57 import static org.mockito.Mockito.anyInt; 308 verify(mSubscriptionController, times(0)).setMccMnc(anyString(), anyInt()); 330 }).when(mIccFileHandler).loadEFTransparent(anyInt(), any(Message.class)); 379 verify(mIccFileHandler, times(0)).loadEFTransparent(anyInt(), any(Message.class));
|
ContextFixture.java | 76 import static org.mockito.Mockito.anyInt; 501 }).when(mPackageManager).queryIntentServices((Intent) any(), anyInt()); 510 }).when(mPackageManager).queryIntentServicesAsUser((Intent) any(), anyInt(), anyInt()); 512 doReturn(mBundle).when(mCarrierConfigManager).getConfigForSubId(anyInt()); 513 //doReturn(mBundle).when(mCarrierConfigManager).getConfig(anyInt());
|
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/ |
StatusBarNotifierTest.java | 74 Mockito.when(mCall.hasProperty(Mockito.anyInt())).thenReturn(false);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ImageViewTest.java | 474 verify(mockImageView, never()).onSizeChanged(anyInt(), anyInt(), anyInt(), anyInt()); 486 verify(mockImageView, times(1)).onSizeChanged(anyInt(), anyInt(), anyInt(), anyInt());
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
ConfigurationMapTest.java | 21 import static org.mockito.Mockito.anyInt; 84 when(mUserManager.getProfiles(anyInt()))
|
WifiConfigManagerTest.java | 228 when(mWifiNative.setNetworkVariable(anyInt(), anyString(), anyString())).thenReturn(true); 229 when(mWifiNative.setNetworkExtra(anyInt(), anyString(), (Map<String, String>) anyObject())) 417 verify(mWifiNative, never()).selectNetwork(anyInt()); 418 verify(mWifiNative, never()).enableNetwork(anyInt()); 570 when(mWifiNative.listNetworks(anyInt())).thenReturn(header); 657 when(mWifiNative.listNetworks(anyInt())).thenReturn(header); 661 when(mWifiNative.getNetworkVariable(anyInt(), eq(WifiConfiguration.ssidVarName))) 667 when(mWifiNative.getNetworkExtra(anyInt(), eq(WifiConfigStore.ID_STRING_VAR_NAME))) [all...] |
WifiLoggerTest.java | 28 import static org.mockito.Mockito.anyInt; 163 eq(WifiLogger.VERBOSE_NO_LOG), anyInt(), anyInt(), anyInt(), 166 eq(WifiLogger.VERBOSE_NORMAL_LOG), anyInt(), anyInt(), anyInt(),
|
WifiNativeTest.java | 23 import static org.mockito.Mockito.anyInt; 131 when(mWifiNative.setNetworkVariable(anyInt(), anyString(), anyString())).thenReturn(true);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/ |
CdmaInboundSmsHandlerTest.java | 54 import static org.mockito.Mockito.anyInt; 120 doReturn(true).when(mTelephonyManager).getSmsReceiveCapableForPhone(anyInt(), anyBoolean());
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
DcTrackerTest.java | 74 import static org.mockito.Matchers.anyInt; 323 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); 588 verify(mSimulatedCommandsVerifier, times(1)).deactivateDataCall(anyInt(), anyInt(), 643 verify(mSimulatedCommandsVerifier, times(1)).deactivateDataCall(anyInt(), anyInt(), [all...] |
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/uiflows/ |
EncryptionControllerTest.java | 21 import static org.mockito.Mockito.anyInt; 118 verify(mUtils, never()).enableComponent(any(ComponentName.class), anyInt());
|
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/ |
RecordingTaskTest.java | 19 import static org.mockito.Matchers.anyInt; 88 when(mMockHandler.sendEmptyMessageDelayed(anyInt(), anyLong())).thenReturn(true);
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
ContactsAsyncHelperTest.java | 34 import static org.mockito.Matchers.anyInt; 97 verify(mListener, timeout(TEST_TIMEOUT).never()).onImageLoadComplete(anyInt(),
|
ComponentContextFixture.java | 75 import static org.mockito.Mockito.anyInt; 432 }).when(mPackageManager).queryIntentServices((Intent) any(), anyInt()); 441 }).when(mPackageManager).queryIntentServicesAsUser((Intent) any(), anyInt(), anyInt()); 452 }).when(mAppOpsManager).checkPackage(anyInt(), anyString());
|
CallAudioModeStateMachineTest.java | 30 import static org.mockito.Matchers.anyInt; 527 verify(mAudioManager, never()).requestAudioFocusForCall(anyInt(), anyInt()); 534 eq(AudioManager.STREAM_RING), anyInt()); 538 eq(AudioManager.STREAM_VOICE_CALL), anyInt()); 545 verify(mAudioManager, never()).setMode(anyInt());
|
InCallControllerTests.java | 59 import static org.mockito.Matchers.anyInt; 186 anyInt(), eq(UserHandle.CURRENT))).thenReturn(true); 288 any(Intent.class), any(ServiceConnection.class), anyInt(), any(UserHandle.class))) 398 anyInt(), eq(UserHandle.CURRENT))).thenReturn(true);
|
NewOutgoingCallIntentBroadcasterTest.java | 48 import static org.mockito.Matchers.anyInt; 406 any(GatewayInfo.class), anyBoolean(), anyInt()); 414 anyInt(), 417 anyInt(),
|
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/ |
VpnTest.java | 289 }).when(mUserManager).getUserInfo(anyInt()); 294 }).when(mUserManager).canHaveRestrictedProfile(anyInt()); 306 }).when(mPackageManager).getPackageUidAsUser(anyString(), anyInt());
|
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/common/ |
UtilsTest.java | 53 import static org.mockito.Mockito.anyInt; 277 when(mockPackageManager.resolveActivity(any(Intent.class), anyInt())) 324 when(mockPackageManager.resolveActivity(any(Intent.class), anyInt())).thenReturn(resInfo);
|
/cts/tests/admin/src/android/admin/cts/ |
DeviceAdminActivationTest.java | 179 Mockito.anyInt(),
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
WakeupMessageTest.java | 92 doNothing().when(mAlarmManager).setExact(anyInt(), anyLong(), any(String.class),
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
DpmMockContext.java | 56 import static org.mockito.Matchers.anyInt; 326 when(userManager.getUserInfo(anyInt())).thenAnswer( 340 when(userManager.getProfiles(anyInt())).thenAnswer( 349 when(userManager.getProfileIdsWithDisabled(anyInt())).thenAnswer(
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
NetworkStatsObserversTest.java | 23 import static org.mockito.Matchers.anyInt; 191 Mockito.verify(mockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); 196 Mockito.verify(mockBinder).unlinkToDeath(any(IBinder.DeathRecipient.class), anyInt()); 208 Mockito.verify(mockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt());
|
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/ |
SetDevicePolicyTaskTest.java | 19 import static org.mockito.Mockito.anyInt;
|
/packages/apps/Dialer/tests/src/com/android/dialer/compat/ |
FilteredNumberCompatTest.java | 19 import static org.mockito.Matchers.anyInt; 67 when(mContext.getSharedPreferences(anyString(), anyInt())).thenReturn(mSharedPreferences);
|