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.java109 * <li>Either {@link ContactInfo#photoBytes} or {@link ContactInfo#photo} is non-null -
111 * <li>Both {@link ContactInfo#photoBytes} and {@link ContactInfo#photo} are null -
207 byte[] photoBytes = cursor.getBlob(PHOTO_PHOTO_COLUMN);
208 if (photoBytes == null) {
219 Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, photoBytes.length);
224 // overwrite existing photoBytes-less result
225 results.put(email, new ContactInfo(prevResult.contactUri, photoBytes));
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DPhotoEditorView.java105 final byte[] photoBytes = values.getAsByteArray(Photo.PHOTO);
106 if (photoBytes != null) {
107 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0,
108 photoBytes.length);
/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.java2918 byte[] photoBytes = values.getAsByteArray(StreamItemPhotos.PHOTO);
2919 if (photoBytes == null) {
2927 photoBytes, getMaxDisplayPhotoDim(), getMaxThumbnailDim(), true);
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDetailPhotoSetter.java54 byte[] photoBytes, boolean expandPhotoOnClick) {
58 mPhotoBytes = photoBytes;
53 PhotoClickListener(Context context, Contact contactData, Bitmap photoBitmap, byte[] photoBytes, boolean expandPhotoOnClick) argument
/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/Contacts/src/com/android/contacts/activities/
H A DPhotoSelectionActivity.java259 * @param photoBytes The bytes for the current photo (may be null, in which case the default
270 byte[] photoBytes, Rect photoBounds, RawContactDeltaList delta, boolean isProfile,
273 if (photoUri != null && photoBitmap != null && photoBytes != null) {
269 buildIntent(Context context, Uri photoUri, Bitmap photoBitmap, byte[] photoBytes, Rect photoBounds, RawContactDeltaList delta, boolean isProfile, boolean isDirectoryContact, boolean expandPhotoOnClick) argument
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
H A DContactResolver.java205 final byte[] photo = contactInfo.photoBytes;
/packages/apps/ContactsCommon/src/com/android/contacts/common/
H A DContactPhotoManager.java542 * @param photoBytes The bytes that were parsed to create the bitmap.
544 public abstract void cacheBitmap(Uri photoUri, Bitmap bitmap, byte[] photoBytes); argument
1172 public void cacheBitmap(Uri photoUri, Bitmap bitmap, byte[] photoBytes) { argument
1178 BitmapHolder holder = new BitmapHolder(photoBytes, smallerExtent);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsProvider2Test.java6704 private void writePhotoAsync(final Uri uri, final byte[] photoBytes) throws Exception { argument
6711 os.write(photoBytes);

Completed in 296 milliseconds