Searched refs:size (Results 1 - 25 of 1001) sorted by relevance

1234567891011>>

/system/bt/hci/src/
H A Dbuffer_allocator.cc24 static void* buffer_alloc(size_t size) { argument
25 CHECK(size <= BT_DEFAULT_BUFFER_SIZE);
26 return osi_malloc(size);
/system/chre/platform/shared/
H A Dmemory.cc23 void *memoryAlloc(size_t size) { argument
24 return malloc(size);
/system/extras/simpleperf/nonlinux_support/include/linux/
H A Dioctl.h18 #define __IOR(type, nr, size)
19 #define __IOW(type, nr, size)
/system/bt/osi/src/
H A Dallocator.cc28 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/core/libcutils/tests/
H A DAshmemTest.cpp24 void TestCreateRegion(size_t size, unique_fd &fd, int prot) { argument
25 fd = unique_fd(ashmem_create_region(nullptr, size));
28 ASSERT_EQ(size, static_cast<size_t>(ashmem_get_size_region(fd)));
32 void TestMmap(const unique_fd &fd, size_t size, int prot, void **region) { argument
33 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, 0);
37 void TestProtDenied(const unique_fd &fd, size_t size, int prot) { argument
38 EXPECT_EQ(MAP_FAILED, mmap(nullptr, size, prot, MAP_SHARED, fd, 0));
48 constexpr size_t size = PAGE_SIZE; local
49 uint8_t data[size];
50 FillData(data, size);
70 constexpr size_t size = PAGE_SIZE; local
106 constexpr size_t size = PAGE_SIZE; local
122 constexpr size_t size = PAGE_SIZE; local
139 constexpr size_t size = PAGE_SIZE; local
[all...]
/system/core/libcutils/arch-mips/
H A Dandroid_memset.c36 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 Dtest-funcs.cpp3 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 Dbyte_buffer_unittest.cpp44 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...]
H A Dmemory_reader_unittest.cpp32 MemoryReader memory_reader(buffer.data(), buffer.size());
38 MemoryReader memory_reader(buffer.data(), buffer.size());
50 MemoryReader reader1{buffer.data(), buffer.size()};
58 EXPECT_GT(reader1.size(), reader2.size());
64 MemoryReader reader1{buffer.data(), buffer.size()};
72 EXPECT_GT(reader1.size(), reader2.size());
100 MemoryReader memory_reader(buf.data(), buf.size());
111 MemoryReader memory_reader(buffer.data(), buffer.size());
[all...]
/system/bt/bta/include/
H A Dbta_jv_co.h45 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 Dbitops.h33 #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/include/cutils/
H A Dmemory.h27 /* 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 Dmemory.h27 /* 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 Dmemory.h27 /* 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 DJenkinsHash.cpp18 * 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 Dpagingtest.h7 #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 Dbitops.h19 #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 Dlogpersist28 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 Dmap_test.cpp32 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 Dexit_test.cpp32 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 Dallocator.h25 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 Dxz_android.cc37 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 Dsparse_crc32.h26 uint32_t sparse_crc32(uint32_t crc, const void *buf, size_t size);
/system/extras/perfprofd/quipper/
H A Daddress_mapper.h39 // 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...]
/system/libhidl/transport/allocator/1.0/
H A DIAllocator.hal27 * @param size Size of memory to allocate in bytes.
31 allocate(uint64_t size) generates (bool success, memory mem);
36 * @param size Size of memory to allocate in bytes.
41 batchAllocate(uint64_t size, uint64_t count) generates (bool success, vec<memory> batch);

Completed in 710 milliseconds

1234567891011>>