/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | ImapStoreUnitTests.java | 715 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/ |
D | ComponentContextFixture.java | 62 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 …]
|
D | CallerInfoLookupHelperTest.java | 47 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()
|
D | BluetoothPhoneServiceTest.java | 60 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 …]
|
D | ProximitySensorManagerTest.java | 31 import static org.mockito.Mockito.mock; 98 mProximitySensorManager.onCallRemoved(mock(Call.class)); in testCallRemovedFromCallsManagerCallsActive() 108 mProximitySensorManager.onCallRemoved(mock(Call.class)); in testCallRemovedFromCallsManagerNoCallsActive()
|
D | CreateConnectionProcessorTest.java | 44 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/ |
D | InstallPackageTaskTest.java | 24 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/ |
D | AbstractDownloadProviderFunctionalTest.java | 19 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/ |
D | CarTestService.java | 76 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/ |
D | DevicePolicyUtilsTest.java | 34 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/ |
D | VoicemailAsyncTaskUtilTest.java | 28 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/ |
D | DbTestUtils.java | 27 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/ |
D | IVehicleNetwork.cpp | 183 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/ |
D | BluetoothPbapVcardManagerTest.java | 21 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/ |
D | MailTransportTest.java | 19 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/ |
D | FilteredNumberCompatTest.java | 21 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/ |
D | ICarTest.aidl | 27 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/ |
D | SimpleMockContentProvider.java | 17 package com.android.bluetooth.tests.mock; 22 import android.test.mock.MockContentProvider;
|
D | BluetoothMockContext.java | 17 package com.android.bluetooth.tests.mock; 23 import android.test.mock.MockContext;
|
/packages/apps/TV/tests/unit/src/com/android/tv/menu/ |
D | MenuTest.java | 40 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/ |
D | VehicleNetwork.java | 447 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/ |
D | MemoryCacheManagerTest.java | 30 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/ |
D | ChannelTest.java | 76 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/ |
D | DBTestHelper.java | 30 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/ |
D | ChooseLockSettingsHelperTest.java | 21 import static org.mockito.Mockito.mock; 132 LockPatternUtils mockLockPatternUtils = mock(LockPatternUtils.class); in getChooseLockSettingsHelper() 142 Activity mockActivity = mock(Activity.class); in getMockActivity()
|