Home
last modified time | relevance | path

Searched refs:align (Results 1 – 25 of 100) sorted by relevance

1234

/system/teeui/libteeui/include/teeui/
Dincfont.h24 .align 4
29 .align 1
32 .align 4;
/system/core/storaged/include/
Dstoraged.h39 #define IS_ALIGNED(x, align) (!((x) & ((align) - 1))) argument
40 #define ROUND_UP(x, align) (((x) + ((align) - 1)) & ~((align) - 1)) argument
/system/memory/libion/
Dion.c95 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, unsigned int flags, in ion_alloc() argument
102 .len = len, .align = align, .heap_id_mask = heap_mask, .flags = flags, in ion_alloc()
167 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask, unsigned int flags, in ion_alloc_fd() argument
185 ret = ion_alloc(fd, len, align, heap_mask, flags, &handle); in ion_alloc_fd()
Dion_test.c33 size_t len = 1024*1024, align = 0; variable
49 ret = ion_alloc(*fd, len, align, heap_mask, alloc_flags, handle); in _ion_alloc_test()
108 _ion_alloc_test(len, align, flags, &fd, &handle); in ion_map_test()
241 align = atol(optarg); in main()
273 " alloc_flags %d\n", test, len, align, map_flags, prot, in main()
/system/memory/libion/include/ion/
Dion.h33 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask,
35 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask,
/system/tools/hidl/
DDeathRecipientType.cpp77 void DeathRecipientType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument
78 *align = *size = 0; // this object should only be used in passthrough mode in getAlignmentAndSize()
DCompoundType.h125 void getAlignmentAndSize(size_t *align, size_t *size) const override;
132 size_t align; member
135 Layout() : offset(0), align(1), size(0) {} in Layout()
136 static size_t getPad(size_t offset, size_t align);
DCompoundType.cpp490 << layout.align in emitLayoutAsserts()
579 << layout.discriminator.align << "))) "; in emitSafeUnionTypeDeclarations()
1956 void CompoundType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument
1958 *align = layout.overall.align; in getAlignmentAndSize()
1972 &(discriminator.align), &(discriminator.size)); in getCompoundAlignmentAndSize()
1989 innerStruct.align = std::max(innerStruct.align, fieldAlign); in getCompoundAlignmentAndSize()
1994 innerStruct.align); in getCompoundAlignmentAndSize()
1998 innerStruct.align); in getCompoundAlignmentAndSize()
2008 overall.align = std::max(innerStruct.align, discriminator.align); in getCompoundAlignmentAndSize()
2009 overall.size += Layout::getPad(overall.size, overall.align); in getCompoundAlignmentAndSize()
[all …]
DVectorType.cpp381 size_t align, size; in emitJavaReaderWriter() local
382 getAlignmentAndSize(&align, &size); in emitJavaReaderWriter()
651 void VectorType::getAlignmentAndSizeStatic(size_t *align, size_t *size) { in getAlignmentAndSizeStatic() argument
652 *align = 8; // hidl_vec<T> in getAlignmentAndSizeStatic()
656 void VectorType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument
657 VectorType::getAlignmentAndSizeStatic(align, size); in getAlignmentAndSize()
DFmqType.cpp155 size_t *align, size_t *size) const { in getAlignmentAndSize() argument
156 *align = 8; // MQDescriptor<> in getAlignmentAndSize()
DHandleType.cpp182 void HandleType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument
183 *align = 8; // hidl_handle in getAlignmentAndSize()
/system/extras/memory_replay/tests/
DAllocTest.cpp33 EXPECT_EQ(0U, entry.u.align); in TEST()
53 EXPECT_EQ(0U, entry.u.align); in TEST()
116 EXPECT_EQ(16U, entry.u.align); in TEST()
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/
DFixedSize.rs35 #[repr(C, align(8))]
170 #[repr(C, align(8))]
253 #[repr(C, align(1))]
286 #[repr(C, u64, align(8))]
429 #[repr(C, align(1))]
447 #[repr(C, u8, align(1))]
491 #[repr(C, align(1))]
500 #[repr(C, u16, align(2))]
544 #[repr(C, align(1))]
553 #[repr(C, u64, align(8))]
[all …]
DByteEnum.rs10 #[repr(C, align(1))]
DLongEnum.rs10 #[repr(C, align(8))]
DDeprecatedEnum.rs11 #[repr(C, align(4))]
DBackendType.rs10 #[repr(C, align(1))]
DIntEnum.rs10 #[repr(C, align(4))]
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-rust-source/gen/android/aidl/tests/
DFixedSize.rs35 #[repr(C, align(8))]
170 #[repr(C, align(8))]
253 #[repr(C, align(1))]
286 #[repr(C, u64, align(8))]
429 #[repr(C, align(1))]
447 #[repr(C, u8, align(1))]
491 #[repr(C, align(1))]
500 #[repr(C, u16, align(2))]
544 #[repr(C, align(1))]
553 #[repr(C, u64, align(8))]
[all …]
DByteEnum.rs10 #[repr(C, align(1))]
DLongEnum.rs10 #[repr(C, align(8))]
DDeprecatedEnum.rs11 #[repr(C, align(4))]
DBackendType.rs10 #[repr(C, align(1))]
/system/tools/aidl/
Daidl_to_cpp_common.cpp526 size_t align = 1; in AlignmentOfDefinedType() local
530 if (*field_alignment > align) { in AlignmentOfDefinedType()
531 align = *field_alignment; in AlignmentOfDefinedType()
534 return align; in AlignmentOfDefinedType()
570 size_t AlignTo(size_t val, size_t align) { in AlignTo() argument
571 return (val + (align - 1)) & ~(align - 1); in AlignTo()
591 auto align = cpp::AlignmentOfDefinedType(defined_type, typenames); in SizeOfDefinedType() local
592 AIDL_FATAL_IF(align == std::nullopt, defined_type); in SizeOfDefinedType()
593 size_t tag_size = AlignTo(1, *align); in SizeOfDefinedType()
595 return AlignTo(size, *align) + tag_size; in SizeOfDefinedType()
/system/core/libutils/include/utils/
DFlattenable.h38 static size_t align(size_t size) { in align() function
44 static size_t align(void const*& buffer) { in align() function
52 static size_t align(void*& buffer) { in align() function

1234