/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | GroupsDaoIntegrationTests.java | 98 final Uri groupUri = sut.undoDeletion(undoData); in test_undoDeleteEmptyGroup_createsGroupWithMatchingTitle() local 100 assertGroupHasTitle(groupUri, "Test Undo Delete Empty Group"); in test_undoDeleteEmptyGroup_createsGroupWithMatchingTitle() 105 final Uri groupUri = sut.create("Test delete non-empty group", getLocalAccount()); in test_deleteNonEmptyGroup_removesGroupAndMembers() local 107 final long groupId = ContentUris.parseId(groupUri); in test_deleteNonEmptyGroup_removesGroupAndMembers() 111 assertEquals(1, sut.delete(groupUri)); in test_deleteNonEmptyGroup_removesGroupAndMembers() 131 final Uri groupUri = sut.create("Test undo delete non-empty group", getLocalAccount()); in test_undoDeleteNonEmptyGroup_restoresGroupAndMembers() local 133 final long groupId = ContentUris.parseId(groupUri); in test_undoDeleteNonEmptyGroup_restoresGroupAndMembers() 137 final Bundle undoData = sut.captureDeletionUndoData(groupUri); in test_undoDeleteNonEmptyGroup_restoresGroupAndMembers() 139 sut.delete(groupUri); in test_undoDeleteNonEmptyGroup_restoresGroupAndMembers() 192 final Uri groupUri = sut.create("Test undo delete null memberIds", getLocalAccount()); in test_undoDeleteEmptyGroupWithMissingMembersKey_shouldRecreateGroup() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | GroupMetaDataLoader.java | 53 public GroupMetaDataLoader(Context context, Uri groupUri) { in GroupMetaDataLoader() argument 54 super(context, ensureIsGroupUri(groupUri), COLUMNS, GroupUtil.DEFAULT_SELECTION, null, in GroupMetaDataLoader() 58 public GroupMetaDataLoader(Context context, Uri groupUri, String selection) { in GroupMetaDataLoader() argument 59 super(context, ensureIsGroupUri(groupUri), COLUMNS, selection, null, in GroupMetaDataLoader() 67 private static Uri ensureIsGroupUri(final Uri groupUri) { in ensureIsGroupUri() argument 69 if (groupUri == null) { in ensureIsGroupUri() 72 if (!GroupUtil.isGroupUri(groupUri)) { in ensureIsGroupUri() 73 throw new IllegalArgumentException("Invalid group Uri: " + groupUri); in ensureIsGroupUri() 75 return groupUri; in ensureIsGroupUri()
|
D | ContactSaveService.java | 784 final Uri groupUri = mGroupsDao.create(label, in createGroup() local 790 if (groupUri == null) { in createGroup() 796 addMembersToGroup(resolver, rawContactsToAdd, ContentUris.parseId(groupUri)); in createGroup() 804 values.put(GroupMembership.GROUP_ROW_ID, ContentUris.parseId(groupUri)); in createGroup() 807 callbackIntent.setData(groupUri); in createGroup() 842 final Uri groupUri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in renameGroup() local 843 getContentResolver().update(groupUri, values, null, null); in renameGroup() 846 callbackIntent.setData(groupUri); in renameGroup() 867 final Uri groupUri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in deleteGroup() local 870 final Bundle undoData = mGroupsDao.captureDeletionUndoData(groupUri); in deleteGroup() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | LegacyContactsProviderTest.java | 660 Uri groupUri = mResolver.insert(Groups.CONTENT_URI, values); in testGroupsInsert() local 661 assertStoredValues(groupUri, values); in testGroupsInsert() 670 Uri groupUri = mResolver.insert(Groups.CONTENT_URI, values); in testGroupsUpdate() local 676 mResolver.update(groupUri, values, null, null); in testGroupsUpdate() 677 assertStoredValues(groupUri, values); in testGroupsUpdate() 683 Uri groupUri = insertLegacyGroup("Galois", values); in testGroupMembershipsInsert() local 685 Uri membershipUri = insertLegacyGroupMembership(groupUri, personUri, values); in testGroupMembershipsInsert() 704 Uri groupUri = mResolver.insert(Groups.CONTENT_URI, values); in testAddToGroup() local 709 values.put(GroupMembership.GROUP_ID, ContentUris.parseId(groupUri)); in testAddToGroup() 917 private Uri insertLegacyGroupMembership(Uri groupUri, Uri personUri, ContentValues values) { in insertLegacyGroupMembership() argument [all …]
|
D | GroupsTest.java | 256 final Uri groupUri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in testDelayVisibleTransaction() local 270 oper.add(ContentProviderOperation.newUpdate(groupUri).withValue(Groups.GROUP_VISIBLE, 0) in testDelayVisibleTransaction()
|
D | ContactsActor.java | 761 Uri groupUri = resolver.insert(ContactsContract.Groups.CONTENT_URI, values); in createGroup() local 762 return ContentUris.parseId(groupUri); in createGroup()
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupMetaData.java | 64 final Uri groupUri = ContentUris.withAppendedId( in GroupMetaData() local 72 this.uri = groupUri; in GroupMetaData()
|
D | GroupMembersFragment.java | 240 public static GroupMembersFragment newInstance(Uri groupUri) { in newInstance() argument 242 args.putParcelable(ARG_GROUP_URI, groupUri); in newInstance()
|