Home
last modified time | relevance | path

Searched refs:groupId (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Contacts/src/com/android/contacts/editor/
DGroupMembershipView.java66 public GroupSelectionItem(long groupId, String title, boolean checked) { in GroupSelectionItem() argument
67 this.mGroupId = groupId; in GroupSelectionItem()
234 long groupId = mGroupMetaData.getLong(GroupMetaDataLoader.GROUP_ID); in updateView() local
237 mFavoritesGroupId = groupId; in updateView()
240 mDefaultGroupId = groupId; in updateView()
247 if (groupId != mFavoritesGroupId && groupId != mDefaultGroupId in updateView()
248 && hasMembership(groupId)) { in updateView()
304 long groupId = mGroupMetaData.getLong(GroupMetaDataLoader.GROUP_ID); in onClick() local
305 if (groupId != mFavoritesGroupId in onClick()
306 && (groupId != mDefaultGroupId || mDefaultGroupVisible)) { in onClick()
[all …]
DRawContactEditorView.java375 long groupId = mGroupMetaData.getLong(GroupMetaDataLoader.GROUP_ID); in getDefaultGroupId() local
378 return groupId; in getDefaultGroupId()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DGroupsTest.java121 final long groupId = cursor.getLong(Projections.COL_ID); in testGroupSummary() local
125 if (groupId == groupGrey) { in testGroupSummary()
129 } else if (groupId == groupRed) { in testGroupSummary()
133 } else if (groupId == groupGreen) { in testGroupSummary()
137 } else if (groupId == groupBlue) { in testGroupSummary()
182 long groupId = createGroup(mAccount, "g1", "gt1"); in testGroupDeletion1() local
183 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in testGroupDeletion1()
196 long groupId = createGroup(mAccount, "g1", "gt1"); in testGroupDeletion2() local
197 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in testGroupDeletion2()
255 final long groupId = this.createGroup(sTestAccount, GROUP_ID, GROUP_ID, 1); in testDelayVisibleTransaction() local
[all …]
DContactsActor.java152 public static UserInfo createUserInfo(String name, int id, int groupId, int flags) { in createUserInfo() argument
156 ui.profileGroupId = groupId; in createUserInfo()
647 public long createGroupMembership(long rawContactId, long groupId) { in createGroupMembership() argument
652 values.put(CommonDataKinds.GroupMembership.GROUP_ROW_ID, groupId); in createGroupMembership()
DDirectoryTest.java102 long groupId = createGroup(account, "sid", "def", in testForwardingToLocalInvisibleContacts() local
119 new String[] { GroupMembership.CONTENT_ITEM_TYPE, String.valueOf(groupId) }); in testForwardingToLocalInvisibleContacts()
DContactsProvider2Test.java3164 long groupId = createGroup(null, "testGroup", "Test Group"); in testQueryContactGroup() local
3168 "west@acme.com", StatusUpdates.OFFLINE, 0, 0, groupId, in testQueryContactGroup()
3612 long groupId = assertSingleGroup(NO_LONG, mAccount, "gsid1", null); in testGroupCreationAfterMembershipInsert() local
3614 rawContactId1, groupId, "gsid1"); in testGroupCreationAfterMembershipInsert() local
8658 long groupId, int chatMode) { in createContact() argument
8660 timesContacted, starred, groupId, chatMode, false); in createContact()
8665 long groupId, int chatMode, boolean isUserProfile) { in createContact() argument
8667 presenceStatus, timesContacted, starred, groupId, chatMode, isUserProfile)); in createContact()
8672 long groupId, int chatMode) { in createRawContact() argument
8674 timesContacted, starred, groupId, chatMode); in createRawContact()
[all …]
DBaseContactsProvider2Test.java402 protected Uri insertGroupMembership(long rawContactId, Long groupId) { in insertGroupMembership() argument
406 values.put(GroupMembership.GROUP_ROW_ID, groupId); in insertGroupMembership()
1544 final long groupId = createGroup(mAccount, "gsid1", "title1"); in build() local
1547 insertGroupMembership(rawContactId, groupId); in build()
DLegacyContactsProviderTest.java896 long groupId = ContentUris.parseId(groupUri); in insertLegacyGroupMembership() local
900 values.put(GroupMembership.GROUP_ID, groupId); in insertLegacyGroupMembership()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java613 public static Intent createGroupRenameIntent(Context context, long groupId, String newLabel, in createGroupRenameIntent() argument
617 serviceIntent.putExtra(ContactSaveService.EXTRA_GROUP_ID, groupId); in createGroupRenameIntent()
629 long groupId = intent.getLongExtra(EXTRA_GROUP_ID, -1); in renameGroup() local
632 if (groupId == -1) { in renameGroup()
639 final Uri groupUri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in renameGroup()
650 public static Intent createGroupDeletionIntent(Context context, long groupId) { in createGroupDeletionIntent() argument
653 serviceIntent.putExtra(ContactSaveService.EXTRA_GROUP_ID, groupId); in createGroupDeletionIntent()
658 long groupId = intent.getLongExtra(EXTRA_GROUP_ID, -1); in deleteGroup() local
659 if (groupId == -1) { in deleteGroup()
665 ContentUris.withAppendedId(Groups.CONTENT_URI, groupId), null, null); in deleteGroup()
[all …]
DGroupMemberLoader.java77 Context context, long groupId) { in constructLoaderForGroupEditorQuery() argument
78 return new GroupMemberLoader(context, groupId, GroupEditorQuery.PROJECTION); in constructLoaderForGroupEditorQuery()
85 Context context, long groupId) { in constructLoaderForGroupDetailQuery() argument
86 return new GroupMemberLoader(context, groupId, GroupDetailQuery.PROJECTION); in constructLoaderForGroupDetailQuery()
89 private GroupMemberLoader(Context context, long groupId, String[] projection) { in GroupMemberLoader() argument
91 mGroupId = groupId; in GroupMemberLoader()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForGroupMembership.java169 final long groupId = getOrMakeGroup(db, rawContactId, sourceId,
172 values.put(GroupMembership.GROUP_ROW_ID, groupId);
220 return entry.groupId;
237 entry.groupId = c.getLong(0);
242 long groupId = db.insert(Tables.GROUPS, null, groupValues);
243 if (groupId < 0) {
247 entry.groupId = groupId;
253 return entry.groupId;
DContactsProvider2.java1316 long groupId; field in ContactsProvider2.GroupIdCacheEntry
2738 final Long groupId = in addAutoAddMembership() local
2740 if (groupId != null) { in addAutoAddMembership()
2741 insertDataGroupMembership(rawContactId, groupId); in addAutoAddMembership()
2762 final Long groupId = in updateFavoritesMembership() local
2764 if (groupId != null) { in updateFavoritesMembership()
2766 insertDataGroupMembership(rawContactId, groupId); in updateFavoritesMembership()
2768 deleteDataGroupMembership(rawContactId, groupId); in updateFavoritesMembership()
2773 private void insertDataGroupMembership(long rawContactId, long groupId) { in insertDataGroupMembership() argument
2775 groupMembershipValues.put(GroupMembership.GROUP_ROW_ID, groupId); in insertDataGroupMembership()
[all …]
DLegacyApiSupport.java831 long groupId = getRequiredValue(values, in insert() local
833 id = insertGroupMembership(rawContactId, groupId); in insert()
933 private long insertGroupMembership(long rawContactId, long groupId) { in insertGroupMembership() argument
938 mValues.put(GroupMembership.GROUP_ROW_ID, groupId); in insertGroupMembership()
1139 private int updateGroups(long groupId, ContentValues values) { in updateGroups() argument
1143 Groups._ID + "=" + groupId, null); in updateGroups()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupBrowseListAdapter.java63 long groupId = (firstItem == null) ? 0 : firstItem.getGroupId(); in setCursor() local
64 mSelectedGroupUri = getGroupUriFromId(groupId); in setCursor()
78 long groupId = mCursor.getLong(GroupListLoader.GROUP_ID); in getSelectedGroupPosition() local
79 Uri uri = getGroupUriFromId(groupId); in getSelectedGroupPosition()
122 long groupId = mCursor.getLong(GroupListLoader.GROUP_ID); in getItem() local
143 return new GroupListItem(accountName, accountType, dataSet, groupId, title, in getItem()
204 private static Uri getGroupUriFromId(long groupId) { in getGroupUriFromId() argument
205 return ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in getGroupUriFromId()
DGroupListItem.java31 public GroupListItem(String accountName, String accountType, String dataSet, long groupId, in GroupListItem() argument
36 mGroupId = groupId; in GroupListItem()
DGroupEditorFragment.java642 final long groupId = ContentUris.parseId(groupUri); in onSaveCompleted() local
645 legacyContentUri, groupId); in onSaveCompleted()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DGroupDeletionDialogFragment.java37 public static void show(FragmentManager fragmentManager, long groupId, String label, in show() argument
41 args.putLong(ARG_GROUP_ID, groupId); in show()
70 long groupId = arguments.getLong(ARG_GROUP_ID);
73 getActivity(), groupId));
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DInvisibleContactUtil.java62 final Long groupId = groupMembership.getGroupRowId(); in isInvisibleAndAddable() local
63 if (groupId != null && groupId == defaultGroupId) { in isInvisibleAndAddable()
/packages/apps/Browser/src/com/android/browser/
DDateSortedExpandableListAdapter.java363 public long getCombinedChildId(long groupId, long childId) { in getCombinedChildId() argument
369 public long getCombinedGroupId(long groupId) { in getCombinedGroupId() argument
371 return groupId; in getCombinedGroupId()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DGroupMetaData.java31 public GroupMetaData(String accountName, String accountType, String dataSet, long groupId, in GroupMetaData() argument
36 this.mGroupId = groupId; in GroupMetaData()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DValuesDelta.java461 public void setGroupRowId(long groupId) { in setGroupRowId() argument
462 put(ContactsContract.CommonDataKinds.GroupMembership.GROUP_ROW_ID, groupId); in setGroupRowId()
DContactLoader.java850 final long groupId = cursor.getLong(GroupQuery.ID); in loadGroupMetaData() local
860 accountName, accountType, dataSet, groupId, title, defaultGroup, in loadGroupMetaData()
/packages/apps/Calendar/src/com/android/calendar/
DCloudNotificationBackplane.java26 public boolean subscribeToGroup(String senderId, String account, String groupId) in subscribeToGroup() argument
DExtensionsFactory.java124 public boolean subscribeToGroup(String senderId, String account, String groupId) in getCloudNotificationBackplane()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/
DContactAggregatorTest.java704 long groupId = createAutoAddGroup(account); in testReaggregationWhenBecomesVisible() local
720 insertGroupMembership(rawContactId3, groupId); in testReaggregationWhenBecomesVisible()

12