HomeSort by relevance Sort by last modified time
    Searched refs:Photo (Results 1 - 25 of 73) sorted by null

1 2 3

  /external/chromium_org/chrome/common/media_galleries/
iphoto_library.cc 10 Photo::Photo()
14 Photo::Photo(uint64 id,
22 bool Photo::operator<(const Photo& other) const {
29 const std::set<Photo>& all_photos)
iphoto_library.h 19 struct Photo {
20 Photo();
21 Photo(uint64 id,
24 bool operator<(const Photo& other) const;
36 Library(const Albums& albums, const std::set<Photo>& all_photos);
40 std::set<Photo> all_photos;
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/
PhotoDataItem.java 21 import android.provider.ContactsContract.Contacts.Photo;
24 * Represents a photo data item, wrapping the columns in
25 * {@link ContactsContract.Contacts.Photo}.
34 return getContentValues().getAsLong(Photo.PHOTO_FILE_ID);
38 return getContentValues().getAsByteArray(Photo.PHOTO);
DataItem.java 30 import android.provider.ContactsContract.CommonDataKinds.Photo;
89 } else if (Photo.CONTENT_ITEM_TYPE.equals(mimeType)) {
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
DataRowHandlerForPhoto.java 22 import android.provider.ContactsContract.CommonDataKinds.Photo;
30 * Handler for photo data rows.
42 * already taken care of photo processing, and that the row should be ready for
43 * insert/update. This is used when the photo has been written directly to an
51 super(context, dbHelper, aggregator, Photo.CONTENT_ITEM_TYPE);
64 // Pre-process the photo if one exists.
85 // Pre-process the photo if one exists.
101 * Pre-processes the given content values for update or insert. If the photo column contains
102 * null or an empty byte array, both that column and the photo file ID will be nulled out.
103 * If a photo was specified but could not be processed, this will return false
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
ContactsContract_PhotoTest.java 24 import android.provider.ContactsContract.CommonDataKinds.Photo;
68 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE)
69 .with(Photo.PHOTO, PhotoUtil.getTestPhotoData(mContext))
73 photoData.assertColumn(Photo.RAW_CONTACT_ID, rawContact.getId());
74 photoData.assertBlobColumnNotNull(Photo.PHOTO);
89 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE)
90 .with(Photo.PHOTO, EMPTY_TEST_PHOTO_DATA
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
EditorUiUtils.java 21 import static android.provider.ContactsContract.CommonDataKinds.Photo;
62 mimetypeLayoutMap.put(Photo.CONTENT_ITEM_TYPE, -1);
PhotoEditorView.java 22 import android.provider.ContactsContract.CommonDataKinds.Photo;
37 * Simple editor for {@link Photo}.
67 // Never called, since the user never adds a new photo-editor;
76 mPhotoImageView = (ImageView) findViewById(R.id.photo);
104 // Try decoding photo if actual entry
105 final byte[] photoBytes = values.getAsByteArray(Photo.PHOTO);
107 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, local
110 mPhotoImageView.setImageBitmap(photo);
123 * Return true if a valid {@link Photo} has been set
    [all...]
RawContactReadOnlyEditorView.java 25 import android.provider.ContactsContract.CommonDataKinds.Photo;
168 // Photo
169 DataKind kind = type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE);
171 RawContactModifier.ensureKindExists(state, type, Photo.CONTENT_ITEM_TYPE);
172 boolean hasPhotoEditor = type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE) != null;
174 primary = state.getPrimaryEntry(Photo.CONTENT_ITEM_TYPE);
AggregationSuggestionEngine.java 31 import android.provider.ContactsContract.CommonDataKinds.Photo;
78 public byte[] photo; field in class:AggregationSuggestionEngine.Suggestion
85 + nickname + (photo != null ? " [has photo]" : "");
266 + Photo.CONTENT_ITEM_TYPE + "')"
279 Photo.PHOTO,
294 public static final int PHOTO = 9;
425 } else if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) {
428 if (dataId == photoId && !mDataCursor.isNull(DataQuery.PHOTO)) {
    [all...]
BaseRawContactEditorView.java 22 import android.provider.ContactsContract.CommonDataKinds.Photo;
92 * Return true if the current {@link RawContacts} supports {@link Photo},
100 * Return true if internal {@link PhotoEditorView} has a {@link Photo} set.
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
ContactOperations.java 30 import android.provider.ContactsContract.CommonDataKinds.Photo;
208 mValues.put(Photo.PHOTO, avatarBuffer);
209 mValues.put(Photo.MIMETYPE, Photo.CONTENT_ITEM_TYPE);
336 mValues.put(Photo.PHOTO, avatarBuffer);
337 mValues.put(Photo.MIMETYPE, Photo.CONTENT_ITEM_TYPE);
  /external/chromium_org/chrome/utility/media_galleries/
iphoto_library_parser_unittest.cc 107 void ComparePhoto(const parser::Photo& a, const parser::Photo& b) {
141 std::set<parser::Photo>::const_iterator a_it;
142 std::set<parser::Photo>::const_iterator b_it;
167 parser::Photo photo(id, base::FilePath::FromUTF8Unsafe(location),
171 expected_library_.all_photos.insert(photo);
185 AddExpectedPhoto(1, "/dir/Photo With Space.jpg", "");
190 SIMPLE_PHOTO(1, 1, "/dir/Photo With Space.jpg", "Photo 1"
    [all...]
iphoto_library_parser.cc 32 // Walk through a dictionary filling in |result| with photo information. Return
174 // $photo properties
178 // $photo properties
184 std::set<iphoto::parser::Photo>* all_photos) {
221 parser::Photo photo(photo_info.id, photo_info.location,
223 all_photos->insert(photo);
  /packages/apps/UnifiedEmail/src/com/android/mail/
SenderInfoLoader.java 32 import android.provider.ContactsContract.Contacts.Photo;
46 * A {@link Loader} to look up presence, contact URI, and photo data for a set of email
61 private static final String[] PHOTO_COLS = new String[] { Photo._ID, Photo.PHOTO };
103 * {@link ContactInfo}. Otherwise, just put the raw bytes of the photo
109 * <li>Either {@link ContactInfo#photoBytes} or {@link ContactInfo#photo} is non-null -
110 * Photo loaded successfully.</li>
111 * <li>Both {@link ContactInfo#photoBytes} and {@link ContactInfo#photo} are null -
112 * Photo load failed.</li
219 Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, photoBytes.length); local
    [all...]
  /packages/apps/Email/src/com/android/email/activity/
ContactStatusLoader.java 27 import android.provider.ContactsContract.CommonDataKinds.Photo;
38 * Loader to load presence statuses and the contact photo.
44 /** email address -> photo id, presence */
52 /** photo id -> photo data */
54 Photo.PHOTO
67 /** Contact photo. Null if unknown */
76 public Result(Bitmap photo, int presenceResId, Uri lookupUri) {
77 mPhoto = photo;
128 Bitmap photo = null; local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/group/
SuggestedMemberListAdapter.java 25 import android.provider.ContactsContract.CommonDataKinds.Photo;
69 Photo.PHOTO, // 4
180 // to add supplementary data to the contact (photo, phone, email) to the members based
251 // (as well as the photo, email, and phone mimetypes)
253 selectionArgs.add(Photo.CONTENT_ITEM_TYPE);
260 // Perform a second query to retrieve a photo and possibly a phone number or email
278 if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) {
279 // Set photo
370 public void setPhotoByteArray(byte[] photo) {
    [all...]
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/
ExternalAccountTypeTest.java 25 import android.provider.ContactsContract.CommonDataKinds.Photo;
111 assertNotNull(type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE));
181 assertNotNull(type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE));
  /frameworks/base/core/java/com/google/android/util/
AbstractMessageParser.java 212 // Look for photo links.
213 Photo photo = Photo.matchURL(url, text); local
214 if (photo != null) {
215 return photo;
218 // Look for photo links.
665 PHOTO ("p"),
952 /** Represents a link to a Picasa photo or album. */
953 public static class Photo extends Token
962 private String photo; \/\/ null for albums field in class:AbstractMessageParser.Photo
1031 private String photo; \/\/ null for user album field in class:AbstractMessageParser.FlickrPhoto
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/
Contact.java 22 import android.provider.ContactsContract.CommonDataKinds.Photo;
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.
442 // If the photo was loaded using the URI, create an entry for the photo
445 ContentValues photo = new ContentValues(); local
446 photo.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE);
447 photo.put(Photo.PHOTO, mPhotoBinaryData)
    [all...]
  /frameworks/opt/chips/src/com/android/ex/chips/
DefaultPhotoManager.java 33 * queries for photo bytes by using the {@link com.android.ex.chips.RecipientEntry}'s
49 ContactsContract.CommonDataKinds.Photo.PHOTO
52 public static final int PHOTO = 0;
75 Log.d(TAG, "No photo cache for " + entry.getDisplayName()
97 return photoCursor.getBlob(PhotoQuery.PHOTO);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
AccountImageHelper.java 30 import android.provider.ContactsContract.CommonDataKinds.Photo;
90 // Trigger a VIEW action on this photo, which will force the Contacts
91 // Sync adapter to sync the HiRes version of the contact photo.
  /packages/apps/Contacts/src/com/android/contacts/activities/
AttachPhotoActivity.java 30 import android.provider.ContactsContract.CommonDataKinds.Photo;
73 // Height and width (in pixels) to request for the photo - queried from the provider.
75 // Default photo dimension to use if unable to query the provider.
99 // Load the photo dimension to request. mPhotoDim is a static class
168 // Delete the temporary photo from cache now that we have a cropped version.
211 * If prerequisites have been met, attach the photo to a raw-contact and save.
213 * - photo has been cropped
255 // full-res photo would fail to be saved to the non-existent contact.
258 RawContactModifier.ensureKindExists(raw, account, Photo.CONTENT_ITEM_TYPE);
260 Log.w(TAG, "cannot attach photo to this account type")
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
ResultActivity.java 29 import android.provider.ContactsContract.CommonDataKinds.Photo;
147 new String[]{Photo.PHOTO}, null, null, null);
162 addRowWithBitmap("Photo", BitmapFactory.decodeByteArray(data, 0, data.length));
  /development/samples/training/ContactsList/src/com/example/android/contactslist/ui/
ContactDetailFragment.java 32 import android.provider.ContactsContract.Contacts.Photo;
62 * contact's display photo, name and all its mailing addresses. You can also modify this fragment
158 // Shows the contact photo ImageView and hides the empty view
512 * set a maximum size limit on the contact photo that is retrieved from the Contacts Provider.
543 // added to an activity. If so, no need to spend resources loading the contact photo.
557 // is available from Photo.DISPLAY_PHOTO.
560 Uri displayImageUri = Uri.withAppendedPath(contactUri, Photo.DISPLAY_PHOTO);
575 // when a contact is legitimately missing a contact photo (which will be quite
577 Log.d(TAG, "Contact photo not found for contact " + contactUri.toString()
599 // Contacts.Photo tabl
    [all...]

Completed in 342 milliseconds

1 2 3