/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | GroupMembershipView.java | 70 public GroupSelectionItem(long groupId, String title, boolean checked) { in GroupSelectionItem() argument 71 this.mGroupId = groupId; in GroupSelectionItem() 287 long groupId = mGroupMetaData.getLong(GroupMetaDataLoader.GROUP_ID); in updateView() local 290 mFavoritesGroupId = groupId; in updateView() 293 mDefaultGroupId = groupId; in updateView() 300 if (groupId != mFavoritesGroupId && groupId != mDefaultGroupId in updateView() 301 && hasMembership(groupId)) { in updateView() 360 long groupId = mGroupMetaData.getLong(GroupMetaDataLoader.GROUP_ID); in onClick() local 361 if (groupId != mFavoritesGroupId in onClick() 362 && (groupId != mDefaultGroupId || mDefaultGroupVisible)) { in onClick() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | GroupsTest.java | 121 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 …]
|
D | ContactsActor.java | 151 public static UserInfo createUserInfo(String name, int id, int groupId, int flags) { in createUserInfo() argument 155 ui.profileGroupId = groupId; in createUserInfo() 705 public long createGroupMembership(long rawContactId, long groupId) { in createGroupMembership() argument 710 values.put(CommonDataKinds.GroupMembership.GROUP_ROW_ID, groupId); in createGroupMembership()
|
D | DirectoryTest.java | 108 long groupId = createGroup(account, "sid", "def", in testForwardingToLocalInvisibleContacts() local 125 new String[] { GroupMembership.CONTENT_ITEM_TYPE, String.valueOf(groupId) }); in testForwardingToLocalInvisibleContacts()
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupMetaData.java | 51 public final long groupId; field in GroupMetaData 63 final long groupId = cursor.getLong(GroupMetaDataLoader.GROUP_ID); in GroupMetaData() local 65 ContactsContract.Groups.CONTENT_URI, groupId); in GroupMetaData() 76 this.groupId = groupId; in GroupMetaData() 93 groupId = source.readLong(); in GroupMetaData() 107 dest.writeLong(groupId); in writeToParcel() 120 && groupId > 0; in isValid() 134 .add("groupId", groupId) in toString()
|
D | GroupMembersFragment.java | 485 GroupUtil.ACTION_UPDATE_GROUP, mGroupMetaData.groupId, in onOptionsItemSelected() 506 getContext(), contactIds, mGroupMetaData.groupId, mGroupMetaData.accountName, in removeSelectedContacts() 531 getContext(), contactIds, mGroupMetaData.groupId, mGroupMetaData.accountName, in onActivityResult() 605 getContext(), mGroupMetaData.groupId); in deleteGroup() 609 GroupDeletionDialogFragment.show(getFragmentManager(), mGroupMetaData.groupId, in deleteGroup() 734 mActivity.updateDrawerGroupMenu(mGroupMetaData.groupId); in onGroupMetadataLoaded() 760 getAdapter().setGroupId(mGroupMetaData.groupId); in configureAdapter() 825 getContext(), contactIds, mGroupMetaData.groupId, mGroupMetaData.accountName, in onContactDeleteClicked() 834 public boolean isCurrentGroup(long groupId) { in isCurrentGroup() argument 835 return mGroupMetaData != null && mGroupMetaData.groupId == groupId; in isCurrentGroup()
|
D | GroupUtil.java | 80 long groupId = cursor.getLong(GroupListLoader.GROUP_ID); in getGroupListItem() local 103 return new GroupListItem(accountName, accountType, dataSet, groupId, title, in getGroupListItem() 296 public final int groupId; field in GroupUtil.GroupsProjection 309 groupId = cursor.getColumnIndex(Groups._ID); in GroupsProjection() 324 groupId = list.indexOf(Groups._ID); in GroupsProjection() 342 return cursor.getLong(groupId); in getId()
|
D | GroupNameEditDialogFragment.java | 98 AccountWithDataSet account, String callbackAction, long groupId, String groupName) { in newInstanceForUpdate() argument 99 return newInstance(account, callbackAction, groupId, groupName); in newInstanceForUpdate() 103 AccountWithDataSet account, String callbackAction, long groupId, String groupName) { in newInstance() argument 107 final boolean isInsert = groupId == NO_GROUP_ID; in newInstance() 110 args.putLong(ARG_GROUP_ID, groupId); in newInstance()
|
D | GroupListItem.java | 33 public GroupListItem(String accountName, String accountType, String dataSet, long groupId, in GroupListItem() argument 39 mGroupId = groupId; in GroupListItem()
|
D | UpdateGroupMembersAsyncTask.java | 49 long groupId, String accountName, String accountType, String dataSet) { in UpdateGroupMembersAsyncTask() argument 53 mGroupId = groupId; in UpdateGroupMembersAsyncTask()
|
D | GroupMembersAdapter.java | 80 public void setGroupId(long groupId) { in setGroupId() argument 81 mGroupId = groupId; in setGroupId()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DataRowHandlerForGroupMembership.java | 169 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;
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | GroupsDaoIntegrationTests.java | 107 final long groupId = ContentUris.parseId(groupUri); in test_deleteNonEmptyGroup_removesGroupAndMembers() local 108 addMemberToGroup(ContentUris.parseId(createRawContact()), groupId); in test_deleteNonEmptyGroup_removesGroupAndMembers() local 109 addMemberToGroup(ContentUris.parseId(createRawContact()), groupId); in test_deleteNonEmptyGroup_removesGroupAndMembers() local 115 new String[] { GroupMembership.CONTENT_ITEM_TYPE, String.valueOf(groupId) }, in test_deleteNonEmptyGroup_removesGroupAndMembers() 133 final long groupId = ContentUris.parseId(groupUri); in test_undoDeleteNonEmptyGroup_restoresGroupAndMembers() local 134 addMemberToGroup(ContentUris.parseId(createRawContact()), groupId); in test_undoDeleteNonEmptyGroup_restoresGroupAndMembers() local 135 addMemberToGroup(ContentUris.parseId(createRawContact()), groupId); in test_undoDeleteNonEmptyGroup_restoresGroupAndMembers() local 242 private Uri addMemberToGroup(long rawContactId, long groupId) { in addMemberToGroup() argument 247 values.put(GroupMembership.GROUP_ROW_ID, groupId); in addMemberToGroup()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 816 public static Intent createGroupRenameIntent(Context context, long groupId, String newLabel, in createGroupRenameIntent() argument 820 serviceIntent.putExtra(ContactSaveService.EXTRA_GROUP_ID, groupId); in createGroupRenameIntent() 832 long groupId = intent.getLongExtra(EXTRA_GROUP_ID, -1); in renameGroup() local 835 if (groupId == -1) { in renameGroup() 842 final Uri groupUri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in renameGroup() 853 public static Intent createGroupDeletionIntent(Context context, long groupId) { in createGroupDeletionIntent() argument 856 serviceIntent.putExtra(ContactSaveService.EXTRA_GROUP_ID, groupId); in createGroupDeletionIntent() 862 long groupId = intent.getLongExtra(EXTRA_GROUP_ID, -1); in deleteGroup() local 863 if (groupId == -1) { in deleteGroup() 867 final Uri groupUri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in deleteGroup() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | GroupDeletionDialogFragment.java | 37 public static void show(FragmentManager fragmentManager, long groupId, String label) { in show() argument 40 args.putLong(ARG_GROUP_ID, groupId); in show() 67 final long groupId = getArguments().getLong(ARG_GROUP_ID); 70 getActivity(), groupId));
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 283 private PhoneAccount getPhoneAccountByGroupId(String groupId, ComponentName groupComponentName, in getPhoneAccountByGroupId() argument 285 if (groupId == null || groupId.isEmpty() || userHandle == null) { in getPhoneAccountByGroupId() 291 .filter(account -> groupId.equals(account.getGroupId()) && in getPhoneAccountByGroupId() 824 if (defaultHandle == null || defaultHandle.groupId.isEmpty()) { in maybeReplaceOldAccount() 829 if (!defaultHandle.groupId.equals(newAccount.getGroupId())) { in maybeReplaceOldAccount() 1061 public final String groupId; field in PhoneAccountRegistrar.DefaultPhoneAccountHandle 1064 PhoneAccountHandle phoneAccountHandle, String groupId) { in DefaultPhoneAccountHandle() argument 1067 this.groupId = groupId; in DefaultPhoneAccountHandle() 1570 writeNonNullString(GROUP_ID, o.groupId, serializer); 1588 String groupId = ""; [all …]
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | InvisibleContactUtil.java | 62 final Long groupId = groupMembership.getGroupRowId(); in isInvisibleAndAddable() local 63 if (groupId != null && groupId == defaultGroupId) { in isInvisibleAndAddable() 115 defaultGroupId = group.groupId; in getDefaultGroupId()
|
/packages/apps/Contacts/src/com/android/contacts/drawer/ |
D | DrawerFragment.java | 167 final long groupId = savedInstanceState.getLong(KEY_SELECTED_GROUP); in onCreateView() local 168 mDrawerAdapter.setSelectedGroupId(groupId); in onCreateView() 269 public void updateGroupMenu(long groupId) { in updateGroupMenu() argument 270 mDrawerAdapter.setSelectedGroupId(groupId); in updateGroupMenu()
|
D | DrawerAdapter.java | 342 public void setSelectedGroupId(long groupId) { in setSelectedGroupId() argument 343 if (mSelectedGroupId == groupId) { in setSelectedGroupId() 346 mSelectedGroupId = groupId; in setSelectedGroupId()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationBackend.java | 140 public NotificationChannelGroup getGroup(String groupId, String pkg, int uid) { in getGroup() argument 141 if (groupId == null) { in getGroup() 145 return sINM.getNotificationChannelGroupForPackage(groupId, pkg, uid); in getGroup()
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | TelecomAccountRegistry.java | 266 String groupId = ""; in registerPstnPhoneAccount() local 278 groupId = GROUP_PREFIX + line1Number; in registerPstnPhoneAccount() 279 Log.i(this, "Adding Merged Account with group: " + Log.pii(groupId)); in registerPstnPhoneAccount() 293 .setGroupId(groupId) in registerPstnPhoneAccount()
|
/packages/apps/Dialer/java/com/android/contacts/common/ |
D | GroupMetaData.java | 36 long groupId, in GroupMetaData() argument 43 this.mGroupId = groupId; in GroupMetaData()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | PeopleActivity.java | 946 private void onGroupMenuItemClicked(long groupId) { in onGroupMenuItemClicked() argument 948 && mMembersFragment.isCurrentGroup(groupId)) { in onGroupMenuItemClicked() 951 mGroupUri = ContentUris.withAppendedId(ContactsContract.Groups.CONTENT_URI, groupId); in onGroupMenuItemClicked() 1072 public void updateDrawerGroupMenu(long groupId) { in updateDrawerGroupMenu() argument 1074 mDrawerFragment.updateGroupMenu(groupId); in updateDrawerGroupMenu()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryHistoryDetail.java | 114 private void bindData(BatteryActiveProvider provider, int label, int groupId) { in bindData() argument 115 View group = getView().findViewById(groupId); in bindData()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
D | AllIntentsActivity.java | 575 final long groupId = findArbitraryGroup(); in findArbitraryGroupIntent() local 576 if (groupId == -1) return null; in findArbitraryGroupIntent() 578 intent.setData(ContentUris.withAppendedId(Groups.CONTENT_URI, groupId)); in findArbitraryGroupIntent()
|