Home
last modified time | relevance | path

Searched refs:mock (Results 1 – 25 of 103) sorted by relevance

12345

/packages/apps/Email/tests/src/com/android/email/mail/store/
DImapStoreUnitTests.java715 MockTransport mock = openAndInjectMockTransport(); in testReadWrite() local
716 setupOpenFolder(mock, "rEAD-WRITE"); in testReadWrite()
726 MockTransport mock = openAndInjectMockTransport(); in testReadOnly() local
727 setupOpenFolder(mock, "rEAD-ONLY"); in testReadOnly()
736 MockTransport mock = openAndInjectMockTransport(); in testGetUnreadMessageCountWithQuotedString() local
737 setupOpenFolder(mock); in testGetUnreadMessageCountWithQuotedString()
738 mock.expect( in testGetUnreadMessageCountWithQuotedString()
752 MockTransport mock = openAndInjectMockTransport(); in testGetUnreadMessageCountWithLiteralString() local
753 setupOpenFolder(mock); in testGetUnreadMessageCountWithLiteralString()
754 mock.expect( in testGetUnreadMessageCountWithLiteralString()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DComponentContextFixture.java62 import android.test.mock.MockContext;
79 import static org.mockito.Mockito.mock;
233 mIContentProviderByUri.put(name, mock(IContentProvider.class)); in getContentResolver()
400 private final Resources mResources = mock(Resources.class);
402 private final PackageManager mPackageManager = mock(PackageManager.class);
404 private final TelephonyManager mTelephonyManager = mock(TelephonyManager.class);
405 private final AppOpsManager mAppOpsManager = mock(AppOpsManager.class);
406 private final NotificationManager mNotificationManager = mock(NotificationManager.class);
407 private final UserManager mUserManager = mock(UserManager.class);
408 private final StatusBarManager mStatusBarManager = mock(StatusBarManager.class);
[all …]
DCallerInfoLookupHelperTest.java47 import static org.mockito.Mockito.mock;
79 .thenReturn(mock(CallerInfoAsyncQuery.class)); in setUp()
97 CallerInfoLookupHelper.OnQueryCompleteListener listener = mock( in testSimpleLookup()
132 CallerInfoLookupHelper.OnQueryCompleteListener callListener = mock( in testLookupWithTwoListeners()
134 CallerInfoLookupHelper.OnQueryCompleteListener otherListener = mock( in testLookupWithTwoListeners()
171 CallerInfoLookupHelper.OnQueryCompleteListener callListener = mock( in testListenerAddedAfterCallerInfoBeforePhoto()
173 CallerInfoLookupHelper.OnQueryCompleteListener otherListener = mock( in testListenerAddedAfterCallerInfoBeforePhoto()
DBluetoothPhoneServiceTest.java60 import static org.mockito.Mockito.mock;
113 mock(BluetoothAdapterProxy.class), mMockPhoneAccountRegistrar); in setUp()
261 final Call confCall1 = mock(Call.class); in testConferenceInProgressCDMA()
308 final Call foregroundCall = mock(Call.class); in testListCurrentCallsCdmaHold()
349 final Call confCall1 = mock(Call.class); in testListCurrentCallsCdmaConference()
557 final Call confCall1 = mock(Call.class); in testCDMAConferenceQueryState()
558 final Call confCall2 = mock(Call.class); in testCDMAConferenceQueryState()
669 Call conferenceableCall = mock(Call.class); in testProcessChldAddHeldToConf()
684 final Call foregroundCall = mock(Call.class); in testProcessChldHoldActiveSwapConference()
721 final Call foregroundCall = mock(Call.class); in testOnCallAddedCdmaActiveHold()
[all …]
DProximitySensorManagerTest.java31 import static org.mockito.Mockito.mock;
98 mProximitySensorManager.onCallRemoved(mock(Call.class)); in testCallRemovedFromCallsManagerCallsActive()
108 mProximitySensorManager.onCallRemoved(mock(Call.class)); in testCallRemovedFromCallsManagerNoCallsActive()
DCreateConnectionProcessorTest.java44 import static org.mockito.Mockito.mock;
102 CallIdMapper mockCallIdMapper = mock(CallIdMapper.class); in testSimPhoneAccountSuccess()
145 CallIdMapper mockCallIdMapper = mock(CallIdMapper.class); in testConnectionManagerSuccess()
180 CallIdMapper mockCallIdMapper = mock(CallIdMapper.class); in testConnectionManagerFailedFallToSim()
233 CallIdMapper mockCallIdMapper = mock(CallIdMapper.class); in testEmergencyCallToSim()
326 ConnectionServiceWrapper wrapper = mock(ConnectionServiceWrapper.class); in makeConnectionServiceWrapper()
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
DInstallPackageTaskTest.java24 import static org.mockito.Mockito.mock;
38 import android.test.mock.MockContentProvider;
39 import android.test.mock.MockContentResolver;
66 mContext = mock(Context.class); in setUp()
69 mPackageManager = mock(PackageManager.class); in setUp()
78 mCallback = mock(InstallPackageTask.Callback.class); in setUp()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java19 import static org.mockito.Mockito.mock;
36 import android.test.mock.MockContentResolver;
111 mNotifManager = mock(NotificationManager.class); in TestContext()
112 mDownloadManager = mock(DownloadManager.class); in TestContext()
113 mJobScheduler = mock(JobScheduler.class); in TestContext()
188 final JobParameters params = mock(JobParameters.class); in startDownload()
/packages/services/Car/service/src/com/android/car/
DCarTestService.java76 public void startMocking(final IVehicleNetworkHalMock mock, final int flags) { in startMocking() argument
82 mVehicleNetwork.startMocking(mock); in startMocking()
108 public void stopMocking(final IVehicleNetworkHalMock mock) { in stopMocking() argument
114 mVehicleNetwork.stopMocking(mock); in stopMocking()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DDevicePolicyUtilsTest.java34 import static com.google.testing.littlemock.LittleMock.mock;
100 DevicePolicyManager mockDpm = mock(DevicePolicyManager.class); in getMockContext()
104 UserManager mockUm = mock(UserManager.class); in getMockContext()
108 Context mockContext = mock(Context.class); in getMockContext()
/packages/apps/Dialer/tests/src/com/android/dialer/voicemail/
DVoicemailAsyncTaskUtilTest.java28 import android.test.mock.MockContentResolver;
127 mock(OnGetArchivedVoicemailFilePathListener.class); in testGetVoicemailFilePath_VoicemailExists()
142 mock(OnGetArchivedVoicemailFilePathListener.class); in testGetVoicemailFilePath_VoicemailNotExists()
157 mock(OnSetVoicemailArchiveStatusListener.class); in testSetVoicemailArchiveStatus_VoicemailNotExists()
173 mock(OnSetVoicemailArchiveStatusListener.class); in testSetVoicemailArchiveStatus_VoicemailExists()
191 final OnArchiveVoicemailListener listener = mock(OnArchiveVoicemailListener.class); in testArchiveVoicemailContent_ArchiveNotExists()
205 final OnArchiveVoicemailListener listener = mock(OnArchiveVoicemailListener.class); in testArchiveVoicemailContent_ArchiveExists()
221 final OnArchiveVoicemailListener listener = mock(OnArchiveVoicemailListener.class); in testArchiveVoicemailContent_CallLogInfoNotExists()
/packages/apps/Calendar/tests/src/com/android/calendar/
DDbTestUtils.java27 import android.test.mock.MockContentProvider;
28 import android.test.mock.MockContentResolver;
29 import android.test.mock.MockContext;
30 import android.test.mock.MockCursor;
/packages/services/Car/libvehiclenetwork/native/
DIVehicleNetwork.cpp183 virtual status_t startMocking(const sp<IVehicleNetworkHalMock>& mock) { in startMocking() argument
186 data.writeStrongBinder(IInterface::asBinder(mock)); in startMocking()
191 virtual void stopMocking(const sp<IVehicleNetworkHalMock>& mock) { in stopMocking() argument
194 data.writeStrongBinder(IInterface::asBinder(mock)); in stopMocking()
382 sp<IVehicleNetworkHalMock> mock = in onTransact() local
384 r = startMocking(mock); in onTransact()
393 sp<IVehicleNetworkHalMock> mock = in onTransact() local
395 stopMocking(mock); in onTransact()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/pbap/
DBluetoothPbapVcardManagerTest.java21 import com.android.bluetooth.tests.mock.BluetoothMockContext;
22 import com.android.bluetooth.tests.mock.SimpleMockContentProvider;
29 import android.test.mock.MockContentProvider;
30 import android.test.mock.MockContentResolver;
/packages/services/Telephony/tests/src/com/android/phone/common/mail/
DMailTransportTest.java19 import static org.mockito.Mockito.mock;
204 SocketFactory mockSocketFactory = mock(SocketFactory.class); in testOpen_network_createSocketFailed()
346 return mock(ImapHelper.class); in createMockImapHelper()
354 Network network = mock(Network.class); in createMockNetwork()
355 SocketFactory mockSocketFactory = mock(SocketFactory.class); in createMockNetwork()
/packages/apps/Dialer/tests/src/com/android/dialer/compat/
DFilteredNumberCompatTest.java21 import static org.mockito.Mockito.mock;
234 UserManager userManager = mock(UserManager.class); in testCanCurrentUserOpenBlockSettings_M_SecondaryUser()
246 UserManager userManager = mock(UserManager.class); in testCanCurrentUserOpenBlockSettings_M_PrimaryUser()
258 UserManager userManager = mock(UserManager.class); in testCanAttemptBlockOperations_M_SecondaryUser()
270 UserManager userManager = mock(UserManager.class); in testCanAttemptBlockOperations_M_PrimaryUser()
/packages/services/Car/car-systemtest-lib/src/android/car/test/
DICarTest.aidl27 void startMocking(in IVehicleNetworkHalMock mock, int flags) = 2; in startMocking() argument
29 void stopMocking(in IVehicleNetworkHalMock mock) = 3; field
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/mock/
DSimpleMockContentProvider.java17 package com.android.bluetooth.tests.mock;
22 import android.test.mock.MockContentProvider;
DBluetoothMockContext.java17 package com.android.bluetooth.tests.mock;
23 import android.test.mock.MockContext;
/packages/apps/TV/tests/unit/src/com/android/tv/menu/
DMenuTest.java40 mMenuView = Mockito.mock(IMenuView.class); in setUp()
41 MenuRowFactory factory = Mockito.mock(MenuRowFactory.class); in setUp()
44 mVisibilityChangeListener = Mockito.mock(OnMenuVisibilityChangeListener.class); in setUp()
/packages/services/Car/libvehiclenetwork/java/src/com/android/car/vehiclenetwork/
DVehicleNetwork.java447 public synchronized void startMocking(VehicleNetworkHalMock mock) { in startMocking() argument
448 mHalMock = mock; in startMocking()
477 public synchronized void startMocking(IVehicleNetworkHalMock mock) { in startMocking() argument
479 mHalMockImpl = mock; in startMocking()
490 public synchronized void stopMocking(IVehicleNetworkHalMock mock) { in stopMocking() argument
491 if (mock.asBinder() != mHalMockImpl.asBinder()) { in stopMocking()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DMemoryCacheManagerTest.java30 final MemoryCache mockMemoryCache = Mockito.mock(MemoryCache.class); in testRegisterCachesGetReclaimed()
31 final MemoryCache otherMockMemoryCache = Mockito.mock(MemoryCache.class); in testRegisterCachesGetReclaimed()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelTest.java76 PackageManager mockPackageManager = Mockito.mock(PackageManager.class); in setUp()
100 mMockContext = Mockito.mock(Context.class); in setUp()
185 TvInputManagerHelper manager = Mockito.mock(TvInputManagerHelper.class); in testComparator()
231 TvInputManagerHelper manager = Mockito.mock(TvInputManagerHelper.class); in testComparatorLabel()
/packages/apps/Email/tests/src/com/android/email/
DDBTestHelper.java30 import android.test.mock.MockContentResolver;
31 import android.test.mock.MockContext;
32 import android.test.mock.MockCursor;
/packages/apps/Settings/tests/unit/src/com/android/settings/
DChooseLockSettingsHelperTest.java21 import static org.mockito.Mockito.mock;
132 LockPatternUtils mockLockPatternUtils = mock(LockPatternUtils.class); in getChooseLockSettingsHelper()
142 Activity mockActivity = mock(Activity.class); in getMockActivity()

12345