/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/core/base/ |
H A D | stringprintf_test.cpp | 24 size_t size = 0x00107e59; local 25 EXPECT_EQ("00107e59", android::base::StringPrintf("%08zx", size)); 26 EXPECT_EQ("0x00107e59", android::base::StringPrintf("0x%08zx", size));
|
/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...] |
H A D | histogram_logger.cpp | 35 size_t size; local 36 log_builder.Release(&log, &size); 38 android_bWriteLog(HISTOGRAM_LOG_TAG, log.get(), size);
|
/system/core/include/utils/ |
H A D | CallStack.h | 64 size_t size() const { return mFrameLines.size(); } function in class:android::CallStack
|
/system/core/libsparse/ |
H A D | sparse_crc32.c | 101 uint32_t sparse_crc32(uint32_t crc_in, const void *buf, int size) argument 107 while (size--)
|
/system/extras/ext4_utils/ |
H A D | crc16.c | 49 u16 ext4_crc16(u16 crc_in, const void *buf, int size) argument 54 while (size--)
|
H A D | contents.h | 25 unsigned long size; member in struct:dentry
|
/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/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...] |
H A D | SharedBuffer.cpp | 28 SharedBuffer* SharedBuffer::alloc(size_t size) argument 30 // Don't overflow if the combined size of the buffer / header is larger than 32 LOG_ALWAYS_FATAL_IF((size >= (SIZE_MAX - sizeof(SharedBuffer))), 33 "Invalid buffer size %zu", size); 35 SharedBuffer* sb = static_cast<SharedBuffer *>(malloc(sizeof(SharedBuffer) + size)); 41 sb->mSize = size; 59 memcpy(sb->data(), data(), size()); 70 // Don't overflow if the combined size of the new buffer / header is larger than 73 "Invalid buffer size [all...] |
H A D | SharedBuffer.h | 41 /*! allocate a buffer of size 'size' and acquire() it. 44 static SharedBuffer* alloc(size_t size); 59 //! get size of the buffer 60 inline size_t size() const; 68 //! get the size of a SharedBuffer object from its data 75 SharedBuffer* editResize(size_t size) const; 81 SharedBuffer* reset(size_t size) const; 110 "SharedBuffer has unexpected size"); 122 size_t SharedBuffer::size() cons function in class:android::SharedBuffer [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);
|
H A D | graph_memcpy.py | 14 plt.xlabel("size in bytes") 16 plt.title("size vs. bw") 21 size = [] variable 24 # size: 11430912, perf: 6.76051GB/s, iter: 5 26 size.append(float(line_split[0].split(":")[1])) 29 line, = ax.plot(size, perf, '-', linewidth=0.2, label=arg)
|
/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/connectivity/shill/ |
H A D | protobuf_lite_streams.cc | 56 int ProtobufLiteCopyingFileInputStream::Read(void* buffer, int size) { argument 57 return HANDLE_EINTR(read(fd_, buffer, size));
|
/system/core/init/ |
H A D | keychords.cpp | 39 size_t i, size; local 43 size = sizeof(*keychord) + svc->keycodes().size() * sizeof(keychord->keycodes[0]); 44 keychords = (input_keychord*) realloc(keychords, keychords_length + size); 55 keychord->count = svc->keycodes().size(); 58 for (i = 0; i < svc->keycodes().size(); i++) { 62 keychords_length += size;
|
/system/core/libcutils/ |
H A D | ashmem-host.c | 41 int ashmem_create_region(const char *ignored __unused, size_t size) argument 50 if (TEMP_FAILURE_RETRY(ftruncate(fd, size)) == -1) {
|
/system/core/libion/kernel-headers/linux/ |
H A D | ion_test.h | 27 __u64 size; member in struct:ion_test_rw_data
|
/system/core/libion/original-kernel-headers/linux/ |
H A D | ion_test.h | 25 * @ptr: a pointer to an area at least as large as size 27 * @size: size to read or write 33 __u64 size; member in struct:ion_test_rw_data
|
/system/keymaster/ |
H A D | android_keymaster_utils.cpp | 27 uint8_t* dup_buffer(const void* buf, size_t size) { argument 28 if (size >= kMaxDupBufferSize) 30 uint8_t* retval = new (std::nothrow) uint8_t[size]; 32 memcpy(retval, buf, size);
|
H A D | auth_encrypted_key_blob.cpp | 35 size_t size = 1 /* version byte */ + nonce.SerializedSize() + local 39 if (!key_blob->Reset(size))
|
/system/media/private/radio/include/ |
H A D | radio_metadata_hidden.h | 24 /* default size allocated for a metadata buffer in 32 bits units */ 26 /* maximum size allocated for a metadata buffer in 32 bits units */ 33 unsigned int size; member in struct:radio_metadata_entry 47 * | size_int | total size in 32 bit units including header and index 72 * The buffer is allocated with a default size (RADIO_METADATA_DEFAULT_SIZE entries) 80 unsigned int size_int; /* Total size in 32 bit word units */
|
/system/security/keystore/ |
H A D | keystore_utils.cpp | 30 size_t readFully(int fd, uint8_t* data, size_t size) { argument 31 size_t remaining = size; 35 return size - remaining; 40 return size; 43 size_t writeFully(int fd, uint8_t* data, size_t size) { argument 44 size_t remaining = size; 49 return size - remaining; 54 return size;
|
/system/update_engine/common/ |
H A D | http_fetcher.cc | 35 void HttpFetcher::SetPostData(const void* data, size_t size, argument 40 post_data_.insert(post_data_.end(), char_data, char_data + size); 44 void HttpFetcher::SetPostData(const void* data, size_t size) { argument 45 SetPostData(data, size, kHttpContentTypeUnspecified);
|