/system/chre/platform/slpi/ |
H A D | memory.cc | 29 void *memoryAlloc(size_t size) { argument 31 return SNS_OS_U_MALLOC(SNS_CHRE, size); 33 return malloc(size); 37 void *memoryAllocBigImage(size_t size) { argument 38 return malloc(size); 41 void *palSystemApiMemoryAlloc(size_t size) { argument 42 return malloc(size);
|
/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/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/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 | 25 void TestCreateRegion(size_t size, unique_fd &fd, int prot) { argument 26 fd = unique_fd(ashmem_create_region(nullptr, size)); 29 ASSERT_EQ(size, static_cast<size_t>(ashmem_get_size_region(fd))); 33 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { argument 34 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, off); 38 void TestProtDenied(const unique_fd &fd, size_t size, int prot) { argument 39 EXPECT_EQ(MAP_FAILED, mmap(nullptr, size, prot, MAP_SHARED, fd, 0)); 53 constexpr size_t size = PAGE_SIZE; local 54 uint8_t data[size]; 55 FillData(data, size); 75 constexpr size_t size = PAGE_SIZE; local 114 constexpr size_t size = PAGE_SIZE * 4; local 168 constexpr size_t size = PAGE_SIZE; local 196 constexpr size_t size = PAGE_SIZE; local 213 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/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/ |
H A D | bitops.h | 33 #define for_each_set_bit(bit,addr,size) for((bit) = find_first_bit((addr), (size)); (bit) < (size); (bit) = find_next_bit((addr), (size), (bit) + 1)) 34 #define for_each_set_bit_from(bit,addr,size) for((bit) = find_next_bit((addr), (size), (bit)); (bit) < (size); (bit) = find_next_bit((addr), (size), (bit) + 1))
|
/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/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/ |
H A D | bitops.h | 19 #define for_each_set_bit(bit, addr, size) \ 20 for ((bit) = find_first_bit((addr), (size)); \ 21 (bit) < (size); \ 22 (bit) = find_next_bit((addr), (size), (bit) + 1)) 25 #define for_each_set_bit_from(bit, addr, size) \ 26 for ((bit) = find_next_bit((addr), (size), (bit)); \ 27 (bit) < (size); \ 28 (bit) = find_next_bit((addr), (size), (bit) + 1)) 94 find_first_bit(const unsigned long *addr, unsigned long size) argument 100 while (size 120 find_next_bit(const unsigned long *addr, unsigned long size, unsigned long offset) 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/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...] |
H A D | exit_test.cpp | 32 for (size_t size : allocationSizes) { 34 SCOPED_TRACE(::testing::Message() << "size " << size); 38 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); 50 for (size_t size : allocationSizes) { 52 SCOPED_TRACE(::testing::Message() << "size " << size); 56 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, size, 0, heapMask, 0, &handle_fd)); 68 for (size_t size : allocationSizes) { 71 SCOPED_TRACE(::testing::Message() << "size " << siz [all...] |
/system/bt/osi/include/ |
H A D | allocator.h | 25 typedef void* (*alloc_fn)(size_t size); 40 void* osi_malloc(size_t size); 41 void* osi_calloc(size_t size);
|