/system/bt/hci/src/ |
H A D | buffer_allocator.cc | 24 static void* buffer_alloc(size_t size) { argument 25 CHECK(size <= BT_DEFAULT_BUFFER_SIZE); 26 return osi_malloc(size);
|
/system/extras/simpleperf/nonlinux_support/include/linux/ |
H A D | ioctl.h | 18 #define __IOR(type, nr, size) 19 #define __IOW(type, nr, size)
|
/system/bt/osi/src/ |
H A D | allocator.cc | 28 size_t size = strlen(str) + 1; // + 1 for the null terminator local 29 size_t real_size = allocation_tracker_resize_for_canary(size); 34 allocation_tracker_notify_alloc(alloc_allocator_id, ptr, size)); 37 memcpy(new_string, str, size); 42 size_t size = strlen(str); local 43 if (len < size) size = len; 45 size_t real_size = allocation_tracker_resize_for_canary(size + 1); 50 allocation_tracker_notify_alloc(alloc_allocator_id, ptr, size + 1)); 53 memcpy(new_string, str, size); 58 osi_malloc(size_t size) argument 65 osi_calloc(size_t size) argument [all...] |
/system/chre/platform/linux/ |
H A D | memory.cc | 23 void *memoryAlloc(size_t size) { argument 24 return malloc(size); 27 void *palSystemApiMemoryAlloc(size_t size) { argument 28 return malloc(size);
|
/system/core/demangle/ |
H A D | demangle_fuzzer.cpp | 26 extern "C" void LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { argument 27 std::vector<char> data_str(size + 1); 28 memcpy(data_str.data(), data, size); 29 data_str[size] = '\0'; 33 if (size != 0 && data_str[0] != '\0' && demangled_name.empty()) {
|
/system/core/libcutils/arch-mips/ |
H A D | android_memset.c | 36 void android_memset16(uint16_t* dst, uint16_t value, size_t size) argument 39 size >>= 1; 40 while (size--) 44 size >>= 1; 45 if (((uintptr_t)dst & 2) && size) { 48 size--; 53 android_memset32((uint32_t*) dst, value32, size<<1); 54 if (size & 1) { 55 dst[size-1] = value; /* fill unpaired last elem */ 63 void android_memset32(uint32_t* dst, uint32_t value, size_t size) argument [all...] |
/system/media/audio_utils/tests/ |
H A D | channels_tests.cpp | 31 void checkMonotone(const T *ary, size_t size) argument 33 for (size_t i = 1; i < size; ++i) { 39 void checkUnsignedMonotoneOrZero(const T *ary, size_t size) argument 41 if (size == 0) return; 44 for (size_t i = 1; i < size; ++i) { 54 EXPECT_EQ(c1.size(), c2.size()); 55 EXPECT_EQ(0, memcmp(c1.data(), c2.data(), sizeof(c1[0]) * std::min(c1.size(), c2.size()))); 59 constexpr size_t size local 95 constexpr size_t size = 65536; local [all...] |
/system/extras/memcpy-perf/ |
H A D | test-funcs.cpp | 3 void __attribute__((noinline)) memcpy_noinline(void *dst, void *src, size_t size) argument 5 memcpy(dst,src,size); 8 void __attribute__((noinline)) memset_noinline(void *dst, int value, size_t size) argument 10 memset(dst, value, size); 13 uint64_t __attribute__((noinline)) sum(volatile void *src, size_t size) argument 17 size_t len = size / sizeof(uint64_t);
|
/system/media/audio_utils/include/audio_utils/ |
H A D | string.h | 36 /** similar to audio_utils_strlcpy_zerofill for fixed size destination string. */ 37 template <size_t size> 38 inline size_t audio_utils_strlcpy_zerofill(char (&dst)[size], const char *src) { 39 return audio_utils_strlcpy_zerofill(dst, src, size); 42 /** similar to strlcpy for fixed size destination string. */ 43 template <size_t size> 44 inline size_t audio_utils_strlcpy(char (&dst)[size], const char *src) { 45 return strlcpy(dst, src, size);
|
/system/connectivity/wifilogd/tests/ |
H A D | byte_buffer_unittest.cpp | 44 buffer_.AppendOrDie(kSmallestMessage.data(), kSmallestMessage.size()); 48 buffer_.AppendOrDie(kLargestMessage.data(), kLargestMessage.size()); 54 buffer_.AppendOrDie(message1.data(), message1.size()); 55 buffer_.AppendOrDie(message2.data(), message2.size()); 58 EXPECT_EQ(0, std::memcmp(buffer_.data(), expected.data(), expected.size())); 63 buffer_.AppendOrDie(message1.data(), message1.size()); 66 ASSERT_NE(buffer_.size(), copy.size()); 69 ASSERT_EQ(buffer_.size(), copy.size()); [all...] |
/system/core/libcutils/tests/ |
H A D | AshmemTest.cpp | 32 void TestCreateRegion(size_t size, unique_fd &fd, int prot) { argument 33 fd = unique_fd(ashmem_create_region(nullptr, size)); 36 ASSERT_EQ(size, static_cast<size_t>(ashmem_get_size_region(fd))); 40 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { argument 43 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, off); 47 void TestProtDenied(const unique_fd &fd, size_t size, int prot) { argument 50 EXPECT_EQ(MAP_FAILED, mmap(nullptr, size, prot, MAP_SHARED, fd, 0)); 66 constexpr size_t size = PAGE_SIZE; local 67 uint8_t data[size]; 68 FillData(data, size); 88 constexpr size_t size = PAGE_SIZE; local 132 constexpr size_t size = PAGE_SIZE * 4; local 187 constexpr size_t size = PAGE_SIZE; local 215 constexpr size_t size = PAGE_SIZE; local 236 constexpr size_t size = PAGE_SIZE; local [all...] |
/system/bt/bta/include/ |
H A D | bta_jv_co.h | 45 extern int bta_co_rfc_data_outgoing_size(uint32_t rfcomm_slot_id, int* size); 47 uint16_t size);
|
/system/chre/util/include/chre/util/ |
H A D | container_support.h | 38 * @param size the size of the allocation to make. 41 inline void *memoryAlloc(size_t size) { argument 42 return chreHeapAlloc(static_cast<uint32_t>(size));
|
/system/chre/platform/include/chre/platform/ |
H A D | memory.h | 28 void *memoryAlloc(size_t size);
|
/system/chre/platform/shared/include/chre/platform/shared/ |
H A D | pal_system_api.h | 26 void *palSystemApiMemoryAlloc(size_t size);
|
/system/chre/platform/slpi/include/chre/platform/slpi/ |
H A D | memory.h | 28 void *memoryAllocBigImage(size_t size);
|
/system/core/include/cutils/ |
H A D | memory.h | 27 /* size is given in bytes and must be multiple of 2 */ 28 void android_memset16(uint16_t* dst, uint16_t value, size_t size); 30 /* size is given in bytes and must be multiple of 4 */ 31 void android_memset32(uint32_t* dst, uint32_t value, size_t size); 35 size_t strlcpy(char *dst, const char *src, size_t size);
|
/system/core/libcutils/include/cutils/ |
H A D | memory.h | 27 /* size is given in bytes and must be multiple of 2 */ 28 void android_memset16(uint16_t* dst, uint16_t value, size_t size); 30 /* size is given in bytes and must be multiple of 4 */ 31 void android_memset32(uint32_t* dst, uint32_t value, size_t size); 35 size_t strlcpy(char *dst, const char *src, size_t size);
|
/system/core/libcutils/include_vndk/cutils/ |
H A D | memory.h | 27 /* size is given in bytes and must be multiple of 2 */ 28 void android_memset16(uint16_t* dst, uint16_t value, size_t size); 30 /* size is given in bytes and must be multiple of 4 */ 31 void android_memset32(uint32_t* dst, uint32_t value, size_t size); 35 size_t strlcpy(char *dst, const char *src, size_t size);
|
/system/core/libutils/ |
H A D | JenkinsHash.cpp | 18 * optimized for code size and portability, rather than raw speed. But speed 37 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size) { argument 38 if (size > UINT32_MAX) { 41 hash = JenkinsHashMix(hash, (uint32_t)size); 43 for (i = 0; i < (size & -4); i += 4) { 47 if (size & 3) { 49 data |= ((size & 3) > 1) ? (bytes[i+1] << 8) : 0; 50 data |= ((size & 3) > 2) ? (bytes[i+2] << 16) : 0; 56 uint32_t JenkinsHashMixShorts(uint32_t hash, const uint16_t* shorts, size_t size) { argument 57 if (size > UINT32_MA [all...] |
/system/extras/tests/pagingtest/ |
H A D | pagingtest.h | 7 #define mincore_vec_len(size) (((size) + sysconf(_SC_PAGE_SIZE) - 1) / sysconf(_SC_PAGE_SIZE)) 11 int create_tmp_file(char *filename, off_t size); 12 unsigned char *alloc_mincore_vec(size_t size); 13 bool check_caching(void *buf, unsigned char *vec, size_t size, bool is_cached);
|
/system/chre/platform/slpi/ |
H A D | memory.cc | 40 void *memoryAlloc(size_t size) { argument 43 return SNS_OS_U_MALLOC(SNS_CHRE, size); 45 void *ptr = sns_malloc(SNS_HEAP_CHRE_ISLAND, size); 48 // Must exclude size 0 as clients may not explicitly free memory of size 0, 50 if (ptr == nullptr && size != 0) { 54 ptr = memoryAllocBigImage(size); 67 return malloc(size); 71 void *memoryAllocBigImage(size_t size) { argument 72 return malloc(size); 75 palSystemApiMemoryAlloc(size_t size) argument [all...] |
/system/core/logcat/ |
H A D | logpersist | 28 size=${size_default} 34 --size=*) size="${1#--size=}" ;; 35 --rotate-count=*) size="${1#--rotate-count=}" ;; 36 -n|--size|--rotate-count) size="${2}" ; shift ;; 42 echo "${progname%.*}.start [--size=<size_in_kb>] [--buffer=<buffers>] [--clear]" 54 if [ -z "${size}" -o "${size_default}" = "${size}" ]; the [all...] |
/system/libhidl/libhidlcache/ |
H A D | MemoryDealer.cpp | 49 explicit SimpleBestFitAllocator(size_t size); 52 size_t allocate(size_t size, uint32_t flags = 0); 54 size_t size() const; 62 chunk_t(size_t start, size_t size) : start(start), size(size), free(1) {} argument 64 size_t size : 28; member in struct:android::hardware::SimpleBestFitAllocator::chunk_t 73 ssize_t alloc(size_t size, uint32_t flags); 84 MemoryDealer::MemoryDealer(size_t size) : mAllocator(new SimpleBestFitAllocator(size)) {} argument 90 allocateOffset(size_t size) argument 109 SimpleBestFitAllocator(size_t size) argument 132 size_t SimpleBestFitAllocator::size() const { function in class:android::hardware::SimpleBestFitAllocator 136 allocate(size_t size, uint32_t flags) argument 151 alloc(size_t size, uint32_t flags) argument 263 size_t size = 0; local 312 allocate(size_t size) argument [all...] |
/system/core/libion/tests/ |
H A D | map_test.cpp | 32 for (size_t size : allocationSizes) { 34 SCOPED_TRACE(::testing::Message() << "size " << size); 37 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); 42 ASSERT_EQ(0, ion_map(m_ionFd, handle, size, PROT_READ | PROT_WRITE, MAP_SHARED, 0, &ptr, &map_fd)); 50 memset(ptr, 0xaa, size); 52 ASSERT_EQ(0, munmap(ptr, size)); 61 for (size_t size : allocationSizes) { 63 SCOPED_TRACE(::testing::Message() << "size " << size); [all...] |