Home | History | Annotate | Download | only in provider

Lines Matching defs:Photo

875          * Reference to the row in the data table holding the photo.  A photo can
879 * which is a more generic mechanism for referencing the contact photo, especially for
887 * Photo file ID of the full-size photo. If present, this will be used to populate
889 * {@link ContactsContract.DisplayPhoto#CONTENT_URI} to create a URI to the photo.
897 * A URI that can be used to retrieve the contact's full-size photo.
901 * A photo can be referred to either by a URI (this field) or by ID
912 * A URI that can be used to retrieve a thumbnail of the contact's photo.
913 * A photo can be referred to either by a URI (this field or {@link #PHOTO_URI})
1283 * <td>Reference to the row in the {@link ContactsContract.Data} table holding the photo.
1285 * {@link CommonDataKinds.Photo#CONTENT_ITEM_TYPE}. The value of this field
1287 * {@link CommonDataKinds.Photo#IS_SUPER_PRIMARY} field of the data rows of
1294 * <td>A URI that can be used to retrieve the contact's full-size photo. This
1295 * column is the preferred method of retrieving the contact photo.</td>
1301 * <td>A URI that can be used to retrieve the thumbnail of contact's photo. This
1302 * column is the preferred method of retrieving the contact photo.</td>
1461 * vcard should not contain a photo.
1868 * the contact's primary photo. The photo may be stored in up to two ways -
1869 * the default "photo" is a thumbnail-sized image stored directly in the data
1870 * row, while the "display photo", if present, is a larger version stored as
1875 * <dt>Retrieving the thumbnail-sized photo</dt>
1880 * Uri photoUri = Uri.withAppendedPath(contactUri, Contacts.Photo.CONTENT_DIRECTORY);
1882 * new String[] {Contacts.Photo.PHOTO}, null, null, null);
1900 * <dt>Retrieving the larger photo version</dt>
1905 * Uri displayPhotoUri = Uri.withAppendedPath(contactUri, Contacts.Photo.DISPLAY_PHOTO);
1921 * to retrieve the raw photo contents of either the thumbnail-sized or the full-sized photo.
1928 public static final class Photo implements BaseColumns, DataColumnsWithJoins {
1932 private Photo() {}
1937 public static final String CONTENT_DIRECTORY = "photo";
1940 * The directory twig for retrieving the full-size display photo.
1945 * Full-size photo file ID of the raw contact.
1953 * Thumbnail photo of the raw contact. This is the raw bytes of an image
1958 public static final String PHOTO = DATA15;
1962 * Opens an InputStream for the contacts's photo and returns the
1963 * photo as a byte stream.
1965 * @param contactUri the contact whose photo should be used. This can be used with
1967 * @param preferHighres If this is true and the contact has a higher resolution photo
1969 * @return an InputStream of the photo, or null if no photo is present
1975 Contacts.Photo.DISPLAY_PHOTO);
1985 Uri photoUri = Uri.withAppendedPath(contactUri, Photo.CONTENT_DIRECTORY);
1991 ContactsContract.CommonDataKinds.Photo.PHOTO
2010 * Opens an InputStream for the contacts's thumbnail photo and returns the
2011 * photo as a byte stream.
2013 * @param contactUri the contact whose photo should be used. This can be used with
2015 * @return an InputStream of the photo, or null if no photo is present
2836 * display photo. To access this directory append
2842 * Note that this sub-directory also supports opening the photo as an asset file
2843 * in write mode. Callers can create or replace the primary photo associated
2845 * photo contents into it. When the file is closed, the image will be parsed,
2846 * sized down if necessary for the full-size display photo and thumbnail
2852 * public void writeDisplayPhoto(long rawContactId, byte[] photo) {
2860 * os.write(photo);
3177 * values.put(StreamItemPhotos.PHOTO, photoData);
3189 * values.put(StreamItemPhotos.PHOTO, photoData);
3267 * When using this URI, the stream item ID for the photo(s) must be identified
3271 public static final Uri CONTENT_PHOTO_URI = Uri.withAppendedPath(CONTENT_URI, "photo");
3300 * photo rows. To access this
3322 public static final String CONTENT_DIRECTORY = "photo";
3330 * The MIME type of a single stream item photo.
3504 * <p>Social stream photo entries are associated with a social stream item. Photos
3515 * values.put(StreamItemPhotos.PHOTO, photoData);
3531 * values.put(StreamItemPhotos.PHOTO, photoData);
3545 * identified by both the stream item ID it belongs to and the stream item photo ID.
3554 * values.put(StreamItemPhotos.PHOTO, newPhotoData);
3569 * values.put(StreamItemPhotos.PHOTO, newPhotoData);
3580 * <dd>Deletes can be made against either a specific photo item in a stream item, or
3581 * against all or a selected subset of photo items under a stream item.
3584 * <dt>Deleting a single photo via the
3613 * <dt>Querying for a specific photo in a stream item</dt>
3637 * retrieve photo content, or you can open the {@link StreamItemPhotos#PHOTO_URI} as
3661 * The binary representation of the photo. Any size photo can be inserted;
3665 * This is only intended for use when inserting or updating a stream item photo.
3666 * To retrieve the photo that was stored, open {@link StreamItemPhotos#PHOTO_URI}
3671 public static final String PHOTO = "photo";
3681 * A reference to the {@link StreamItems#_ID} this photo is associated with.
3694 * Photo file ID for the photo.
3701 * URI for retrieving the photo content, automatically populated. Callers
3702 * may retrieve the photo content by opening this URI as an asset file.
3719 * Constants for the photo files table, which tracks metadata for hi-res photos
3743 * The height, in pixels, of the photo this entry is associated with.
3749 * The width, in pixels, of the photo this entry is associated with.
3755 * The size, in bytes, of the photo stored on disk.
4098 * <li>{@link CommonDataKinds.Photo Photo.CONTENT_ITEM_TYPE}</li>
4187 * <td>Generic columns for use by sync adapters. For example, a Photo row
6530 * A data kind representing a photo for the contact.
6537 * of the image. It is allowed for the {@link #PHOTO} to be null.
6553 * <td>ID of the hi-res photo file.</td>
6557 * <td>{@link #PHOTO}</td>
6560 * photo is stored in this column.</td>
6564 public static final class Photo implements DataColumnsWithJoins {
6568 private Photo() {}
6571 public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/photo";
6574 * Photo file ID for the display photo of the raw contact.
6582 * Thumbnail photo of the raw contact. This is the raw bytes of an image
6587 public static final String PHOTO = DATA15;
7904 * information, such as a photo.
8022 * Helper class for accessing full-size photos by photo file ID.
8026 * <dt>Retrieving a full-size photo by photo file ID (see
8059 * This URI allows the caller to query for the maximum dimensions of a display photo
8069 * that will be stored for a display photo. Larger photos will be down-sized to
8076 * contain this column, populated with the height and width (in pixels) for photo