/system/libhwbinder/include/hwbinder/ |
H A D | Debug.h | 40 size_t alignment=0, bool cArrayStyle=false,
|
H A D | TextOutput.h | 103 inline HexDump& setAlignment(size_t alignment); 110 inline size_t alignment() const; 188 inline HexDump& HexDump::setAlignment(size_t alignment) { argument 189 mAlignment = alignment; return *this; 199 inline size_t HexDump::alignment() const { return mAlignment; } function in class:android::hardware::HexDump
|
/system/core/libcutils/tests/ |
H A D | MemsetTest.cpp | 90 // Return a pointer into the current buffer with the specified alignment. 91 static void *GetAlignedPtr(void *orig_ptr, int alignment, int or_mask) { argument 93 if (alignment > 0) { 94 // When setting the alignment, set it to exactly the alignment chosen. 97 ptr += alignment - (ptr & (alignment - 1)); 98 ptr |= alignment | or_mask;
|
/system/core/include/ziparchive/ |
H A D | zip_writer.h | 107 * entry will be aligned to the given alignment. 113 int32_t StartAlignedEntry(const char* path, size_t flags, uint32_t alignment); 124 uint32_t alignment);
|
/system/core/libziparchive/ |
H A D | zip_writer.cc | 66 // The alignment parameter is not a power of 2. 130 uint32_t alignment = 0; local 133 alignment = 4; 135 return StartAlignedEntryWithTime(path, flags, time_t(), alignment); 138 int32_t ZipWriter::StartAlignedEntry(const char* path, size_t flags, uint32_t alignment) { argument 139 return StartAlignedEntryWithTime(path, flags, time_t(), alignment); 143 uint32_t alignment = 0; local 146 alignment = 4; 148 return StartAlignedEntryWithTime(path, flags, time, alignment); 197 time_t time, uint32_t alignment) { 196 StartAlignedEntryWithTime(const char* path, size_t flags, time_t time, uint32_t alignment) argument [all...] |
/system/extras/simpleperf/ |
H A D | utils.h | 30 static inline uint64_t Align(uint64_t value, uint64_t alignment) { argument 31 return (value + alignment - 1) & ~(alignment - 1);
|
H A D | read_elf_test.cpp | 39 // Read build id from data starting from different alignment addresses. 47 for (size_t alignment = 0; alignment <= 3; ++alignment) { 48 char* start = data.data() + alignment;
|
/system/extras/micro_bench/ |
H A D | micro_bench.cpp | 47 // Default memory alignment of malloc. 101 // Allocate memory with a specific alignment and return that pointer. 102 // This function assumes an alignment value that is a power of 2. 103 // If the alignment is 0, then use the pointer returned by malloc. 104 uint8_t *getAlignedMemory(uint8_t *orig_ptr, int alignment, int or_mask) { argument 107 if (alignment > 0) { 108 // When setting the alignment, set it to exactly the alignment chosen. 111 ptr += alignment - (ptr & (alignment 121 allocateAlignedMemory(size_t size, int alignment, int or_mask) argument 165 getAlignmentIncrement(size_t size, int alignment) argument 173 getColdBuffer(int num_buffers, size_t incr, int alignment, int or_mask) argument [all...] |
/system/libhwbinder/ |
H A D | TextOutput.cpp | 68 val.singleLineCutoff(), val.alignment(), val.carrayStyle(),
|
/system/core/libcutils/ |
H A D | fs_config.c | 56 #define ALIGN(x, alignment) (((x) + ((alignment)-1)) & ~((alignment)-1))
|
/system/chre/host/msm/daemon/generated/ |
H A D | chre_slpi_skel.c | 155 #define _ALLOCATE(nErr, pal, size, alignment, pv) _TRY(nErr, _allocator_alloc(pal, __FILE_LINE__, size, alignment, (void**)&pv)) 157 #define _ALLOCATE(nErr, pal, size, alignment, pv) _TRY(nErr, _allocator_alloc(pal, 0, size, alignment, (void**)&pv)) 288 int32_t nativeSize; /*in the simple case its the same as wire size and alignment*/\ 336 //at the alignment requrements for the descriptor
|
H A D | chre_slpi_stub.c | 155 #define _ALLOCATE(nErr, pal, size, alignment, pv) _TRY(nErr, _allocator_alloc(pal, __FILE_LINE__, size, alignment, (void**)&pv)) 157 #define _ALLOCATE(nErr, pal, size, alignment, pv) _TRY(nErr, _allocator_alloc(pal, 0, size, alignment, (void**)&pv)) 288 int32_t nativeSize; /*in the simple case its the same as wire size and alignment*/\ 336 //at the alignment requrements for the descriptor
|
/system/media/camera/src/ |
H A D | camera_metadata.c | 35 #define ALIGN_TO(val, alignment) \ 36 (((uintptr_t)(val) + ((alignment) - 1)) & ~((alignment) - 1)) 111 * non-pointer type description in order to figure out the largest alignment 168 * The preferred alignment of a packet of camera metadata. In general, 406 size_t alignment; member in struct:__anon1884 410 .alignment = METADATA_ALIGNMENT 414 .alignment = ENTRY_ALIGNMENT 418 .alignment = DATA_ALIGNMENT 424 alignments[i].alignment); [all...] |
/system/chre/external/flatbuffers/include/flatbuffers/ |
H A D | flatbuffers.h | 763 /// @brief get the minimum alignment this buffer needs to be accessed 968 uoffset_t StartStruct(size_t alignment) { 969 Align(alignment); 978 // after it with "alignment" without padding. 979 void PreAlign(size_t len, size_t alignment) { 980 buf_.fill(PaddingBytes(GetSize() + len, alignment)); 1091 // alignment to be something different than what the element size would 1095 void ForceVectorAlignment(size_t len, size_t elemsize, size_t alignment) { argument 1096 PreAlign(len * elemsize, alignment); 1795 // Sadly, the exact alignment i [all...] |
/system/core/toolbox/ |
H A D | newfs_msdos.c | 264 u_int extra_res, alignment=0, set_res, set_spf, set_spc, tempx, attempts=0; local 559 * turn change the alignment. This should take at most 2 iterations, as 562 * be half of its previous size, and thus will not throw off alignment. 600 alignment = (bpb.res + bpb.bspf * bpb.nft) % bpb.spc; 601 extra_res += bpb.spc - alignment; 604 } while(opt_A && alignment != 0 && attempts < 2); 605 if (alignment != 0)
|