/cts/tests/tests/content/src/android/content/cts/ |
ContentUrisTest.java | 19 import android.content.ContentUris; 29 @TestTargetClass(ContentUris.class) 43 notes = "Test constructor(s) of ContentUris.", 44 method = "ContentUris", 48 new ContentUris(); 58 Uri result = ContentUris.withAppendedId(uri1, CODE1); 59 assertEquals(CODE1, ContentUris.parseId(result)); 61 result = ContentUris.withAppendedId(uri2, CODE2); 62 assertEquals(CODE2, ContentUris.parseId(result)); 65 assertEquals(-1, ContentUris.parseId(Uri.parse(""))) [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
ContactLoaderUtils.java | 20 import android.content.ContentUris; 58 final long rawContactId = ContentUris.parseId(uri); 60 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId)); 71 final long rawContactId = ContentUris.parseId(uri); 73 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId));
|
/frameworks/base/core/java/android/content/ |
ContentUris.java | 70 public class ContentUris {
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactLookupKeyTest.java | 21 import android.content.ContentUris; 54 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), 62 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId), 66 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId + 1), 89 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), 113 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId1), 117 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId2), 144 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), 157 ContentUris.withAppendedId(Contacts.CONTENT_URI, largerContactId), 160 ContentUris.withAppendedId(Contacts.CONTENT_URI, queryContactId(rawContactId3)) [all...] |
CallerInfoIntegrationTest.java | 21 import android.content.ContentUris; 45 long rawContactId = ContentUris.parseId(rawContactUri);
|
ContactsActor.java | 30 import android.content.ContentUris; 356 return ContentUris.parseId(rawContactUri); 375 Uri insertUri = Uri.withAppendedPath(ContentUris.withAppendedId(RawContacts.CONTENT_URI, 378 return ContentUris.parseId(dataUri); 391 Uri insertUri = Uri.withAppendedPath(ContentUris.withAppendedId(RawContacts.CONTENT_URI, 394 return ContentUris.parseId(dataUri); 406 Uri insertUri = Uri.withAppendedPath(ContentUris.withAppendedId(RawContacts.CONTENT_URI, 409 return ContentUris.parseId(dataUri); 418 return ContentUris.parseId(dataUri); 427 Uri contactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId) [all...] |
ContactsProvider2Test.java | 29 import android.content.ContentUris; 349 Uri.withAppendedPath(ContentUris.withAppendedId(Contacts.CONTENT_URI, 0), 637 long rawContactId = ContentUris.parseId(rowUri); 705 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 813 long dataId = ContentUris.parseId(dataUri); [all...] |
LegacyContactsProviderTest.java | 23 import android.content.ContentUris; 75 assertSelection(People.CONTENT_URI, values, "people", People._ID, ContentUris.parseId(uri)); 83 long personId = ContentUris.parseId(uri); 144 long personId = ContentUris.parseId(personUri); 162 values.put(People.PRIMARY_ORGANIZATION_ID, ContentUris.parseId(orgUri1)); 170 values.put(People.PRIMARY_ORGANIZATION_ID, ContentUris.parseId(orgUri2)); 188 long personId = ContentUris.parseId(personUri); 206 values.put(People.PRIMARY_PHONE_ID, ContentUris.parseId(phoneUri1)); 212 values.put(People.PRIMARY_PHONE_ID, ContentUris.parseId(phoneUri1)); 219 values.put(People.PRIMARY_PHONE_ID, ContentUris.parseId(phoneUri2)) [all...] |
GroupsTest.java | 23 import android.content.ContentUris; 149 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, 158 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, 171 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, 186 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); 201 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); 211 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, 262 final Uri groupUri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); 267 final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
|
DirectoryTest.java | 20 import android.content.ContentUris; 47 ContentUris.withAppendedId(Directory.CONTENT_URI, Directory.DEFAULT); 63 ContentUris.withAppendedId(Directory.CONTENT_URI, Directory.LOCAL_INVISIBLE);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmDatabaseHelper.java | 19 import android.content.ContentUris; 80 return ContentUris.withAppendedId(Alarm.Columns.CONTENT_URI, rowId);
|
/packages/apps/Email/tests/src/com/android/email/ |
MessagingControllerUnitTests.java | 22 import android.content.ContentUris; 46 Uri uri = 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,
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
ContactLoaderTest.java | 27 import android.content.ContentUris; 104 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 106 final Uri lookupUri = ContentUris.withAppendedId( 133 final Uri legacyUri = ContentUris.withAppendedId( 135 final Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 136 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 137 final Uri lookupUri = ContentUris.withAppendedId( 165 final Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 166 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 167 final Uri lookupUri = ContentUris.withAppendedId [all...] |
/packages/apps/Contacts/src/com/android/contacts/calllog/ |
IntentProvider.java | 21 import android.content.ContentUris; 61 intent.setData(ContentUris.withAppendedId( 104 intent.setData(ContentUris.withAppendedId(
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
AllIntentsActivity.java | 26 import android.content.ContentUris; 303 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 314 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 339 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 346 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 357 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 366 final Uri uri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 375 final Uri uri = ContentUris.withAppendedId(legacyContentUri, rawContactId); 410 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 421 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId) [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
BaseImageList.java | 23 import android.content.ContentUris; 86 long existingId = ContentUris.parseId(mBaseUri); 91 return ContentUris.withAppendedId(mBaseUri, id); 191 matchId = ContentUris.parseId(uri);
|
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
ContactPhotoBinder.java | 19 import android.content.ContentUris; 72 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, id);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
LegacyContactListAdapter.java | 18 import android.content.ContentUris; 69 return ContentUris.withAppendedId(People.CONTENT_URI, personId);
|
LegacyPhoneNumberListAdapter.java | 18 import android.content.ContentUris; 73 return ContentUris.withAppendedId(Phones.CONTENT_URI, id);
|
LegacyPostalAddressListAdapter.java | 18 import android.content.ContentUris; 74 return ContentUris.withAppendedId(ContactMethods.CONTENT_URI, id);
|
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
AccountSetupAccountTypeTests.java | 19 import android.content.ContentUris; 62 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, account.mId);
|
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/ |
PhoneNumberInteractionTest.java | 25 import android.content.ContentUris; 90 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, 13); 108 Uri dataUri = ContentUris.withAppendedId(Data.CONTENT_URI, 1); 126 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, 13); 165 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, 13); 184 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, 13);
|
/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));
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
TrackerProvider.java | 20 import android.content.ContentUris; 103 Uri addedUri = ContentUris.withAppendedId(CONTENT_URI, rowId);
|