Searched defs:size (Results 1 - 25 of 246) sorted by relevance

12345678910

/system/bt/hci/src/
H A Dbuffer_allocator.c24 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 Dstringprintf_test.cpp24 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 Devent_log_list_builder_test.cpp35 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 Dhistogram_logger.cpp35 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 DCallStack.h64 size_t size() const { return mFrameLines.size(); } function in class:android::CallStack
/system/core/libsparse/
H A Dsparse_crc32.c101 uint32_t sparse_crc32(uint32_t crc_in, const void *buf, int size) argument
107 while (size--)
/system/extras/ext4_utils/
H A Dcrc16.c49 u16 ext4_crc16(u16 crc_in, const void *buf, int size) argument
54 while (size--)
H A Dcontents.h25 unsigned long size; member in struct:dentry
/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/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...]
H A DSharedBuffer.cpp28 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 DSharedBuffer.h41 /*! 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 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);
H A Dgraph_memcpy.py14 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 Dallocator.c28 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 Dprotobuf_lite_streams.cc56 int ProtobufLiteCopyingFileInputStream::Read(void* buffer, int size) { argument
57 return HANDLE_EINTR(read(fd_, buffer, size));
/system/core/init/
H A Dkeychords.cpp39 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 Dashmem-host.c41 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 Dion_test.h27 __u64 size; member in struct:ion_test_rw_data
/system/core/libion/original-kernel-headers/linux/
H A Dion_test.h25 * @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 Dandroid_keymaster_utils.cpp27 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 Dauth_encrypted_key_blob.cpp35 size_t size = 1 /* version byte */ + nonce.SerializedSize() + local
39 if (!key_blob->Reset(size))
/system/media/private/radio/include/
H A Dradio_metadata_hidden.h24 /* 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 Dkeystore_utils.cpp30 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 Dhttp_fetcher.cc35 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);

Completed in 762 milliseconds

12345678910