Loading src/com/android/contacts/ContactSaveService.java +5 −0 Original line number Diff line number Diff line Loading @@ -1644,6 +1644,7 @@ public class ContactSaveService extends IntentService { } } @NeededForTesting public interface GroupsDao { Uri create(String title, AccountWithDataSet account); int delete(Uri groupUri); Loading Loading @@ -1671,6 +1672,7 @@ public class ContactSaveService extends IntentService { this.contentResolver = contentResolver; } @NeededForTesting public Bundle captureDeletionUndoData(Uri groupUri) { final long groupId = ContentUris.parseId(groupUri); final Bundle result = new Bundle(); Loading Loading @@ -1708,6 +1710,7 @@ public class ContactSaveService extends IntentService { return result; } @NeededForTesting public Uri undoDeletion(Bundle deletedGroupData) { final ContentValues groupData = deletedGroupData.getParcelable(KEY_GROUP_DATA); if (groupData == null) { Loading Loading @@ -1735,6 +1738,7 @@ public class ContactSaveService extends IntentService { return groupUri; } @NeededForTesting public Uri create(String title, AccountWithDataSet account) { final ContentValues values = new ContentValues(); values.put(Groups.TITLE, title); Loading @@ -1744,6 +1748,7 @@ public class ContactSaveService extends IntentService { return contentResolver.insert(Groups.CONTENT_URI, values); } @NeededForTesting public int delete(Uri groupUri) { return contentResolver.delete(groupUri, null, null); } Loading Loading
src/com/android/contacts/ContactSaveService.java +5 −0 Original line number Diff line number Diff line Loading @@ -1644,6 +1644,7 @@ public class ContactSaveService extends IntentService { } } @NeededForTesting public interface GroupsDao { Uri create(String title, AccountWithDataSet account); int delete(Uri groupUri); Loading Loading @@ -1671,6 +1672,7 @@ public class ContactSaveService extends IntentService { this.contentResolver = contentResolver; } @NeededForTesting public Bundle captureDeletionUndoData(Uri groupUri) { final long groupId = ContentUris.parseId(groupUri); final Bundle result = new Bundle(); Loading Loading @@ -1708,6 +1710,7 @@ public class ContactSaveService extends IntentService { return result; } @NeededForTesting public Uri undoDeletion(Bundle deletedGroupData) { final ContentValues groupData = deletedGroupData.getParcelable(KEY_GROUP_DATA); if (groupData == null) { Loading Loading @@ -1735,6 +1738,7 @@ public class ContactSaveService extends IntentService { return groupUri; } @NeededForTesting public Uri create(String title, AccountWithDataSet account) { final ContentValues values = new ContentValues(); values.put(Groups.TITLE, title); Loading @@ -1744,6 +1748,7 @@ public class ContactSaveService extends IntentService { return contentResolver.insert(Groups.CONTENT_URI, values); } @NeededForTesting public int delete(Uri groupUri) { return contentResolver.delete(groupUri, null, null); } Loading