HomeSort by relevance Sort by last modified time
    Searched defs:ContentUris (Results 1 - 25 of 66) sorted by null

1 2 3

  /frameworks/base/core/java/android/content/
ContentUris.java 70 public class ContentUris {
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ContentUrisTest.java 3 import android.content.ContentUris;
23 assertThat(ContentUris.withAppendedId(URI, 1),
29 ContentUris.withAppendedId(null, 1);
33 assertThat(ContentUris.parseId(Uri.withAppendedPath(URI, "1")), is(1L));
34 assertThat(ContentUris.parseId(URI), is(-1L));
39 ContentUris.parseId(Uri.withAppendedPath(URI, "bar"));
44 ContentUris.parseId(Uri.parse("mailto:bar@foo.com"));
  /cts/tests/tests/content/src/android/content/cts/
ContentUrisTest.java 19 import android.content.ContentUris;
36 new ContentUris();
40 Uri result = ContentUris.withAppendedId(uri1, CODE1);
41 assertEquals(CODE1, ContentUris.parseId(result));
43 result = ContentUris.withAppendedId(uri2, CODE2);
44 assertEquals(CODE2, ContentUris.parseId(result));
47 assertEquals(-1, ContentUris.parseId(Uri.parse("")));
52 ContentUris.parseId(uri1);
59 ContentUris.parseId(uri);
62 ContentUris.parseId(null)
    [all...]
AvailableIntentsTest.java 21 import android.content.ContentUris;
190 intent.setDataAndType(ContentUris.withAppendedId(
  /packages/apps/Exchange/tests/src/com/android/exchange/utility/
ExchangeTestCase.java 23 import android.content.ContentUris;
46 resolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, accountId), null,
  /cts/tests/tests/permission2/src/android/permission2/cts/
ReadSocialStreamPermissionTest.java 20 import android.content.ContentUris;
40 ContentUris.withAppendedId(RawContacts.CONTENT_URI, 1337),
51 ContentUris.withAppendedId(Contacts.CONTENT_URI, 1337),
73 mResolver.query(ContentUris.withAppendedId(StreamItems.CONTENT_URI, 1337),
  /packages/apps/Exchange/tests/src/com/android/exchange/adapter/
SyncAdapterTestCase.java 20 import android.content.ContentUris;
62 mResolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null,
EmailSyncAdapterTests.java 19 import android.content.ContentUris;
127 mResolver.delete(ContentUris.withAppendedId(Message.SYNCED_CONTENT_URI, id),
200 mResolver.update(ContentUris.withAppendedId(Message.CONTENT_URI, deleteMessageId), cv,
231 mResolver.update(ContentUris.withAppendedId(Message.CONTENT_URI, changeMessageId), cv,
272 mResolver.delete(ContentUris.withAppendedId(Message.SYNCED_CONTENT_URI, id),
276 mResolver.delete(ContentUris.withAppendedId(Message.SYNCED_CONTENT_URI,
282 mResolver.update(ContentUris.withAppendedId(Message.SYNCED_CONTENT_URI,
  /packages/apps/Music/src/com/android/music/
VideoBrowserActivity.java 21 import android.content.ContentUris;
84 intent.setDataAndType(ContentUris.withAppendedId(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, id), type);
MediaPickerActivity.java 24 import android.content.ContentUris;
117 setResult(RESULT_OK, new Intent().setData(ContentUris.withAppendedId(uri, mediaId)));
131 intent.setDataAndType(ContentUris.withAppendedId(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, id), type);
  /development/samples/ApiDemos/src/com/example/android/apis/view/
ExpandableList2.java 21 import android.content.ContentUris;
91 ContentUris.appendId(builder, groupCursor.getLong(GROUP_ID_COLUMN_INDEX));
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
OpenHelper.java 28 import android.content.ContentUris;
95 ContentUris.withAppendedId(ALL_DOWNLOADS_CONTENT_URI, id), mimeType);
109 ContentUris.withAppendedId(ALL_DOWNLOADS_CONTENT_URI, id),
127 final Uri uri = ContentUris.withAppendedId(ALL_DOWNLOADS_CONTENT_URI, id);
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_Video_ThumbnailsTest.java 22 import android.content.ContentUris;
64 long videoId = ContentUris.parseId(videoUri);
66 assertEquals(ContentUris.withAppendedId(Media.EXTERNAL_CONTENT_URI, videoId),
97 mResolver.delete(ContentUris.withAppendedId(Thumbnails.EXTERNAL_CONTENT_URI, id),
Contacts_PeopleTest.java 22 import android.content.ContentUris;
150 mRowsAdded.add(ContentUris.withAppendedId(People.CONTENT_URI, personId));
  /frameworks/base/core/tests/coretests/src/android/provider/
SettingsProviderTest.java 20 import android.content.ContentUris;
178 assertTrue(ContentUris.parseId(uri) > 0);
  /packages/apps/Exchange/tests/src/com/android/exchange/provider/
MailboxUtilitiesTests.java 26 import android.content.ContentUris;
68 ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null, null);
305 mResolver.delete(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box3.mId), null, null);
358 mResolver.delete(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box3.mId), null, null);
411 mResolver.delete(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box3.mId), null, null);
466 mResolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box3.mId), values,
517 mResolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box2.mId), values,
521 mResolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box2.mId), mNullParentKey,
609 mResolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box3.mId), values,
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
DbModifierWithNotification.java 24 import android.content.ContentUris;
102 notifyVoicemailChangeOnInsert(ContentUris.withAppendedId(mBaseUri, rowId),
117 ContentUris.withAppendedId(mBaseUri, rowId), packagesModified);
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
ContactLookupKeyTest.java 19 import android.content.ContentUris;
55 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId),
63 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId),
67 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId + 1),
90 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId),
114 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId1),
118 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId2),
145 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId),
158 ContentUris.withAppendedId(Contacts.CONTENT_URI, largerContactId),
161 ContentUris.withAppendedId(Contacts.CONTENT_URI, queryContactId(rawContactId3))
    [all...]
  /frameworks/opt/mms/src/java/com/google/android/mms/util/
