Lines Matching refs:blob
996 // Read the bitmap blob.
998 android::Parcel::ReadableBlob blob;
999 android::status_t status = p->readBlob(size, &blob);
1002 doThrowRE(env, "Could not read bitmap blob.");
1008 if (blob.fd() >= 0 && (blob.isMutable() || !isMutable) && (size >= ASHMEM_BITMAP_MIN_SIZE)) {
1010 ALOGD("Bitmap.createFromParcel: mapped contents of %s bitmap from %s blob "
1013 blob.isMutable() ? "mutable" : "immutable",
1018 int dupFd = dup(blob.fd());
1021 blob.release();
1023 doThrowRE(env, "Could not allocate dup blob fd.");
1029 ctable, dupFd, const_cast<void*>(blob.data()), !isMutable);
1033 blob.release();
1038 // Clear the blob handle, don't release it.
1039 blob.clear();
1042 if (blob.fd() >= 0) {
1044 "from immutable blob (fds %s)",
1047 ALOGD("Bitmap.createFromParcel: copied contents from %s blob "
1049 blob.isMutable() ? "mutable" : "immutable",
1058 blob.release();
1063 memcpy(bitmap->getPixels(), blob.data(), size);
1066 // Release the blob handle.
1067 blob.release();
1117 "immutable blob (fds %s)",
1123 doThrowRE(env, "Could not write bitmap blob file descriptor.");
1129 // Copy the bitmap to a new blob.
1132 ALOGD("Bitmap.writeToParcel: copying %s bitmap into new %s blob (fds %s)",
1139 android::Parcel::WritableBlob blob;
1140 status = p->writeBlob(size, mutableCopy, &blob);
1142 doThrowRE(env, "Could not copy bitmap to parcel blob.");
1149 memset(blob.data(), 0, size);
1151 memcpy(blob.data(), pSrc, size);
1155 blob.release();