/packages/apps/Contacts/tests/src/com/android/contacts/database/ |
D | NoNullCursorAsyncQueryHandlerTest.java | 35 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/ |
D | CarBluetoothServiceTest.java | 65 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()
|
D | BluetoothDeviceConnectionPolicyTest.java | 98 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/ |
D | TelephonyBackupAgentTest.java | 105 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/ |
D | ResetNetworkConfirmFragmentTest.java | 99 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/ |
D | BlockedNumberContractTest.java | 60 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/ |
D | MapClientStateMachineTest.java | 93 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()
|
D | MapClientContentTest.java | 104 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/ |
D | TestTelephonyConnection.java | 75 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/ |
D | GarageModeServiceTest.java | 50 @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/ |
D | CarAudioSettingsUnitTest.java | 45 private ContentResolver mMockContentResolver; field in CarAudioSettingsUnitTest 51 mCarAudioSettings = new CarAudioSettings(mMockContentResolver); in setUp()
|
D | FocusInteractionTest.java | 57 private ContentResolver mMockContentResolver; field in FocusInteractionTest 67 doReturn(mMockContentResolver).when(mMockCarAudioSettings).getContentResolver(); in setUp()
|
/packages/services/Iwlan/test/com/google/android/iwlan/ |
D | IwlanEventListenerTest.java | 59 @Mock private ContentResolver mMockContentResolver; field in IwlanEventListenerTest 96 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
|
D | ErrorPolicyManagerTest.java | 69 @Mock private ContentResolver mMockContentResolver; field in ErrorPolicyManagerTest 745 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setupMockForCarrierConfig()
|
D | IwlanDataServiceTest.java | 93 @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/ |
D | AdapterServiceTest.java | 113 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/ |
D | HeadsetStateMachineTest.java | 84 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/ |
D | WifiPermissionsUtilTest.java | 84 @Mock private ContentResolver mMockContentResolver; field in WifiPermissionsUtilTest 1345 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver);
|