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

1 2 3

  /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;
85 } 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;
36 * Simple editor for {@link Photo}.
66 // Never called, since the user never adds a new photo-editor;
75 mPhotoImageView = (ImageView) findViewById(R.id.photo);
103 // Try decoding photo if actual entry
104 final byte[] photoBytes = values.getAsByteArray(Photo.PHOTO);
106 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, local
109 mPhotoImageView.setImageBitmap(photo);
122 * 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;
421 } else if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) {
424 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.
RawContactEditorView.java 25 import android.provider.ContactsContract.CommonDataKinds.Photo;
253 // Show photo editor when supported
254 RawContactModifier.ensureKindExists(state, type, Photo.CONTENT_ITEM_TYPE);
255 setHasPhotoEditor((type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE) != null));
289 } else if (Photo.CONTENT_ITEM_TYPE.equals(mimeType)) {
  /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);
  /packages/apps/UnifiedEmail/src/com/android/mail/
SenderInfoLoader.java 34 import android.provider.ContactsContract.Contacts.Photo;
44 * A {@link Loader} to look up presence, contact URI, and photo data for a set of email
62 private static final String[] PHOTO_COLS = new String[] { Photo._ID, Photo.PHOTO };
104 * {@link ContactInfo}. Otherwise, just put the raw bytes of the photo
163 // based on photo batch-select code in ContactPhotoManager
166 query.append(Photo._ID).append(" IN (");
190 Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, photoBytes.length); local
191 // overwrite existing photo-less resul
    [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;
68 Photo.PHOTO, // 4
178 // to add supplementary data to the contact (photo, phone, email) to the members based
249 // (as well as the photo, email, and phone mimetypes)
251 selectionArgs.add(Photo.CONTENT_ITEM_TYPE);
258 // Perform a second query to retrieve a photo and possibly a phone number or email
275 if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) {
276 // Set photo
366 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;
421 // If the photo was loaded using the URI, create an entry for the photo
424 ContentValues photo = new ContentValues(); local
425 photo.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE);
426 photo.put(Photo.PHOTO, mPhotoBinaryData);
427 result.add(photo);
    [all...]
ValuesDelta.java 470 put(ContactsContract.CommonDataKinds.Photo.PHOTO, value);
474 return getAsByteArray(ContactsContract.CommonDataKinds.Photo.PHOTO);
  /packages/apps/Contacts/src/com/android/contacts/activities/
AttachPhotoActivity.java 29 import android.provider.ContactsContract.CommonDataKinds.Photo;
70 // Height and width (in pixels) to request for the photo - queried from the provider.
94 // Load the photo dimension to request.
159 // Delete the temporary photo from cache now that we have a cropped version.
202 * If prerequisites have been met, attach the photo to a raw-contact and save.
204 * - photo has been cropped
236 // full-res photo would fail to be saved to the non-existent contact.
239 RawContactModifier.ensureKindExists(raw, account, Photo.CONTENT_ITEM_TYPE);
241 Log.w(TAG, "cannot attach photo to this account type");
247 Log.v(TAG, "all prerequisites met, about to save photo to contact")
    [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...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ShortcutIntentBuilder.java 36 import android.provider.ContactsContract.CommonDataKinds.Photo;
74 Photo.PHOTO,
79 private static final String PHOTO_SELECTION = Photo._ID + "=?";
136 * An asynchronous task that loads name, photo and other data from the database.
327 private Bitmap generateQuickContactIcon(Bitmap photo) {
333 // Copy in the photo
337 Rect src = new Rect(0,0, photo.getWidth(),photo.getHeight());
339 canvas.drawBitmap(photo, src, dst, photoPaint)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/detail/
PhotoSelectionHandler.java 26 import android.provider.ContactsContract.CommonDataKinds.Photo;
51 * Handles displaying a photo selection popup for a given photo view and dealing with the results
120 // Cropped photo was returned
130 // delete the original temporary photo if it exists
139 // Photo was successfully taken or selected from gallery, now crop it.
196 * This will attach the photo to the first contact-writable account that provided data to the
199 * or null if the photo could not be parsed or none of the accounts associated with the
217 delta, accountType, Photo.CONTENT_ITEM_TYPE);
230 * Sends a newly acquired photo to Gallery for croppin
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
ExternalAccountType.java 27 import android.provider.ContactsContract.CommonDataKinds.Photo;
135 checkKindExists(Photo.CONTENT_ITEM_TYPE);
137 // Bring in name and photo from fallback source, which are non-optional
  /frameworks/opt/vcard/java/com/android/vcard/
VCardComposer.java 34 import android.provider.ContactsContract.CommonDataKinds.Photo;
597 builder.appendPhotos(contentValuesListMap.get(Photo.CONTENT_ITEM_TYPE));

Completed in 778 milliseconds

1 2 3