Searched defs:align (Results 1 - 8 of 8) sorted by relevance

/system/core/include/utils/
H A DFlattenable.h32 static size_t align(size_t size) { function in class:android::FlattenableUtils
38 static size_t align(void const*& buffer) { function in class:android::FlattenableUtils
46 static size_t align(void*& buffer) { function in class:android::FlattenableUtils
47 return align<N>( const_cast<void const*&>(buffer) );
/system/core/libcutils/tests/
H A DMemsetTest.cpp126 void RunMemsetTests(test_e test_type, uint32_t value, int align[][2], size_t num_aligns) { argument
147 buf.get()+FENCEPOST_LENGTH, align[i][0], align[i][1]));
159 << "Failed size " << len << " align " << align[i][0] << " " << align[i][1] << "\n"; local
/system/core/libion/
H A Dion.c61 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, argument
67 .align = align,
142 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask, argument
147 ret = ion_alloc(fd, len, align, heap_mask, flags, &handle);
H A Dion_test.c33 size_t len = 1024*1024, align = 0; variable
49 ret = ion_alloc(*fd, len, align, heap_mask, alloc_flags, handle);
108 _ion_alloc_test(len, align, flags, &fd, &handle);
227 {"align", required_argument, 0, 'g'},
241 align = atol(optarg);
272 printf("test %d, len %zu, align %zu, map_flags %d, prot %d, heap_mask %d,"
273 " alloc_flags %d\n", test, len, align, map_flags, prot,
/system/core/libion/kernel-headers/linux/
H A Dion.h47 size_t align; member in struct:ion_allocation_data
/system/core/libion/original-kernel-headers/linux/
H A Dion.h78 * @align: required alignment of the allocation
88 size_t align; member in struct:ion_allocation_data
/system/extras/zram-perf/
H A Dzram-perf.cpp33 AlignedAlloc(size_t size, size_t align) { argument
34 posix_memalign(&m_ptr, align, size);
/system/core/libmemunreachable/
H A DAllocator.cpp121 static void* MapAligned(size_t size, size_t align) { argument
127 // Over-allocate enough to align
128 size_t map_size = size + align - kPageSize;
141 std::align(align, size, aligned_ptr, aligned_size);

Completed in 98 milliseconds