Home
last modified time | relevance | path

Searched refs:addProvider (Results 1 – 25 of 51) sorted by relevance

123

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactDirectoryManagerTest.java165 MockContactDirectoryProvider provider1 = (MockContactDirectoryProvider) addProvider( in testScanAllProviders()
176 MockContactDirectoryProvider provider2 = (MockContactDirectoryProvider) addProvider( in testScanAllProviders()
259 MockContactDirectoryProvider provider1 = (MockContactDirectoryProvider) addProvider( in testPackageInstalled()
276 MockContactDirectoryProvider provider2 = (MockContactDirectoryProvider) addProvider( in testPackageInstalled()
312 MockContactDirectoryProvider provider1 = (MockContactDirectoryProvider) addProvider( in testPackageUninstalled()
320 MockContactDirectoryProvider provider2 = (MockContactDirectoryProvider) addProvider( in testPackageUninstalled()
358 MockContactDirectoryProvider provider1 = (MockContactDirectoryProvider) addProvider( in testPackageReplaced()
366 MockContactDirectoryProvider provider2 = (MockContactDirectoryProvider) addProvider( in testPackageReplaced()
416 MockContactDirectoryProvider provider1 = (MockContactDirectoryProvider) addProvider( in testPackageRenamed()
424 MockContactDirectoryProvider provider2 = (MockContactDirectoryProvider) addProvider( in testPackageRenamed()
[all …]
DContactsActor.java425 provider = addProvider(providerClass, authority); in ContactsActor()
432 public <T extends ContentProvider> T addProvider(Class<T> providerClass, in addProvider() method in ContactsActor
434 return addProvider(providerClass, authority, mProviderContext); in addProvider()
437 public <T extends ContentProvider> T addProvider(Class<T> providerClass, in addProvider() method in ContactsActor
439 return addProvider(providerClass.newInstance(), authority, providerContext); in addProvider()
442 public <T extends ContentProvider> T addProvider(T provider, in addProvider() method in ContactsActor
454 resolver.addProvider(a, provider); in addProvider()
455 resolver.addProvider("0@" + a, provider); in addProvider()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java305 mMockContentResolver.addProvider("sms", contentProvider); in setUp()
306 mMockContentResolver.addProvider("mms", contentProvider); in setUp()
307 mMockContentResolver.addProvider("mms-sms", mThreadProvider); in setUp()
599 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_NoSms()
612 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_AllSms()
625 mMockContentResolver.addProvider("mms", mmsProvider); in testRestoreMms_NoMms()
637 mMockContentResolver.addProvider("mms", mmsProvider); in testRestoreMms_AllMms()
651 mMockContentResolver.addProvider("mms", mmsProvider); in testRestoreMmsWithAttachment()
660 mMockContentResolver.addProvider("mms", mmsProvider); in testRestoreMmsWithNullBody()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DContactsMockContext.java49 mContentResolver.addProvider(authority, mContactsProvider); in ContactsMockContext()
51 mContentResolver.addProvider(Settings.AUTHORITY, mSettingsProvider); in ContactsMockContext()
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeContext.java93 mContentResolver.addProvider(name, provider); in addContentProvider()
98 mContentResolver.addProvider(uri.getAuthority(), provider); in addDefaultProvider()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DMediaScannerTest.java90 mResolver.addProvider(MediaStore.AUTHORITY, mProvider); in IsolatedContext()
96 mResolver.addProvider(MediaDocumentsProvider.AUTHORITY, mDocumentsProvider); in IsolatedContext()
98 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in IsolatedContext()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DUnrecognizedColumnsTest.java35 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
43 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
DColumnFilterTest.java45 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
53 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
DBootCompletedReceiverTest.java53 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
61 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
DPackageRemovedReceiverTest.java53 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
61 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
DTransientRowHelperTests.java59 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
67 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
DDatabaseHelperTest.java41 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
49 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
DParametersTest.java46 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
54 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
DEpgDataCleanupServiceTests.java62 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
70 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DCp2DeviceLocalAccountLocatorTests.java163 resolver.addProvider(ContactsContract.AUTHORITY, contactsProvider); in createContentResolverWithProvider()
169 resolver.addProvider(ContactsContract.AUTHORITY, new FakeContactsProvider() in createStubResolverWithContentQueryResult()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java209 mResolver.addProvider(PROVIDER_AUTHORITY, provider); in setUp()
210 mResolver.addProvider(MediaStore.AUTHORITY, new MockMediaProvider()); in setUp()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DGsmCellBroadcastHandlerTest.java163 ((MockContentResolver) mMockedContext.getContentResolver()).addProvider( in setUp()
166 ((MockContentResolver) mMockedContext.getContentResolver()).addProvider( in setUp()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/
DTestContext.java34 testResolver.addProvider(authority, provider); in createStorageTestContext()
/packages/apps/Calendar/tests/src/com/android/calendar/
DUtilsTests.java175 dbUtils.getContentResolver().addProvider("settings", dbUtils.getContentProvider()); in setUp()
176 dbUtils.getContentResolver().addProvider(CalendarCache.URI.getAuthority(), in setUp()
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DSimImportActivityTest.java239 mockResolver.addProvider("icc", iccProvider); in selectionsAreImportedAndDisabledOnSubsequentImports()
242 mockResolver.addProvider(ContactsContract.AUTHORITY, new ForwardingContentProvider( in selectionsAreImportedAndDisabledOnSubsequentImports()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberContractTest.java67 mMockContentResolver.addProvider(BlockedNumberContract.AUTHORITY_URI.toString(), in setUp()
DMyMockContext.java129 mResolver.addProvider(BlockedNumberContract.AUTHORITY, mProvider); in initializeContext()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapContentObserverTest.java75 mockResolver.addProvider("sms", mockProvider); in testInitMsgList()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarBluetoothServiceTest.java83 mMockContentResolver.addProvider(Settings.AUTHORITY, mMockContentProvider); in setUp()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java54 mMockContentResolver.addProvider(AUTHORITY, mMockContentProvider); in setUp()

123