Home
last modified time | relevance | path

Searched refs:mMockContentResolver (Results 1 – 8 of 8) 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/
DBluetoothDeviceConnectionPolicyTest.java58 private MockContentResolver mMockContentResolver; field in BluetoothDeviceConnectionPolicyTest
74 mMockContentResolver = new MockContentResolver(mMockContext); in setUp()
81 mMockContentResolver.addProvider(Settings.AUTHORITY, mMockContentProvider); in setUp()
85 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
122 mMockContentResolver = null; in tearDown()
DCarBluetoothServiceTest.java62 private MockContentResolver mMockContentResolver; field in CarBluetoothServiceTest
77 mMockContentResolver = new MockContentResolver(mMockContext); in setUp()
84 mMockContentResolver.addProvider(Settings.AUTHORITY, mMockContentProvider); in setUp()
88 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java93 private MockContentResolver mMockContentResolver = new MockContentResolver(); field in TelephonyBackupAgentTest
294 mMockContentResolver.addProvider("sms", contentProvider); in setUp()
295 mMockContentResolver.addProvider("mms", contentProvider); in setUp()
296 mMockContentResolver.addProvider("mms-sms", mThreadProvider); in setUp()
302 return mMockContentResolver; in setUp()
308 mTelephonyBackupAgent.setContentResolver(mMockContentResolver); in setUp()
588 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_NoSms()
601 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_AllSms()
614 mMockContentResolver.addProvider("mms", mmsProvider); in testRestoreMms_NoMms()
626 mMockContentResolver.addProvider("mms", mmsProvider); in testRestoreMms_AllMms()
[all …]
/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/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeServiceTest.java47 @Mock private ContentResolver mMockContentResolver; field in GarageModeServiceTest
56 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java98 private MockContentResolver mMockContentResolver; field in AdapterServiceTest
129 mMockContentResolver = new MockContentResolver(mMockContext); in setUp()
135 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
303 when(mockContext.getContentResolver()).thenReturn(mMockContentResolver); in testEnableDisableOnlyGatt()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java83 private MockContentResolver mMockContentResolver; field in HeadsetStateMachineTest
109 mMockContentResolver = new MockContentResolver(); in setUp()
110 when(mHeadsetService.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
894 mMockContentResolver.addProvider(CallLog.AUTHORITY, mockContentProvider); in testKeyPressedEventWhenIdleAndAudioOff_dialCall()