PduCache.java 20 import android.content.ContentUris;
156 purgeByThreadId(ContentUris.parseId(uri));
  /packages/apps/Browser/src/com/android/browser/
DataController.java 21 import android.content.ContentUris;
185 cr.delete(ContentUris.withAppendedId(
227 Uri uri = ContentUris.withAppendedId(Thumbnails.CONTENT_URI, tab.getId());
253 cr.update(ContentUris.withAppendedId(History.CONTENT_URI, c.getLong(0)),
  /packages/apps/Calendar/src/com/android/calendar/
CalendarColorPickerDialog.java 21 import android.content.ContentUris;
151 mService.startUpdate(mService.getNextToken(), null, ContentUris.withAppendedId(
237 ContentUris.withAppendedId(Calendars.CONTENT_URI, mCalendarId),
  /packages/apps/Calendar/src/com/android/calendar/alerts/
AlarmScheduler.java 22 import android.content.ContentUris;
143 ContentUris.appendId(uriBuilder, localStartMin - DateUtils.DAY_IN_MILLIS);
144 ContentUris.appendId(uriBuilder, localStartMax + DateUtils.DAY_IN_MILLIS);
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
MailboxUtilities.java 20 import android.content.ContentUris;
83 resolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, childId),
98 resolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, parentId),
172 ContentUris.withAppendedId(Account.CONTENT_URI, account.mId), cv, null, null);
271 resolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, id), values, null,
  /frameworks/base/core/java/android/provider/
Browser.java 20 import android.content.ContentUris;
326 cr.update(ContentUris.withAppendedId(History.CONTENT_URI, c.getLong(0)),
410 cr.delete(ContentUris.withAppendedId(History.CONTENT_URI, cursor.getLong(0)),
  /packages/apps/Contacts/src/com/android/contacts/detail/
ContactDetailDisplayUtils.java 19 import android.content.ContentUris;
82 ContentUris.appendId(builder, streamItem.getId());
84 ContentUris.appendId(builder, streamItemPhoto.getId());

Completed in 1333 milliseconds

1 2 3