Lines Matching defs:contact

144      * An intent extra that forces the editor to add the edited contact
169 * Split the contact after saving
174 * Join another contact after saving
220 * The raw contact for which we started "take photo" or "choose photo from gallery" most
226 * raw contact.
261 // Whether to show the new contact blank form and if it's corresponding delta is ready.
265 // Whether it's an edit of existing contact and if it's corresponding delta is ready.
275 // contact.
278 // Used to temporarily store existing contact data during a rebind call (i.e. account switch)
281 // Used to store which raw contact editors have been expanded. Keyed on raw contact ids.
541 public void setData(Contact contact) {
550 mRawContacts = contact.getRawContacts();
572 // can edit. For the user profile case, there is already an editable contact.
573 if (!contact.isUserProfile() && !contact.isWritableContact(mContext)) {
578 displayName = contact.getDisplayName();
583 bindEditorsForExistingContact(displayName, contact.isUserProfile(),
586 bindMenuItemsForPhone(contact);
616 // Try to find a local profile contact
637 private void bindMenuItemsForPhone(Contact contact) {
638 mSendToVoicemailState = contact.isSendToVoicemail();
639 mCustomRingtone = contact.getCustomRingtone();
640 mArePhoneOptionsChangable = arePhoneOptionsChangable(contact);
643 private boolean arePhoneOptionsChangable(Contact contact) {
644 return contact != null && !contact.isDirectoryEntry()
660 // Apply extras to the first writable raw contact only
669 // activity and create a phone-local contact.
682 // Otherwise, there should be a default account. Then either create a local contact
683 // (if default account is null) or create a contact with the specified account.
694 * Create a contact by automatically selecting the first account. If there's no available
695 * account, a device-local contact should be created.
700 // No Accounts available. Create a phone-local contact.
714 * @param account may be null to signal a device-local contact should be created.
800 // Set the correct URI for saving the contact as a profile
821 // editing an read-only contact, it's also populated with newly created data for the
978 * If we've stashed a temporary file containing a contact's new photo, return its URI.
979 * @param rawContactId identifies the raw-contact whose Bitmap we'll try to return.
980 * @return Uru of photo for specified raw-contact, or null
1012 // Note a newly created raw contact gets some random negative ID, so any value is valid
1032 // Verify that this is a newly created contact, that the contact is composed of only
1033 // 1 raw contact, and that the contact is not a user profile.
1039 // Find the associated account for this contact (retrieve it here because there are
1040 // multiple paths to creating a contact and this ensures we always have the correct
1099 // This supports the keyboard shortcut to save changes to a contact but shouldn't be visible
1116 // Discard menu is only available if at least one raw contact is editable
1139 // if we don't have a telephone or are editing a new contact.
1196 // If we just started creating a new contact and haven't added any data, it's too
1216 * Return true if there are any edits to the current contact which need to
1225 * Saves or creates the contact based on the mode, and if successful
1242 // We don't have anything to save and there isn't even an existing contact yet.
1253 // Store account as default account, only if this is a new contact
1256 // Save contact
1287 // Put checkmark next to the current ringtone for this contact
1435 * @param contactLookupUri the fresh URI for the currently edited contact (after saving it)
1450 * Performs aggregation with the contact selected by the user from suggestions or A-Z list.
1460 * Returns true if there is at least one writable raw contact in the current contact.
1481 * Contact was not found, so somehow close this fragment. This is raised after a contact
1488 * @param newLookupUri The lookup uri of the new contact that should be shown to the user.
1489 * The editor tries best to chose the most natural contact here.
1504 * User switched to editing a different contact (a suggestion from the
1512 * new contact activity.
1518 * The edited raw contact belongs to an external account that provides
1610 // Both are in the same account, fall back to contact ID
1624 * Returns the contact ID for the currently edited contact or 0 if the contact is new.
1680 return; // Raw contact deleted?
1739 * Joins the suggested contact (specified by the id's of constituent raw
1787 * Abandons the currently edited contact and switches to editing the suggested
1792 // make sure we don't save this contact when closing down
1885 // contact, so we should continue setting up the editor by automatically selecting
1926 Log.w(TAG, "The contact that requested the photo is no longer present.");
1933 * Finds raw contact editor view for the given rawContactId.
1997 Log.i(TAG, "No contact found. Closing activity");