Searched refs:photoBytes (Results 1 - 12 of 12) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/
H A DContactInfo.java25 public final byte[] photoBytes; field in class:ContactInfo
32 public ContactInfo(Uri contactUri, byte[] photoBytes) { argument
33 this(contactUri, photoBytes, null);
40 private ContactInfo(Uri contactUri, byte[] photoBytes, Bitmap photo) { argument
42 this.photoBytes = photoBytes;
48 return "{photo=" + (photo != null ? photo : photoBytes) + "}";
H A DSenderInfoLoader.java110 * <li>Either {@link ContactInfo#photoBytes} or {@link ContactInfo#photo} is non-null -
112 * <li>Both {@link ContactInfo#photoBytes} and {@link ContactInfo#photo} are null -
208 byte[] photoBytes = cursor.getBlob(PHOTO_PHOTO_COLUMN);
209 if (photoBytes == null) {
220 Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, photoBytes.length);
225 // overwrite existing photoBytes-less result
226 results.put(email, new ContactInfo(prevResult.contactUri, photoBytes));
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDataRowHandlerForPhoto.java126 byte[] photoBytes = values.getAsByteArray(Photo.PHOTO);
127 return photoBytes != null && photoBytes.length > 0;
H A DPhotoStore.java197 byte[] photoBytes = photoProcessor.getDisplayPhotoBytes();
200 fos.write(photoBytes);
207 values.put(PhotoFiles.FILESIZE, photoBytes.length);
H A DContactsProvider2.java3105 byte[] photoBytes = values.getAsByteArray(StreamItemPhotos.PHOTO);
3106 if (photoBytes == null) {
3114 photoBytes, getMaxDisplayPhotoDim(), getMaxThumbnailDim(), true);
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DPhotoEditorView.java125 final byte[] photoBytes = values.getAsByteArray(Photo.PHOTO);
126 if (photoBytes != null) {
127 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0,
128 photoBytes.length);
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
H A DMockContactPhotoManager.java66 public void cacheBitmap(Uri photoUri, Bitmap bitmap, byte[] photoBytes) { argument
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DVCardRequest.java266 final byte[] photoBytes = photo.getBytes();
267 if (photoBytes != null) {
268 final InputStream inputStream = new ByteArrayInputStream(photoBytes);
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
H A DContactResolver.java209 final byte[] photo = contactInfo.photoBytes;
/packages/apps/ContactsCommon/src/com/android/contacts/common/
H A DContactPhotoManager.java557 * @param photoBytes The bytes that were parsed to create the bitmap.
559 public abstract void cacheBitmap(Uri photoUri, Bitmap bitmap, byte[] photoBytes); argument
1219 public void cacheBitmap(Uri photoUri, Bitmap bitmap, byte[] photoBytes) { argument
1225 BitmapHolder holder = new BitmapHolder(photoBytes, smallerExtent);
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DQuickContactActivity.java504 final byte[] photoBytes = mContactData.getThumbnailPhotoBinaryData();
505 if (photoBytes != null) {
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsProvider2Test.java7556 private void writePhotoAsync(final Uri uri, final byte[] photoBytes) throws Exception { argument
7563 os.write(photoBytes);

Completed in 318 milliseconds