Home
last modified time | relevance | path

Searched refs:mMockContentResolver (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java35 private MockContentResolver mMockContentResolver; field in NoNullCursorAsyncQueryHandlerTest
44 mMockContentResolver = new MockContentResolver(); in setUp()
54 mMockContentResolver.addProvider(AUTHORITY, mMockContentProvider); in setUp()
69 mMockContentResolver) { in testCursorIsNotNull()
96 mMockContentResolver) { in testCursorContainsCorrectCookies()
123 mMockContentResolver) { in testCursorContainsCorrectColumns()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarBluetoothServiceTest.java65 private MockContentResolver mMockContentResolver; field in CarBluetoothServiceTest
83 mMockContentResolver = new MockContentResolver(null); in setUp()
90 mMockContentResolver.addProvider(Settings.AUTHORITY, mMockContentProvider); in setUp()
93 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
DBluetoothDeviceConnectionPolicyTest.java98 private MockContentResolver mMockContentResolver; field in BluetoothDeviceConnectionPolicyTest
136 mMockContentResolver = new MockContentResolver(null); in setUp()
143 mMockContentResolver.addProvider(Settings.AUTHORITY, mMockContentProvider); in setUp()
146 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java105 private MockContentResolver mMockContentResolver = new MockContentResolver(); field in TelephonyBackupAgentTest
306 mMockContentResolver.addProvider("sms", contentProvider); in setUp()
307 mMockContentResolver.addProvider("mms", contentProvider); in setUp()
308 mMockContentResolver.addProvider("mms-sms", mThreadProvider); in setUp()
314 return mMockContentResolver; in setUp()
320 mTelephonyBackupAgent.setContentResolver(mMockContentResolver); in setUp()
600 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_NoSms()
613 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_AllSms()
628 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_WithException()
660 mMockContentResolver.addProvider("mms", mmsProvider); in testRestoreMms_NoMms()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DResetNetworkConfirmFragmentTest.java99 private ContentResolver mMockContentResolver; field in ResetNetworkConfirmFragmentTest
128 when(mContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
165 verify(mMockContentResolver, times(2)).delete(argumentCaptor.capture(), any(), any()); in testResetButtonClick_cleanSmsRawTable()
240 verify(mMockContentResolver, times(2)).delete(argumentCaptor.capture(), any(), any()); in testResetButtonClick_emptyNetworkSubscriptionId_noRestoreDefaultApn()
256 verify(mMockContentResolver, times(2)).delete(argumentCaptor.capture(), any(), any()); in testResetButtonClick_validNetworkSubscriptionId_restoreDefaultApn()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberContractTest.java60 private MockContentResolver mMockContentResolver = new MockContentResolver(); field in BlockedNumberContractTest
67 mMockContentResolver.addProvider(BlockedNumberContract.AUTHORITY_URI.toString(), in setUp()
69 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java93 private MockContentResolver mMockContentResolver; field in MapClientStateMachineTest
109 mMockContentResolver = new MockContentResolver(); in setUp()
117 mMockContentResolver.addProvider("sms", mMockContentProvider); in setUp()
118 mMockContentResolver.addProvider("mms", mMockContentProvider); in setUp()
119 mMockContentResolver.addProvider("mms-sms", mMockContentProvider); in setUp()
121 when(mMockMapClientService.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
DMapClientContentTest.java104 private MockContentResolver mMockContentResolver; field in MapClientContentTest
127 mMockContentResolver = Mockito.spy(new MockContentResolver()); in setUp()
128 mMockContentResolver.addProvider("sms", mMockSmsContentProvider); in setUp()
129 mMockContentResolver.addProvider("mms", mMockMmsContentProvider); in setUp()
130 mMockContentResolver.addProvider("mms-sms", mMockThreadContentProvider); in setUp()
132 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTestTelephonyConnection.java75 ContentResolver mMockContentResolver; field in TestTelephonyConnection
159 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in TestTelephonyConnection()
163 when(mMockContentResolver.getUserId()).thenReturn(UserHandle.USER_CURRENT); in TestTelephonyConnection()
164 when(mMockContentResolver.getAttributionSource()).thenReturn(attributionSource); in TestTelephonyConnection()
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeServiceTest.java50 @Mock private ContentResolver mMockContentResolver; field in GarageModeServiceTest
58 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioSettingsUnitTest.java45 private ContentResolver mMockContentResolver; field in CarAudioSettingsUnitTest
51 mCarAudioSettings = new CarAudioSettings(mMockContentResolver); in setUp()
DFocusInteractionTest.java57 private ContentResolver mMockContentResolver; field in FocusInteractionTest
67 doReturn(mMockContentResolver).when(mMockCarAudioSettings).getContentResolver(); in setUp()
/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanEventListenerTest.java59 @Mock private ContentResolver mMockContentResolver; field in IwlanEventListenerTest
96 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
DErrorPolicyManagerTest.java69 @Mock private ContentResolver mMockContentResolver; field in ErrorPolicyManagerTest
745 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setupMockForCarrierConfig()
DIwlanDataServiceTest.java93 @Mock private ContentResolver mMockContentResolver; field in IwlanDataServiceTest
199 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java113 private MockContentResolver mMockContentResolver; field in AdapterServiceTest
153 mMockContentResolver = new MockContentResolver(mMockContext); in setUp()
161 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
342 when(mockContext.getContentResolver()).thenReturn(mMockContentResolver); in testEnableDisableOnlyGatt()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java84 private MockContentResolver mMockContentResolver; field in HeadsetStateMachineTest
110 mMockContentResolver = new MockContentResolver(); in setUp()
111 when(mHeadsetService.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
925 mMockContentResolver.addProvider(CallLog.AUTHORITY, mockContentProvider); in testKeyPressedEventWhenIdleAndAudioOff_dialCall()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java84 @Mock private ContentResolver mMockContentResolver; field in WifiPermissionsUtilTest
1345 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver);