Lines Matching refs:alignment
28 #define ALIGN_TO(val, alignment) \ argument
29 (((uintptr_t)(val) + ((alignment) - 1)) & ~((alignment) - 1))
546 const size_t alignment = get_camera_metadata_alignment(); in readFromParcel() local
554 if (blobSize <= alignment) { in readFromParcel()
556 __FUNCTION__, blobSize, alignment); in readFromParcel()
560 const size_t metadataSize = blobSize - alignment; in readFromParcel()
584 if (offset >= alignment) { in readFromParcel()
586 __FUNCTION__, blobSize, alignment); in readFromParcel()
595 __FUNCTION__, alignment, tmp, offset); in readFromParcel()
652 const size_t alignment = get_camera_metadata_alignment(); in writeToParcel() local
653 const size_t blobSize = metadataSize + alignment; in writeToParcel()
689 const uintptr_t metadataStart = ALIGN_TO(blob.data(), alignment); in writeToParcel()
692 __FUNCTION__, alignment, in writeToParcel()