Home | History | Annotate | Download | only in model

Lines Matching defs:Contact

39  * A Contact represents a single person or logical entity as perceived by the user.  The information
40 * about a contact can come from multiple data sources, which are each represented by a RawContact
41 * object. Thus, a Contact is associated with a collection of RawContact objects.
43 * The aggregation of raw contacts into a single contact is performed automatically, and it is
46 * Only the {@link ContactLoader} class can create a Contact object with various flags to allow
47 * partial loading of contact data. Thus, an instance of this class should be treated as
50 public class Contact {
52 /** Contact is successfully loaded */
54 /** There was an error loading the contact */
56 /** Contact is not found */
89 * Small version of the contact photo loaded from a blob instead of from a file. If a large
90 * contact photo is not available yet, then this has the same value as mPhotoBinaryData.
97 private final Contact.Status mStatus;
101 * Constructor for special results, namely "no contact found" and "error".
103 private Contact(Uri requestedUri, Contact.Status status, Exception exception) {
132 public static Contact forError(Uri requestedUri, Exception exception) {
133 return new Contact(requestedUri, Status.ERROR, exception);
136 public static Contact forNotFound(Uri requestedUri) {
137 return new Contact(requestedUri, Status.NOT_FOUND, null);
141 * Constructor to call when contact was found
143 public Contact(Uri requestedUri, Uri uri, Uri lookupUri, long directoryId, String lookupKey,
173 public Contact(Uri requestedUri, Contact from) {
231 * Returns the URI for the contact that contains both the lookup key and the ID. This is
232 * the best URI to reference a contact.
244 * Returns the contact Uri that was passed to the provider to make the query. This is
245 * the same as the requested Uri, unless the requested Uri doesn't specify a Contact:
246 * If it either references a Raw-Contact or a Person (a pre-Eclair style Uri), this Uri will
247 * always reference the full aggregate contact.
261 * Instantiate a new RawContactDeltaList for this contact.
268 * Returns the contact ID.
291 * @return true when the specified contact is not found.
301 * @return true if the specified contact is successfully loaded.
317 * Used by various classes to determine whether or not this contact should be displayed as
379 * @return true if this is a contact (not group, etc.) with at least one
380 * writable raw-contact, and false otherwise.
387 * Return the ID of the first raw-contact in the contact data that belongs to a
388 * contact-writable account, or -1 if no such entity exists.
401 // No writable raw-contact was found.
436 "Cannot extract content values from an aggregated contact");