Lines Matching defs:blob
548 // Special case: zero blob size means zero sized (NULL) metadata.
555 ALOGE("%s: metadata blob is malformed, blobSize(%zu) should be larger than alignment(%zu)",
562 // NOTE: this doesn't make sense to me. shouldn't the blob
565 ReadableBlob blob;
566 // arg1 = metadata (blob)
568 if ((err = data.readBlob(blobSize, &blob)) != OK) {
569 ALOGE("%s: Failed to read metadata blob (sized %zu). Possible "
575 // arg2 = offset (blob)
576 // Must be after blob since we don't know offset until after writeBlob.
591 const uintptr_t metadataStart = reinterpret_cast<uintptr_t>(blob.data()) + offset;
604 blob.release();
630 * | arg1: blob |
647 * Always make the blob size sufficiently larger, as we need put alignment
648 * padding and metadata into the blob. Since we don't know the alignment
661 * arg1 = metadata (blob).
663 * The blob size is the sum of front padding size, metadata size and back padding
666 * The blob layout is:
667 * |------------------------------------|<----Start address of the blob (unaligned).
680 * |------------------------------------|<----End address of blob.
681 * (Blob start address + blob size).
683 WritableBlob blob;
685 res = data.writeBlob(blobSize, false, &blob);
689 const uintptr_t metadataStart = ALIGN_TO(blob.data(), alignment);
690 offset = metadataStart - reinterpret_cast<uintptr_t>(blob.data());
699 ALOGW("%s: Failed to validate metadata %p before writing blob",
704 blob.release();