/system/bt/hci/src/ |
H A D | buffer_allocator.c | 24 static void *buffer_alloc(size_t size) { argument 25 assert(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.c | 28 size_t size = strlen(str) + 1; // + 1 for the null terminator local 29 size_t real_size = allocation_tracker_resize_for_canary(size); 36 size); 40 memcpy(new_string, str, size); 45 size_t size = strlen(str); local 46 if (len < size) 47 size = len; 49 size_t real_size = allocation_tracker_resize_for_canary(size + 1); 56 size + 1); 60 memcpy(new_string, str, size); 65 osi_malloc(size_t size) argument 72 osi_calloc(size_t size) argument [all...] |
/system/bt/bta/include/ |
H A D | bta_jv_co.h | 46 extern int bta_co_rfc_data_outgoing_size(void *user_data, int *size); 47 extern int bta_co_rfc_data_outgoing(void *user_data, UINT8* buf, UINT16 size); 50 extern int bta_co_l2cap_data_outgoing_size(void *user_data, int *size); 51 extern int bta_co_l2cap_data_outgoing(void *user_data, UINT8* buf, UINT16 size);
|
/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/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/core/logcat/ |
H A D | logpersist | 26 size=${size_default} 32 --size=*) size="${1#--size=}" ;; 33 --rotate-count=*) size="${1#--rotate-count=}" ;; 34 -n|--size|--rotate-count) size="${2}" ; shift ;; 40 echo "${progname%.*}.start [--size=<size_in_kb>] [--buffer=<buffers>] [--clear]" 52 if [ -z "${size}" -o "${size_default}" = "${size}" ]; the [all...] |
/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/core/bootstat/ |
H A D | event_log_list_builder_test.cpp | 35 size_t size; local 36 builder.Release(&log, &size); 37 EXPECT_EQ(2U, size); 40 EXPECT_THAT(std::vector<uint8_t>(log_data, log_data + size), 57 size_t size; local 58 builder.Release(&log, &size); 59 EXPECT_EQ(7U, size); 62 EXPECT_THAT(std::vector<uint8_t>(log_data, log_data + size), 80 size_t size; local 81 builder.Release(&log, &size); 106 size_t size; local [all...] |
/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/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/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/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);
|
/system/update_engine/payload_generator/ |
H A D | xz_android.cc | 37 static SRes ReadStatic(void* p, void* buf, size_t* size) { argument 40 *size = std::min(*size, self->data_.size() - self->pos_); 41 memcpy(buf, self->data_.data() + self->pos_, *size); 42 self->pos_ += *size; 58 static size_t WriteStatic(void* p, const void* buf, size_t size) { argument 62 self->data_->reserve(self->data_->size() + size); 63 self->data_->insert(self->data_->end(), buffer, buffer + size); [all...] |
/system/core/libsparse/ |
H A D | sparse_crc32.h | 26 uint32_t sparse_crc32(uint32_t crc, const void *buf, size_t size);
|
/system/extras/perfprofd/quipper/ |
H A D | address_mapper.h | 39 // e.g. Given a mapped region with base=0x4000 and size=0x2000 mapped with 64 return mappings_.size(); 80 uint64_t size; member in struct:quipper::AddressMapper::MappedRange 90 return (real_addr <= range.real_addr + range.size - 1) && 91 (real_addr + size - 1 >= range.real_addr); 97 (real_addr + size - 1 >= range.real_addr + range.size - 1); 104 (real_addr + size - 1 > range.real_addr + range.size - 1); 109 return (addr >= real_addr && addr <= real_addr + size [all...] |
H A D | address_mapper.cc | 16 const uint64_t size, 18 return MapWithID(real_addr, size, kuint64max, 0, remove_existing_mappings); 22 const uint64_t size, 28 range.size = size; 32 if (size == 0) { 38 if (real_addr + size - 1 != kuint64max && 39 !(real_addr + size > real_addr)) { 42 << " with size " << std::hex << size << " overflow local 15 Map(const uint64_t real_addr, const uint64_t size, const bool remove_existing_mappings) argument 21 MapWithID(const uint64_t real_addr, const uint64_t size, const uint64_t id, const uint64_t offset_base, bool remove_existing_mappings) argument 139 << " with size " << std::hex << size; local [all...] |
/system/extras/tests/memtest/ |
H A D | memtest.cpp | 41 " copy_bandwidth [--size BYTES_TO_COPY]\n" 42 " write_bandwidth [--size BYTES_TO_WRITE]\n" 43 " read_bandwidth [--size BYTES_TO_COPY]\n" 44 " per_core_bandwidth [--size BYTES]\n" 49 " multithread_bandwidth [--size BYTES]\n" 113 size_t size = 0x40000000; local 114 while (size) { 115 void* addr = malloc(size); 117 printf("size = %9zd failed\n", size); 137 size_t size = i==0 ? 4096 : 48*1024*1024; // 48 MB local [all...] |
/system/core/libmemunreachable/ |
H A D | bionic.h | 29 extern int malloc_iterate(uintptr_t base, size_t size, 30 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg);
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
H A D | packet.cc | 35 if (header.back() != payload.size()) 49 return header_.size(); 54 return 1 + header_.size() + payload_.size(); 62 return payload_.size();
|
/system/extras/tests/sdcard/ |
H A D | sysutil.cpp | 74 // @param size The size of the buffer pointed by str. Must be >= 1. 77 int readStringFromFile(const char *filename, char *const start, size_t size, bool must_exist=true) argument 79 if (NULL == start || size == 0) 99 --size; // reserve space for trailing '\0' 101 while (size > 0 && !error && !eof && attempts < kMaxAttempts) 105 s = read(fd, end, size); 122 size -= s; 161 size_t size = len; local 165 while (size > 235 kernelVersion(char *str, size_t size) argument 285 schedFeatures(char *str, size_t size) argument 447 size_t size = sizeof(pid); local 525 size_t size; local [all...] |
/system/keymaster/ |
H A D | serializable.cpp | 38 bool copy_from_buf(const uint8_t** buf_ptr, const uint8_t* end, void* dest, size_t size) { argument 39 if (__pval(*buf_ptr) + size < __pval(*buf_ptr)) // Pointer wrap check 42 if (end < *buf_ptr + size) 44 memcpy(dest, *buf_ptr, size); 45 *buf_ptr += size; 49 bool copy_size_and_data_from_buf(const uint8_t** buf_ptr, const uint8_t* end, size_t* size, argument 51 if (!copy_uint32_from_buf(buf_ptr, end, size)) 54 if (__pval(*buf_ptr) + *size < __pval(*buf_ptr)) // Pointer wrap check 57 if (*buf_ptr + *size > end) 60 if (*size 70 reserve(size_t size) argument 86 Reinitialize(size_t size) argument [all...] |