Lines Matching defs:bytes
205 final byte[] bytes;
211 public BitmapHolder(byte[] bytes) {
212 this.bytes = bytes;
220 * An LRU cache for bitmap holders. The cache contains bytes for photos just
234 * them from bytes (the bytes are stored in {@link #mBitmapHolderCache}.
275 return value.bytes != null ? value.bytes.length : 0;
352 if (holder.bytes == null) {
357 // Optionally decode bytes into a bitmap
374 * If necessary, decodes bytes stored in the holder to Bitmap. As long as the
379 byte[] bytes = holder.bytes;
380 if (bytes == null || bytes.length == 0) {
394 Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length, null);
500 private void cacheBitmap(Object key, byte[] bytes, boolean preloading) {
501 BitmapHolder holder = new BitmapHolder(bytes);
692 Log.v(TAG, "Preloaded " + count + " photos. Cached bytes: "
769 byte[] bytes = cursor.getBlob(1);
770 cacheBitmap(id, bytes, preloading);