Home
last modified time | relevance | path

Searched refs:CONTENT_URI (Results 1 – 25 of 377) sorted by relevance

12345678910>>...16

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DLegacyContactsProviderTest.java71 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleInsert()
73 assertSelection(People.CONTENT_URI, values, "people", People._ID, ContentUris.parseId(uri)); in testPeopleInsert()
80 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleUpdate()
83 assertSelection(People.CONTENT_URI, values, "people", People._ID, personId); 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()
116 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
120 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
124 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
135 Uri personUri = mResolver.insert(People.CONTENT_URI, values); in testDefaultDisplayName()
[all …]
DContactsProvider2Test.java116 assertProjection(Contacts.CONTENT_URI, new String[]{ in testContactsProjection()
283 assertProjection(RawContacts.CONTENT_URI, new String[]{ in testRawContactsProjection()
321 assertProjection(Data.CONTENT_URI, new String[]{ in testDataProjection()
481 Uri.withAppendedPath(ContentUris.withAppendedId(Contacts.CONTENT_URI, 0), in testEntityProjection()
571 assertProjection(RawContactsEntity.CONTENT_URI, new String[]{ in testRawEntityProjection()
642 assertProjection(Groups.CONTENT_URI, new String[]{ in testGroupsProjection()
701 assertProjection(AggregationExceptions.CONTENT_URI, new String[]{ in testAggregateExceptionProjection()
710 assertProjection(Settings.CONTENT_URI, new String[]{ in testSettingsProjection()
723 assertProjection(StatusUpdates.CONTENT_URI, new String[]{ in testStatusUpdatesProjection()
741 assertProjection(Directory.CONTENT_URI, new String[]{ in testDirectoryProjection()
[all …]
DContactLookupKeyTest.java55 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingDisplayNameAndNoAccount()
73 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "123"); in testLookupKeyUsingSourceIdAndNoAccount()
76 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.SOURCE_ID, "4.5.6"); in testLookupKeyUsingSourceIdAndNoAccount()
79 storeValue(RawContacts.CONTENT_URI, rawContactId3, RawContacts.SOURCE_ID, "http://foo?bar"); in testLookupKeyUsingSourceIdAndNoAccount()
90 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingSourceIdAndNoAccount()
99 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.ACCOUNT_TYPE, "foo"); in testLookupKeySameSourceIdDifferentAccounts()
100 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.ACCOUNT_NAME, "FOO"); in testLookupKeySameSourceIdDifferentAccounts()
101 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "1"); in testLookupKeySameSourceIdDifferentAccounts()
104 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.ACCOUNT_TYPE, "bar"); in testLookupKeySameSourceIdDifferentAccounts()
105 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.ACCOUNT_NAME, "BAR"); in testLookupKeySameSourceIdDifferentAccounts()
[all …]
DBaseContactsProvider2Test.java201 final Uri uri = TestUtil.maybeAddAccountQueryParameters(Groups.CONTENT_URI, account); 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()
333 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPostalAddress()
340 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPostalAddress()
349 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPhoto()
[all …]
DGroupsTest.java149 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testGroupDirtySetOnChange()
157 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testMarkAsDirtyParameter()
169 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testGroupDirtyClearedWhenSetExplicitly()
183 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in testGroupDeletion1()
197 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in testGroupDeletion2()
206 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testGroupVersionUpdates()
237 final Cursor cursor = mResolver.query(Contacts.CONTENT_URI, new String[] { in assertContactVisible()
247 return ContentProviderOperation.newAssertQuery(Contacts.CONTENT_URI).withSelection( in buildVisibleAssert()
256 final Uri groupUri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in testDelayVisibleTransaction()
261 final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testDelayVisibleTransaction()
[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 …]
DCallLogProviderTest.java93 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); in testInsert_RegularCallRecord()
119 mResolver.insert(Calls.CONTENT_URI, values); in testInsert_VoicemailCallRecord()
154 int count = mResolver.delete(Calls.CONTENT_URI, Calls._ID + "=" in testDelete()
162 mResolver.insert(Calls.CONTENT_URI, values); in testCallLogFilter()
208 assertEquals(2, getCount(Calls.CONTENT_URI, null, null)); in testDifferentContentUris()
216 Uri uri = Calls.CONTENT_URI.buildUpon() in testLimitParamReturnsCorrectLimit()
224 mResolver.insert(Calls.CONTENT_URI, getDefaultValues(Calls.INCOMING_TYPE)); in testLimitAndOffsetParamReturnsCorrectEntries()
227 mResolver.insert(Calls.CONTENT_URI, getDefaultValues(Calls.MISSED_TYPE)); in testLimitAndOffsetParamReturnsCorrectEntries()
230 Uri uri = Calls.CONTENT_URI.buildUpon() in testLimitAndOffsetParamReturnsCorrectEntries()
260 Uri uri = Calls.CONTENT_URI.buildUpon() in assertParamThrowsIllegalArgumentException()
[all …]
DContactsProvider2TransactionTest.java67 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_insert()
93 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_update()
101 assertTrue(mResolver.update(RawContacts.CONTENT_URI, values, null, null) > 0); in testTransactionCallback_update()
127 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_delete()
132 assertTrue(mResolver.delete(RawContacts.CONTENT_URI, null, null) > 0); in testTransactionCallback_delete()
157 mResolver.bulkInsert(RawContacts.CONTENT_URI, new ContentValues[] {values}); in testTransactionCallback_bulkInsert()
180 b = ContentProviderOperation.newInsert(RawContacts.CONTENT_URI); in addInsertContactOperations()
185 b = ContentProviderOperation.newInsert(Data.CONTENT_URI); in addInsertContactOperations()
198 assertStoredValues(Contacts.CONTENT_URI, cv( in checkStoredContact()
214 b = ContentProviderOperation.newInsert(Data.CONTENT_URI); in addInsertProfileOperations()
[all …]
/packages/apps/Gallery2/tests/src/com/android/photos/data/
DPhotoProviderTest.java130 mResolver.delete(Metadata.CONTENT_URI, WHERE_METADATA_PHOTOS_ID, selectionArgs)); in testDelete()
131 Uri photoUri = ContentUris.withAppendedId(Photos.CONTENT_URI, mPhotoId); in testDelete()
133 Uri albumUri = ContentUris.withAppendedId(Albums.CONTENT_URI, mAlbumId); in testDelete()
140 Uri metadataUri = ContentUris.withAppendedId(Metadata.CONTENT_URI, mMetadataId); in testDeleteMetadataId()
142 Cursor cursor = mResolver.query(Metadata.CONTENT_URI, null, null, null, null); in testDeleteMetadataId()
150 Uri albumUri = ContentUris.withAppendedId(Albums.CONTENT_URI, mAlbumId); in testDeleteAlbumCascade()
152 assertTrue(mNotifications.isNotified(Photos.CONTENT_URI)); in testDeleteAlbumCascade()
153 assertTrue(mNotifications.isNotified(Metadata.CONTENT_URI)); in testDeleteAlbumCascade()
156 Cursor cursor = mResolver.query(Photos.CONTENT_URI, PhotoDatabaseUtils.PROJECTION_PHOTOS, in testDeleteAlbumCascade()
164 mResolver.delete(Albums.CONTENT_URI, null, null); in testDeleteAlbumCascade2()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DAllIntentsActivity.java148 new Intent(UI.LIST_DEFAULT, Contacts.CONTENT_URI)); in onListItemClick()
153 new Intent(UI.LIST_ALL_CONTACTS_ACTION, Contacts.CONTENT_URI)); in onListItemClick()
158 new Intent(UI.LIST_CONTACTS_WITH_PHONES_ACTION, Contacts.CONTENT_URI)); in onListItemClick()
163 new Intent(UI.LIST_STARRED_ACTION, Contacts.CONTENT_URI)); in onListItemClick()
168 new Intent(UI.LIST_FREQUENT_ACTION, Contacts.CONTENT_URI)); in onListItemClick()
173 new Intent(UI.LIST_STREQUENT_ACTION, Contacts.CONTENT_URI)); in onListItemClick()
178 new Intent(UI.LIST_GROUP_ACTION, Contacts.CONTENT_URI)); in onListItemClick()
183 new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI)); in onListItemClick()
188 new Intent(Intent.ACTION_PICK, People.CONTENT_URI)); in onListItemClick()
193 new Intent(Intent.ACTION_PICK, Phone.CONTENT_URI)); in onListItemClick()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DEmailContent.java70 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY); field in EmailContent
283 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/body"); field in EmailContent.Body
340 mBaseUri = CONTENT_URI; in Body()
376 Uri u = ContentUris.withAppendedId(Body.CONTENT_URI, id); in restoreBodyWithId()
384 Cursor c = context.getContentResolver().query(Body.CONTENT_URI, in restoreBodyWithMessageId()
395 return Utility.getFirstRowLong(context, Body.CONTENT_URI, in lookupBodyIdWithMessageId()
412 resolver.insert(CONTENT_URI, values); in updateBodyWithMessageId()
414 final Uri uri = ContentUris.withAppendedId(CONTENT_URI, bodyId); in updateBodyWithMessageId()
421 return Utility.getFirstRowLong(context, Body.CONTENT_URI, in restoreBodySourceKey()
429 Cursor c = context.getContentResolver().query(Body.CONTENT_URI, projection, in restoreTextWithMessageId()
[all …]
DAccount.java44 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/account"); field in Account
46 Uri.parse(EmailContent.CONTENT_URI + "/accountIdAddToField");
48 Uri.parse(EmailContent.CONTENT_URI + "/resetNewMessageCount");
52 Uri.parse(EmailContent.CONTENT_URI + "/account/default");
213 mBaseUri = CONTENT_URI; in Account()
225 Account.CONTENT_URI, Account.CONTENT_PROJECTION, id); in restoreAccountWithId()
257 mBaseUri = CONTENT_URI; in restore()
511 return CONTENT_URI.buildUpon().appendEncodedPath(uuid).build(); in getShortcutSafeUriFromUuid()
555 CONTENT_URI, ID_PROJECTION, in getAccountIdFromUuid()
634 return null != Utility.getFirstRowLong(context, CONTENT_URI, ID_PROJECTION, in isValidId()
[all …]
DMailbox.java37 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/mailbox"); field in Mailbox
39 Uri.parse(EmailContent.CONTENT_URI + "/mailboxIdAddToField");
41 Uri.parse(EmailContent.CONTENT_URI + "/mailboxIdFromAccountAndType");
231 mBaseUri = CONTENT_URI; in Mailbox()
242 Mailbox.CONTENT_URI, Mailbox.CONTENT_PROJECTION, id); in restoreMailboxWithId()
276 Mailbox.CONTENT_URI, in restoreMailboxForPath()
312 mBaseUri = CONTENT_URI; in restore()
396 return Utility.getFirstRowLong(context, Mailbox.CONTENT_URI, in findMailboxOfType()
414 return Utility.getFirstRowInt(context, Mailbox.CONTENT_URI, in getUnreadCountByAccountAndMailboxType()
422 return Utility.getFirstRowInt(context, Mailbox.CONTENT_URI, in getUnreadCountByMailboxType()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java95 private Uri mEventsUri = Events.CONTENT_URI;
96 private Uri mCalendarsUri = Calendars.CONTENT_URI;
1094 Uri uri = CalendarContract.Colors.CONTENT_URI; in insertColor()
1101 Uri uri = CalendarContract.Colors.CONTENT_URI; in updateAndCheckColor()
1224 Uri uri = updatedUri(ContentUris.withAppendedId(Events.CONTENT_URI, id), true, account, in deleteMatchingEvents()
1293 Uri uri = ContentUris.withAppendedId(Events.CONTENT_URI, id); in updateMatchingEvents()
1318 Uri uri = ContentUris.withAppendedId(Events.CONTENT_URI, id); in updateMatchingEventsStatusOnly()
1406 Uri colSyncUri = asSyncAdapter(Colors.CONTENT_URI, DEFAULT_ACCOUNT, in testInsertUpdateDeleteColor()
1416 Cursor cursor = mResolver.query(Colors.CONTENT_URI, new String[] {Colors.COLOR_KEY}, in testInsertUpdateDeleteColor()
1425 cursor = mResolver.query(Colors.CONTENT_URI, new String[] {Colors.COLOR_KEY}, in testInsertUpdateDeleteColor()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/
DContactAggregatorTest.java82 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()
1057 ContentUris.withAppendedId(Data.CONTENT_URI, normalEarthDataId), in testChooseLargerPhotoByDimensions()
1079 ContentUris.withAppendedId(Data.CONTENT_URI, nebulaDataId), in testChooseLargerPhotoByFileSize()
1102 ContentUris.withAppendedId(Data.CONTENT_URI, normalEarthDataId), in testChooseFilePhotoOverThumbnail()
1129 ContentUris.withAppendedId(Data.CONTENT_URI, cupcakeEarthDataId), in testFallbackToAccountPriorityForSamePhoto()
1189 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.NAME_VERIFIED, "1"); in testVerifiedName()
1207 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.NAME_VERIFIED, "1"); in testVerifiedName()
1208 assertStoredValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.NAME_VERIFIED, 0); in testVerifiedName()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/
DRawContactDeltaListTests.java232 return buildOper(RawContacts.CONTENT_URI, TYPE_ASSERT, values); in buildAssertVersion()
238 return buildOper(RawContacts.CONTENT_URI, TYPE_UPDATE, values); in buildAggregationModeUpdate()
253 return buildOper(AggregationExceptions.CONTENT_URI, TYPE_UPDATE, values); in buildUpdateAggregationKeepTogether()
295 if (AggregationExceptions.CONTENT_URI.equals(oper.getUri()) in countExceptionUpdates()
383 buildOper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteInsert()
391 buildOper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteInsert()
408 buildOper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteDelete()
417 buildOper(Data.CONTENT_URI, TYPE_INSERT, buildDataInsert(phone, CONTACT_BOB)), in testMergeDataLocalUpdateRemoteDelete()
434 buildDelete(Data.CONTENT_URI), in testMergeDataLocalDeleteRemoteUpdate()
442 buildDelete(Data.CONTENT_URI), in testMergeDataLocalDeleteRemoteUpdate()
[all …]
DRawContactDeltaTests.java155 final Builder builder = values.buildDiff(Data.CONTENT_URI); in testValuesDiffDelete()
199 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert()
204 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert()
209 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert()
239 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert()
244 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert()
249 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert()
254 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert()
278 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneUpdate()
283 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffNoneUpdate()
[all …]
DRawContactModifierTests.java360 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptySingle()
365 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testTrimEmptySingle()
370 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptySingle()
381 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptySingle()
400 RawContactDeltaListTests.buildOper(Data.CONTENT_URI, TYPE_INSERT, in testTrimEmptySpaces()
408 RawContactDeltaListTests.buildDelete(RawContacts.CONTENT_URI)); in testTrimEmptySpaces()
426 RawContactDeltaListTests.buildOper(Data.CONTENT_URI, TYPE_INSERT, in testTrimLeaveValid()
435 RawContactDeltaListTests.buildOper(Data.CONTENT_URI, TYPE_INSERT, in testTrimLeaveValid()
491 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptyAfterUpdate()
496 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testTrimEmptyAfterUpdate()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DMailboxUtilitiesTests.java65 ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null, null); 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()
354 mResolver.delete(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box3.mId), null, null); in testParentKeyRemoveFolder2()
388 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testParentKeyRemoveFolder3()
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
DMailboxUtilitiesTests.java65 ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null, null); 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()
354 mResolver.delete(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box3.mId), null, null); in testParentKeyRemoveFolder2()
388 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null); in testParentKeyRemoveFolder3()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DCalendarSyncAdapter.java177 asSyncAdapter(Attendees.CONTENT_URI, mEmailAddress, amType); in CalendarSyncAdapter()
179 asSyncAdapter(Events.CONTENT_URI, mEmailAddress, amType); in CalendarSyncAdapter()
181 asSyncAdapter(Reminders.CONTENT_URI, mEmailAddress, amType); in CalendarSyncAdapter()
183 asSyncAdapter(ExtendedProperties.CONTENT_URI, mEmailAddress, amType); in CalendarSyncAdapter()
185 Cursor c = mService.mContentResolver.query(Calendars.CONTENT_URI, in CalendarSyncAdapter()
216 asSyncAdapter(Calendars.CONTENT_URI, mEmailAddress, in wipe()
270 .acquireContentProviderClient(CalendarContract.CONTENT_URI); in getSyncKey()
274 asSyncAdapter(SyncState.CONTENT_URI, mEmailAddress, in getSyncKey()
300 .acquireContentProviderClient(CalendarContract.CONTENT_URI); in setSyncKey()
304 asSyncAdapter(SyncState.CONTENT_URI, mEmailAddress, in setSyncKey()
[all …]
DFolderSyncParser.java145 mContentResolver.delete(Mailbox.CONTENT_URI, ALL_BUT_ACCOUNT_MAILBOX, in parse()
170 mContentResolver.update(ContentUris.withAppendedId(Account.CONTENT_URI, in parse()
177 mContentResolver.delete(Mailbox.CONTENT_URI, ALL_BUT_ACCOUNT_MAILBOX, in parse()
217 return mContentResolver.query(Mailbox.CONTENT_URI, MAILBOX_ID_COLUMNS_PROJECTION, in getServerIdCursor()
232 ContentUris.withAppendedId(Mailbox.CONTENT_URI, in deleteParser()
284 Cursor c = mContentResolver.query(Mailbox.CONTENT_URI, MAILBOX_STATE_PROJECTION, in saveMailboxSyncOptions()
313 mContentResolver.update(Mailbox.CONTENT_URI, cv, WHERE_SERVER_ID_AND_ACCOUNT, in restoreMailboxSyncOptions()
437 parentId = Utility.getFirstRowInt(mContext, Mailbox.CONTENT_URI, in isValidMailFolder()
499 ContentUris.withAppendedId(Mailbox.CONTENT_URI, in updateParser()
528 .newInsert(Mailbox.CONTENT_URI).withValues(m.toContentValues()).build()); in commitMailboxes()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityMediumTests.java156 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, in testGetFirstRowLong()
162 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, in testGetFirstRowLong()
169 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, in testGetFirstRowLong()
176 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, in testGetFirstRowLong()
189 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, in testGetFirstRowInt()
195 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, in testGetFirstRowInt()
202 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, in testGetFirstRowInt()
209 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, in testGetFirstRowInt()
224 mMockContext, Account.CONTENT_URI, DISPLAY_NAME_PROJECTION, in testGetFirstRowString()
230 mMockContext, Account.CONTENT_URI, DISPLAY_NAME_PROJECTION, in testGetFirstRowString()
[all …]
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java255 operations.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI) in createRawContact()
265 operations.add(ContentProviderOperation.newInsert(Data.CONTENT_URI) in createRawContact()
381 Cursor c = resolver.query(Profile.CONTENT_URI, in saveContact()
394 final Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, in saveContact()
434 : RawContactsEntity.CONTENT_URI, in saveContact()
488 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId), in saveUpdatedPhoto()
544 RawContacts.CONTENT_URI.getEncodedPath())) { in getInsertedRawContactId()
599 final Uri groupUri = resolver.insert(Groups.CONTENT_URI, values); in createGroup()
653 final Uri groupUri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in renameGroup()
679 ContentUris.withAppendedId(Groups.CONTENT_URI, groupId), null, null); in deleteGroup()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/event/
DEditEventHelperTest.java243 b = ContentProviderOperation.newInsert(Attendees.CONTENT_URI).withValues(mExpectedValues); in addOwnerAttendeeToOps()
252 b = ContentProviderOperation.newInsert(Attendees.CONTENT_URI).withValues(mExpectedValues); in addOwnerAttendeeToOps()
267 ContentProviderOperation.newDelete(Attendees.CONTENT_URI); in addAttendeeChangesOps()
280 .newInsert(Attendees.CONTENT_URI) in addAttendeeChangesOps()
309 .newInsert(Attendees.CONTENT_URI) in addTestAttendees()
315 .newInsert(Attendees.CONTENT_URI) in addTestAttendees()
329 .newInsert(Attendees.CONTENT_URI) in addTestAttendees()
335 .newInsert(Attendees.CONTENT_URI) in addTestAttendees()
349 .newInsert(Attendees.CONTENT_URI) in addTestAttendees()
355 .newInsert(Attendees.CONTENT_URI) in addTestAttendees()
[all …]

12345678910>>...16