Home
last modified time | relevance | path

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

1234

/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/repositories/appactions/
DAppLaunchProviderFactory.kt55 addProvider(LauncherActivityLaunchProvider)
56 addProvider(MediaServiceLaunchProvider(carMediaManager, launchMediaCenter, onMediaSelected))
57 addProvider(DisabledAppLaunchProvider(packageManager))
58 addProvider(TosDisabledAppLaunchProvider)
59 addProvider(MirroringAppLaunchProvider)
82 private fun addProvider(provider: AppLaunchProvider) { in addProvider() method
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactDirectoryManagerTest.java186 MockContactDirectoryProvider provider1 = (MockContactDirectoryProvider) addProvider( in testScanAllProviders()
197 MockContactDirectoryProvider provider2 = (MockContactDirectoryProvider) addProvider( in testScanAllProviders()
282 MockContactDirectoryProvider provider1 = (MockContactDirectoryProvider) addProvider( in testPackageInstalled()
299 MockContactDirectoryProvider provider2 = (MockContactDirectoryProvider) addProvider( in testPackageInstalled()
336 MockContactDirectoryProvider provider1 = (MockContactDirectoryProvider) addProvider( in testPackageUninstalled()
344 MockContactDirectoryProvider provider2 = (MockContactDirectoryProvider) addProvider( in testPackageUninstalled()
383 MockContactDirectoryProvider provider1 = (MockContactDirectoryProvider) addProvider( in testPackageReplaced()
391 MockContactDirectoryProvider provider2 = (MockContactDirectoryProvider) addProvider( in testPackageReplaced()
442 MockContactDirectoryProvider provider1 = (MockContactDirectoryProvider) addProvider( in testPackageRenamed()
450 MockContactDirectoryProvider provider2 = (MockContactDirectoryProvider) addProvider( in testPackageRenamed()
[all …]
DContactsActor.java459 provider = addProvider(providerClass, authority); in ContactsActor()
466 public <T extends ContentProvider> T addProvider(Class<T> providerClass, in addProvider() method in ContactsActor
468 return addProvider(providerClass, authority, mProviderContext); in addProvider()
471 public <T extends ContentProvider> T addProvider(Class<T> providerClass, in addProvider() method in ContactsActor
473 return addProvider(providerClass.newInstance(), authority, providerContext); in addProvider()
476 public <T extends ContentProvider> T addProvider(T provider, in addProvider() method in ContactsActor
488 resolver.addProvider(a, provider); in addProvider()
489 resolver.addProvider("0@" + a, provider); in addProvider()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DDataMigrationTest.java115 mMockContentResolver.addProvider(AUTHORITY, fakeContentProvider); in testEmptyMigration()
165 mMockContentResolver.addProvider(AUTHORITY, new MockContentProvider(mMockContext)); in testMissingProvider()
183 mMockContentResolver.addProvider(AUTHORITY, new MockContentProvider(mMockContext)); in testTooManyAttempt()
192 mMockContentResolver.addProvider(AUTHORITY, fakeContentProvider); in testSharedPreferencesMigration()
297 mMockContentResolver.addProvider(AUTHORITY, fakeContentProvider); in testIncompleteDbMigration()
317 mMockContentResolver.addProvider(AUTHORITY, fakeContentProvider); in testBluetoothDbMigration()
405 mMockContentResolver.addProvider(AUTHORITY, fakeContentProvider); in testOppDbMigration()
/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/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java334 mMockContentResolver.addProvider("sms", contentProvider); in setUp()
335 mMockContentResolver.addProvider("mms", contentProvider); in setUp()
336 mMockContentResolver.addProvider("mms-sms", mThreadProvider); in setUp()
640 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_NoSms()
653 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_AllSms()
668 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_WithException()
699 mMockContentResolver.addProvider("mms", mmsProvider); in testRestoreMms_NoMms()
721 mMockContentResolver.addProvider("mms", mmsProvider); in testRestoreMms_AllMms()
744 mMockContentResolver.addProvider("mms", mmsProvider); in testRestoreMmsWithAttachment()
763 mMockContentResolver.addProvider("mms", mmsProvider); in testRestoreMmsWithNullBody()
/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()
DParametersTest.java46 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
54 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()
DEpgDataCleanupServiceTests.java60 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
68 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientContentTest.java115 mMockContentResolver.addProvider("sms", mMockSmsContentProvider); in setUp()
116 mMockContentResolver.addProvider("mms", mMockMmsContentProvider); in setUp()
117 mMockContentResolver.addProvider("mms-sms", mMockThreadContentProvider); in setUp()
459 mMockContentResolver.addProvider("sms", missingContentProvider); in testInsertSmsFails_messageHandleNotInteractable()
481 mMockContentResolver.addProvider("mms", missingContentProvider); in testInsertMmsPartsSkippedWhenMmsInsertFails_messageHandleNotInteractable()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DIsolatedContext.java80 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in IsolatedContext()
153 mResolver.addProvider(authority, provider);
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/
DOTAResourcesManager.java108 OTAResourcesLoader.addProvider(ResourcesProvider.loadFromTable(fd, null)); in refreshOTAResources()
123 OTAResourcesLoader.addProvider(ResourcesProvider.loadFromApk(fd, null)); in refreshOTAResources()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/
DTestContext.java34 testResolver.addProvider(authority, provider); in createStorageTestContext()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java204 mResolver.addProvider(PROVIDER_AUTHORITY, provider); in setUp()
205 mResolver.addProvider(MediaStore.AUTHORITY, new MockMediaProvider()); in setUp()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DFakeContactsProviderTestBase.java57 mMockContentResolver.addProvider(FakeContactsProvider.AUTHORITY, in setUp()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberContractTest.java68 mMockContentResolver.addProvider(BlockedNumberContract.AUTHORITY_URI.toString(), in setUp()
DMyMockContext.java129 mResolver.addProvider(BlockedNumberContract.AUTHORITY, mProvider); in initializeContext()
/packages/apps/Calendar/tests/src/com/android/calendar/
DUtilsTests.java159 dbUtils.getContentResolver().addProvider("settings", dbUtils.getContentProvider()); in setUp()
160 dbUtils.getContentResolver().addProvider(CalendarCache.URI.getAuthority(), in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DAbstractExtendedMockitoBluetoothTestCase.java112 mContentResolver.addProvider(Settings.AUTHORITY, mContentProvider); in MockContext()

1234