/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForPhoto.java | 24 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...] |
LegacyApiSupport.java | 56 import android.provider.ContactsContract.CommonDataKinds.Photo; 237 Photo.CONTENT_ITEM_TYPE 255 * A custom data row that is used to store legacy photo data fields no 318 matcher.addURI(authority, "people/#/photo", PEOPLE_PHOTO); 319 // matcher.addURI(authority, "people/#/photo/data", PEOPLE_PHOTO_DATA); [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_StreamItemPhotosTest.java | 51 values.put(StreamItemPhotos.PHOTO, photoData); 67 values.put(StreamItemPhotos.PHOTO, photoData);
|
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/ |
PhotoEditorView.java | 29 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...] |
AggregationSuggestionEngine.java | 34 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...] |
/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/experimental/LoaderApp/src/com/android/loaderapp/ |
ContactHeaderWidget.java | 40 import android.provider.ContactsContract.CommonDataKinds.Photo; 125 Photo.PHOTO 128 int PHOTO = 0; 178 mPhotoView = (QuickContactBadge) findViewById(R.id.photo); 185 // Set the photo with a random "no contact" image 242 //Set the photo 245 && !cursor.isNull(PhotoQuery.PHOTO)) { 246 byte[] photoData = cursor.getBlob(PhotoQuery.PHOTO); 367 * Manually set the photo to display in the header. This doesn't change th [all...] |
/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);
|
/frameworks/ex/chips/src/com/android/ex/chips/ |
BaseRecipientAdapter.java | 33 import android.provider.ContactsContract.CommonDataKinds.Photo; 115 Photo.PHOTO 118 public static final int PHOTO = 0; 229 // Note: At this point each entry doesn't contain any photo 653 * fetch a cached photo for each contact entry (other than separators), or request another 706 Log.d(TAG, "No photo cache for " + entry.getDisplayName() 723 final byte[] photoBytes = photoCursor.getBlob(PhotoQuery.PHOTO); 755 photoBytes = photoCursor.getBlob(PhotoQuery.PHOTO); 872 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, local [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
AttachPhotoActivity.java | 28 import android.provider.ContactsContract.CommonDataKinds.Photo; 66 // Height and width (in pixels) to request for the photo - queried from the provider. 92 // Load the photo dimension to request. 168 * If prerequisites have been met, attach the photo to a raw-contact and save. 170 * - photo has been cropped 196 // full-res photo would fail to be saved to the non-existent contact. 199 EntityModifier.ensureKindExists(raw, account, Photo.CONTENT_ITEM_TYPE); 201 Log.w(TAG, "cannot attach photo to this account type"); 204 values.put(Photo.PHOTO, compressed) [all...] |
ConfirmAddDetailActivity.java | 58 import android.provider.ContactsContract.CommonDataKinds.Photo; 141 * PhotoQuery contains the projection used for retrieving the name and photo 159 * the contact photo. 163 Photo.PHOTO 166 final int PHOTO = 0; 269 mPhotoView = (ImageView) findViewById(R.id.photo); 312 * Internal method to query contact photo by photo id and uri. 314 * @param photoId the photo id [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
ResultActivity.java | 33 import android.provider.ContactsContract.CommonDataKinds.Photo; 147 new String[]{Photo.PHOTO}, null, null, null); 162 addRowWithBitmap("Photo", BitmapFactory.decodeByteArray(data, 0, data.length));
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
SuggestedMemberListAdapter.java | 28 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/Contacts/tests/src/com/android/contacts/tests/streamitems/ |
StreamItemPopulatorActivity.java | 291 values.put(StreamItemPhotos.PHOTO, loadPhotoFromResource(imageIndex));
|
/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...] |
/frameworks/base/core/java/android/provider/ |
ContactsContract.java | [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
ShortcutIntentBuilder.java | 39 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/experimental/LoaderApp/src/com/android/loaderapp/util/ |
ContactsUtils.java | 37 import android.provider.ContactsContract.CommonDataKinds.Photo; 125 * Opens an InputStream for the person's photo and returns the photo as a Bitmap. 126 * If the person's photo isn't present returns null. 128 * @param aggCursor the Cursor pointing to the data record containing the photo. 129 * @param bitmapColumnIndex the column index where the photo Uri is stored. 131 * @return the photo Bitmap 144 * Loads a placeholder photo. 168 new String[] { Photo.PHOTO }, [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsProvider2Test.java | 50 import android.provider.ContactsContract.CommonDataKinds.Photo; [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/ |
ExchangeAccountType.java | 33 import android.provider.ContactsContract.CommonDataKinds.Photo; 286 kind.fieldList.add(new EditField(Photo.PHOTO, -1, -1));
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
ExchangeSource.java | 30 import android.provider.ContactsContract.CommonDataKinds.Photo; 275 kind.fieldList.add(new EditField(Photo.PHOTO, -1, -1));
|
/packages/apps/Contacts/src/com/android/contacts/ |
ContactLoader.java | 49 import android.provider.ContactsContract.CommonDataKinds.Photo; 500 // If the photo was loaded using the URI, create an entry for the photo 503 ContentValues photo = new ContentValues(); local 504 photo.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE); 505 photo.put(Photo.PHOTO, mPhotoBinaryData); 506 result.add(photo); [all...] |
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardEntry.java | 34 import android.provider.ContactsContract.CommonDataKinds.Photo; 93 PHOTO, [all...] |
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
ContactsSyncAdapter.java | 43 import android.provider.ContactsContract.CommonDataKinds.Photo; [all...] |