Home
last modified time | relevance | path

Searched refs:mResolver (Results 1 – 25 of 56) sorted by relevance

123

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/
DContactAggregatorTest.java70 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "zz", "top"); in testCrudAggregationExceptions()
71 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "aa", "bottom"); in testCrudAggregationExceptions()
82 Cursor c = mResolver.query(AggregationExceptions.CONTENT_URI, in testCrudAggregationExceptions()
96 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, in testCrudAggregationExceptions()
111 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, in testCrudAggregationExceptions()
118 long rawContactId = RawContactUtil.createRawContact(mResolver); in testAggregationCreatesNewAggregate()
120 Uri resultUri = DataUtil.insertStructuredName(mResolver, rawContactId, "Johna", "Smitha"); in testAggregationCreatesNewAggregate()
133 long rawContactId1 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1); in testAggregationOfExactFullNameMatch()
134 DataUtil.insertStructuredName(mResolver, rawContactId1, "Johnb", "Smithb"); in testAggregationOfExactFullNameMatch()
136 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2); in testAggregationOfExactFullNameMatch()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java775 Uri rowUri = mResolver.insert(RawContacts.CONTENT_URI, values); in testRawContactsInsert()
786 long rawContactId = RawContactUtil.createRawContactWithName(mResolver); in testDataDirectoryWithLookupUri()
811 Cursor cursor = mResolver.query(dataUri, new String[]{ Data.DATA1 }, null, null, Data._ID); in assertDataRows()
833 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithIdBasedUri()
838 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithIdBasedUri()
855 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithLookupUri()
860 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithLookupUri()
887 Cursor cursor = mResolver.query(entityUri, null, null, null, in assertEntityRows()
947 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testDataInsert()
951 Uri dataUri = mResolver.insert(Data.CONTENT_URI, values); in testDataInsert()
[all …]
DVoicemailProviderTest.java82 Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testInsert()
93 OutputStream out = mResolver.openOutputStream(uri); in testFileContent()
98 InputStream in = mResolver.openInputStream(uri); in testFileContent()
117 int count = mResolver.update(uri, values, null, null); in testUpdate()
124 int count = mResolver.delete(voicemailUri(), Voicemails._ID + "=" in testDelete()
133 mResolver.getType(ContentUris.withAppendedId(Voicemails.CONTENT_URI, 100))); in testGetType_ItemUri()
137 Uri uri = mResolver.insert(voicemailUri(), values); in testGetType_ItemUri()
138 assertEquals(Voicemails.ITEM_TYPE, mResolver.getType(uri)); in testGetType_ItemUri()
142 assertEquals(Voicemails.DIR_TYPE, mResolver.getType(Voicemails.CONTENT_URI)); in testGetType_DirUri()
143 assertEquals(Voicemails.DIR_TYPE, mResolver.getType(Voicemails.buildSourceUri("foo"))); in testGetType_DirUri()
[all …]
DLegacyContactsProviderTest.java71 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleInsert()
80 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleUpdate()
87 mResolver.update(uri, values, null, null); in testPeopleUpdate()
92 mResolver.update(People.CONTENT_URI, values, People._ID + "=" + personId, null); in testPeopleUpdate()
99 Uri personId = mResolver.insert(People.CONTENT_URI, values); in testPeopleDelete()
100 mResolver.delete(personId, null, null); in testPeopleDelete()
102 Cursor c = mResolver.query(personId, null, People.NAME + "='John Doe'" , null, null); in testPeopleDelete()
107 mResolver.query(People.DELETED_CONTENT_URI, null, null, null, null); in testPeopleDelete()
116 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
120 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
[all …]
DSearchIndexManagerTest.java52 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchIndexForStructuredName()
54 DataUtil.insertStructuredName(mResolver, rawContactId, "John", "Doe"); in testSearchIndexForStructuredName()
57 DataUtil.insertStructuredName(mResolver, rawContactId, values); in testSearchIndexForStructuredName()
66 DataUtil.insertStructuredName(mResolver, rawContactId, values); in testSearchIndexForStructuredName()
78 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchIndexForChineseName()
82 DataUtil.insertStructuredName(mResolver, rawContactId, values); in testSearchIndexForChineseName()
95 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchByChineseName()
98 DataUtil.insertStructuredName(mResolver, rawContactId, values); in testSearchByChineseName()
114 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchIndexForKoreanName()
118 DataUtil.insertStructuredName(mResolver, rawContactId, values); in testSearchIndexForKoreanName()
[all …]
DCallLogProviderTest.java87 mResolver.delete(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null); in tearDown()
93 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); in testInsert_RegularCallRecord()
119 mResolver.insert(Calls.CONTENT_URI, values); in testInsert_VoicemailCallRecord()
124 Uri uri = mResolver.insert(Calls.CONTENT_URI_WITH_VOICEMAIL, values); in testInsert_VoicemailCallRecord()
140 int count = mResolver.update(uri, values, null, null); in testUpdate()
148 mResolver.delete(uri, null, null); in testDelete()
154 int count = mResolver.delete(Calls.CONTENT_URI, Calls._ID + "=" in testDelete()
162 mResolver.insert(Calls.CONTENT_URI, values); in testCallLogFilter()
165 Cursor c = mResolver.query(filterUri, null, null, null, null); in testCallLogFilter()
172 c = mResolver.query(filterUri, null, null, null, null); in testCallLogFilter()
[all …]
DBaseContactsProvider2Test.java89 protected MockContentResolver mResolver; field in BaseContactsProvider2Test
116 mResolver = mActor.resolver; in setUp()
177 return mResolver.update(uri, values, null, null); in updateItem()
202 return ContentUris.parseId(mResolver.insert(uri, values)); in createGroup()
220 mResolver.insert(Settings.CONTENT_URI, values); in createSettings()
235 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertOrganization()
258 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPhoneNumber()
295 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertEmail()
312 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertSipAddress()
323 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertNickname()
[all …]
DGroupsTest.java164 mResolver.update(updateUri, values, null, null); in testMarkAsDirtyParameter()
176 assertEquals(1, mResolver.update(uri, values, null, null)); in testGroupDirtyClearedWhenSetExplicitly()
186 mResolver.delete(uri, null, null); in testGroupDeletion1()
191 mResolver.delete(permanentDeletionUri, null, null); in testGroupDeletion1()
201 mResolver.delete(permanentDeletionUri, null, null); in testGroupDeletion2()
211 mResolver.update(uri, values, null, null); in testGroupVersionUpdates()
237 final Cursor cursor = mResolver.query(Contacts.CONTENT_URI, new String[] { in assertContactVisible()
259 final long rawContactId = RawContactUtil.createRawContact(this.mResolver, sTestAccount); in testDelayVisibleTransaction()
273 mResolver.applyBatch(ContactsContract.AUTHORITY, oper); in testDelayVisibleTransaction()
278 mResolver.applyBatch(ContactsContract.AUTHORITY, oper); in testDelayVisibleTransaction()
[all …]
DContactsProvider2TransactionTest.java67 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_insert()
77 mResolver.insert(Profile.CONTENT_RAW_CONTACTS_URI, values); in testTransactionCallback_insert()
93 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_update()
94 mResolver.insert(Profile.CONTENT_RAW_CONTACTS_URI, values); in testTransactionCallback_update()
101 assertTrue(mResolver.update(RawContacts.CONTENT_URI, values, null, null) > 0); in testTransactionCallback_update()
111 assertTrue(mResolver.update(Profile.CONTENT_RAW_CONTACTS_URI, values, null, null) > 0); in testTransactionCallback_update()
127 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_delete()
128 mResolver.insert(Profile.CONTENT_RAW_CONTACTS_URI, values); in testTransactionCallback_delete()
132 assertTrue(mResolver.delete(RawContacts.CONTENT_URI, null, null) > 0); in testTransactionCallback_delete()
141 assertTrue(mResolver.delete(Profile.CONTENT_RAW_CONTACTS_URI, null, null) > 0); in testTransactionCallback_delete()
[all …]
DContactLookupKeyTest.java44 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyUsingDisplayNameAndNoAccount()
45 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "johndoe", null); in testLookupKeyUsingDisplayNameAndNoAccount()
72 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyUsingSourceIdAndNoAccount()
75 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "johndoe", null); in testLookupKeyUsingSourceIdAndNoAccount()
78 long rawContactId3 = RawContactUtil.createRawContactWithName(mResolver, "john", "dough"); in testLookupKeyUsingSourceIdAndNoAccount()
98 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "Dear", "Doe"); in testLookupKeySameSourceIdDifferentAccounts()
103 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "Deer", "Dough"); in testLookupKeySameSourceIdDifferentAccounts()
129 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyChoosingLargestContact()
132 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyChoosingLargestContact()
135 long rawContactId3 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyChoosingLargestContact()
[all …]
DContactDirectoryManagerTest.java173 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testScanAllProviders()
211 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageInstalled()
229 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageInstalled()
271 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageUninstalled()
280 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageUninstalled()
317 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageReplaced()
329 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageReplaced()
375 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageRenamed()
394 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageRenamed()
442 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testAccountRemoval()
[all …]
DSqlInjectionDetectionTest.java46 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale"); in testPhoneQueryValid()
54 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale"); in testPhoneQueryBadProjection()
62 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale"); in testPhoneQueryBadSelection()
70 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale"); in testPhoneQueryBadSortOrder()
79 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale"); in testPhoneQueryBadLimit()
88 final Cursor c = mResolver.query(Phone.CONTENT_URI, PHONE_ID_PROJECTION, null, null, null); in testPhoneQueryBadLimit()
99 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); in assertQueryValid()
108 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); in assertQueryThrows()
DVoicemailCleanupServiceTest.java78 mCleanupService.handleIntentInternal(packageIntent, mResolver); in sendIntent()
84 mResolver.insert(Voicemails.buildSourceUri(sourcePackage), values); in insertDataForPackage()
85 mResolver.insert(Status.buildSourceUri(sourcePackage), values); in insertDataForPackage()
95 Cursor cursor = mResolver.query( in checkDataExistsForPackage()
98 cursor = mResolver.query( in checkDataExistsForPackage()
104 Cursor cursor = mResolver.query( in checkDataDoesNotExistForPackage()
107 cursor = mResolver.query( in checkDataDoesNotExistForPackage()
DDirectoryTest.java79 long contactId = queryContactId(RawContactUtil.createRawContactWithName(mResolver, "John", in testForwardingToLocalContacts()
85 Cursor cursor = mResolver.query(contentUri, in testForwardingToLocalContacts()
98 long contactId1 = queryContactId(RawContactUtil.createRawContactWithName(mResolver, "Bob", in testForwardingToLocalInvisibleContacts()
104 long contactId2 = queryContactId(RawContactUtil.createRawContactWithName(mResolver, "Helen", in testForwardingToLocalInvisibleContacts()
111 Cursor cursor = mResolver.query(contentUri, in testForwardingToLocalInvisibleContacts()
117 mResolver.delete(Data.CONTENT_URI, in testForwardingToLocalInvisibleContacts()
121 cursor = mResolver.query(contentUri, in testForwardingToLocalInvisibleContacts()
DGlobalSearchSupportTest.java53 long rawContactId = RawContactUtil.createRawContact(mResolver, account); in testSearchSuggestionsNotInDefaultDirectory()
54 DataUtil.insertStructuredName(mResolver, rawContactId, "Deer", "Dough"); in testSearchSuggestionsNotInDefaultDirectory()
57 mResolver.delete(Data.CONTENT_URI, Data.RAW_CONTACT_ID + "=" + rawContactId in testSearchSuggestionsNotInDefaultDirectory()
64 Cursor c = mResolver.query(searchUri, null, null, null, null); in testSearchSuggestionsNotInDefaultDirectory()
172 Cursor c = mResolver.query(searchUri, null, null, null, null); in testQsbSuggest()
248 return mResolver.query(refershUri, projection, null, null, null); in refreshQuery()
/packages/apps/Gallery2/tests/src/com/android/photos/data/
DPhotoProviderTest.java63 private ContentResolver mResolver; field in PhotoProviderTest
73 mResolver = getMockContentResolver(); in setUp()
113 mResolver.delete(NO_TABLE_URI, null, null); in testDelete()
119 mResolver.delete(BAD_TABLE_URI, null, null); in testDelete()
130 mResolver.delete(Metadata.CONTENT_URI, WHERE_METADATA_PHOTOS_ID, selectionArgs)); in testDelete()
132 assertEquals(1, mResolver.delete(photoUri, null, null)); in testDelete()
134 assertEquals(1, mResolver.delete(albumUri, null, null)); in testDelete()
136 assertEquals(0, mResolver.delete(photoUri, null, null)); in testDelete()
141 assertEquals(1, mResolver.delete(metadataUri, null, null)); in testDeleteMetadataId()
142 Cursor cursor = mResolver.query(Metadata.CONTENT_URI, null, null, null, null); in testDeleteMetadataId()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java94 private MockContentResolver mResolver; field in CalendarProvider2Test
269 Cursor cursor = mResolver.query(mEventsUri, null, null, null, null); in execute()
285 Cursor cursor = mResolver.query(mEventsUri, null, null, null, null); in execute()
941 mResolver = new MockContentResolver(); in setUp()
948 mContext = new IsolatedContext(mResolver, targetContextWrapper); in setUp()
953 mResolver.addProvider(CalendarContract.AUTHORITY, mProvider); in setUp()
954 mResolver.addProvider("subscribedfeeds", new MockProvider("subscribedfeeds")); in setUp()
955 mResolver.addProvider("sync", new MockProvider("sync")); in setUp()
1068 Uri url = mResolver.insert( in insertCal()
1096 return mResolver.insert(addSyncQueryParams(uri, DEFAULT_ACCOUNT, DEFAULT_ACCOUNT_TYPE), m); in insertColor()
[all …]
DCalendarSyncTestingBase.java44 protected ContentResolver mResolver; field in CalendarSyncTestingBase
77 mResolver = mTargetContext.getContentResolver(); in setUp()
129 Uri url = mResolver.insert(mEventsUri, m); in insertEvent()
152 mResolver.update(uri, values, null, null); in editEvent()
162 mResolver.delete(uri, null, null); in deleteEvent()
190 mResolver.insert(CalendarContract.Calendars.CONTENT_URI, values); in insertCalendar()
200 cursor = mResolver.query(mEventsUri, null, null, null, null); in getEventsCount()
210 calendarsCursor = mResolver.query(CalendarContract.Calendars.CONTENT_URI, null, null, null, in getDefaultCalendarId()
DSyncCalendarTest.java75 cursor = mResolver.query(mEventsUri, null, null, null, null); in testEditEventTitle()
89 cursor = mResolver.query(mEventsUri, null, null, null, null); in testEditEventTitle()
103 cursor = mResolver.query(mEventsUri, null, null, null, null); in testEditEventDate()
120 cursor = mResolver.query(mEventsUri, null, null, null, null); in testEditEventDate()
136 cursor = mResolver.query(mEventsUri, null, null, null, null); in testEditEventDescription()
150 cursor = mResolver.query(mEventsUri, null, null, null, null); in testEditEventDescription()
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DMailboxUtilitiesTests.java40 private ContentResolver mResolver; field in MailboxUtilitiesTests
54 mResolver = mProviderContext.getContentResolver(); in setUp()
64 mResolver.delete( in tearDown()
85 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testSetupParentKeyAndFlag()
140 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testParentKeyAddFolder1()
191 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testParentKeyAddFolder2()
235 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testParentKeyAddFolder3()
282 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testParentKeyRemoveFolder1()
301 mResolver.delete(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box3.mId), null, null); in testParentKeyRemoveFolder1()
335 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testParentKeyRemoveFolder2()
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
DMailboxUtilitiesTests.java40 private ContentResolver mResolver; field in MailboxUtilitiesTests
54 mResolver = mProviderContext.getContentResolver(); in setUp()
64 mResolver.delete( in tearDown()
85 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testSetupParentKeyAndFlag()
140 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testParentKeyAddFolder1()
191 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testParentKeyAddFolder2()
235 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testParentKeyAddFolder3()
282 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testParentKeyRemoveFolder1()
301 mResolver.delete(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box3.mId), null, null); in testParentKeyRemoveFolder1()
335 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testParentKeyRemoveFolder2()
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java63 protected MockContentResolverWithNotify mResolver; field in AbstractDownloadProviderFunctionalTest
98 private ContentResolver mResolver; field in AbstractDownloadProviderFunctionalTest.TestContext
109 mResolver = resolver; in setResolver()
117 return mResolver; in getContentResolver()
162 mTestContext.setResolver(mResolver); in setUp()
181 Cursor cursor = mResolver.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, in isDatabaseEmpty()
194 mResolver = new MockContentResolverWithNotify(); in setupProviderAndResolver()
195 mResolver.addProvider(PROVIDER_AUTHORITY, provider); in setupProviderAndResolver()
202 if (mResolver == null) { in cleanUpDownloads()
206 Cursor cursor = mResolver.query(Downloads.Impl.CONTENT_URI, columns, null, null, null); in cleanUpDownloads()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManager.java72 private ContentResolver mResolver; field in BluetoothPbapVcardManager
107 mResolver = mContext.getContentResolver(); in BluetoothPbapVcardManager()
168 contactCursor = mResolver.query(myUri, null, CLAUSE_ONLY_VISIBLE, null, null); in getContactsSize()
186 callCursor = mResolver.query(myUri, null, selection, null, in getCallHistorySize()
211 callCursor = mResolver.query(myUri, projection, selection, null, in loadCallHistoryList()
255 contactCursor = mResolver.query(myUri, CONTACTS_PROJECTION, CLAUSE_ONLY_VISIBLE, in getPhonebookNameList()
259 contactCursor = mResolver.query(myUri, CONTACTS_PROJECTION, CLAUSE_ONLY_VISIBLE, in getPhonebookNameList()
294 contactCursor = mResolver.query(uri, CONTACTS_PROJECTION, CLAUSE_ONLY_VISIBLE, in getContactNamesByNumber()
336 callsCursor = mResolver.query(myUri, CALLLOG_PROJECTION, typeSelection, null, in composeAndSendCallLogVcards()
390 contactCursor = mResolver.query(myUri, CONTACTS_PROJECTION, CLAUSE_ONLY_VISIBLE, null, in composeAndSendPhonebookVcards()
[all …]
/packages/apps/Browser/tests/src/com/android/browser/tests/utils/
DProviderTestCase3.java44 private MockContentResolver2 mResolver; field in ProviderTestCase3
116 mResolver = new MockContentResolver2(); in setUp()
125 mProviderContext = new IsolatedContext(mResolver, targetContextWrapper) { in setUp()
137 mResolver.addProvider(auth, getProvider()); in setUp()
160 return mResolver; in getMockContentResolver()
173 mResolver.safeRegisterContentObserver(uri, notifyForDescendents, observer); in registerContentObserver()
177 mResolver.safeUnregisterContentObserver(observer); in unregisterContentObserver()
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DExchangeService.java216 private ContentResolver mResolver; field in ExchangeService
884 mResolver.registerContentObserver( in registerCalendarObserver()
896 ContentResolver resolver = exchangeService.mResolver; in unregisterCalendarObservers()
932 Cursor c = mResolver.query(Calendars.CONTENT_URI, in CalendarObserver()
958 Cursor c = mResolver.query(Calendars.CONTENT_URI, in onChange()
995 mResolver.update(ContentUris.withAppendedId( in onChange()
1005 mResolver.delete(eventsAsSyncAdapter, WHERE_CALENDAR_ID, in onChange()
1013 mResolver.update(ContentUris.withAppendedId( in onChange()
1565 ContentResolver resolver = INSTANCE.mResolver; in alert()
1722 mResolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, id), values, null, null); in setMailboxSyncStatus()
[all …]

123