Lines Matching defs:Photo
949 * Reference to the row in the data table holding the photo. A photo can
953 * which is a more generic mechanism for referencing the contact photo, especially for
961 * Photo file ID of the full-size photo. If present, this will be used to populate
963 * {@link ContactsContract.DisplayPhoto#CONTENT_URI} to create a URI to the photo.
971 * A URI that can be used to retrieve the contact's full-size photo.
975 * A photo can be referred to either by a URI (this field) or by ID
986 * A URI that can be used to retrieve a thumbnail of the contact's photo.
987 * A photo can be referred to either by a URI (this field or {@link #PHOTO_URI})
1376 * <td>Reference to the row in the {@link ContactsContract.Data} table holding the photo.
1378 * {@link CommonDataKinds.Photo#CONTENT_ITEM_TYPE}. The value of this field
1380 * {@link CommonDataKinds.Photo#IS_SUPER_PRIMARY} field of the data rows of
1387 * <td>A URI that can be used to retrieve the contact's full-size photo. This
1388 * column is the preferred method of retrieving the contact photo.</td>
1394 * <td>A URI that can be used to retrieve the thumbnail of contact's photo. This
1395 * column is the preferred method of retrieving the contact photo.</td>
1567 * vcard should not contain a photo.
2030 * the contact's primary photo. The photo may be stored in up to two ways -
2031 * the default "photo" is a thumbnail-sized image stored directly in the data
2032 * row, while the "display photo", if present, is a larger version stored as
2037 * <dt>Retrieving the thumbnail-sized photo</dt>
2042 * Uri photoUri = Uri.withAppendedPath(contactUri, Contacts.Photo.CONTENT_DIRECTORY);
2044 * new String[] {Contacts.Photo.PHOTO}, null, null, null);
2062 * <dt>Retrieving the larger photo version</dt>
2067 * Uri displayPhotoUri = Uri.withAppendedPath(contactUri, Contacts.Photo.DISPLAY_PHOTO);
2083 * to retrieve the raw photo contents of either the thumbnail-sized or the full-sized photo.
2090 public static final class Photo implements BaseColumns, DataColumnsWithJoins {
2094 private Photo() {}
2099 public static final String CONTENT_DIRECTORY = "photo";
2102 * The directory twig for retrieving the full-size display photo.
2107 * Full-size photo file ID of the raw contact.
2115 * Thumbnail photo of the raw contact. This is the raw bytes of an image
2120 public static final String PHOTO = DATA15;
2124 * Opens an InputStream for the contacts's photo and returns the
2125 * photo as a byte stream.
2127 * @param contactUri the contact whose photo should be used. This can be used with
2129 * @param preferHighres If this is true and the contact has a higher resolution photo
2131 * @return an InputStream of the photo, or null if no photo is present
2137 Contacts.Photo.DISPLAY_PHOTO);
2148 Uri photoUri = Uri.withAppendedPath(contactUri, Photo.CONTENT_DIRECTORY);
2154 ContactsContract.CommonDataKinds.Photo.PHOTO
2173 * Opens an InputStream for the contacts's thumbnail photo and returns the
2174 * photo as a byte stream.
2176 * @param contactUri the contact whose photo should be used. This can be used with
2178 * @return an InputStream of the photo, or null if no photo is present
3004 * display photo. To access this directory append
3010 * Note that this sub-directory also supports opening the photo as an asset file
3011 * in write mode. Callers can create or replace the primary photo associated
3013 * photo contents into it. When the file is closed, the image will be parsed,
3014 * sized down if necessary for the full-size display photo and thumbnail
3020 * public void writeDisplayPhoto(long rawContactId, byte[] photo) {
3028 * os.write(photo);
3344 * values.put(StreamItemPhotos.PHOTO, photoData);
3356 * values.put(StreamItemPhotos.PHOTO, photoData);
3448 * When using this URI, the stream item ID for the photo(s) must be identified
3456 public static final Uri CONTENT_PHOTO_URI = Uri.withAppendedPath(CONTENT_URI, "photo");
3501 * photo rows. To access this
3537 public static final String CONTENT_DIRECTORY = "photo";
3549 * The MIME type of a single stream item photo.
3808 * <p>Social stream photo entries are associated with a social stream item. Photos
3819 * values.put(StreamItemPhotos.PHOTO, photoData);
3835 * values.put(StreamItemPhotos.PHOTO, photoData);
3849 * identified by both the stream item ID it belongs to and the stream item photo ID.
3858 * values.put(StreamItemPhotos.PHOTO, newPhotoData);
3873 * values.put(StreamItemPhotos.PHOTO, newPhotoData);
3884 * <dd>Deletes can be made against either a specific photo item in a stream item, or
3885 * against all or a selected subset of photo items under a stream item.
3888 * <dt>Deleting a single photo via the
3917 * <dt>Querying for a specific photo
3941 * retrieve photo content, or you can open the {@link StreamItemPhotos#PHOTO_URI} as
3975 * The binary representation of the photo. Any size photo can be inserted;
3979 * This is only intended for use when inserting or updating a stream item photo.
3980 * To retrieve the photo that was stored, open {@link StreamItemPhotos#PHOTO_URI}
3989 public static final String PHOTO = "photo";
4004 * A reference to the {@link StreamItems#_ID} this photo is associated with.
4025 * Photo file ID for the photo.
4036 * URI for retrieving the photo content, automatically populated. Callers
4037 * may retrieve the photo content by opening this URI as an asset file.
4082 * Constants for the photo files table, which tracks metadata for hi-res photos
4106 * The height, in pixels, of the photo this entry is associated with.
4112 * The width, in pixels, of the photo this entry is associated with.
4118 * The size, in bytes, of the photo stored on disk.
4498 * <li>{@link CommonDataKinds.Photo Photo.CONTENT_ITEM_TYPE}</li>
4587 * <td>Generic columns for use by sync adapters. For example, a Photo row
7143 * A data kind representing a photo for the contact.
7150 * of the image. It is allowed for the {@link #PHOTO} to be null.
7166 * <td>ID of the hi-res photo file.</td>
7170 * <td>{@link #PHOTO}</td>
7173 * photo is stored in this column.</td>
7177 public static final class Photo implements DataColumnsWithJoins, ContactCounts {
7181 private Photo() {}
7184 public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/photo";
7187 * Photo file ID for the display photo of the raw contact.
7195 * Thumbnail photo of the raw contact. This is the raw bytes of an image
7200 public static final String PHOTO = DATA15;
8448 * information, such as a photo.
8687 * Helper class for accessing full-size photos by photo file ID.
8691 * <dt>Retrieving a full-size photo by photo file ID (see
8724 * This URI allows the caller to query for the maximum dimensions of a display photo
8734 * that will be stored for a display photo. Larger photos will be down-sized to
8741 * contain this column, populated with the height and width (in pixels) for photo
8831 * audio, video or image(photo). This action supports messaging with a specific contact