Lines Matching defs:blob
449 // Special case: zero blob size means zero sized (NULL) metadata.
456 ALOGE("%s: metadata blob is malformed, blobSize(%zu) should be larger than alignment(%zu)",
463 // NOTE: this doesn't make sense to me. shouldn't the blob
466 ReadableBlob blob;
467 // arg1 = metadata (blob)
469 if ((err = data.readBlob(blobSize, &blob)) != OK) {
470 ALOGE("%s: Failed to read metadata blob (sized %zu). Possible "
476 // arg2 = offset (blob)
477 // Must be after blob since we don't know offset until after writeBlob.
492 const uintptr_t metadataStart = reinterpret_cast<uintptr_t>(blob.data()) + offset;
505 blob.release();
531 * | arg1: blob |
548 * Always make the blob size sufficiently larger, as we need put alignment
549 * padding and metadata into the blob. Since we don't know the alignment
562 * arg1 = metadata (blob).
564 * The blob size is the sum of front padding size, metadata size and back padding
567 * The blob layout is:
568 * |------------------------------------|<----Start address of the blob (unaligned).
581 * |------------------------------------|<----End address of blob.
582 * (Blob start address + blob size).
584 WritableBlob blob;
586 res = data.writeBlob(blobSize, &blob);
590 const uintptr_t metadataStart = ALIGN_TO(blob.data(), alignment);
591 offset = metadataStart - reinterpret_cast<uintptr_t>(blob.data());
600 ALOGW("%s: Failed to validate metadata %p before writing blob",
605 blob.release();