Home
last modified time | relevance | path

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

/packages/apps/UnifiedEmail/src/com/android/mail/
DContactInfo.java25 public final byte[] photoBytes; field in ContactInfo
32 public ContactInfo(Uri contactUri, byte[] photoBytes) { in ContactInfo() argument
33 this(contactUri, photoBytes, null); in ContactInfo()
40 private ContactInfo(Uri contactUri, byte[] photoBytes, Bitmap photo) { in ContactInfo() argument
42 this.photoBytes = photoBytes; in ContactInfo()
48 return "{photo=" + (photo != null ? photo : photoBytes) + "}"; in toString()
DSenderInfoLoader.java208 byte[] photoBytes = cursor.getBlob(PHOTO_PHOTO_COLUMN); in loadContactPhotos()
209 if (photoBytes == null) { in loadContactPhotos()
220 Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, photoBytes.length); in loadContactPhotos()
226 results.put(email, new ContactInfo(prevResult.contactUri, photoBytes)); in loadContactPhotos()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoEditorView.java125 final byte[] photoBytes = values.getAsByteArray(Photo.PHOTO); in setValues()
126 if (photoBytes != null) { in setValues()
127 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, in setValues()
128 photoBytes.length); in setValues()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForPhoto.java126 byte[] photoBytes = values.getAsByteArray(Photo.PHOTO); in hasNonNullPhoto()
127 return photoBytes != null && photoBytes.length > 0; in hasNonNullPhoto()
DPhotoStore.java197 byte[] photoBytes = photoProcessor.getDisplayPhotoBytes(); in insert()
200 fos.write(photoBytes); in insert()
207 values.put(PhotoFiles.FILESIZE, photoBytes.length); in insert()
DContactsProvider2.java3105 byte[] photoBytes = values.getAsByteArray(StreamItemPhotos.PHOTO); in processStreamItemPhoto()
3106 if (photoBytes == null) { in processStreamItemPhoto()
3114 photoBytes, getMaxDisplayPhotoDim(), getMaxThumbnailDim(), true); in processStreamItemPhoto()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DVCardRequest.java266 final byte[] photoBytes = photo.getBytes(); in onEntryCreated()
267 if (photoBytes != null) { in onEntryCreated()
268 final InputStream inputStream = new ByteArrayInputStream(photoBytes); in onEntryCreated()
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DMockContactPhotoManager.java66 public void cacheBitmap(Uri photoUri, Bitmap bitmap, byte[] photoBytes) { in cacheBitmap() argument
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
DContactResolver.java209 final byte[] photo = contactInfo.photoBytes; in doInBackground()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactPhotoManager.java559 public abstract void cacheBitmap(Uri photoUri, Bitmap bitmap, byte[] photoBytes); in cacheBitmap() argument
1219 public void cacheBitmap(Uri photoUri, Bitmap bitmap, byte[] photoBytes) { in cacheBitmap() argument
1225 BitmapHolder holder = new BitmapHolder(photoBytes, smallerExtent); in cacheBitmap()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java504 final byte[] photoBytes = mContactData.getThumbnailPhotoBinaryData(); in onAggregationSuggestionChange()
505 if (photoBytes != null) { in onAggregationSuggestionChange()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java7556 private void writePhotoAsync(final Uri uri, final byte[] photoBytes) throws Exception { in writePhotoAsync() argument
7563 os.write(photoBytes); in writePhotoAsync()