Lines Matching refs:blob
460 // Special case: zero blob size means zero sized (NULL) metadata.
467 ALOGE("%s: metadata blob is malformed, blobSize(%zu) should be larger than alignment(%zu)",
474 // NOTE: this doesn't make sense to me. shouldn't the blob
477 ReadableBlob blob;
478 // arg1 = metadata (blob)
480 if ((err = data.readBlob(blobSize, &blob)) != OK) {
481 ALOGE("%s: Failed to read metadata blob (sized %zu). Possible "
487 // arg2 = offset (blob)
488 // Must be after blob since we don't know offset until after writeBlob.
503 const uintptr_t metadataStart = reinterpret_cast<uintptr_t>(blob.data()) + offset;
516 blob.release();
542 * | arg1: blob |
559 * Always make the blob size sufficiently larger, as we need put alignment
560 * padding and metadata into the blob. Since we don't know the alignment
573 * arg1 = metadata (blob).
575 * The blob size is the sum of front padding size, metadata size and back padding
578 * The blob layout is:
579 * |------------------------------------|<----Start address of the blob (unaligned).
592 * |------------------------------------|<----End address of blob.
593 * (Blob start address + blob size).
595 WritableBlob blob;
597 res = data.writeBlob(blobSize, false, &blob);
601 const uintptr_t metadataStart = ALIGN_TO(blob.data(), alignment);
602 offset = metadataStart - reinterpret_cast<uintptr_t>(blob.data());
611 ALOGW("%s: Failed to validate metadata %p before writing blob",
616 blob.release();