Home
last modified time | relevance | path

Searched refs:compressed (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/util/
DImageViewDrawableSetter.java82 protected Bitmap setCompressedImage(byte[] compressed) { in setCompressedImage() argument
86 } else if (mPreviousDrawable != null && Arrays.equals(mCompressed, compressed)) { in setCompressedImage()
94 final Drawable newDrawable = (compressed == null) in setCompressedImage()
96 : decodedBitmapDrawable(compressed); in setCompressedImage()
99 mCompressed = compressed; in setCompressedImage()
144 private BitmapDrawable decodedBitmapDrawable(byte[] compressed) { in decodedBitmapDrawable() argument
146 Bitmap bitmap = BitmapFactory.decodeByteArray(compressed, 0, compressed.length); in decodedBitmapDrawable()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoEditorView.java156 final byte[] compressed = ContactPhotoUtils.compressBitmap(scaled); in setPhotoBitmap()
157 if (compressed != null) mEntry.put(Photo.PHOTO, compressed); in setPhotoBitmap()
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java187 final byte[] compressed = ContactPhotoUtils.compressBitmap(scaled); in saveContact()
188 if (compressed == null) { in saveContact()
204 values.put(Photo.PHOTO, compressed); in saveContact()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java216 final boolean compressed = b.compress(Bitmap.CompressFormat.JPEG, quality, baos); in getCompressedBytes()
221 if (!compressed) { in getCompressedBytes()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java4427 byte[] compressed = null; in getCompressedAlbumArt()
4435 compressed = scanner.extractAlbumArt(pfd.getFileDescriptor()); in getCompressedAlbumArt()
4447 if (compressed == null && path != null) { in getCompressedAlbumArt()
4500 compressed = new byte[(int)file.length()]; in getCompressedAlbumArt()
4504 stream.read(compressed); in getCompressedAlbumArt()
4506 compressed = null; in getCompressedAlbumArt()
4519 return compressed; in getCompressedAlbumArt()
4565 boolean need_to_recompress, Uri out, byte[] compressed, Bitmap bm) { in writeAlbumArt() argument
4573 outstream.write(compressed); in writeAlbumArt()
4603 byte[] compressed = getCompressedAlbumArt(getContext(), d.path); in makeThumbInternal()
[all …]